/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 图标系统 ===== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}

.icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: #3b82f6;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #1e293b;
}

/* 导航栏登录按钮 */
.nav-login-btn {
    padding: 6px 16px !important;
    background: #3b82f6 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: background 0.3s ease !important;
}

.nav-login-btn:hover {
    background: #2563eb !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* 导航栏管理后台按钮 */
.nav-admin-btn {
    padding: 6px 16px !important;
    background: #f59e0b !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: background 0.3s ease !important;
}

.nav-admin-btn:hover {
    background: #d97706 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* 导航栏下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 8px 16px;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f1f5f9;
}

.dropdown-primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.dropdown-primary:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.dropdown-version {
    font-weight: 600;
    color: #3b82f6;
}

.dropdown-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.dropdown-more {
    color: #3b82f6;
    font-weight: 500;
    text-align: center;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1e293b;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* ===== 主页横幅 ===== */
.hero {
    min-height: 36vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #fff;
    text-align: center;
    padding: 100px 32px 48px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 28px;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.hero-stats .stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-label {
    opacity: 0.6;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ===== 搜索栏 ===== */
.search-section {
    padding: 28px 0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ===== 公告横幅 ===== */
.announcement-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #fcd34d;
    padding: 12px 0;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 500;
}

.announcement-content .icon {
    color: #d97706;
    flex-shrink: 0;
}

.announcement-close {
    background: none;
    border: none;
    color: #92400e;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
    line-height: 1;
}

.announcement-close:hover {
    opacity: 1;
}

.search-box {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

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

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
    background: #fff;
}

.search-box button {
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #2563eb;
}

/* ===== 通用区块 ===== */
.section {
    padding: 60px 0;
}

.section-gray {
    background: #fff;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

/* ===== 分类标签 ===== */
.category-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.category-tabs .tab {
    padding: 6px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.category-tabs .tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.03);
}

.category-tabs .tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

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

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
}

.empty-state p {
    font-size: 0.875rem;
}

/* ===== 文件列表 ===== */
.file-list {
    display: grid;
    gap: 10px;
}

.file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.file-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.file-card.hidden {
    display: none;
}

.file-icon {
    font-size: 1.75rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-info h3 {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 3px;
    font-weight: 600;
}

.file-desc {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.file-meta {
    color: #94a3b8;
    font-size: 0.75rem;
}

.download-btn {
    padding: 8px 16px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.download-btn:hover {
    background: #2563eb;
    box-shadow: none;
}

/* ===== 关于 ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-card {
    text-align: center;
    padding: 28px 24px;
    background: #fff;
    border-radius: 16px;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.about-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.about-icon {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.about-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #1e293b;
    font-weight: 600;
}

.about-card p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ===== 联系 ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
    background: #fff;
}

.submit-btn {
    padding: 10px 28px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #2563eb;
    box-shadow: none;
}

/* ===== 页脚 ===== */
.footer {
    background: #1e293b;
    color: #fff;
    padding: 24px 0;
    text-align: center;
}

.footer p {
    opacity: 0.6;
    font-size: 0.875rem;
}

.footer .credit {
    margin-top: 6px;
    font-size: 0.75rem;
    opacity: 0.4;
}

/* ===== APP下载弹窗 ===== */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.app-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.app-modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow: hidden;
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.app-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.app-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.app-modal-body {
    padding: 24px;
    text-align: center;
}

.app-modal-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.app-modal-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.app-feature-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.app-feature-item span {
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
}

.app-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.app-no-remind {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
}

.app-no-remind input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 32px;
        gap: 4px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .file-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 16px 14px;
    }

    .file-info {
        text-align: center;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 88px 20px 40px;
        min-height: 32vh;
    }
}

/* ===== 关于页面 ===== */
.about-page {
    padding: 88px 0 48px;
    min-height: 100vh;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.avatar {
    width: 88px;
    height: 88px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.about-header h1 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.about-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.about-section-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.about-section-card h2 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.about-section-card p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

/* 社交链接 */
.social-links {
    display: grid;
    gap: 10px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.social-icon {
    font-size: 1.75rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.social-info h3 {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 2px;
    font-weight: 600;
}

.social-info p {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.social-arrow {
    margin-left: auto;
    font-size: 1rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.social-card:hover .social-arrow {
    color: #3b82f6;
}

/* 站点特色 */
.site-features {
    display: grid;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 3px;
    font-weight: 600;
}

.feature-item p {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 返回按钮 */
.back-btn-wrapper {
    text-align: center;
    margin-top: 20px;
}

.back-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #2563eb;
    box-shadow: none;
}

@media (max-width: 768px) {
    .about-header h1 {
        font-size: 1.4rem;
    }

    .about-section-card {
        padding: 18px;
    }

    .about-page {
        padding: 76px 0 40px;
    }
}

/* ===== 认证页面 ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 24px 48px;
    background: #f8fafc;
}

.auth-container {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: #64748b;
    font-size: 0.875rem;
}

/* 认证标签切换 */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-tab.active {
    background: #fff;
    color: #3b82f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

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

.auth-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.auth-form input::placeholder {
    color: #94a3b8;
}

.auth-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
    background: #fff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.8rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    cursor: pointer;
}

.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #2563eb;
    text-decoration: none;
}

.auth-submit-btn {
    width: 100%;
    padding: 11px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-submit-btn:hover {
    background: #2563eb;
    box-shadow: none;
}

/* 登录下方链接 */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #2563eb;
    text-decoration: none;
}

.auth-message {
    display: none;
    text-align: center;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 500;
}

.back-to-login {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-login:hover {
    color: #2563eb;
    text-decoration: none;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #3b82f6;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .auth-page {
        padding: 76px 16px 40px;
    }
}

/* ===== 管理后台 ===== */
.admin-page {
    padding: 76px 0 48px;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-header {
    text-align: center;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-header p {
    color: #64748b;
    font-size: 0.875rem;
}

/* 统计卡片 */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-stat-card .stat-icon {
    font-size: 1.75rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 10px;
    flex-shrink: 0;
}

.admin-stat-card .stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.admin-stat-card .stat-label {
    color: #64748b;
    font-size: 0.75rem;
}

/* 管理区块 */
.admin-sections {
    display: grid;
    gap: 20px;
}

.admin-section h2 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.admin-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-toolbar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.admin-toolbar input::placeholder {
    color: #94a3b8;
}

.admin-toolbar input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
    background: #fff;
}

.admin-btn {
    padding: 8px 16px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.admin-btn:hover {
    background: #2563eb;
    box-shadow: none;
}

.admin-btn-danger {
    padding: 6px 12px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
}

.admin-btn-danger:hover {
    background: #dc2626;
}

.admin-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-btn-secondary {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.admin-btn-secondary:hover {
    background: #e2e8f0 !important;
}

/* 用户列表 */
.user-list {
    max-height: 360px;
    overflow-y: auto;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.user-row:last-child {
    border-bottom: none;
}

.user-email {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.user-meta {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 2px;
}

.loading-text, .empty-text {
    text-align: center;
    color: #94a3b8;
    padding: 24px;
    font-size: 0.875rem;
}

.admin-notice {
    padding: 14px 16px;
    background: #fffbeb;
    border-radius: 10px;
    border: 1px solid #fde68a;
}

.admin-notice p {
    color: #92400e;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

/* 公告输入 */
.admin-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    resize: vertical;
    margin-bottom: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.admin-card textarea::placeholder {
    color: #94a3b8;
}

.admin-card textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
    background: #fff;
}

.admin-msg {
    margin-top: 6px;
    font-size: 0.8rem;
}

/* 设置项 */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.setting-item select,
.setting-item input {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    color: #1e293b;
    transition: border-color 0.3s ease;
}

.setting-item select:focus,
.setting-item input:focus {
    outline: none;
    border-color: #3b82f6;
}

@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-toolbar {
        flex-direction: column;
    }

    .user-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .admin-page {
        padding: 68px 0 40px;
    }
}

/* ===== 上传页面 ===== */
.upload-page {
    padding: 76px 0 48px;
    min-height: 100vh;
    background: #f8fafc;
}

.upload-header {
    text-align: center;
    margin-bottom: 32px;
}

.upload-header h1 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.upload-header p {
    color: #64748b;
    font-size: 0.875rem;
}

/* 上传拖拽区域 */
.upload-area {
    background: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.upload-area p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.upload-select-btn {
    padding: 10px 24px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upload-select-btn:hover {
    background: #2563eb;
    box-shadow: none;
}

/* 待上传文件 */
.pending-files {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pending-files h3 {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pending-item:last-child {
    border-bottom: none;
}

.pending-name {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pending-size {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0 10px;
    white-space: nowrap;
}

.pending-remove {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pending-remove:hover {
    background: #ef4444;
    color: #fff;
}

/* 上传进度 */
.upload-progress {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 100px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress p {
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

/* 上传结果 */
.upload-result {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.upload-result h3 {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.upload-summary {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 0.875rem;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8rem;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.success span {
    color: #16a34a;
}

.result-item.fail span {
    color: #ef4444;
}

.download-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #2563eb;
    text-decoration: none;
}

/* 已上传文件列表 */
.uploaded-files {
    margin-top: 32px;
}

.uploaded-files h2 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.file-list {
    background: #fff;
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.file-detail {
    min-width: 0;
}

.file-name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    display: block;
    color: #94a3b8;
    font-size: 0.7rem;
    margin-top: 2px;
}

.file-download-btn {
    padding: 6px 14px;
    background: #3b82f6;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s ease;
    font-family: inherit;
}

.file-download-btn:hover {
    background: #2563eb;
    box-shadow: none;
}

@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .file-download-btn {
        width: 100%;
        text-align: center;
    }

    .upload-area {
        padding: 32px 18px;
    }

    .upload-page {
        padding: 68px 0 40px;
    }
}
