/* 麻豆下载 - 企业级下载平台样式表 */
/* 全局重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

body {
    background: #f8f9fa;
    color: #222;
    line-height: 1.7;
    font-size: 16px;
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #1557b0;
}

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

/* 导航吸顶 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: background 0.3s, backdrop-filter 0.3s;
}

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

.navbar .logo {
    font-size: 22px;
    font-weight: 700;
    color: #1a73e8;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.navbar .logo svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(26, 115, 232, 0.2));
}

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

.navbar .nav-links li a {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    position: relative;
}

.navbar .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s;
    border-radius: 2px;
}

.navbar .nav-links li a:hover {
    color: #1a73e8;
    transform: translateY(-1px);
}

.navbar .nav-links li a:hover::after {
    width: 100%;
}

.navbar .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: transform 0.2s;
}

.navbar .menu-toggle:hover {
    transform: scale(1.1);
}

/* 移动菜单 */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid #e5e7eb;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease;
    }

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

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

    .navbar .menu-toggle {
        display: block;
    }
}

/* 面包屑 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1a73e8;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1557b0;
}

.breadcrumb span {
    color: #999;
    margin: 0 4px;
}

/* Banner轮播 - 渐变背景 */
.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a73e8 0%, #4a90e2 30%, #7bb3f0 60%, #a3c9ff 100%);
    color: #fff;
    padding: 80px 0 100px;
    text-align: center;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: shimmer 8s ease-in-out infinite;
}

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

.banner .slide {
    display: none;
    position: relative;
    z-index: 1;
}

.banner .slide.active {
    display: block;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 28px;
    opacity: 0.95;
    line-height: 1.8;
}

.banner .btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #1a73e8;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.banner .btn:hover {
    background: #fff;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.banner .dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.banner .dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner .dots span.active {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.banner .dots span:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* 通用section */
section {
    padding: 70px 0;
}

section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #111;
    text-align: center;
    letter-spacing: -0.5px;
}

section h2 span {
    color: #1a73e8;
    position: relative;
}

section h2 span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, transparent);
    border-radius: 2px;
}

section .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 45px;
    font-size: 17px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    section h2 {
        font-size: 26px;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .banner h1 {
        font-size: 28px;
    }
    .banner p {
        font-size: 16px;
    }
    .banner {
        padding: 60px 0 80px;
        min-height: 320px;
    }
}

/* 卡片 - 圆角+毛玻璃效果 */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, #7bb3f0);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a73e8;
}

.card p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.card .meta {
    font-size: 13px;
    color: #999;
    margin-top: 14px;
}

/* 统计数字动画 */
.stats {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.stats .grid-4 {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stats .stat-item h3 {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats .stat-item p {
    font-size: 16px;
    opacity: 0.85;
    font-weight: 500;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
    padding: 18px 0;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(26, 115, 232, 0.02);
}

.faq-question {
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111;
    user-select: none;
    padding: 4px 0;
}

.faq-question::after {
    content: "+";
    font-size: 24px;
    color: #1a73e8;
    transition: all 0.3s ease;
    font-weight: 300;
}

.faq-item.open .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: #555;
    padding-top: 0;
    line-height: 1.7;
    font-size: 15px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 12px;
}

/* HowTo */
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.howto-step .step-num {
    background: linear-gradient(135deg, #1a73e8, #4a90e2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
}

.howto-step .step-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111;
}

.howto-step .step-content p {
    color: #555;
    line-height: 1.7;
}

/* 文章列表 */
.article-list .article-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.8);
    transition: padding-left 0.3s;
}

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

.article-list .article-item:hover {
    padding-left: 8px;
}

.article-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #111;
    transition: color 0.2s;
}

.article-item:hover h3 {
    color: #1a73e8;
}

.article-item .meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.article-item p {
    color: #555;
    line-height: 1.7;
}

.article-item .read-more {
    color: #1a73e8;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
    transition: transform 0.2s;
}

.article-item .read-more:hover {
    transform: translateX(4px);
    text-decoration: none;
}

/* 客户评价 */
.testimonial-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.testimonial-card .quote {
    font-style: italic;
    color: #444;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.8;
}

.testimonial-card .author {
    font-weight: 600;
    color: #1a73e8;
    font-size: 15px;
}

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-links a {
    color: #555;
    font-size: 14px;
    padding: 6px 18px;
    background: rgba(240, 240, 240, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.friend-links a:hover {
    background: #1a73e8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
    text-decoration: none;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ccc;
    padding: 50px 0 24px;
    font-size: 14px;
}

footer .grid-4 h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
}

footer a {
    color: #aaa;
    transition: color 0.2s, padding-left 0.2s;
}

footer a:hover {
    color: #fff;
    padding-left: 4px;
    text-decoration: none;
}

footer .copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 36px;
    font-size: 13px;
    color: #888;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a73e8, #4a90e2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top.show {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.4);
    background: linear-gradient(135deg, #1557b0, #1a73e8);
}

/* 暗黑模式 */
.dark-mode-toggle {
    position: fixed;
    bottom: 100px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark {
    background: #121212;
    color: #e0e0e0;
}

body.dark .navbar {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    border-color: rgba(51, 51, 51, 0.5);
}

body.dark .navbar .nav-links li a {
    color: #ccc;
}

body.dark .navbar .nav-links li a:hover {
    color: #7bb3f0;
}

body.dark .card,
body.dark .testimonial-card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(16px);
    border-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

body.dark .card h3,
body.dark .testimonial-card .author {
    color: #7bb3f0;
}

body.dark .card p,
body.dark .testimonial-card .quote {
    color: #bbb;
}

body.dark .faq-question {
    color: #e0e0e0;
}

body.dark .faq-answer {
    color: #aaa;
}

body.dark .breadcrumb {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(8px);
    border-color: #333;
}

body.dark .friend-links a {
    background: rgba(51, 51, 51, 0.7);
    color: #ccc;
}

body.dark .friend-links a:hover {
    background: #1a73e8;
    color: #fff;
}

body.dark footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
}

body.dark h1, body.dark h2, body.dark h3,
body.dark .article-item h3,
body.dark .howto-step .step-content h4 {
    color: #f0f0f0;
}

body.dark .article-item p,
body.dark .howto-step .step-content p {
    color: #bbb;
}

body.dark .article-item .meta {
    color: #777;
}

body.dark .stats {
    background: linear-gradient(135deg, #0d2b5e 0%, #1a3a6e 100%);
}

body.dark .banner {
    background: linear-gradient(135deg, #0d2b5e 0%, #1a3a6e 30%, #2a5a9e 60%, #3a7abe 100%);
}

body.dark .search-box input {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark .search-box input::placeholder {
    color: #888;
}

/* 滚动动画 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 站内搜索简单框 */
.search-box {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto 45px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.search-box input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-box button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #1a73e8, #4a90e2);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

/* 图片SVG占位 */
.svg-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #eef2f6, #e0e6ed);
    border-radius: 12px;
    padding: 24px;
    min-height: 140px;
}

img[src$=".svg"] {
    max-width: 100%;
    height: auto;
}

/* 响应式微调 */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
    .banner h1 {
        font-size: 24px;
    }
    .banner .btn {
        padding: 12px 28px;
        font-size: 15px;
    }
    .back-to-top,
    .dark-mode-toggle {
        width: 44px;
        height: 44px;
        font-size: 20px;
        right: 20px;
    }
    .dark-mode-toggle {
        bottom: 80px;
    }
    .back-to-top {
        bottom: 30px;
    }
    .card {
        padding: 20px;
    }
    .faq-question {
        font-size: 15px;
    }
    .howto-step {
        gap: 14px;
    }
    .howto-step .step-num {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}