/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #2c3e50;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #2980b9;
}

/* 表格样式 */
.folder-table, .file-table, .excel-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.folder-table th, 
.file-table th,
.excel-table th {
    background: #2c3e50;
    color: white;
    text-align: left;
    padding: 12px;
}

.folder-table td, 
.file-table td,
.excel-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.folder-table tr:nth-child(even),
.file-table tr:nth-child(even),
.excel-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* 特殊样式 */
.top-folder {
    font-size: 1.5em;
    color: #e74c3c;
}

.folder-avatar {
    margin: 20px 0;
    text-align: center;
}

.folder-avatar img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    border: 3px solid #3498db;
}

/* 复制按钮样式 */
.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.copy-btn:hover {
    background: #219653;
}

/* 复制成功效果 */
.copied {
    background-color: #f0f0f0 !important;
    text-decoration: line-through;
    color: #888;
}

/* 表格加载状态 */
#excel-table-container p {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* 错误提示 */
.error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px;
    margin: 15px 0;
    color: #f44336;
}

/* 表格信息 */
.table-info {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

/* 表头样式 */
.excel-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 单元格悬停效果 */
.excel-table td:hover {
    background-color: #f0f8ff;
    cursor: pointer;
}

/* 复制按钮悬停效果 */
.copy-btn:hover {
    transform: scale(1.05);
}

/* 在原有基础上添加 */
.permanent-yellow {
    background-color: yellow !important;
    position: relative;
}

.permanent-yellow::after {
    content: "★";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 12px;
    color: #333;
}

.permanent-green {
    background-color: #90EE90 !important;
    position: relative;
}

.permanent-green::after {
    content: "✓";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 12px;
    color: #333;
}

/* 保持原有的临时效果 */
.copied {
    background-color: #f0f0f0 !important;
    text-decoration: line-through;
    color: #888;
    transform: scale(0.98);
}

.copied-cell {
    background-color: #f0f0f0;
    text-decoration: line-through;
    color: #888;
}

.export-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.export-btn:hover {
    background: #2980b9;
}

/* 在原有样式基础上添加 */
.copied-cell {
    background-color: #f0f0f0;
    text-decoration: line-through;
    color: #888;
}

.export-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.export-btn:hover {
    background: #2980b9;
}

/* 在原有样式基础上添加 */
.permanent-yellow {
    background-color: yellow !important;
}

.permanent-green {
    background-color: #90EE90 !important;
}

.copied-cell {
    background-color: #f0f0f0 !important;
    text-decoration: line-through;
    color: #888;
}


/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* 状态筛选器样式 */
.status-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.filter-btn:hover:not(.active) {
    background: #f1f1f1;
}

/* 完成按钮样式 */
.complete-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    z-index: 2;
}

.complete-btn:hover {
    background: #219653;
    transform: translateY(-2px);
}

.completed-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #27ae60;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.export-btn:hover, 
.taobao-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.taobao-btn {
    background: #ff4000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
}

.taobao-btn:hover {
    background: #e62e00;
}