/* Audacity 中文版 - 样式表 */
:root {
    --primary: #f58025;
    --primary-dark: #e06b10;
    --primary-light: #fff3e8;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --quark-color: #6f4fff;
    --baidu-color: #2932e1;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

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

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

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

/* 导航栏 */
.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

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

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero区域 */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 60%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 38px;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img img {
    width: 100%;
    height: auto;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-quark {
    background: var(--quark-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-quark:hover { opacity: 0.85; }

.btn-baidu {
    background: var(--baidu-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-baidu:hover { opacity: 0.85; }

/* 数据统计 */
.stats {
    padding: 50px 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* 通用标题 */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-desc {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* 功能卡片 */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 图文展示 */
.showcase {
    padding: 60px 0;
}

.showcase-reverse {
    background: var(--card-bg);
}

.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.showcase-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.showcase-img img {
    width: 100%;
    height: auto;
}

.showcase-text h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.showcase-text p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.8;
}

/* 使用场景 */
.use-cases {
    padding: 80px 0;
    background: var(--card-bg);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.case-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.case-card h3 {
    padding: 16px 20px 6px;
    font-size: 17px;
    color: var(--text-primary);
}

.case-card p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 对比表 */
.comparison {
    padding: 80px 0;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--text-primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.comparison-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

.comparison-table .highlight {
    color: var(--primary);
    font-weight: 600;
}

/* 教程入口 */
.tutorial-section {
    padding: 60px 0;
    background: var(--primary-light);
}

.tutorial-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.tutorial-box h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.tutorial-box p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

/* CTA下载 */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

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

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.cta .btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.7;
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-disclaimer {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 12px;
    color: #475569;
}

/* 下载弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }

.modal h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 二维码呼吸边框 */
.qr-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 2px solid var(--border);
    position: relative;
    animation: qrBreath 3s ease-in-out infinite;
}

@keyframes qrBreath {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 128, 37, 0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 16px 4px rgba(245, 128, 37, 0.2);
    }
}

.qr-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.qr-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.qr-tip {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* 复制链接按钮 */
.btn-copy {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: #fff;
    transition: opacity 0.2s;
    margin-bottom: 20px;
}

.btn-copy:hover { opacity: 0.85; }

.btn-copy.btn-quark { background: var(--quark-color); }
.btn-copy.btn-baidu { background: var(--baidu-color); }

/* 资源标签 */
.resource-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* 时效性提醒 */
.time-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
    line-height: 1.6;
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 响应式 */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-text h1 { font-size: 30px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-row { grid-template-columns: 1fr; gap: 30px; }
    .showcase-reverse .showcase-text { order: -1; }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--card-bg);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav-toggle { display: block; }
    .hero { padding: 40px 0; }
    .hero-text h1 { font-size: 26px; }
    .hero-btns { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 24px; }
    .stat-num { font-size: 28px; }
    .modal { padding: 24px; }
}
