/* VLC Download Site - Style */
:root {
    --bg-primary: #0e1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1c2128;
    --bg-card: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #ff8800;
    --accent-hover: #ffaa33;
    --accent-dim: rgba(255,136,0,0.12);
    --border: #30363d;
    --quark-color: #7c5ce7;
    --baidu-color: #4e6ef2;
    --success: #3fb950;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
    --transition: 0.3s ease;
    --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Header / Nav ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(14,17,23,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.site-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.site-logo img { width: 32px; height: 32px; }
.site-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    padding: 6px 0; position: relative; transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--accent); border-radius: 1px;
}

.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.hero-icon { width: 96px; height: 96px; margin: 0 auto 24px; }
.hero h1 {
    font-size: 36px; font-weight: 800; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .subtitle {
    font-size: 17px; color: var(--text-secondary); max-width: 640px;
    margin: 0 auto 32px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-size: 15px; font-weight: 600; cursor: pointer;
    border: none; transition: all var(--transition);
    text-decoration: none;
}
.btn-quark { background: var(--quark-color); color: #fff; }
.btn-quark:hover { background: #6c4dd6; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,92,231,0.35); }
.btn-baidu { background: var(--baidu-color); color: #fff; }
.btn-baidu:hover { background: #3d5ce0; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(78,110,242,0.35); }
.btn-outline {
    background: transparent; color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-dim); color: var(--accent-hover); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-secondary); }
.section-title {
    font-size: 26px; font-weight: 700; text-align: center;
    margin-bottom: 12px;
}
.section-desc {
    text-align: center; color: var(--text-secondary); font-size: 15px;
    max-width: 600px; margin: 0 auto 40px;
}

/* ===== Screenshot Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-card);
    transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-caption {
    padding: 12px 16px; font-size: 13px; color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* ===== Feature Grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 24px;
    transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--accent-dim); display: flex; align-items: center;
    justify-content: center; font-size: 22px; margin-bottom: 16px; color: var(--accent);
}
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== Format Table ===== */
.format-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border);
}
.format-table th, .format-table td {
    padding: 14px 20px; text-align: left; font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.format-table th {
    background: var(--bg-tertiary); font-weight: 600;
    color: var(--text-primary); font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.format-table td { color: var(--text-secondary); }
.format-table tr:last-child td { border-bottom: none; }
.format-table tr:hover td { background: rgba(255,136,0,0.04); }

/* ===== System Requirements ===== */
.sys-req { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sys-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.sys-card h3 {
    font-size: 16px; font-weight: 600; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.sys-card ul { list-style: none; }
.sys-card li {
    font-size: 14px; color: var(--text-secondary); padding: 5px 0;
    padding-left: 18px; position: relative;
}
.sys-card li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ===== Download Section ===== */
.download-platform {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px;
}
.download-platform h3 {
    font-size: 20px; font-weight: 700; margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px;
}
.download-platform .version-info {
    font-size: 13px; color: var(--text-muted); margin-bottom: 20px;
}
.download-links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.download-note {
    font-size: 13px; color: var(--text-muted); padding-top: 16px;
    border-top: 1px solid var(--border); line-height: 1.8;
}

/* ===== Version Table ===== */
.version-table {
    width: 100%; border-collapse: collapse; margin-top: 20px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border);
}
.version-table th, .version-table td {
    padding: 12px 18px; text-align: left; font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.version-table th { background: var(--bg-tertiary); font-weight: 600; font-size: 13px; }
.version-table td { color: var(--text-secondary); }
.version-table tr:last-child td { border-bottom: none; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.faq-question {
    width: 100%; padding: 18px 24px; background: none; border: none;
    color: var(--text-primary); font-size: 15px; font-weight: 600;
    text-align: left; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
    transition: background var(--transition);
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-question .arrow {
    font-size: 12px; color: var(--text-muted);
    transition: transform var(--transition);
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-answer-inner {
    padding: 0 24px 18px; font-size: 14px;
    color: var(--text-secondary); line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 500px; }

/* ===== Info Box ===== */
.info-box {
    background: var(--accent-dim); border: 1px solid rgba(255,136,0,0.2);
    border-radius: var(--radius); padding: 18px 22px;
    font-size: 14px; color: var(--text-secondary); line-height: 1.8;
    margin: 20px 0;
}
.info-box strong { color: var(--accent); }

/* ===== Stats Row ===== */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-bottom: 48px;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 32px; font-weight: 800; color: var(--accent);
    margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ===== QR Modal ===== */
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
    font-size: 12px; color: var(--text-muted); line-height: 1.8;
    max-width: 600px; margin: 0 auto;
}

/* ===== Fade In Animation ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 16px 0; font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 26px; }
    .hero .subtitle { font-size: 15px; }
    .section { padding: 44px 0; }
    .section-title { font-size: 22px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 24px; }
    .gallery { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0;
        background: var(--bg-secondary); flex-direction: column; padding: 16px 24px;
        border-bottom: 1px solid var(--border); gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 0; }
    .mobile-toggle { display: block; }
    .download-platform { padding: 22px; }
    .hero-buttons { flex-direction: column; align-items: center; }
}


/* ===== QR Code Breathing Border ===== */
@keyframes qrBreath {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,136,0,0); }
    50% { transform: scale(1.03); box-shadow: 0 0 12px 2px rgba(255,136,0,0.25); }
}
.qr-breath {
    animation: qrBreath 3s ease-in-out infinite;
    border: 2px solid rgba(255,136,0,0.3);
    border-radius: 8px;
    padding: 8px;
    display: inline-block;
}


.dl-overlay {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.78); backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
}
.dl-overlay.active { display: flex; }
.dl-modal {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 32px; text-align: center;
    max-width: 420px; width: 92%; position: relative;
    box-shadow: var(--shadow-lg);
}
.dl-modal-close {
    position: absolute; top: 10px; right: 14px; background: none;
    border: none; color: var(--text-muted); font-size: 22px; cursor: pointer;
    line-height: 1;
}
.dl-modal-close:hover { color: var(--text-primary); }
.dl-modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.dl-modal .dl-desc {
    font-size: 14px; color: var(--text-secondary); line-height: 1.8;
    margin-bottom: 20px;
}
.dl-modal .dl-qr-wrap { margin: 0 auto 20px; }
.dl-modal .dl-qr-wrap img { width: 160px; height: 160px; display: block; margin: 0 auto; }
.dl-safety {
    background: rgba(63,185,80,0.08); border: 1px solid rgba(63,185,80,0.2);
    border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px;
    text-align: left;
}
.dl-safety p {
    font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0;
}
.dl-safety p strong { color: var(--success); }
.dl-timely {
    background: rgba(255,136,0,0.08); border: 1px solid rgba(255,136,0,0.2);
    border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px;
    text-align: left;
}
.dl-timely p {
    font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0;
}
.dl-timely p strong { color: var(--accent); }
.dl-tip-app {
    font-size: 12px; color: var(--text-muted); margin-top: 14px; line-height: 1.6;
}
