/* 金石艾特FTP服务 - 现代化文件共享界面 - 增加返回按钮和链接功能 */
:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #7c3aed;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --surface: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-link: #93c5fd;
    --border: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e1b4b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
    padding: 20px;
}

/* 品牌标题 */
/* 修正品牌标题顺序 */
.brand-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    order: 1;
}

.brand-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    order: 2;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

/* 页面头部 - 增加返回按钮和链接 */
.page-header {
    padding: 30px 40px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.page-header h1::before {
    content: "📂";
    font-size: 1.8rem;
}

/* 文件管理系统链接样式 */
.system-title {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.system-title:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.system-title::before {
    content: "🏠";
    font-size: 1.8rem;
}



/* 修正路径显示 */
.path-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.path-info .current-path-text {
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Consolas', 'Monaco', monospace;
    flex: 1;
    min-width: 200px;
    word-break: break-all;
}

.path-info span {
    color: var(--text-primary);
    font-weight: 500;
}

/* 返回按钮样式 */
.back-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
}

.back-button:active {
    transform: translateY(0);
}

.back-button::before {
    content: "⬅";
    font-size: 1.2rem;
}

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}


/* 搜索区域 */
.search-container {
    padding: 25px 40px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.search-box {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.search-box::placeholder {
    color: var(--text-secondary);
}

/* 文件列表容器 */
.file-list-container {
    padding: 0;
}

/* 文件表格 */
.file-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--border);
}

.table-header th {
    padding: 22px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.table-header th:first-child {
    width: 50%;
}

.table-row {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-row td {
    padding: 20px 25px;
    vertical-align: middle;
}

/* 文件项目 */
.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.3rem;
}

.folder .file-icon {
    background: rgba(124, 58, 237, 0.2);
    color: var(--secondary);
}

.file .file-icon {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary);
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

.file-name:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.file-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 日期和大小 */
.file-date {
    color: var(--text-secondary);
    font-size: 1rem;
}

.file-size {
    color: var(--text-secondary);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    padding: 6px 12px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    display: inline-block;
}

/* 统计信息 */
.stats-container {
    padding: 25px 40px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer a {
    color: var(--text-link);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 15px;
    }
    
    .brand-title {
        font-size: 2.2rem;
    }
    
    .container {
        border-radius: 12px;
    }
    
    .page-header,
    .search-container,
    .stats-container {
        padding: 20px;
    }
    
    .table-header th,
    .table-row td {
        padding: 15px 20px;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .file-name {
        font-size: 1.1rem;
    }
.path-info {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .current-path-text {
        order: 1;
    }
    
    .back-button {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1.8rem;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .table-header th {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .table-row td {
        padding: 12px 15px;
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-row {
    animation: fadeIn 0.3s ease-out;
}
