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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

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

/* ===== 顶部导航 ===== */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

/* ===== Hero Banner ===== */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: white;
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,158,11,0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
}

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

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

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    background: #eff6ff;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 网盘平台卡片网格 ===== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.platform-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.platform-card:hover::before {
    transform: scaleX(1);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
}

.platform-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.platform-info .platform-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.platform-features {
    margin-bottom: 20px;
}

.platform-features li {
    font-size: 14px;
    color: var(--text-light);
    padding: 5px 0;
    padding-left: 22px;
    position: relative;
}

.platform-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.platform-reward {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-label {
    font-size: 13px;
    color: var(--text-light);
}

.reward-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.reward-value small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.platform-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.platform-btn:hover {
    background: var(--primary-dark);
}

.platform-btn.secondary {
    background: #f1f5f9;
    color: var(--text);
    margin-top: 8px;
}

.platform-btn.secondary:hover {
    background: #e2e8f0;
}

/* 各网盘主题色 */
.icon-quark { background: linear-gradient(135deg, #00b4ff, #0066ff); }
.icon-baidu { background: linear-gradient(135deg, #2932e1, #4a54f1); }
.icon-chinamobile { background: linear-gradient(135deg, #0080ff, #00a0e9); }
.icon-guangya { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.icon-xunlei { background: linear-gradient(135deg, #00c3ff, #0066ff); }
.icon-uc { background: linear-gradient(135deg, #ff6600, #ff9500); }
.icon-meta { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.icon-wukong { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.icon-baidu-intl { background: linear-gradient(135deg, #1e40af, #3b82f6); }

/* ===== 资源分类 ===== */
.categories-section {
    background: var(--bg-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.category-card:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.category-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== 热门资源 ===== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.resource-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.resource-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 10px;
    width: fit-content;
}

.tag-hot { background: #fef2f2; color: #ef4444; }
.tag-new { background: #f0fdf4; color: #16a34a; }
.tag-free { background: #eff6ff; color: #2563eb; }

.resource-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.resource-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.resource-platform {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.resource-btn {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.resource-btn:hover {
    background: var(--primary-dark);
}

/* ===== 使用说明 ===== */
.howto-section {
    background: var(--bg-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-disclaimer {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.6;
    border-left: 3px solid var(--accent);
}

.footer-col h5 {
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #94a3b8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: white;
}

/* ===== 详情页样式 ===== */
.detail-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 50px 0;
}

.detail-hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.detail-platform-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.detail-hero-info h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.detail-hero-info p {
    font-size: 16px;
    opacity: 0.9;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.detail-section {
    padding: 50px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.detail-main h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.detail-main h2:not(:first-child) {
    margin-top: 36px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.benefit-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
}

.benefit-item .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.benefit-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 12px;
    color: var(--text-muted);
}

.reward-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.reward-table th, .reward-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.reward-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text);
}

.reward-table tr:last-child td {
    border-bottom: none;
}

.reward-table .price {
    color: var(--primary);
    font-weight: 700;
}

/* 侧边栏 */
.detail-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.sidebar-reward-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.sidebar-reward-row .label {
    font-size: 14px;
    color: var(--text-light);
}

.sidebar-reward-row .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}

.cta-box h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-box p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-box .btn-primary {
    width: 100%;
    justify-content: center;
}

.cta-box .btn-outline {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    background: rgba(255,255,255,0.15);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 15px;
    }
    .section-title {
        font-size: 24px;
    }
    .section {
        padding: 40px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .detail-hero-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* 移动端菜单 */
.mobile-menu {
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ===== 模块1：数字图书馆 ===== */
.library-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.filter-btn {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.library-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.library-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.library-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.library-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.library-info {
    flex: 1;
    min-width: 0;
}
.library-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.library-category {
    font-size: 12px;
    color: var(--primary);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}
.free-badge {
    font-size: 11px;
    color: #16a34a;
    background: #f0fdf4;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}
.library-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.library-features {
    margin-bottom: 16px;
    flex: 1;
}
.library-features li {
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}
.library-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 12px;
}
.library-meta {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-bottom: 14px;
}
.library-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.library-btn:hover {
    background: var(--primary-dark);
}
/* 转存引导框 */
.save-guide-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.save-guide-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.save-guide-icon {
    font-size: 48px;
    flex-shrink: 0;
}
.save-guide-text {
    flex: 1;
    min-width: 280px;
}
.save-guide-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.save-guide-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}
.save-guide-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.save-guide-meta span {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.7);
    padding: 4px 10px;
    border-radius: 6px;
}
.save-guide-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.btn-outline-dark {
    background: white;
    color: var(--text);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.btn-outline-dark:hover {
    background: #f8fafc;
    border-color: var(--primary-light);
}
/* 拉新引导框 */
.register-guide-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
}
.register-guide-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.register-guide-icon {
    font-size: 36px;
    flex-shrink: 0;
}
.register-guide-text {
    flex: 1;
    min-width: 240px;
}
.register-guide-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.register-guide-text p {
    font-size: 14px;
    color: var(--text-light);
}
.library-disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0 20px;
}
/* 图书馆模块响应式 */
@media (max-width: 768px) {
    .library-grid {
        grid-template-columns: 1fr;
    }
    .save-guide-content {
        flex-direction: column;
        text-align: center;
    }
    .save-guide-buttons {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
    .register-guide-content {
        flex-direction: column;
        text-align: center;
    }
    .save-guide-meta {
        justify-content: center;
    }
}

/* ===== 模块快速入口卡片 ===== */
.module-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.module-nav-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
}
.module-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.module-nav-icon {
    font-size: 40px;
    margin-bottom: 14px;
}
.module-nav-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.module-nav-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.module-nav-count {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* ===== 模块通用样式（复用图书馆卡片风格） ===== */
.module-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.resource-card-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.resource-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.resource-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.resource-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.resource-card-info {
    flex: 1;
    min-width: 0;
}
.resource-card-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.resource-card-category {
    font-size: 12px;
    color: var(--primary);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}
.resource-card-badge {
    font-size: 11px;
    color: #16a34a;
    background: #f0fdf4;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}
.resource-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.resource-card-features {
    margin-bottom: 16px;
    flex: 1;
}
.resource-card-features li {
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}
.resource-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 12px;
}
.resource-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-bottom: 14px;
}
.resource-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.resource-card-btn:hover {
    background: var(--primary-dark);
}

/* ===== 网盘选择指南对比卡片 ===== */
.drive-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.drive-compare-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}
.drive-compare-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.drive-compare-card.highlight {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, #f0f7ff, var(--bg-white));
    position: relative;
}
.drive-compare-card.highlight::before {
    content: '推荐';
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
}
.drive-compare-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.drive-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}
.drive-compare-header h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 4px;
}
.drive-tag {
    font-size: 12px;
    color: var(--primary);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}
.drive-features {
    margin-bottom: 24px;
}
.drive-features li {
    font-size: 13px;
    color: var(--text-light);
    padding: 6px 0;
    line-height: 1.5;
}
.drive-cta {
    width: 100%;
    justify-content: center;
}
.drive-tips {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 18px 24px;
}
.drive-tips p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}
.drive-tips strong {
    color: var(--text);
}

/* ===== 模块响应式 ===== */
@media (max-width: 768px) {
    .module-nav-grid {
        grid-template-columns: 1fr;
    }
    .resource-grid {
        grid-template-columns: 1fr;
    }
    .drive-compare-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 转存引导框：9个网盘小按钮 ===== */
.save-drive-section {
    flex-shrink: 0;
    min-width: 320px;
}
.save-drive-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
}
.save-drive-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.drive-mini-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    justify-content: center;
}
.drive-mini-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}
.drive-mini-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}
.drive-mini-btn.icon-quark .drive-mini-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.drive-mini-btn.icon-baidu .drive-mini-icon { background: linear-gradient(135deg, #2563eb, #1e40af); }
.drive-mini-btn.icon-chinamobile .drive-mini-icon { background: linear-gradient(135deg, #059669, #047857); }
.drive-mini-btn.icon-guangya .drive-mini-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.drive-mini-btn.icon-xunlei .drive-mini-icon { background: linear-gradient(135deg, #1e40af, #1e3a8a); }
.drive-mini-btn.icon-uc .drive-mini-icon { background: linear-gradient(135deg, #ea580c, #c2410c); }
.drive-mini-btn.icon-meta .drive-mini-icon { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.drive-mini-btn.icon-wukong .drive-mini-icon { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.drive-mini-btn.icon-baidu-intl .drive-mini-icon { background: linear-gradient(135deg, #0891b2, #0e7490); }

/* ===== 网盘选择指南：9卡片适配 ===== */
.drive-compare-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.drive-core-feature {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}
.drive-compare-card .drive-cta {
    width: 100%;
    justify-content: center;
}

/* ===== 转存引导框响应式 ===== */
@media (max-width: 768px) {
    .save-drive-section {
        width: 100%;
        min-width: auto;
    }
    .save-drive-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    .save-guide-content {
        flex-direction: column;
        text-align: center;
    }
    .save-drive-label {
        text-align: center;
    }
}

/* ===== v7：模块顶部精简网盘条 ===== */
.module-drive-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.drive-bar-text {
    font-size: 14px;
    color: #1e40af;
    font-weight: 500;
}
.drive-bar-text strong {
    color: #2563eb;
    font-weight: 700;
}
.drive-bar-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.drive-bar-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: white;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    transition: var(--transition);
}
.drive-bar-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
}
.drive-bar-btn.primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}
.drive-bar-btn.primary:hover {
    background: #1d4ed8;
}
.drive-bar-btn.more {
    background: transparent;
    border: none;
    color: #2563eb;
    padding: 6px 8px;
}

/* ===== v7：卡片隐藏 + 加载更多 ===== */
.hidden-card {
    display: none !important;
}
.load-more-btn {
    display: block;
    margin: 20px auto 0;
    padding: 12px 32px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.load-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* ===== v7：Toast提示 ===== */
.toast-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 90%;
    border-left: 4px solid #f59e0b;
}
.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.toast-icon {
    font-size: 20px;
}
.toast-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.toast-close {
    cursor: pointer;
    font-size: 20px;
    color: #999;
    margin-left: 10px;
    line-height: 1;
}
.toast-close:hover {
    color: #333;
}

/* ===== v7：底部悬浮网盘条 ===== */
.floating-drive-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.floating-drive-bar.show {
    transform: translateY(0);
}
.floating-bar-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.floating-bar-icon {
    font-size: 24px;
}
.floating-bar-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}
.floating-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.floating-bar-btn {
    padding: 8px 20px;
    background: white;
    color: #2563eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.floating-bar-btn:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
}
.floating-bar-close {
    cursor: pointer;
    font-size: 22px;
    color: rgba(255,255,255,0.7);
    line-height: 1;
}
.floating-bar-close:hover {
    color: white;
}

/* ===== v7：响应式 ===== */
@media (max-width: 768px) {
    .module-drive-bar {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
    }
    .drive-bar-buttons {
        justify-content: center;
    }
    .floating-drive-bar {
        flex-direction: column;
        padding: 12px 16px;
        gap: 10px;
    }
    .floating-bar-content {
        text-align: center;
    }
    .floating-bar-text {
        font-size: 13px;
    }
    .toast-notification {
        top: 70px;
        padding: 12px 16px;
    }
    .toast-text {
        font-size: 13px;
    }
}
