/**
 * 首页大厅样式 - 美化版
 * 文件路径: assets/css/home.css
 * 说明: 此文件专门用于美化首页大厅界面，包含完整的响应式支持
 */

/* ==================== 页面头部卡片 ==================== */
.page-header-card {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #2dd4bf 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 118, 110, 0.2);
}

/* 动态装饰圆形 */
.page-header-card::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.page-header-card::after {
    content: '';
    position: absolute;
    right: 80px;
    bottom: -40px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.page-header-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header-card h1 i {
    font-size: 28px;
    opacity: 0.9;
}

.page-header-card p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* 头部提示文字链接 */
.page-header-card .header-note {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 8px;
    display: block;
}

.page-header-card .header-note a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s;
}

.page-header-card .header-note a:hover {
    opacity: 0.8;
}

/* ==================== 搜索框 ==================== */
.search-box-modern {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.search-box-modern input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box-modern input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-box-modern input::placeholder {
    color: #94a3b8;
}

.search-box-modern button {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-box-modern button:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.search-box-modern button:active {
    transform: translateY(0);
}

.search-box-modern button i {
    font-size: 16px;
}

/* ==================== 文件列表容器 ==================== */
.file-list-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15, 118, 110, 0.08);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

/* ==================== 列表头部 ==================== */
.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.file-list-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-list-header h3 i {
    color: #14b8a6;
    font-size: 20px;
}

.file-list-header .stats {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.file-list-header .stats strong {
    color: #0f766e;
    font-weight: 700;
}

/* ==================== 文件表格 ==================== */
.file-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.file-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.file-table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.file-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.file-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.file-table thead th {
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.file-table thead th:first-child {
    width: 60px;
    text-align: center;
}

.file-table thead th:last-child {
    width: 180px;
    text-align: center;
}

.file-table tbody tr {
    transition: all 0.25s ease;
    border-bottom: 1px solid #f1f5f9;
}

.file-table tbody tr:hover {
    background: linear-gradient(90deg, #f0fdfa 0%, #f8fafc 100%);
    transform: scale(1.002);
}

.file-table tbody td {
    padding: 18px 24px;
    vertical-align: middle;
}

.file-table tbody td:first-child {
    text-align: center;
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
}

.file-table tbody td:last-child {
    text-align: center;
}

/* 文件名单元格 */
.file-table .file-name-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.file-table .file-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
    transition: all 0.3s ease;
}

.file-table tbody tr:hover .file-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.3);
}

.file-table .file-name {
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 350px;
    transition: color 0.2s;
}

.file-table tbody tr:hover .file-name {
    color: #0f766e;
}

.file-table .file-size {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.file-table .file-type {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    color: #0f766e;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(20, 184, 166, 0.2);
    white-space: nowrap;
}

.file-table .file-time {
    color: #64748b;
    font-size: 14px;
    white-space: nowrap;
}

/* 操作按钮 */
.file-table .file-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.file-table .btn-action {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.file-table .btn-download {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.file-table .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
    color: #fff;
    text-decoration: none;
}

.file-table .btn-view {
    background: #fff;
    color: #0f766e;
    border: 1.5px solid #14b8a6;
}

.file-table .btn-view:hover {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    text-decoration: none;
}

.file-table .btn-quota-exceeded {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    cursor: not-allowed;
}

/* ==================== 列表底部 ==================== */
.file-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid #f1f5f9;
}

.file-list-footer .stats-info {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.file-list-footer .stats-info strong {
    color: #0f766e;
    font-weight: 700;
}

/* ==================== 分页 ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px;
    flex-wrap: wrap;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.pagination-wrapper a,
.pagination-wrapper span {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    min-width: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-wrapper a {
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid transparent;
}

.pagination-wrapper a:hover {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    text-decoration: none;
}

.pagination-wrapper .current {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.pagination-wrapper .disabled {
    color: #cbd5e1;
    background: #f8fafc;
    cursor: not-allowed;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 72px;
    color: #e2e8f0;
    display: block;
    margin-bottom: 24px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state p {
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

/* ==================== 平板适配 (769px - 1024px) ==================== */
@media (max-width: 1024px) {
    .page-header-card {
        padding: 32px;
        border-radius: 20px;
    }

    .page-header-card h1 {
        font-size: 28px;
    }

    .file-list-header {
        padding: 20px 24px;
    }

    .file-table tbody td {
        padding: 16px 20px;
    }

    .file-table .file-name {
        max-width: 250px;
    }

    .file-table .btn-action {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ==================== 手机适配 (≤768px) ==================== */
@media (max-width: 768px) {
    /* 容器调整 */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* 头部卡片 */
    .page-header-card {
        padding: 24px 20px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .page-header-card h1 {
        font-size: 22px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-header-card h1 i {
        font-size: 22px;
    }

    .page-header-card p {
        font-size: 14px;
    }

    .page-header-card .header-note {
        font-size: 12px;
    }

    /* 搜索框 */
    .search-box-modern {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .search-box-modern input {
        width: 100%;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 12px;
    }

    .search-box-modern button {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        justify-content: center;
        border-radius: 12px;
    }

    /* 文件列表 */
    .file-list-container {
        border-radius: 16px;
    }

    .file-list-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 18px 20px;
    }

    .file-list-header h3 {
        font-size: 16px;
    }

    .file-list-header .stats {
        font-size: 13px;
    }

    /* 表格横向滚动 */
    .file-table-wrapper {
        margin: 0 -20px;
        padding: 0 20px;
    }

    .file-table {
        min-width: 650px;
    }

    .file-table thead th {
        padding: 14px 16px;
        font-size: 11px;
    }

    .file-table tbody td {
        padding: 14px 16px;
    }

    .file-table .file-name-cell {
        gap: 10px;
    }

    .file-table .file-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
        border-radius: 10px;
    }

    .file-table .file-name {
        max-width: 180px;
        font-size: 14px;
    }

    .file-table .file-type {
        font-size: 11px;
        padding: 4px 10px;
    }

    .file-table .file-size,
    .file-table .file-time {
        font-size: 13px;
    }

    .file-table .file-actions {
        gap: 6px;
    }

    .file-table .btn-action {
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 8px;
    }

    .file-table .btn-action i {
        font-size: 12px;
    }

    /* 底部和分页 */
    .file-list-footer {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        text-align: center;
    }

    .file-list-footer .stats-info {
        font-size: 13px;
    }

    .pagination-wrapper {
        gap: 6px;
        padding: 16px;
    }

    .pagination-wrapper a,
    .pagination-wrapper span {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
        min-height: 36px;
    }

    /* 空状态 */
    .empty-state {
        padding: 60px 20px;
    }

    .empty-state i {
        font-size: 56px;
    }

    .empty-state p {
        font-size: 16px;
    }
}

/* ==================== 超小屏幕 (≤480px) ==================== */
@media (max-width: 480px) {
    .page-header-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .page-header-card h1 {
        font-size: 18px;
    }

    .page-header-card p {
        font-size: 13px;
    }

    .search-box-modern input {
        padding: 12px 16px;
        font-size: 15px;
    }

    .search-box-modern button {
        padding: 12px;
        font-size: 14px;
    }

    .file-list-header {
        padding: 16px;
    }

    .file-table-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .file-table {
        min-width: 600px;
    }

    .file-table thead th {
        padding: 12px 14px;
    }

    .file-table tbody td {
        padding: 12px 14px;
    }

    .file-table .file-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .file-table .file-name {
        max-width: 140px;
        font-size: 13px;
    }

    .file-table .btn-action {
        padding: 6px 8px;
        font-size: 10px;
    }

    .pagination-wrapper a,
    .pagination-wrapper span {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }
}

/* ==================== 大屏幕优化 (≥1400px) ==================== */
@media (min-width: 1400px) {
    .page-header-card {
        padding: 48px;
    }

    .page-header-card h1 {
        font-size: 36px;
    }

    .page-header-card p {
        font-size: 18px;
    }

    .file-list-header {
        padding: 28px 36px;
    }

    .file-table tbody td {
        padding: 20px 28px;
    }

    .file-table .file-name {
        max-width: 450px;
    }

    .file-table .btn-action {
        padding: 12px 20px;
        font-size: 14px;
    }
}

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

.page-header-card {
    animation: fadeInUp 0.5s ease-out;
}

.file-list-container {
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.file-table tbody tr {
    animation: fadeInUp 0.3s ease-out backwards;
}

.file-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.file-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.file-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.file-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.file-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.file-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.file-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.file-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.file-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.file-table tbody tr:nth-child(10) { animation-delay: 0.5s; }
