/* =============================================================
   SiliconScope 官网样式
   路径: /static/css/SiliconScope/style.css
   ============================================================= */

/* ---- CSS Variables ---- */
:root {
    --bg: #0a0a0f;
    --bg-alt: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    --border: #25253a;
    --text: #e4e4ed;
    --text-secondary: #9494a8;
    --text-muted: #6b6b80;
    --accent: #5b8def;
    --accent-hover: #7aa5f5;
    --accent-glow: rgba(91, 141, 239, 0.15);
    --gradient-1: #5b8def;
    --gradient-2: #a78bfa;
    --gradient-3: #34d399;
    --red: #f87171;
    --green: #34d399;
    --yellow: #fbbf24;
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1100px;
    --nav-height: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo svg { color: var(--accent); }

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

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
    font-weight: 500;
}

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

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 20px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

/* ---- Hero ---- */
.hero {
    padding: 140px 24px 100px;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.hero-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(91, 141, 239, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* ---- Hero Visual ---- */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.menubar-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 16px;
    width: 100%;
    max-width: 420px;
}

.menubar-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "SF Mono", "Menlo", "Monaco", monospace;
    font-size: 11px;
    white-space: nowrap;
    overflow-x: hidden;
}

.mb-item { color: var(--text); }
.mb-sep { color: var(--text-muted); }

.mb-net {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-left: auto;
}

.mb-up { color: var(--red); }
.mb-dn { color: var(--green); }

.popover-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    width: 100%;
    max-width: 320px;
}

.pop-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.pop-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 3px 0;
    font-family: "SF Mono", "Menlo", monospace;
}

.pop-icon { font-size: 10px; }
.pop-val { margin-left: auto; color: var(--accent); }

/* ---- Sections ---- */
.section {
    padding: 100px 24px;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ---- Cards Grid ---- */
.cards-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cpu-icon    { background: rgba(91, 141, 239, 0.12); color: var(--accent); }
.gpu-icon    { background: rgba(167, 139, 250, 0.12); color: var(--gradient-2); }
.mem-icon    { background: rgba(52, 211, 153, 0.12); color: var(--gradient-3); }
.net-icon    { background: rgba(251, 191, 36, 0.12); color: var(--yellow); }
.thermal-icon { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.battery-icon { background: rgba(91, 141, 239, 0.12); color: var(--accent); }

.card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ---- Two Col ---- */
.two-col {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.feature-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.feature-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.feature-block h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ---- Tools Grid ---- */
.tools-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tool-card:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}

.tool-card svg { color: var(--accent); }

/* ---- Pricing ---- */
.pricing-single {
    max-width: 500px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    text-align: center;
    transition: border-color 0.3s;
}

.pricing-card:hover {
    border-color: var(--accent);
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.price {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.price-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.pricing-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-secondary);
}

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

/* ---- Download ---- */
.download-area {
    max-width: 500px;
    margin: 0 auto 48px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    text-align: center;
}

.download-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
}

.download-card h3 { font-size: 20px; margin-bottom: 6px; }

.version {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.file-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.download-card .btn {
    margin-top: 24px;
    width: 100%;
    justify-content: center;
}

.download-hash {
    margin-top: 12px;
    font-size: 11px;
    font-family: "SF Mono", "Menlo", monospace;
    color: var(--text-muted);
    word-break: break-all;
}

/* Install steps */
.install-steps {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.install-steps h3 {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    width: 200px;
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
}

.step strong { display: block; font-size: 14px; margin-bottom: 4px; }
.step p { font-size: 12px; color: var(--text-muted); }

.step-arrow {
    font-size: 24px;
    color: var(--text-muted);
    padding-top: 28px;
}

.install-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.install-note code {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
    margin: 4px 0;
    font-size: 12px;
    color: var(--green);
}

/* ---- FAQ ---- */
.faq-list {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 18px 20px;
    cursor: pointer;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    font-family: inherit;
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.25s;
    color: var(--text-muted);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

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

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 48px 24px 32px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-brand h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-copy {
    margin-top: 12px;
    font-size: 12px !important;
}

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

.footer-col h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero { padding: 100px 20px 60px; }
    .hero-text h1 { font-size: 34px; }

    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }

    .steps-row { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); padding-top: 0; }

    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-links { gap: 40px; }
}

@media (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        gap: 16px;
    }

    .mobile-toggle { display: flex; }

    .hero-text h1 { font-size: 28px; }
    .section-header h2 { font-size: 26px; }

    .menubar-icons { font-size: 9px; }
}
