/* ==========================================================================
   得客AI www.dekeai.com  前台样式
   纯手写 CSS · 无外部依赖 · 轻量优先（GEO 要求文本可抓取、无 JS 依赖）
   ========================================================================== */

:root {
    --brand: #2b5cff;
    --brand-dark: #1e44cc;
    --brand-2: #7c3aed;
    --accent: #06b6d4;
    --ink: #0c1222;
    --ink-2: #1b2338;
    --text: #2c3550;
    --muted: #667089;
    --line: #e5e8f0;
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --bg-dark: #0b1020;
    --ok: #12b76a;
    --warn: #f79009;
    --danger: #e5484d;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(12, 18, 34, .04), 0 8px 24px -8px rgba(12, 18, 34, .12);
    --shadow-lg: 0 24px 60px -20px rgba(12, 18, 34, .28);
    --wrap: 1180px;
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.9rem; letter-spacing: -.02em; }
h2 { font-size: 2.1rem; letter-spacing: -.015em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #c7cfe4; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section--dark .section-head p { color: #9aa6c4; }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.section--dark .eyebrow { color: #7fa0ff; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border: 1px solid transparent; border-radius: 999px;
    font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer;
    background: var(--brand); color: #fff; transition: .18s ease; text-align: center;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #fff; border-color: #c9d0e3; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #eef1f8; color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.16rem; }
.brand:hover { color: var(--ink); }
.brand__mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
    font-size: .92rem; font-weight: 800; letter-spacing: -.02em;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; }
.nav a {
    padding: 8px 14px; border-radius: 8px; color: var(--ink-2); font-size: .95rem; font-weight: 500;
}
.nav a:hover, .nav a.is-active { background: var(--bg-soft); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    font-size: .86rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line);
    border-radius: 999px; padding: 6px 14px;
}
.lang-switch:hover { color: var(--brand); border-color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #dbe3ff;
    background: radial-gradient(1100px 520px at 78% -10%, rgba(124, 58, 237, .45), transparent 60%),
                radial-gradient(900px 480px at 8% 8%, rgba(43, 92, 255, .45), transparent 62%),
                linear-gradient(160deg, #080d1c 0%, #101a38 55%, #0b1020 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 62px 62px; mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero__inner { position: relative; z-index: 2; padding: 96px 0 92px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: 3.3rem; line-height: 1.14; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #7fa0ff, #c4b5fd 55%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 1.16rem; color: #a9b6d8; max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: #93a2c6; padding: 0; margin: 0; list-style: none; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 12px #67e8f9; }
.hero__panel {
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.13); border-radius: 20px; padding: 22px;
    box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.hero__panel h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); margin-bottom: 10px; font-size: .9rem; color: #cfd8f2; }
.mock-row__dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex: none; }
.mock-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.14); flex: 1; overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: linear-gradient(90deg, #67e8f9, #7fa0ff); }
.hero__note { font-size: .8rem; color: #7d8bb0; margin: 14px 0 0; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); transition: .2s ease; height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d5dbf0; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }
.card__icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(43,92,255,.12), rgba(124,58,237,.12));
    color: var(--brand); font-weight: 800; font-size: 1.05rem; margin-bottom: 16px;
}
.card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }

.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-card__cover { aspect-ratio: 16/9; background: linear-gradient(135deg, #eef2ff, #f5f0ff); position: relative; overflow: hidden; }
.product-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.product-card__cover--a { background: linear-gradient(135deg, #1d3bff, #7c3aed); }
.product-card__cover--b { background: linear-gradient(135deg, #0891b2, #2563eb); }
.product-card__cover span { position: absolute; left: 20px; bottom: 16px; color: #fff; font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; }
.product-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.product-card__domain { font-size: .86rem; color: var(--brand); font-weight: 600; margin-bottom: 10px; display: inline-block; }
.product-card__price { font-size: .95rem; color: var(--ink-2); font-weight: 700; margin: 14px 0 18px; }
.product-card__price b { font-size: 1.5rem; color: var(--danger); margin: 0 2px; }
.product-card__actions { margin-top: auto; display: flex; gap: 10px; }

.chip {
    display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: .82rem;
    background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); font-weight: 500;
}
.chip--brand { background: rgba(43,92,255,.08); color: var(--brand); border-color: rgba(43,92,255,.2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
a.chip:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step::before {
    counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; right: 24px;
    font-size: 2.6rem; font-weight: 800; color: #eef1fa; line-height: 1;
}
.step h3 { position: relative; z-index: 1; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
.step__badge {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: 16px;
}

/* ---------- case / post lists ---------- */
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-card__cover { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.case-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.case-card:hover .case-card__cover img { transform: scale(1.04); }
.case-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.case-card__kicker { font-size: .82rem; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.case-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.case-card p { font-size: .92rem; color: var(--muted); flex: 1; }

.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card__cover { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #eef2ff, #f5f0ff); }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { font-size: .82rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.post-card p { font-size: .92rem; color: var(--muted); flex: 1; }
.post-card__more { font-size: .9rem; font-weight: 600; margin-top: 12px; display: inline-block; }

/* ---------- faq ---------- */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); font-size: 1.02rem;
    list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.35rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-item__a { padding: 0 22px 20px; color: var(--text); font-size: .96rem; }
.faq-item .faq-item__a > :last-child { margin-bottom: 0; }

/* ---------- audience ---------- */
.audience-item { display: flex; gap: 14px; align-items: flex-start; }
.audience-item__k { font-size: 1.4rem; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, #16307a, #2b5cff 45%, #7c3aed);
    color: #fff; border-radius: 22px; padding: 52px; display: flex; gap: 32px;
    align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- forms ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-row .req { color: var(--danger); }
.input, .select, .textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: .96rem; font-family: inherit; color: var(--text); background: #fff; transition: .15s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,92,255,.12); }
.textarea { min-height: 110px; resize: vertical; }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-size: .94rem; margin-bottom: 18px; }
.alert--ok { background: #e9f9f0; color: #0a6b3d; border: 1px solid #b7ebcd; }
.alert--err { background: #fdecec; color: #a4232a; border: 1px solid #f7c4c4; }

/* ---------- modal ---------- */
.modal-mask {
    position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 26, .62);
    display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.modal-mask.is-open { display: flex; }
.modal {
    background: #fff; border-radius: 20px; width: 100%; max-width: 560px; padding: 32px;
    box-shadow: var(--shadow-lg); position: relative; margin: auto;
}
.modal h3 { font-size: 1.35rem; margin-bottom: 6px; }
.modal__sub { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.modal__close {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: var(--bg-soft); color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.modal__close:hover { background: var(--line); color: var(--ink); }

/* ---------- article ---------- */
.page-hero { padding: 64px 0 44px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero--dark { background: radial-gradient(800px 380px at 80% 0%, rgba(124,58,237,.4), transparent 60%), linear-gradient(150deg, #080d1c, #131d3d); border: 0; color: #a9b6d8; }
.page-hero--dark h1 { color: #fff; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 720px; margin: 0; }
.page-hero--dark p { color: #a9b6d8; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span.sep { opacity: .5; }

.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-body { font-size: 1.05rem; line-height: 1.9; color: var(--text); }
.article-body h2 { margin-top: 44px; font-size: 1.6rem; }
.article-body h3 { margin-top: 32px; }
.article-body img { border-radius: var(--radius-sm); margin: 22px 0; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote {
    margin: 24px 0; padding: 4px 22px; border-left: 3px solid var(--brand);
    background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--bg-soft); color: var(--ink); }
.article-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.article-body .tip { background: rgba(43,92,255,.05); border: 1px solid rgba(43,92,255,.16); border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; }

.sidebar { position: sticky; top: 90px; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sidebar-list { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.sidebar-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.sidebar-list li:last-child { border: 0; }
.sidebar-list a { color: var(--ink-2); display: block; }
.sidebar-list a:hover { color: var(--brand); }

.q-answer { background: rgba(43,92,255,.05); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 22px; margin: 0 0 32px; font-size: 1.02rem; color: var(--ink-2); }
.q-answer strong { color: var(--ink); }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center;
    justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    color: var(--ink-2); font-size: .92rem;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-disabled { opacity: .45; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: #8c98ba; padding: 64px 0 26px; font-size: .93rem; }
.site-footer a { color: #b9c3dd; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.09); }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: #8c98ba; max-width: 330px; font-size: .9rem; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #6f7b9c; }
.footer-bottom .sep { margin: 0 8px; opacity: .5; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 8px; }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.section-actions { text-align: center; margin-top: 44px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 72px 0; }
    .hero h1 { font-size: 2.6rem; }
    .layout-2col { grid-template-columns: 1fr; gap: 36px; }
    .sidebar { position: static; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    body { font-size: 15.5px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.65rem; }
    .hero h1 { font-size: 2.1rem; }
    .hero__sub { font-size: 1.03rem; }
    .section { padding: 60px 0; }
    .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
    .cta-band { padding: 34px 26px; }
    .faq-list { margin: 0; }
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: 70px 0 auto; background: #fff; flex-direction: column;
        align-items: stretch; padding: 12px 20px 22px; border-bottom: 1px solid var(--line);
        gap: 0; display: none; box-shadow: var(--shadow);
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 13px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .header-actions .btn { display: none; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
