:root {
    --bg: #f3eee4;
    --bg-band: #e9e1d2;
    --paper: #fbf7f0;
    --ink: #1c1915;
    --ink-soft: #4e4940;
    --line: #e0d6c6;
    --moss: #1f3d34;
    --moss-deep: #173028;
    --copper: #a8643a;
    --sand: #f0e4d4;
    --danger: #8a3d2f;
    --ok: #1f3d34;
    --footer: #171614;
    --display: "KaiTi", "楷体", "STKaiti", "FangSong", "仿宋", serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Noto Sans SC", sans-serif;
    --shadow: 0 16px 40px rgba(28, 25, 21, 0.06);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

body, button, input, textarea, select { font: inherit; color: inherit; }

img, svg { max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

h1, .page-intro h1, .hero h1 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.18;
}

h1 { font-size: clamp(40px, 5vw, 68px); }

h2 {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: 0.01em;
}

h3 { font-size: 22px; line-height: 1.35; font-weight: 600; }

a { color: var(--moss); }

::selection { background: var(--moss); color: #f6f1e7; }

:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 30;
    background: #fff;
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 8px;
}

.skip:focus { top: 12px; }

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(243, 238, 228, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand svg { width: 36px; height: 36px; display: block; }

.brand strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--copper);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    height: 40px;
    padding: 0 14px;
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
}

.nav-link.is-current {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--copper);
}

.nav-sep {
    width: 1px;
    height: 16px;
    background: var(--line);
}

.hero-wrap {
    position: relative;
    overflow: hidden;
}

.hero-watermark {
    position: absolute;
    right: -0.06em;
    top: -0.18em;
    font-family: var(--display);
    font-size: clamp(120px, 22vw, 240px);
    line-height: 0.85;
    color: rgba(31, 61, 52, 0.06);
    pointer-events: none;
    user-select: none;
}

.hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
    gap: 36px;
    align-items: stretch;
    padding: 34px 0 20px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--moss);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.eyebrow span { color: var(--copper); letter-spacing: 0; }

.legal {
    margin: 8px 0 12px;
    color: var(--moss);
    font-size: 14px;
    letter-spacing: 0.06em;
}

.lede {
    max-width: 40em;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.85;
}

.trail {
    width: 84px;
    height: 10px;
    margin: 18px 0 0;
    background-image: radial-gradient(circle, var(--copper) 1.6px, transparent 1.7px);
    background-size: 14px 10px;
    background-repeat: repeat-x;
}

.hero-actions, .section-action {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 420px;
    padding: 28px;
    border-radius: 28px;
    background: var(--moss);
    color: #f4efe6;
    box-shadow: var(--shadow);
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -36px;
    width: 190px;
    height: 190px;
    background-image: radial-gradient(circle, rgba(226, 176, 122, 0.7) 1.3px, transparent 1.5px);
    background-size: 16px 16px;
    mask-image: radial-gradient(circle, #000 15%, transparent 68%);
    pointer-events: none;
}

.panel-mark {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    color: #f4efe6;
}

.panel-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.panel-list div {
    display: grid;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(244, 239, 230, 0.18);
}

.panel-list dt {
    color: rgba(244, 239, 230, 0.68);
    font-size: 13px;
}

.panel-list dd { font-size: 18px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--moss);
    background: var(--moss);
    color: #f6f1e7;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover { background: var(--moss-deep); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: #cfc4b2;
}

.btn-ghost:hover { background: rgba(31, 61, 52, 0.06); }

.btn-light {
    background: #f4efe6;
    color: var(--moss);
    border-color: #f4efe6;
}

.btn-light:hover { background: #fff; }

button:disabled { cursor: wait; opacity: 0.7; }

.text-link {
    color: var(--moss);
    text-underline-offset: 4px;
}

.section { padding: 22px 0 84px; }

.band {
    background: var(--bg-band);
    padding-top: 64px;
    padding-bottom: 72px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
}

.service-grid, .detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card, .tool-card, .panel, .inquiry, .admin-item, .facts {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.service-card, .tool-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 230px;
    padding: 22px;
}

.service-card:hover, .tool-card:hover { border-color: #c9d5ce; }

.service-card p, .tool-card p, .facts p, .process p, .inquiry p {
    color: var(--ink-soft);
}

.num {
    color: var(--copper);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.service-card .text-link, .tool-host { margin-top: auto; }

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
    gap: 18px;
}

.tool-top, .inquiry header, .admin-item header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tool-host {
    color: var(--moss);
    font-size: 14px;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--sand);
    color: #6e3f24;
    font-size: 12px;
    white-space: nowrap;
}

.pill-live { background: #e3f0e8; color: #1d4638; }
.pill-beta { background: #f3ebc8; color: #5c4a16; }

.process {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
}

.process li {
    padding-top: 16px;
    border-top: 1px solid #d9cfc0;
}

.process h3 { margin: 8px 0; font-size: 20px; }

.split, .account-grid, .admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
    gap: 36px;
    align-items: start;
}

.prose { display: grid; gap: 16px; margin: 18px 0 22px; }

.prose p { color: var(--ink-soft); font-size: 17px; line-height: 1.9; }

.facts { padding: 22px; display: grid; gap: 10px; }

.facts h2, .facts h3 { font-size: 16px; margin-top: 8px; }

.facts ul, .detail-grid ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); }

.facts li + li, .detail-grid li + li { margin-top: 6px; }

.cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
    border-radius: 28px;
    background:
        radial-gradient(circle at right bottom, rgba(226, 176, 122, 0.18), transparent 28%),
        var(--moss);
    color: #f4efe6;
}

.cta p { margin-top: 8px; max-width: 38em; color: #d5e3dc; }

.page-intro { padding: 48px 0 8px; }

.page-intro .lede { margin-top: 14px; }

.service-list { display: grid; gap: 42px; }

.service-block { scroll-margin-top: 96px; }

.service-block-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 10px;
}

.detail-grid {
    margin-top: 22px;
}

.detail-grid > div {
    padding: 18px;
    border-radius: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.detail-grid h3 { font-size: 16px; }

.domain-map {
    list-style: none;
    margin: 22px 0 0;
    padding: 4px 0 0 4px;
    border-left: 2px dotted var(--copper);
}

.domain-map li {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 0 0 22px 22px;
}

.domain-map li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--copper);
}

.domain-map span { color: var(--ink-soft); }

.form { display: grid; gap: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field { display: grid; gap: 6px; }

.field span, .inline-form span { font-size: 14px; color: var(--ink-soft); }

.field input, .field textarea, .field select, .inline-form select {
    width: 100%;
    border: 1px solid #d9cfbf;
    background: #fffdf9;
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 48px;
}

.field textarea { min-height: 150px; resize: vertical; }

.field select, .inline-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--moss) 50%),
        linear-gradient(135deg, var(--moss) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.field input:focus, .field textarea:focus, .field select:focus, .inline-form select:focus {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px rgba(31, 61, 52, 0.12);
}

::placeholder { color: #8d8478; }

.field-error { color: var(--danger); font-size: 13px; }

.help, .switch, .empty { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

.hint {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--sand);
    color: var(--ink-soft);
    font-size: 14px;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.auth-wrap {
    display: grid;
    place-items: center;
    padding: 48px 0 80px;
}

.auth-card {
    width: min(460px, calc(100% - 40px));
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
}

.auth-card h1 { font-size: 48px; margin-bottom: 8px; }

.auth-card .lede { margin-bottom: 8px; }

.switch { margin-top: 4px; }

.account-grid { align-items: start; }

.stack { display: grid; gap: 16px; }

.panel { padding: 22px; display: grid; gap: 14px; }

.account-email { font-size: 18px; overflow-wrap: anywhere; }

.events {
    list-style: none;
    display: grid;
    gap: 14px;
    padding: 0;
}

.events li {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.events div { display: flex; justify-content: space-between; gap: 12px; }

.events time, .inquiry time { color: var(--ink-soft); font-size: 13px; }

.inquiry-list { display: grid; gap: 14px; }

.inquiry, .admin-item { padding: 18px 20px; display: grid; gap: 8px; }

.inquiry header span, .inquiry-contact { color: var(--moss); }

.inquiry p, .admin-item p { overflow-wrap: anywhere; }

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inline-form select { width: auto; min-width: 140px; }

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 18px;
}

a.service-card {
    color: inherit;
    text-decoration: none;
}

.narrow { max-width: 760px; }

.dashboard-head { margin-top: 48px; }

.admin-item header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-item header h2 { margin: 0; }

textarea.compact { min-height: 84px; }

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.check input { width: auto; }

.inquiry-list > form:not(.panel) { margin-top: -6px; }

.subnav a {
    color: var(--ink-soft);
    text-decoration: none;
    padding-bottom: 4px;
}

.subnav a[aria-current="page"] {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--copper);
}

.banner {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.banner-ok { background: #e5f0ea; color: #173028; }
.banner-error { background: #f8e6e1; color: var(--danger); }

.site-footer {
    background: var(--footer);
    color: #d9d1c5;
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 28px;
}

.site-footer strong { display: block; color: #f4efe6; margin-bottom: 8px; }

.site-footer p { margin: 0; color: #c8c0b4; }

.footer-links, .footer-meta { display: grid; gap: 8px; align-content: start; }

.site-footer a { color: #f4efe6; text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

.footer-bottom {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(244, 239, 230, 0.12);
    color: #b7afa3;
    font-size: 13px;
}

@media (max-width: 980px) {
    .hero, .service-grid, .detail-grid, .split, .account-grid, .admin-layout, .footer-grid {
        grid-template-columns: 1fr;
    }

    .process { grid-template-columns: 1fr 1fr; }

    .hero-panel { min-height: 0; }

    .cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 1px);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin: 0;
        padding: 8px 20px 16px;
        background: #f7f2e8;
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open { display: flex; }

    .nav-link { padding: 10px 0; }

    .nav-sep { display: none; }

    .hero-watermark { display: none; }

    .process, .form-row { grid-template-columns: 1fr; }

    .process li {
        padding: 0 0 16px 16px;
        border-top: 0;
        border-left: 1px solid #d9cfc0;
    }

    .form .btn, .auth-card .btn, .cta .btn { width: 100%; }

    .section { padding-bottom: 64px; }

    .cta { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .service-card, .tool-card, .btn { transition: none; }
}

.price {
    font-family: var(--display);
    font-size: 32px;
    line-height: 1.2;
}

.kw-form { display: grid; gap: 14px; }

.kw-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.kw-toolbar input,
.kw-toolbar select {
    width: auto;
    min-width: 160px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.kw-table-wrap { overflow-x: auto; }

.kw-table {
    width: 100%;
    border-collapse: collapse;
}

.kw-table th,
.kw-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.kw-table th:first-child,
.kw-table td:first-child { width: 36px; }

.btn-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--copper);
    cursor: pointer;
}
