/* ======================================================
   apps-google-zh-com.hl.cn — Neon-Gradient Dark Theme
   Deep navy hero + floating glass cards + zigzag layout
   ====================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fa;
    --bg-dark: #0c1222;
    --bg-dark-mid: #141e33;
    --surface: #ffffff;
    --surface-alt: #eef1f6;
    --ink: #1b2540;
    --ink-light: #4a5568;
    --ink-muted: #8896ab;
    --border: #dce2ec;
    --g-blue: #4285f4;
    --g-red: #ea4335;
    --g-yellow: #fbbc04;
    --g-green: #34a853;
    --accent: #5e8ff7;
    --accent-glow: rgba(94,143,247,.35);
    --radius: 16px;
    --radius-lg: 28px;
    --shadow: 0 4px 24px rgba(0,0,0,.07);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.1);
    --font: 'Segoe UI','Microsoft YaHei',-apple-system,BlinkMacSystemFont,sans-serif;
    --ease: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink-light);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img,svg { vertical-align: middle; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── Container ─── */
.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════ NAV ═══════════════ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(245,247,250,.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.topbar.dark-nav {
    background: rgba(12,18,34,.8);
    border-bottom-color: rgba(255,255,255,.08);
}
.topbar.dark-nav .brand { color: #fff; }
.topbar.dark-nav .nav-menu a { color: rgba(255,255,255,.55); }
.topbar.dark-nav .nav-menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar.dark-nav .nav-menu a.current { background: var(--accent); color: #fff; }

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}
.brand svg { flex-shrink: 0; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}
.nav-menu a {
    display: block;
    padding: 7px 18px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-muted);
    border-radius: 100px;
    transition: var(--ease);
}
.nav-menu a:hover { color: var(--ink); background: var(--surface-alt); }
.nav-menu a.current { background: var(--ink); color: #fff; }

/* ═══════════════ DARK HERO ═══════════════ */
.hero-dark {
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 70% 50% at 30% 60%, rgba(66,133,244,.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 75% 30%, rgba(234,67,53,.12) 0%, transparent 60%);
    padding: 100px 0 80px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.hero-dark::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
}
.hero-dark h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.03em;
    max-width: 700px;
    margin: 0 auto 20px;
}
.hero-dark .hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.6);
    max-width: 540px;
    margin: 0 auto 36px;
}
.hero-dark .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 28px;
}
.hero-dark .hero-badge strong { color: var(--g-yellow); }

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-glow {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-glow:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 32px var(--accent-glow);
}

.btn-white {
    background: #fff;
    color: var(--ink);
}
.btn-white:hover:not(:disabled) {
    background: var(--surface-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}
.btn-dark:hover:not(:disabled) {
    background: #263050;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--ink);
}
.btn-outline:hover:not(:disabled) {
    border-color: var(--ink);
    background: var(--surface-alt);
}

.btn-ghost {
    background: var(--surface-alt);
    color: var(--ink);
    border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
    box-shadow: var(--shadow);
    background: var(--surface);
}

.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: .88rem; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ═══════════════ SECTIONS ═══════════════ */
.sec { padding: 80px 0; }
.sec-alt { background: var(--surface-alt); }
.sec-dark { background: var(--bg-dark); color: #fff; }

.sec-head {
    margin-bottom: 48px;
}
.sec-head.center { text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

.sec-head .tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.sec-dark .sec-head .tag { color: var(--g-yellow); }

.sec-head h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.02em;
    margin-bottom: 10px;
}
.sec-dark .sec-head h2 { color: #fff; }

.sec-head p {
    font-size: 1.02rem;
    color: var(--ink-muted);
    max-width: 540px;
}
.sec-dark .sec-head p { color: rgba(255,255,255,.55); }

/* ═══════════════ ZIGZAG ROW ═══════════════ */
.zigzag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 72px;
}
.zigzag:last-child { margin-bottom: 0; }
.zigzag.reverse .zigzag-media { order: 2; }
.zigzag.reverse .zigzag-body { order: 1; }

.zigzag-media {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.zigzag-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}
.zigzag-body p {
    color: var(--ink-light);
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ═══════════════ GLASS CARDS ═══════════════ */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.glass-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: var(--ease);
}
.glass-card:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-4px);
}

.glass-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.glass-icon.i-blue   { background: rgba(66,133,244,.2); }
.glass-icon.i-red    { background: rgba(234,67,53,.2); }
.glass-icon.i-green  { background: rgba(52,168,83,.2); }
.glass-icon.i-yellow { background: rgba(251,188,4,.2); }

.glass-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.glass-card p {
    font-size: .9rem;
    color: rgba(255,255,255,.55);
    line-height: 1.65;
}

/* ═══════════════ METRICS BAR ═══════════════ */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 56px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.metric { text-align: center; }
.metric .val {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}
.metric .lbl {
    font-size: .88rem;
    color: var(--ink-muted);
    margin-top: 4px;
}

/* ═══════════════ TESTIMONIAL SLIDER ═══════════════ */
.testi-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    scrollbar-width: none;
}
.testi-scroll::-webkit-scrollbar { display: none; }

.testi-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.testi-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.testi-card blockquote {
    font-size: .92rem;
    font-style: italic;
    color: var(--ink-light);
    margin-bottom: 18px;
    line-height: 1.65;
}
.testi-who {
    display: flex;
    align-items: center;
    gap: 10px;
}
.testi-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
}
.testi-who .t-name { font-weight: 600; font-size: .88rem; color: var(--ink); }
.testi-who .t-role { font-size: .78rem; color: var(--ink-muted); }

/* ═══════════════ FAQ ACCORDION ═══════════════ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q .chevron {
    transition: transform var(--ease);
    flex-shrink: 0;
    margin-left: 14px;
}
.faq-q.open .chevron { transform: rotate(180deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-a.show { max-height: 500px; }
.faq-a-inner {
    padding: 0 0 20px;
    font-size: .93rem;
    color: var(--ink-muted);
    line-height: 1.8;
}

/* ═══════════════ PLATFORM BOXES ═══════════════ */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dl-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: var(--ease);
}
.dl-box:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.dl-box.primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-mid));
    border-color: transparent;
    color: #fff;
    padding: 36px 32px;
}
.dl-box.primary h3 { color: #fff; }
.dl-box.primary p { color: rgba(255,255,255,.55); }

.dl-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dl-box.primary .dl-icon { background: rgba(255,255,255,.1); }

.dl-info { flex: 1; }
.dl-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.dl-info p { font-size: .83rem; color: var(--ink-muted); margin-bottom: 12px; }

/* ═══════════════ COMPARE TABLE ═══════════════ */
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cmp-table th, .cmp-table td {
    padding: 15px 18px;
    text-align: left;
    font-size: .93rem;
    border-bottom: 1px solid var(--border);
}
.cmp-table thead th { background: var(--ink); color: #fff; font-weight: 700; }
.cmp-table tbody tr { background: var(--surface); transition: var(--ease); }
.cmp-table tbody tr:hover { background: var(--surface-alt); }
.cmp-table .yes { color: var(--g-green); }
.cmp-table .no  { color: var(--g-red); opacity: .55; }

/* ═══════════════ CTA STRIP ═══════════════ */
.cta-strip {
    background: linear-gradient(135deg, #3367d6 0%, #5e8ff7 50%, #34a853 100%);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
}
.cta-strip h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; }
.cta-strip p { font-size: 1rem; opacity: .85; max-width: 480px; margin: 0 auto 28px; }
.cta-strip .btn-white:hover:not(:disabled) { box-shadow: 0 6px 28px rgba(0,0,0,.18); }

/* ═══════════════ VERSION LOG ═══════════════ */
.vlog {
    position: relative;
    padding-left: 32px;
}
.vlog::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.vlog-entry {
    position: relative;
    margin-bottom: 30px;
}
.vlog-entry::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
}
.sec-alt .vlog-entry::before { border-color: var(--surface-alt); }
.vlog-entry .v-tag {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    background: var(--surface-alt);
    padding: 2px 10px;
    border-radius: 100px;
    color: var(--ink-muted);
    margin-bottom: 4px;
}
.vlog-entry h4 { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.vlog-entry p { font-size: .88rem; color: var(--ink-muted); }

/* ═══════════════ NUMBERED LIST ═══════════════ */
.num-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.num-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: var(--ease);
}
.num-card:hover { box-shadow: var(--shadow); }
.num-card .n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.num-card h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.num-card p { font-size: .88rem; color: var(--ink-muted); }

/* ═══════════════ STEP CARDS (install) ═══════════════ */
.step-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    counter-reset: step;
}
.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--ease);
    counter-increment: step;
    position: relative;
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-card::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    margin: 0 auto 18px;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step-card p { font-size: .9rem; color: var(--ink-muted); }

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,.45);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    font-size: .88rem;
    line-height: 1.8;
}
.site-footer .safety {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--g-green);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: .92rem;
}
.site-footer .copy { color: rgba(255,255,255,.3); }

/* ═══════════════ SPIN ═══════════════ */
@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width:960px) {
    .hero-dark h1 { font-size: 2.4rem; }
    .zigzag { grid-template-columns: 1fr; gap: 32px; }
    .zigzag.reverse .zigzag-media,
    .zigzag.reverse .zigzag-body { order: unset; }
    .glass-grid { grid-template-columns: 1fr 1fr; }
    .metrics { grid-template-columns: repeat(2,1fr); gap: 28px; }
    .dl-grid { grid-template-columns: 1fr; }
    .dl-box.primary { grid-column: span 1; }
    .num-grid { grid-template-columns: 1fr; }
    .step-row { grid-template-columns: 1fr; }
}

@media (max-width:600px) {
    .topbar-inner { height: 54px; }
    .brand { font-size: 1rem; }
    .nav-menu a { padding: 6px 12px; font-size: .82rem; }
    .hero-dark { padding: 64px 0 56px; }
    .hero-dark h1 { font-size: 1.85rem; }
    .sec { padding: 48px 0; }
    .sec-head h2 { font-size: 1.6rem; }
    .glass-grid { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .metric .val { font-size: 1.9rem; }
    .cta-strip { padding: 40px 20px; }
    .cta-strip h2 { font-size: 1.45rem; }
    .testi-card { flex: 0 0 270px; }
    .cmp-table th,.cmp-table td { padding: 11px 10px; font-size: .83rem; }
}
