/* scrcpy Download Station - Dark Theme */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --border: #30363d;
    --border-light: #3d444d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --accent-dim: rgba(88,166,255,0.1);
    --green: #3fb950;
    --green-dim: rgba(63,185,80,0.1);
    --orange: #d29922;
    --red: #f85149;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --transition: 0.3s ease;
    --max-width: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    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); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 64px;
}
.logo {
    font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
    display: flex; align-items: center; gap: 10px; letter-spacing: -0.3px;
}
.logo-icon {
    width: 32px; height: 32px; background: var(--accent-dim); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; color: var(--accent); font-weight: 600;
}
.nav { display: flex; gap: 4px; }
.nav a {
    color: var(--text-secondary); padding: 8px 16px; border-radius: 6px;
    font-size: 0.9rem; transition: all var(--transition); font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--text-primary); background: var(--bg-tertiary); }

/* ===== HERO ===== */
.hero {
    padding: 100px 0 80px; text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-dim); border: 1px solid rgba(88,166,255,0.2);
    padding: 6px 16px; border-radius: 20px; font-size: 0.82rem;
    color: var(--accent); margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.hero h1 {
    font-size: 3.2rem; font-weight: 800; line-height: 1.15;
    margin-bottom: 20px; letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .subtitle {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 620px; margin: 0 auto 40px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; 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: 0.95rem;
    font-weight: 600; cursor: pointer; border: none; transition: all var(--transition);
    font-family: var(--font); text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(88,166,255,0.25); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-light); color: var(--text-primary); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ===== STATS ===== */
.stats-bar {
    display: flex; justify-content: center; gap: 60px;
    padding: 40px 0; border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; font-size: 1.02rem; }

/* ===== FEATURE GRID ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition);
}
.feature-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 44px; height: 44px; background: var(--accent-dim); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 20px; color: var(--accent);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ===== SCREENSHOTS ===== */
.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.screenshot-item {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); transition: all var(--transition); background: var(--bg-card);
}
.screenshot-item:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.screenshot-item img { width: 100%; height: auto; display: block; }

/* ===== CTA ===== */
.cta-section {
    text-align: center; padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.02rem; }

/* ===== DOWNLOAD PAGE ===== */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.platform-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px; text-align: center; transition: all var(--transition);
}
.platform-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.platform-icon { font-size: 2.5rem; margin-bottom: 16px; }
.platform-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.platform-card .version { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 20px; }
.platform-card .btn { width: 100%; justify-content: center; }

.steps { max-width: 800px; margin: 0 auto; }
.step {
    display: flex; gap: 20px; padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
    width: 36px; height: 36px; background: var(--accent-dim); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--accent); font-size: 0.9rem; flex-shrink: 0;
}
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 0.9rem; }
code {
    background: var(--bg-tertiary); padding: 2px 8px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 0.85em; color: var(--accent);
}

.tip-box {
    background: var(--accent-dim); border: 1px solid rgba(88,166,255,0.2);
    border-radius: var(--radius); padding: 16px 20px; margin-top: 24px;
    font-size: 0.88rem; color: var(--text-secondary); max-width: 800px; margin-left: auto; margin-right: auto;
}
.tip-box strong { color: var(--accent); }

/* ===== FEATURES PAGE ===== */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.detail-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition);
}
.detail-card:hover { border-color: var(--border-light); }
.detail-card h3 {
    font-size: 1.05rem; font-weight: 600; margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
}
.detail-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.detail-card ul { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; padding-left: 20px; margin-top: 8px; }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.compare-table th, .compare-table td {
    padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border);
}
.compare-table th { background: var(--bg-tertiary); font-weight: 600; font-size: 0.9rem; }
.compare-table td { font-size: 0.9rem; color: var(--text-secondary); }
.compare-table tr:hover td { background: var(--bg-card); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--text-muted); }

.use-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use-case {
    text-align: center; padding: 28px 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.use-case-icon { font-size: 1.8rem; margin-bottom: 12px; }
.use-case h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; }
.use-case p { color: var(--text-secondary); font-size: 0.82rem; }

/* ===== FAQ PAGE ===== */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.accordion-header {
    width: 100%; padding: 18px 24px; background: var(--bg-card); border: none;
    color: var(--text-primary); font-size: 0.95rem; font-weight: 500;
    text-align: left; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-family: var(--font); transition: background var(--transition);
}
.accordion-header:hover { background: var(--bg-tertiary); }
.accordion-header.active { background: var(--bg-tertiary); }
.accordion-arrow { transition: transform var(--transition); color: var(--text-muted); font-size: 0.8rem; }
.accordion-header.active .accordion-arrow { transform: rotate(180deg); }
.accordion-body { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; background: var(--bg-card); }
.accordion-body.open { padding: 0 24px 20px; max-height: 600px; }
.accordion-body p, .accordion-body ul { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; }
.accordion-body ul { padding-left: 20px; margin-top: 8px; }
.accordion-body li { margin-bottom: 4px; }

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border); padding: 40px 0; text-align: center;
    background: var(--bg-secondary);
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; line-height: 1.8; }
.footer-copy .disclaimer { color: var(--text-secondary); margin-top: 8px; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1rem; }
    .hero { padding: 60px 0 50px; }
    .stats-bar { flex-direction: column; gap: 24px; }
    .feature-grid, .platform-grid, .detail-grid { grid-template-columns: 1fr; }
    .screenshot-grid { grid-template-columns: 1fr; }
    .use-cases { grid-template-columns: repeat(2, 1fr); }
    .nav { gap: 2px; }
    .nav a { padding: 8px 10px; font-size: 0.82rem; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 1.5rem; }
    .footer-links { flex-direction: column; gap: 12px; }
    .hero-actions { flex-direction: column; align-items: center; }
}


/* ===== DOWNLOAD PANELS ===== */
.download-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px; margin-bottom: 28px;
    transition: border-color var(--transition);
}
.download-panel:hover { border-color: var(--border-light); }
.download-panel-inner {
    display: flex; gap: 36px; align-items: center;
}
.download-detail { flex: 1; }
.download-detail h3 {
    font-size: 1.2rem; font-weight: 700; margin-bottom: 8px;
    color: var(--text-primary);
}
.os-desc {
    color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px;
}
.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 6px 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6;
}
.res-check {
    color: var(--green); font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
    width: 18px; text-align: center; margin-top: 2px;
}

/* ===== DOWNLOAD BUTTONS ===== */
.download-btns {
    flex-shrink: 0; display: flex; flex-direction: column; gap: 12px;
    min-width: 200px;
}
.btn-quark {
    background: #7c5ce7; color: #fff; width: 100%; justify-content: center;
}
.btn-quark:hover { background: #6c5ce7; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,92,231,0.3); }
.btn-baidu {
    background: #4e6ef2; color: #fff; width: 100%; justify-content: center;
}
.btn-baidu:hover { background: #3b5de7; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(78,110,242,0.3); }

/* ===== EXPIRE NOTICE ===== */
.expire-notice {
    display: flex; gap: 14px; align-items: flex-start;
    background: rgba(210,153,34,0.08); border: 1px solid rgba(210,153,34,0.2);
    border-radius: var(--radius); padding: 18px 22px;
    color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7;
}
.expire-notice strong { color: var(--orange); }
.expire-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* ===== QR MODAL ===== */
.qr-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; align-items: center; justify-content: center;
}
.qr-modal.active { display: flex; }
.qr-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.qr-modal-content {
    position: relative; background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px; max-width: 500px; width: 90%;
    box-shadow: var(--shadow-lg); z-index: 1;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.qr-close {
    position: absolute; top: 12px; right: 16px; background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1;
    transition: color var(--transition);
}
.qr-close:hover { color: var(--text-primary); }
.qr-header { text-align: center; margin-bottom: 24px; }
.qr-header h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.qr-header p { color: var(--text-secondary); font-size: 0.85rem; }
.qr-body { display: flex; gap: 24px; align-items: flex-start; }
.qr-frame {
    flex-shrink: 0; width: 180px; height: 180px; background: #fff;
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    padding: 14px;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-info { flex: 1; }
.qr-platform-name { font-weight: 600; font-size: 1rem; margin-bottom: 10px; }
.resource-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.resource-tag {
    background: var(--bg-tertiary); border: 1px solid var(--border);
    padding: 3px 10px; border-radius: 4px; font-size: 0.75rem; color: var(--text-secondary);
}
.qr-tip {
    color: var(--text-secondary); font-size: 0.84rem; line-height: 1.7; margin-bottom: 8px;
}
.qr-tip strong { color: var(--text-primary); }
.qr-tip-warn { color: var(--orange); }
.qr-tip-warn strong { color: var(--orange); }

/* ===== BREATHING BORDER ===== */
.qr-breath {
    animation: qrBreathBorder 3s ease-in-out infinite;
}
@keyframes qrBreathBorder {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(88,166,255,0.2), 0 0 6px 0 rgba(88,166,255,0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 3px rgba(88,166,255,0.4), 0 0 14px 2px rgba(88,166,255,0.1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .download-panel-inner {
        flex-direction: column; text-align: center;
    }
    .download-btns { min-width: auto; width: 100%; }
    .resource-list li { justify-content: center; }
    .qr-body { flex-direction: column; align-items: center; }
    .qr-modal-content { padding: 24px; }
    .qr-frame { width: 160px; height: 160px; }
    .expire-notice { flex-direction: column; gap: 8px; }
}
