/* ============================================================
   WhatsApp 品牌官网 · 全局样式
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --clr-primary:      #0A84FF;
    --clr-accent:       #00F0D5;
    --clr-accent-2:     #7B2FFF;
    --clr-bg:           #0A0E1A;
    --clr-surface:      #111627;
    --clr-surface-hl:   #181D33;
    --clr-border:       rgba(255,255,255,.08);
    --clr-border-soft:  rgba(255,255,255,.06);
    --clr-text:         #E8ECF4;
    --clr-text-sec:     #8B92A8;
    --clr-text-muted:   #5C6378;
    --radius-sm:        8px;
    --radius-md:        12px;
    --radius-lg:        18px;
    --radius-xl:        24px;
    --fs-hero:          clamp(2.6rem, 5vw + .5rem, 4.2rem);
    --fs-h1:            clamp(1.75rem, 3vw + .3rem, 2.6rem);
    --fs-h2:            clamp(1.35rem, 2vw + .2rem, 1.85rem);
    --fs-h3:            clamp(1.1rem, 1.5vw + .1rem, 1.35rem);
    --fs-body:          clamp(.95rem, 1vw + .15rem, 1.08rem);
    --lh-base:          1.75;
    --max-w:            1200px;
    --header-h:         64px;
    --section-gap:      clamp(3rem, 6vw, 5.5rem);
    --transition:       .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    font-size:var(--fs-body);line-height:var(--lh-base);color:var(--clr-text);background:var(--clr-bg);
    overflow-x:hidden;
}
img,svg{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button,input{font:inherit;color:inherit;background:none;border:none}

/* ---------- Utilities ---------- */
.container{width:100%;max-width:var(--max-w);margin:0 auto;padding:0 clamp(1rem,3vw,2rem)}
.section{padding:var(--section-gap) 0}
.section--alt{background:var(--clr-surface)}
.section__head{text-align:center;margin-bottom:clamp(2rem,4vw,3rem)}
.section__title{font-size:var(--fs-h2);font-weight:700;line-height:1.3;text-wrap:balance;margin-bottom:.6rem}
.section__sub{color:var(--clr-text-sec);max-width:640px;margin:0 auto;font-size:clamp(.92rem,1.1vw,1.05rem);line-height:1.7}

/* ---------- Header ---------- */
.header{
    position:sticky;top:0;z-index:100;background:rgba(10,14,26,.85);
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid var(--clr-border-soft);height:var(--header-h);
}
.header__inner{display:flex;align-items:center;justify-content:space-between;height:100%}
.header__brand{display:flex;align-items:center;gap:.55rem}
.header__logo{width:32px;height:32px;object-fit:contain}
.header__name{font-size:1.15rem;font-weight:600;letter-spacing:.02em}
.header__nav{display:flex;align-items:center;gap:clamp(.8rem,2vw,1.6rem)}
.header__link{
    font-size:.92rem;font-weight:500;color:var(--clr-text-sec);
    transition:color var(--transition);position:relative;padding:.25rem 0;
}
.header__link:hover,.header__link:focus-visible{color:var(--clr-text)}
.header__link[aria-current="page"]{color:var(--clr-primary)}
.header__link[aria-current="page"]::after{
    content:"";position:absolute;left:0;bottom:-2px;width:100%;height:2px;
    background:var(--clr-primary);border-radius:1px;
}

/* ---------- Buttons ---------- */
.btn{
    display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
    padding:.75rem 1.65rem;border-radius:var(--radius-md);font-size:.98rem;
    font-weight:600;cursor:pointer;transition:all var(--transition);
    min-height:44px;white-space:nowrap;
}
.btn--primary{
    background:linear-gradient(135deg,var(--clr-primary),var(--clr-accent));
    color:#fff;box-shadow:0 4px 20px rgba(10,132,255,.35);
}
.btn--primary:hover,.btn--primary:focus-visible{
    transform:translateY(-2px);box-shadow:0 6px 28px rgba(10,132,255,.5);
}
.btn--outline{
    border:1.5px solid var(--clr-border);color:var(--clr-text);
    background:transparent;
}
.btn--outline:hover,.btn--outline:focus-visible{
    border-color:var(--clr-primary);color:var(--clr-primary);background:rgba(10,132,255,.08);
}
.btn--sm{padding:.5rem 1.1rem;font-size:.88rem;border-radius:var(--radius-sm);min-height:36px}

/* ---------- Hero ---------- */
.hero{
    position:relative;overflow:hidden;
    padding:calc(var(--header-h) + 3rem) 0 clamp(4rem,8vw,6.5rem);
    min-height:85vh;display:flex;align-items:center;
}
.hero__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.hero__content{position:relative;z-index:2}
.hero__badge{
    display:inline-flex;align-items:center;gap:.4rem;
    padding:.35rem .9rem;border-radius:20px;font-size:.82rem;font-weight:500;
    color:var(--clr-accent);background:rgba(0,240,213,.1);border:1px solid rgba(0,240,213,.18);
    margin-bottom:1.2rem;
}
.hero__h1{
    font-size:var(--fs-hero);font-weight:800;line-height:1.15;text-wrap:balance;
    margin-bottom:1rem;
}
.hero__h1 span{
    background:linear-gradient(135deg,var(--clr-primary),var(--clr-accent));
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.hero__desc{
    font-size:clamp(1rem,1.3vw,1.15rem);color:var(--clr-text-sec);line-height:1.8;
    max-width:520px;margin-bottom:2rem;
}
.hero__actions{display:flex;flex-wrap:wrap;gap:.8rem}
.hero__visual{position:relative;z-index:1}
.hero__svg{width:100%;max-width:580px;margin:0 auto}

/* ---------- Feature Cards ---------- */
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem}
.feature-card{
    background:var(--clr-surface);border:1px solid var(--clr-border);
    border-radius:var(--radius-lg);padding:clamp(1.5rem,2vw,2rem);
    transition:all var(--transition);position:relative;overflow:hidden;
}
.feature-card:hover,.feature-card:focus-within{
    border-color:rgba(10,132,255,.3);transform:translateY(-3px);
    box-shadow:0 8px 32px rgba(0,0,0,.3);
}
.feature-card__icon{
    width:44px;height:44px;border-radius:var(--radius-md);
    background:rgba(10,132,255,.12);display:flex;align-items:center;justify-content:center;
    margin-bottom:1rem;flex-shrink:0;
}
.feature-card__icon svg{width:24px;height:24px;stroke:var(--clr-primary)}
.feature-card__title{font-size:1.1rem;font-weight:600;margin-bottom:.5rem;text-wrap:balance}
.feature-card__text{color:var(--clr-text-sec);font-size:.93rem;line-height:1.75}

/* ---------- Interface Preview ---------- */
.preview{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(2rem,4vw,3.5rem);align-items:center}
.preview__visual{position:relative}
.preview__svg{width:100%;max-width:500px}
.preview__info h3{font-size:var(--fs-h3);font-weight:700;margin-bottom:.8rem;text-wrap:balance}
.preview__info p{color:var(--clr-text-sec);line-height:1.8;margin-bottom:1.2rem}
.preview__steps{counter-reset:step;display:flex;flex-direction:column;gap:.6rem}
.preview__steps li{
    display:flex;gap:.8rem;align-items:flex-start;
    counter-increment:step;
}
.preview__steps li::before{
    content:counter(step);flex-shrink:0;width:26px;height:26px;border-radius:50%;
    background:rgba(10,132,255,.15);color:var(--clr-primary);
    display:flex;align-items:center;justify-content:center;
    font-size:.82rem;font-weight:600;margin-top:.1rem;
}

/* ---------- Scenario Cards ---------- */
.scenarios{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}
.scenario-card{
    background:var(--clr-surface);border:1px solid var(--clr-border);
    border-radius:var(--radius-lg);padding:clamp(1.3rem,2vw,1.8rem);
    transition:all var(--transition);
}
.scenario-card:hover{border-color:rgba(0,240,213,.25);transform:translateY(-2px)}
.scenario-card__tag{
    font-size:.78rem;font-weight:600;color:var(--clr-accent);
    text-transform:uppercase;letter-spacing:.06em;margin-bottom:.6rem;
}
.scenario-card__title{font-size:1.05rem;font-weight:600;margin-bottom:.5rem}
.scenario-card__text{color:var(--clr-text-sec);font-size:.92rem;line-height:1.75}

/* ---------- Quick Start ---------- */
.quickstart{
    background:var(--clr-surface);border:1px solid var(--clr-border);
    border-radius:var(--radius-lg);padding:clamp(1.5rem,2.5vw,2.5rem);
}
.quickstart__ol{display:flex;flex-direction:column;gap:1rem;counter-reset:qs}
.quickstart__item{
    display:flex;gap:1rem;align-items:flex-start;counter-increment:qs;
}
.quickstart__num{
    flex-shrink:0;width:32px;height:32px;border-radius:50%;
    background:linear-gradient(135deg,var(--clr-primary),var(--clr-accent));
    color:#fff;display:flex;align-items:center;justify-content:center;
    font-size:.88rem;font-weight:700;margin-top:.15rem;
}
.quickstart__text{font-size:.96rem;line-height:1.7;color:var(--clr-text-sec)}
.quickstart__text strong{color:var(--clr-text);font-weight:600}

/* ---------- Table ---------- */
.platform-table{width:100%;border-collapse:collapse;font-size:.93rem}
.platform-table th,.platform-table td{
    padding:.85rem 1rem;text-align:left;border-bottom:1px solid var(--clr-border);
}
.platform-table thead th{
    font-size:.82rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;
    color:var(--clr-text-muted);
}
.platform-table tbody tr{transition:background var(--transition)}
.platform-table tbody tr:hover{background:var(--clr-surface-hl)}
.platform-table .label-cell{font-weight:600;color:var(--clr-text)}

/* ---------- Security ---------- */
.security-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.security-item{
    display:flex;gap:.8rem;align-items:flex-start;
    padding:1.2rem;background:var(--clr-surface);border-radius:var(--radius-md);
    border:1px solid var(--clr-border);
}
.security-item__icon{
    flex-shrink:0;width:36px;height:36px;border-radius:var(--radius-sm);
    background:rgba(0,240,213,.1);display:flex;align-items:center;justify-content:center;
}
.security-item__icon svg{width:20px;height:20px;stroke:var(--clr-accent)}
.security-item__text{font-size:.93rem;line-height:1.7;color:var(--clr-text-sec)}
.security-item__text strong{color:var(--clr-text);font-weight:600;display:block;margin-bottom:.2rem}

/* ---------- Download Block ---------- */
.download-block{
    background:linear-gradient(160deg,rgba(10,132,255,.08),rgba(0,240,213,.06));
    border:1px solid rgba(10,132,255,.15);border-radius:var(--radius-xl);
    padding:clamp(2rem,4vw,3.5rem);text-align:center;
}
.download-block__title{font-size:var(--fs-h1);font-weight:800;margin-bottom:.8rem}
.download-block__desc{color:var(--clr-text-sec);max-width:560px;margin:0 auto 1.5rem;line-height:1.8}
.download-block__file{
    display:inline-block;font-size:.82rem;color:var(--clr-text-muted);
    background:rgba(255,255,255,.05);padding:.35rem .8rem;border-radius:var(--radius-sm);
    margin-bottom:1.5rem;font-family:monospace;
}
.install-steps{
    display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;
    max-width:720px;margin:0 auto 2rem;
}
.install-step{
    flex:1 1 180px;text-align:center;padding:1rem;background:var(--clr-surface);
    border-radius:var(--radius-md);border:1px solid var(--clr-border);
}
.install-step__num{font-size:1.6rem;font-weight:800;color:var(--clr-primary);margin-bottom:.3rem}
.install-step__text{font-size:.88rem;color:var(--clr-text-sec);line-height:1.6}

/* ---------- News Cards ---------- */
.news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}
.news-card{
    background:var(--clr-surface);border:1px solid var(--clr-border);
    border-radius:var(--radius-lg);overflow:hidden;
    transition:all var(--transition);
}
.news-card:hover{transform:translateY(-3px);border-color:rgba(10,132,255,.25)}
.news-card__body{padding:clamp(1.2rem,1.5vw,1.6rem)}
.news-card__meta{display:flex;align-items:center;gap:.6rem;margin-bottom:.6rem}
.news-card__date{font-size:.8rem;color:var(--clr-text-muted)}
.news-card__cat{
    font-size:.75rem;font-weight:600;color:var(--clr-accent);
    background:rgba(0,240,213,.1);padding:.15rem .55rem;border-radius:10px;
}
.news-card__title{font-size:1.02rem;font-weight:600;margin-bottom:.5rem;text-wrap:balance;line-height:1.45}
.news-card__excerpt{font-size:.9rem;color:var(--clr-text-sec);line-height:1.7;margin-bottom:.8rem}
.news-card__cta{font-size:.88rem;color:var(--clr-primary);font-weight:500;display:inline-flex;align-items:center;gap:.3rem}
.news-card__cta:hover{text-decoration:underline}

/* ---------- Related Links ---------- */
.related-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.2rem}
.related-item a{
    display:block;padding:.8rem 1rem;border-radius:var(--radius-md);
    border:1px solid transparent;transition:all var(--transition);
}
.related-item a:hover,.related-item a:focus-visible{
    background:var(--clr-surface);border-color:var(--clr-border);
}
.related-item__title{font-size:.95rem;font-weight:600;margin-bottom:.3rem}
.related-item__desc{font-size:.85rem;color:var(--clr-text-muted);line-height:1.6}

/* ---------- FAQ ---------- */
.faq{max-width:800px;margin:0 auto}
.faq details{
    border:1px solid var(--clr-border);border-radius:var(--radius-md);
    margin-bottom:.8rem;overflow:hidden;transition:border-color var(--transition);
}
.faq details[open]{border-color:rgba(10,132,255,.25)}
.faq summary{
    padding:1rem 1.2rem;cursor:pointer;font-weight:600;font-size:.98rem;
    display:flex;justify-content:space-between;align-items:center;
    list-style:none;user-select:none;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
    content:"+";font-size:1.2rem;font-weight:300;color:var(--clr-text-muted);
    transition:transform var(--transition);flex-shrink:0;margin-left:.8rem;
}
.faq details[open] summary::after{content:"−"}
.faq summary:hover{color:var(--clr-primary)}
.faq details[open] summary{color:var(--clr-primary)}
.faq__body{padding:0 1.2rem 1rem;color:var(--clr-text-sec);line-height:1.8;font-size:.93rem}

/* ---------- Footer ---------- */
.footer{
    padding:3rem 0 2rem;border-top:1px solid var(--clr-border-soft);
    background:var(--clr-surface);
}
.footer__inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2rem}
.footer__brand{display:flex;flex-direction:column;gap:.6rem;max-width:280px}
.footer__brand img{width:28px;height:28px;object-fit:contain}
.footer__brand p{font-size:.88rem;color:var(--clr-text-muted);line-height:1.7}
.footer__links{display:flex;flex-wrap:wrap;gap:2.5rem}
.footer__col-title{font-size:.82rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--clr-text-muted);margin-bottom:.6rem}
.footer__col a{display:block;font-size:.9rem;color:var(--clr-text-sec);padding:.2rem 0;transition:color var(--transition)}
.footer__col a:hover{color:var(--clr-primary)}
.footer__bottom{
    margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--clr-border-soft);
    text-align:center;font-size:.82rem;color:var(--clr-text-muted);
}

/* ---------- Focus Styles ---------- */
:focus-visible{outline:2px solid var(--clr-primary);outline-offset:2px;border-radius:2px}
.btn:focus-visible{outline-offset:3px}

/* ---------- SVG Animation Keyframes ---------- */
@keyframes twinkle{
    0%,100%{opacity:.25}
    50%{opacity:1}
}
@keyframes drawLine{
    from{stroke-dashoffset:1}
    to{stroke-dashoffset:0}
}
@keyframes floatSlow{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-8px)}
}
@keyframes pulseRing{
    0%{r:4;opacity:.6}
    100%{r:14;opacity:0}
}
@keyframes dashMove{
    to{stroke-dashoffset:0}
}
@keyframes orbitDot{
    0%{transform:rotate(0deg) translateX(60px) rotate(0deg)}
    100%{transform:rotate(360deg) translateX(60px) rotate(-360deg)}
}

.star-dot{animation:twinkle 5s ease-in-out infinite}
.line-path{animation:drawLine 6s ease forwards}
.float-el{animation:floatSlow 7s ease-in-out infinite}
.pulse-ring{animation:pulseRing 3s ease-out infinite}
.dash-flow{animation:dashMove 5s linear infinite}
.orbit-dot{animation:orbitDot 8s linear infinite;transform-box:fill-box;transform-origin:center}

/* ---------- Reduced Motion ---------- */
@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
    html{scroll-behavior:auto}
}

/* ---------- Responsive ---------- */
@media(max-width:860px){
    .hero__grid{grid-template-columns:1fr;text-align:center}
    .hero__desc{margin-left:auto;margin-right:auto}
    .hero__actions{justify-content:center}
    .preview{grid-template-columns:1fr;text-align:center}
    .install-steps{flex-direction:column;align-items:center}
    .header__nav{gap:.6rem}
    .header__link{font-size:.82rem;padding:.15rem .25rem}
}
@media(max-width:520px){
    :root{--header-h:56px}
    .features{grid-template-columns:1fr}
    .scenarios{grid-template-columns:1fr}
    .news-grid{grid-template-columns:1fr}
    .footer__inner{flex-direction:column}
}
