/* ==========================================================================
   LOAKPHP 官网 · 页面组件（浅色主题）
   ========================================================================== */

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 68px 0 56px;
    overflow: hidden;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 62%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 640px;
    background-image:
        linear-gradient(rgba(47, 107, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 107, 255, 0.055) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(closest-side at 50% 8%, #000 45%, transparent 100%);
    -webkit-mask-image: radial-gradient(closest-side at 50% 8%, #000 45%, transparent 100%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(47, 107, 255, 0.14), transparent 62%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 54px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.032em;
    font-weight: 720;
}

.hero-sub {
    margin-top: 18px;
    max-width: 560px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.78;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 12.5px;
}

.hero-meta .ico {
    width: 14px;
    height: 14px;
    color: var(--brand);
}

/* 装载检查面板 */

.hero-panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px 160px at 90% -20%, rgba(47, 107, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    background: #fbfcff;
}

.panel-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--dim);
    letter-spacing: 0.02em;
}

.dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.14);
}

.panel-ver {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--dim);
}

.panel-body {
    padding: 4px 0;
}

.check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 18px;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}

.check-row:last-child {
    border-bottom: 0;
}

.check-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.check-name .ico {
    width: 15px;
    height: 15px;
    color: var(--ok);
}

.check-val {
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font-mono);
}

.panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: #f2fbf6;
    border-top: 1px solid #ddf2e6;
    color: #0d7a45;
    font-size: 12.5px;
}

.panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.panel-chips span {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   数据与标签条
   -------------------------------------------------------------------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.stat {
    padding: 22px 24px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    font-size: 26px;
    font-weight: 720;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
}

.stat span {
    display: block;
    margin-top: 3px;
    color: var(--dim);
    font-size: 12.8px;
}

.strip {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--soft);
}

.strip-label {
    text-align: center;
    color: var(--dim);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.chip-row span {
    padding: 6px 13px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   步骤 / 分层 / 流程
   -------------------------------------------------------------------------- */

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

.step {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.step-no {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--brand-soft);
    border: 1px solid #dbe5ff;
    color: var(--brand-dark);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
}

.step h3 {
    font-size: 16.5px;
    margin-bottom: 7px;
}

.step p {
    color: var(--muted);
    font-size: 14.2px;
}

.layers {
    display: grid;
    gap: 14px;
}

.layer {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-left: 3px solid #c9d8ff;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.layer:hover {
    border-left-color: var(--brand);
    box-shadow: var(--shadow);
}

.layer-no {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: #b9c8e6;
    line-height: 1.2;
}

.layer h3 {
    font-size: 16.5px;
    margin-bottom: 7px;
}

.layer p {
    color: var(--muted);
    font-size: 14.3px;
}

.flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.flow-node {
    position: relative;
    padding: 20px 16px;
    border: 1px dashed var(--line-2);
    border-radius: 14px;
    background: #fbfcff;
    text-align: center;
}

.flow-node strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.flow-node span {
    color: var(--dim);
    font-size: 12px;
    font-family: var(--font-mono);
}

.flow-node:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b9c8e6;
    font-size: 14px;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   分栏
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: 0.94fr 1.06fr;
    gap: 46px;
    align-items: center;
}

.split.reverse {
    grid-template-columns: 1.06fr 0.94fr;
}

.bullets {
    display: grid;
    gap: 11px;
    margin-top: 20px;
}

.bullets li {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 14.6px;
}

.bullets .ico {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    color: var(--ok);
}

.point-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.point-list li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
}

.point-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9db6e8;
}

/* --------------------------------------------------------------------------
   兼容性检查器
   -------------------------------------------------------------------------- */

.checker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.checker-controls {
    display: grid;
    gap: 14px;
    align-content: start;
}

.select-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--dim);
    font-size: 12.5px;
    letter-spacing: 0.03em;
}

.select-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.select-field select:focus {
    outline: none;
    border-color: #9db6e8;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.checker-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.result-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 999px;
    background: #ecfdf3;
    border: 1px solid #cdeedd;
    color: var(--ok);
    font-size: 12px;
    font-weight: 650;
}

.result-status .ico {
    width: 14px;
    height: 14px;
}

.result-status.is-warn {
    background: #fff8ec;
    border-color: #f5e2bf;
    color: var(--warn);
}

.result-status.is-bad {
    background: #fef3f2;
    border-color: #fad9d5;
    color: var(--danger);
}

.result-title {
    font-size: 15.5px;
    font-weight: 650;
}

.result-note {
    color: var(--muted);
    font-size: 13.4px;
    line-height: 1.65;
}

.result-rows {
    display: grid;
    gap: 7px;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-2);
}

.result-rows div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.8px;
    color: var(--dim);
}

.result-rows b {
    color: var(--ink);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   内页头部 / 面包屑 / CTA / 正文 / 错误页
   -------------------------------------------------------------------------- */

.page-hero {
    position: relative;
    padding: 56px 0 44px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(620px 240px at 12% -40%, rgba(47, 107, 255, 0.1), transparent 70%),
        radial-gradient(520px 220px at 92% -30%, rgba(124, 58, 237, 0.08), transparent 70%),
        linear-gradient(180deg, #f8faff, #ffffff);
}

.page-hero h1 {
    font-size: clamp(28px, 3.7vw, 42px);
    letter-spacing: -0.028em;
}

.page-hero p {
    margin-top: 12px;
    max-width: 740px;
    color: var(--muted);
    font-size: 16px;
}

.page-hero .eyebrow {
    margin-bottom: 14px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--dim);
    font-size: 12.5px;
}

.breadcrumb a {
    color: var(--dim);
}

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

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding: 40px 44px;
    border: 1px solid #dbe5ff;
    border-radius: 22px;
    background:
        radial-gradient(560px 220px at 8% 0%, rgba(47, 107, 255, 0.1), transparent 68%),
        radial-gradient(460px 200px at 96% 100%, rgba(124, 58, 237, 0.08), transparent 68%),
        linear-gradient(120deg, #f5f8ff, #fbf9ff 55%, #ffffff);
}

.cta-band h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    margin-bottom: 8px;
}

.cta-band p {
    max-width: 540px;
    color: var(--muted);
    font-size: 14.6px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.prose {
    max-width: 840px;
}

.prose h2 {
    margin: 38px 0 12px;
    font-size: 20px;
}

.prose h3 {
    margin: 24px 0 8px;
    font-size: 16px;
}

.prose p {
    margin: 10px 0;
    color: var(--muted);
    font-size: 14.8px;
}

.prose ul {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.prose li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14.6px;
}

.prose li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b9c8e6;
}

.prose .meta {
    color: var(--dim);
    font-size: 13px;
    font-family: var(--font-mono);
}

.prose a {
    text-decoration: underline;
    text-decoration-color: rgba(47, 107, 255, 0.35);
    text-underline-offset: 3px;
}

.error-wrap {
    display: grid;
    place-items: center;
    min-height: 56vh;
    padding: 60px 24px;
    text-align: center;
}

.error-code {
    font-family: var(--font-mono);
    font-size: clamp(76px, 13vw, 132px);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(140deg, #2f6bff, #4f8cff 55%, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-wrap h1 {
    font-size: clamp(22px, 3vw, 30px);
    margin: 16px 0 10px;
}

.error-wrap p {
    max-width: 480px;
    color: var(--muted);
    font-size: 15px;
}

.error-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

/* --------------------------------------------------------------------------
   版本矩阵 / 下载
   -------------------------------------------------------------------------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-btn {
    padding: 7px 15px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.filter-btn:hover {
    border-color: #b9c9ea;
    color: var(--ink);
}

.filter-btn.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--dim);
}

.status-latest {
    background: #ecfdf3;
    border-color: #cdeedd;
    color: var(--ok);
}

.status-supported {
    background: var(--brand-soft);
    border-color: #dbe5ff;
    color: var(--brand-dark);
}

.status-legacy {
    background: #fff8ec;
    border-color: #f5e2bf;
    color: var(--warn);
}

/* --------------------------------------------------------------------------
   框架
   -------------------------------------------------------------------------- */

.fw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 300px;
    max-width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #9db6e8;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.search-box .ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--dim);
}

.fw-count {
    color: var(--dim);
    font-size: 13px;
}

.fw-count b {
    color: var(--ink);
}

.fw-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fw-card {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fw-card:hover {
    border-color: #cfdcf3;
    box-shadow: var(--shadow);
}

.fw-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.fw-name {
    font-size: 16px;
    font-weight: 650;
}

.fw-range {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dim);
}

.fw-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13.4px;
    line-height: 1.62;
}

.fw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    color: var(--dim);
    font-size: 12.4px;
}

.fw-meta b {
    color: var(--ink);
    font-weight: 600;
    font-family: var(--font-mono);
}

.fw-empty {
    padding: 28px;
    border: 1px dashed var(--line-2);
    border-radius: 14px;
    color: var(--dim);
    text-align: center;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   文档
   -------------------------------------------------------------------------- */

.doc-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 46px;
    align-items: start;
}

.doc-aside {
    position: sticky;
    top: 92px;
}

.doc-title {
    color: var(--dim);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 12px;
}

.doc-nav {
    display: grid;
    gap: 1px;
    border-left: 1px solid var(--line);
}

.doc-nav a {
    display: block;
    padding: 6px 14px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: 13.8px;
}

.doc-nav a:hover {
    color: var(--ink);
    border-left-color: #b9c9ea;
}

.doc-nav a.is-active {
    color: var(--brand-dark);
    border-left-color: var(--brand);
    background: #f7faff;
    font-weight: 600;
}

.doc-body section {
    margin-bottom: 44px;
    scroll-margin-top: 92px;
}

.doc-body h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.doc-body h2 .idx {
    display: inline-block;
    margin-right: 8px;
    color: #b9c8e6;
    font-family: var(--font-mono);
    font-size: 14px;
    vertical-align: 2px;
}

.doc-intro {
    color: var(--muted);
    font-size: 14.6px;
    margin-bottom: 16px;
}

.doc-note {
    margin-top: 12px;
    padding: 12px 16px;
    border-left: 3px solid var(--brand);
    border-radius: 0 10px 10px 0;
    background: #f4f8ff;
    color: var(--muted);
    font-size: 13.6px;
}

.doc-note strong {
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
    display: grid;
    gap: 10px;
    max-width: 880px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item[open] {
    border-color: #c9d8ff;
    box-shadow: var(--shadow);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 22px;
    cursor: pointer;
    font-size: 15.2px;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .ico {
    width: 18px;
    height: 18px;
    color: var(--dim);
    transition: transform 0.2s ease;
}

.faq-item[open] summary .ico {
    transform: rotate(45deg);
    color: var(--brand);
}

.faq-answer {
    padding: 0 22px 18px;
    color: var(--muted);
    font-size: 14.4px;
    line-height: 1.76;
}

/* --------------------------------------------------------------------------
   更新日志
   -------------------------------------------------------------------------- */

.releases {
    max-width: 820px;
    margin: 0 auto;
}

.release {
    position: relative;
    padding: 0 0 34px 28px;
    border-left: 1px solid var(--line-2);
}

.release:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.release::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand);
}

.release-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.release-version {
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 700;
}

.release-date {
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.release ul {
    display: grid;
    gap: 6px;
}

.release li {
    position: relative;
    padding-left: 15px;
    color: var(--muted);
    font-size: 14.2px;
}

.release li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c3d2ec;
}

/* --------------------------------------------------------------------------
   联系
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.form-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.field {
    margin-bottom: 15px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--dim);
    font-size: 12.8px;
    letter-spacing: 0.02em;
}

.field label .req {
    color: var(--danger);
    margin-left: 2px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
    min-height: 128px;
    resize: vertical;
    line-height: 1.65;
}

.field-count {
    display: block;
    margin-top: 4px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: right;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: #9db6e8;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9aa7ba;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 13.2px;
    line-height: 1.6;
}

.checkbox input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--brand);
    flex: none;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.alert {
    margin-bottom: 16px;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 13.6px;
}

.alert-error {
    border: 1px solid #fad9d5;
    background: #fef3f2;
    color: #b42318;
}

.alert-ok {
    border: 1px solid #cdeedd;
    background: #ecfdf3;
    color: #067647;
}

.contact-side {
    display: grid;
    gap: 12px;
}

.contact-item {
    display: flex;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-item .card-icon {
    margin: 0;
    width: 38px;
    height: 38px;
}

.contact-item .card-icon .ico {
    width: 19px;
    height: 19px;
}

.contact-item h3 {
    font-size: 14.5px;
    margin-bottom: 3px;
}

.contact-item p {
    color: var(--muted);
    font-size: 13.2px;
    line-height: 1.6;
}

.contact-item a {
    font-size: 13.4px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

.doc-layout > *,
.split > *,
.hero-grid > *,
.contact-grid > *,
.layer > * {
    min-width: 0;
}

.codeblock,
.table-wrap,
.hero-panel {
    max-width: 100%;
}

@media (max-width: 1040px) {
    .hero-grid {
        gap: 34px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .checker {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 44px 0 40px;
    }

    .hero-grid,
    .split,
    .split.reverse,
    .contact-grid,
    .doc-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero h1 {
        font-size: clamp(30px, 7vw, 42px);
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat:nth-child(2n) {
        border-right: 0;
    }

    .stat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .steps,
    .flow,
    .fw-grid {
        grid-template-columns: 1fr;
    }

    .flow-node:not(:last-child)::after {
        content: "↓";
        right: 50%;
        top: auto;
        bottom: -13px;
        transform: translateX(50%);
    }

    .doc-aside {
        position: static;
    }

    .doc-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        border-left: 0;
    }

    .doc-nav a {
        margin: 0;
        padding: 6px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 13px;
    }

    .doc-nav a.is-active {
        background: var(--brand-soft);
        border-color: #dbe5ff;
    }

    .cta-band {
        padding: 32px 26px;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 22px;
    }

    .layer {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px;
    }

    .layer-no {
        font-size: 17px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .search-box input {
        width: 100%;
    }

    .checker {
        padding: 20px;
    }
}

/* 筛选时隐藏行 */
tr[hidden] {
    display: none;
}
