:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #f0f3f8;
    --text: #172033;
    --muted: #687386;
    --line: #e5e9f0;
    --brand: #e94b4b;
    --brand-dark: #bd2d35;
    --accent: #5f68f6;
    --good: #167a4b;
    --shadow: 0 18px 50px rgba(24, 36, 62, .10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(229,233,240,.9);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--brand),#ff7b62);
    display:grid;
    place-items:center;
    color:white;
    font-weight:900;
    box-shadow: 0 10px 25px rgba(233,75,75,.3);
}

.nav-links {
    display:flex;
    gap: 24px;
    color: var(--muted);
    font-size:14px;
}

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

.nav-cta,.btn-primary,.btn-secondary {
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:.2s ease;
}

.nav-cta,.btn-primary {
    color:#fff;
    background: linear-gradient(135deg,var(--brand),var(--brand-dark));
    box-shadow:0 12px 28px rgba(233,75,75,.23);
}

.btn-secondary {
    border:1px solid var(--line);
    background:#fff;
    color:var(--text);
}

.nav-cta:hover,.btn-primary:hover,.btn-secondary:hover {
    transform: translateY(-2px);
}

.hero {
    padding: 74px 0 54px;
    overflow:hidden;
}

.hero-grid {
    display:grid;
    grid-template-columns: 1.05fr .95fr;
    gap:50px;
    align-items:center;
}

.eyebrow {
    display:inline-flex;
    padding:8px 12px;
    background:#fff0f0;
    color:var(--brand-dark);
    border-radius:999px;
    font-size:13px;
    font-weight:800;
}

.hero h1 {
    font-size: clamp(52px,7vw,92px);
    line-height: .98;
    letter-spacing:-.06em;
    margin:18px 0 20px;
}

.hero-lead {
    color:var(--muted);
    font-size:19px;
    max-width:690px;
}

.hero-actions {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:30px 0 20px;
}

.trust-row {
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    font-size:13px;
    color:var(--muted);
}

.trust-row span {
    background:#fff;
    border:1px solid var(--line);
    border-radius:999px;
    padding:8px 11px;
}

.hero-card {
    position:relative;
    background:linear-gradient(145deg,#1f2436,#323953);
    border-radius:34px;
    padding:28px;
    min-height:510px;
    box-shadow:0 30px 80px rgba(21,30,53,.25);
    overflow:hidden;
}

.hero-card:before {
    content:'';
    position:absolute;
    width:280px;
    height:280px;
    border-radius:50%;
    background:rgba(233,75,75,.38);
    filter:blur(25px);
    right:-100px;
    top:-90px;
}

.app-window {
    position:relative;
    z-index:2;
    margin-top:48px;
    background:#fff;
    border-radius:20px;
    padding:16px;
    box-shadow:0 18px 55px rgba(0,0,0,.28);
    transform: rotate(-2deg);
}

.window-top {
    display:flex;
    gap:7px;
    margin-bottom:15px;
}

.dot {
    width:9px;
    height:9px;
    border-radius:50%;
    background:#d7dce5
}

.dot:nth-child(1) {
    background:#ff6b6b
}

.dot:nth-child(2) {
    background:#ffd166
}

.dot:nth-child(3) {
    background:#4dd49c
}

.window-toolbar {
    height:38px;
    border-radius:10px;
    background:#f3f5f8;
    margin-bottom:13px;
    display:flex;
    align-items:center;
    padding:0 12px;
    gap:8px;
}

.tool {
    width:56px;
    height:8px;
    border-radius:8px;
    background:#d7dce5;
}

.tool.red {
    background:#ef6b6b;
    width:74px
}

.doc-layout {
    display:grid;
    grid-template-columns:90px 1fr;
    gap:12px;
    min-height:260px
}

.doc-side {
    background:#f5f6f8;
    border-radius:12px
}

.doc-body {
    padding:6px
}

.doc-line {
    height:10px;
    background:#e4e8ee;
    border-radius:6px;
    margin:12px 0
}

.doc-line.w80 {
    width:80%
}

.doc-line.w65 {
    width:65%
}

.doc-title {
    height:22px;
    width:55%;
    background:#252b3c;
    border-radius:6px;
    margin:10px 0 24px
}

.doc-ai {
    margin-top:26px;
    background:linear-gradient(135deg,#5f68f6,#8c69ff);
    color:#fff;
    border-radius:12px;
    padding:14px;
    font-size:13px;
    font-weight:700
}

.section {
    padding:72px 0;
}

.section-head {
    display:flex;
    justify-content:space-between;
    gap:24px;
    align-items:end;
    margin-bottom:30px;
}

.section-head h2 {
    margin:0;
    font-size: clamp(30px,4vw,46px);
    line-height:1.15;
    letter-spacing:-.035em;
}

.section-head p {
    max-width:650px;
    color:var(--muted);
    margin:0
}

.platform-grid,.feature-grid,.article-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.card {
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:24px;
    box-shadow:0 8px 26px rgba(25,36,62,.05);
}

.platform-card strong,.feature-card strong {
    display:block;
    font-size:20px;
    margin:12px 0 8px;
}

.card p {
    color:var(--muted);
    margin:0
}

.icon {
    width:48px;
    height:48px;
    border-radius:14px;
    background:#fff0f0;
    color:var(--brand);
    display:grid;
    place-items:center;
    font-size:22px;
    font-weight:900
}

.feature-grid {
    grid-template-columns:repeat(4,1fr);
}

.feature-card {
    min-height:205px
}

.enterprise {
    background:#161b2b;
    color:#fff;
}

.enterprise .section-head p,.enterprise .card p {
    color:#b9c1d2;
}

.enterprise .card {
    background:#20263a;
    border-color:#2d344a;
    box-shadow:none
}

.enterprise .icon {
    background:#2c3349;
    color:#ff8a84
}

.steps {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    counter-reset:step;
}

.step {
    position:relative
}

.step:before {
    counter-increment:step;
    content:counter(step);
    width:36px;
    height:36px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#fff0f0;
    color:var(--brand);
    font-weight:900;
    margin-bottom:18px
}

.article-card {
    overflow:hidden;
    padding:0;
}

.article-card img {
    width:100%;
    aspect-ratio:16/10;
    object-fit:cover;
    background:#eef1f6
}

.article-body {
    padding:20px
}

.article-body h3 {
    margin:4px 0 8px;
    font-size:18px;
    line-height:1.45
}

.meta {
    font-size:12px;
    color:#8b94a6
}

.tag {
    display:inline-block;
    font-size:12px;
    padding:5px 8px;
    border-radius:999px;
    background:#f1f3f7;
    color:#626d80;
    margin-bottom:8px
}

.article-page {
    padding:54px 0 90px
}

.article-shell {
    display:grid;
    grid-template-columns:minmax(0,820px) 280px;
    gap:42px;
    align-items:start
}

.article-main {
    background:#fff;
    border:1px solid var(--line);
    border-radius:28px;
    padding:42px;
    box-shadow:var(--shadow)
}

.article-main h1 {
    font-size:42px;
    line-height:1.2;
    letter-spacing:-.03em;
    margin:14px 0
}

.article-main h2 {
    font-size:26px;
    margin:38px 0 12px
}

.article-main h3 {
    font-size:20px;
    margin:28px 0 10px
}

.article-main p,.article-main li {
    color:#394357
}

.article-main figure {
    margin:28px 0
}

.article-main figure img {
    border-radius:18px;
    border:1px solid var(--line);
    width:100%;
}

.article-main figcaption {
    font-size:12px;
    color:var(--muted);
    margin-top:8px;
    text-align:center
}

.note {
    padding:16px 18px;
    border-radius:16px;
    background:#fff5f4;
    border:1px solid #ffd9d6;
    color:#7b3434
}

.factbox {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin:24px 0
}

.fact {
    padding:15px;
    border-radius:14px;
    background:#f6f8fb;
    border:1px solid var(--line)
}

.fact strong {
    display:block
}

.toc {
    position:sticky;
    top:96px
}

.toc a {
    display:block;
    color:var(--muted);
    font-size:14px;
    padding:8px 0;
    border-bottom:1px solid var(--line)
}

.download-box {
    padding:24px;
    border-radius:20px;
    background:linear-gradient(135deg,#fff0ef,#f7f2ff);
    border:1px solid #ffdcd9;
    margin:26px 0
}

.download-box strong {
    font-size:20px
}

.download-box p {
    margin:8px 0 16px
}

.source-list a {
    color:var(--accent);
    text-decoration:underline
}

.footer {
    background:#0f1422;
    color:#c0c7d7;
    padding:52px 0 25px
}

.footer-grid {
    display:grid;
    grid-template-columns:1.5fr repeat(3,1fr);
    gap:30px
}

.footer .logo {
    color:#fff
}

.footer h4 {
    color:#fff;
    margin:0 0 12px
}

.footer a {
    display:block;
    margin:7px 0;
    font-size:14px
}

.footer-bottom {
    margin-top:36px;
    padding-top:20px;
    border-top:1px solid #283043;
    font-size:12px;
    color:#818b9e;
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap
}

.page-hero {
    padding:58px 0 34px
}

.page-hero h1 {
    font-size:48px;
    line-height:1.15;
    margin:10px 0
}

.page-hero p {
    color:var(--muted);
    max-width:760px
}

.content-card {
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    padding:34px;
    margin-bottom:22px
}

.content-card h2 {
    margin-top:0
}

@media (max-width: 900px) {
    .hero-grid,.article-shell {
        grid-template-columns:1fr
    }

    .hero-card {
        min-height:420px
    }

    .platform-grid,.article-grid {
        grid-template-columns:repeat(2,1fr)
    }

    .feature-grid,.steps {
        grid-template-columns:repeat(2,1fr)
    }

    .toc {
        position:static
    }

    .nav-links {
        display:none
    }

    .footer-grid {
        grid-template-columns:1fr 1fr
    }

    .article-main {
        padding:28px
    }

    .article-main h1 {
        font-size:34px
    }

}

@media (max-width: 600px) {
    .container {
        width:min(100% - 24px,1180px)
    }

    .hero {
        padding-top:44px
    }

    .hero h1 {
        font-size:58px
    }

    .hero-card {
        min-height:340px;
        padding:18px
    }

    .app-window {
        margin-top:32px
    }

    .doc-layout {
        min-height:200px
    }

    .platform-grid,.article-grid,.feature-grid,.steps,.factbox {
        grid-template-columns:1fr
    }

    .footer-grid {
        grid-template-columns:1fr
    }

    .section {
        padding:54px 0
    }

    .article-main {
        padding:20px;
        border-radius:20px
    }

    .article-main h1 {
        font-size:30px
    }

}

/* Real WPS product screenshots */
.real-shot-grid {
    display:grid;
    grid-template-columns:1.25fr .75fr;
    gap:14px;
    margin:0 0 10px
}

.real-shot-grid img {
    width:100%;
    height:360px;
    object-fit:contain;
    background:#f7f8fb;
    border:1px solid #eceef3;
    border-radius:18px
}

.real-home-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px
}

.real-home-card {
    overflow:hidden
}

.real-home-card img {
    width:100%;
    height:280px;
    object-fit:contain;
    background:#f7f8fb;
    display:block
}

.real-home-card figcaption,.download-real-shot figcaption {
    padding:12px 16px;
    color:#69707d;
    font-size:14px
}

.download-real-shot {
    margin-top:28px;
    margin-bottom:20px;
    overflow:hidden
}

.download-real-shot img {
    width:100%;
    max-height:520px;
    object-fit:contain;
    background:#f7f8fb;
    display:block
}

@media(max-width:760px) {
    .real-shot-grid,.real-home-grid {
        grid-template-columns:1fr
    }

    .real-shot-grid img {
        height:auto
    }

    .real-home-card img {
        height:auto
    }

}
