/* ===== 基础样式与变量 - 月光宁静主题 ===== */
:root {
    --primary: #4a6fa5;
    --primary-dark: #3d5a80;
    --primary-light: #6b8cae;
    --secondary: #457b9d;
    --accent: #a8dadc;
    --dark: #0d1117;
    --dark-light: #161b22;
    --gray: #8b949e;
    --gray-light: #c9d1d9;
    --light: #21262d;
    --white: #f0f6fc;
    --moonlight: rgba(240, 246, 252, 0.95);
    --butterfly: #58a6ff;
    --gradient-primary: linear-gradient(135deg, #3d5a80 0%, #457b9d 100%);
    --gradient-dark: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    --gradient-moonlight: linear-gradient(135deg, rgba(69, 123, 157, 0.3) 0%, rgba(61, 90, 128, 0.3) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(88, 166, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(88, 166, 255, 0.1);
    transition: var(--transition);
    border-bottom: 1px solid rgba(88, 166, 255, 0.1);
}

.navbar.scrolled {
    height: 60px;
    background: rgba(10, 10, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--gray-light);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(88, 166, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== 主页横幅 - 视频背景 ===== */
.hero {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 26, 0.2) 0%,
        rgba(10, 10, 26, 0.4) 50%,
        rgba(10, 10, 26, 0.7) 100%
    );
    z-index: 2;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 218, 220, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(230, 230, 250, 0.08) 0%, transparent 30%);
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    margin-bottom: 30px;
}

.title-logo {
    height: 33vh;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(88, 166, 255, 0.5));
}

.title-line {
    display: block;
    font-size: 5rem;
    font-weight: 700;
    color: var(--moonlight);
    letter-spacing: 8px;
    text-shadow: 0 0 40px rgba(88, 166, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.title-line.highlight {
    background: linear-gradient(135deg, #f0f6fc 0%, #58a6ff 50%, #a8dadc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-light);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--butterfly);
    line-height: 1;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-top: 8px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn-alt {
    background: transparent;
    border: 2px solid rgba(88, 166, 255, 0.6);
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.15);
}

.hero-btn-alt:hover {
    background: rgba(88, 166, 255, 0.15);
    border-color: var(--butterfly);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(88, 166, 255, 0.6), var(--shadow-glow);
}

/* 装饰元素 - 萤火虫效果 */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.gear {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(230, 230, 250, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(230, 230, 250, 0.8);
    animation: firefly 4s ease-in-out infinite;
}

.gear-1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.gear-2 {
    bottom: 30%;
    left: 15%;
    animation-delay: 1s;
}

.gear-3 {
    top: 60%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes firefly {
    0%, 100% { opacity: 0.3; transform: translateY(0) scale(1); }
    50% { opacity: 1; transform: translateY(-20px) scale(1.5); }
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    font-size: 2rem;
}

.section-desc {
    text-align: center;
    color: var(--gray-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ===== 团队介绍 ===== */
.team-section {
    background: var(--dark-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.team-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: var(--radius-lg);
    padding: 40px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(88, 166, 255, 0.1);
    backdrop-filter: blur(10px);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(88, 166, 255, 0.3);
    background: rgba(26, 26, 46, 0.95);
}

.card-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.4);
}

.avatar-placeholder {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.card-role {
    color: var(--butterfly);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.card-desc {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* ===== 项目资料 ===== */
.projects-section {
    background: var(--dark);
}

.project-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 24px;
    border: 2px solid rgba(88, 166, 255, 0.3);
    background: transparent;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--primary);
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.project-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(88, 166, 255, 0.1);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: rgba(88, 166, 255, 0.3);
}

.project-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.project-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    color: var(--butterfly);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

/* ===== 作品展示 ===== */
.gallery-section {
    background: var(--dark-light);
    color: var(--white);
}

.gallery-section .section-title {
    color: var(--white);
}

.gallery-section .section-desc {
    color: var(--gray-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    border: 2px dashed rgba(88, 166, 255, 0.3);
    transition: var(--transition);
}

.gallery-placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
}

.gallery-placeholder p {
    font-size: 0.85rem;
    margin-top: 8px;
}

.gallery-item:hover .gallery-placeholder {
    border-color: var(--butterfly);
    background: rgba(88, 166, 255, 0.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(10, 10, 26, 0.9));
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 500;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0;
    border-top: 1px solid rgba(88, 166, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-text {
    color: var(--gray-light);
    margin-bottom: 20px;
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .title-line {
        font-size: 2.8rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

    .nav-toggle {
        display: flex;
    }

    .title-line {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .section {
        padding: 70px 0;
    }

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

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 150px);
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 2;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .team-card {
        padding: 30px 20px;
    }

    .card-avatar {
        width: 80px;
        height: 80px;
    }
}

/* ===== 配置按钮 ===== */
.config-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 46, 0.9);
    color: var(--white);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 998;
}

.config-btn:hover {
    background: var(--gradient-primary);
    transform: rotate(90deg);
    box-shadow: var(--shadow-glow);
}

.config-btn.configured {
    background: var(--gradient-primary);
}

/* ===== 模态框 ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-light);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.modal-content.modal-large {
    max-width: 700px;
}

.modal-content.modal-small {
    max-width: 400px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(88, 166, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

.modal-body {
    padding: 25px;
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(88, 166, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(10, 10, 26, 0.5);
    color: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.form-group input::placeholder {
    color: var(--gray);
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--gray);
}

.form-hint a {
    color: var(--butterfly);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

/* ===== 按钮样式 ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(88, 166, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(88, 166, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.8);
    color: var(--white);
}

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

/* ===== 配置状态 ===== */
.config-status {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.config-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.config-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== 配置指南 ===== */
.config-guide {
    margin-top: 25px;
    padding: 20px;
    background: rgba(88, 166, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(88, 166, 255, 0.1);
}

.config-guide h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.config-guide ol {
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.8;
}

/* ===== 项目卡片操作按钮 ===== */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-action {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-files {
    background: rgba(88, 166, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.btn-files:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.btn-upload {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-upload:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* ===== 文件工具栏 ===== */
.file-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

/* ===== 文件列表 ===== */
.file-list-container {
    min-height: 200px;
    position: relative;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(88, 166, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid rgba(88, 166, 255, 0.1);
}

.file-item:hover {
    background: rgba(88, 166, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

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

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

.file-name {
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
    word-break: break-all;
}

.file-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.file-actions a,
.file-actions button {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(88, 166, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.file-actions a:hover,
.file-actions button:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

.file-actions .btn-delete:hover {
    background: rgba(239, 68, 68, 0.8);
}

/* ===== 加载状态 ===== */
.file-loading,
.file-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: var(--gray);
}

.file-loading.active,
.file-empty.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(88, 166, 255, 0.2);
    border-top-color: var(--butterfly);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.file-empty span {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* ===== 上传进度 ===== */
.upload-progress {
    text-align: center;
}

.upload-file-name {
    font-weight: 500;
    color: var(--white);
    margin-bottom: 15px;
    word-break: break-all;
}

.progress-bar {
    height: 8px;
    background: rgba(88, 166, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-status {
    font-size: 0.9rem;
    color: var(--gray);
}

.upload-status.success {
    color: #86efac;
}

.upload-status.error {
    color: #fca5a5;
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    background: var(--dark-light);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: rgba(34, 197, 94, 0.9);
    border-color: rgba(34, 197, 94, 0.5);
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 0.5);
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .config-btn {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .modal-content {
        margin: 10px;
        max-height: 85vh;
    }

    .form-actions {
        flex-direction: column;
    }

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

    .file-item {
        flex-wrap: wrap;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .card-actions {
        flex-direction: column;
    }
}
