/* ==========================================================================
   CatchCMS 睿泽医疗主题（medtech）— app.css
   设计方向：方案 B「数字深空」— 深蓝底、青蓝渐变光效、ICU 数据面板质感。
   手写现代 CSS，无构建步骤。改完样式请同时升 version.json 的 version，
   因为主题资源 URL 只带版本号、缓存 max-age=3600。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
    --bg: #070d1a;
    --bg-2: #0b1426;
    --panel: #0f1c33;
    --panel-2: #12213c;
    --line: rgb(120 170 255 / 14%);
    --line-strong: rgb(120 170 255 / 28%);

    --brand: #22d3ee;
    --brand-2: #3b82f6;
    --brand-soft: rgb(34 211 238 / 12%);
    --on-brand: #04121f;

    --ink: #e6eefc;
    --ink-soft: #8fa3c4;
    --ink-muted: #5b6d8d;

    --danger: #f87171;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow: 0 16px 40px rgb(0 0 0 / 40%);
    --shadow-lg: 0 30px 80px rgb(0 0 0 / 50%);

    --container: 1200px;
    --gap: 20px;
    --section-y: 92px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
        Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   2. 基础与工具
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: 0.01em; }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.main { min-height: 60vh; }

.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;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 16px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--on-brand);
    font-size: 14px;
    transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.notice {
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgb(15 28 51 / 55%);
    font-size: 15px;
}
.notice--muted { color: var(--ink-muted); }

.result-count {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   3. 按钮
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: filter 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }

.btn--primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: var(--on-brand);
}
.btn--primary:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 12px 28px rgb(34 211 238 / 22%); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink-soft); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--sm { padding: 9px 20px; font-size: 13.5px; }
.btn--lg { padding: 15px 34px; font-size: 15.5px; }

/* --------------------------------------------------------------------------
   4. 头部与导航
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(7 13 26 / 80%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 160px; height: auto; max-height: 44px; object-fit: contain; }
.brand__text {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.04em;
}

.site-nav { display: flex; align-items: center; }

.nav__list {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
}

.nav__item { position: relative; }

.nav__link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: inherit;
    transition: color 0.2s;
}
.nav__link:hover { color: var(--ink); }
.nav__item.is-active > .nav__link { color: var(--brand); }
.nav__item.is-active > .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.nav__sub {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 200px;
    padding: 10px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav__item.has-children:hover > .nav__sub,
.nav__item.has-children:focus-within > .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}
.nav__sub .nav__list { flex-direction: column; align-items: stretch; gap: 0; color: var(--ink); }
.nav__sub .nav__link { display: block; padding: 9px 20px; font-size: 14px; }
.nav__sub .nav__link:hover { background: var(--brand-soft); color: var(--brand); }
.nav__sub .nav__sub { top: 0; left: 100%; }

.nav__expand {
    display: none;
    border: 0;
    background: none;
    padding: 4px 8px;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transform: translateX(-50%);
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle__bar { top: 50%; margin-top: -1px; }
.nav-toggle__bar::before { top: -6px; left: 0; transform: none; }
.nav-toggle__bar::after { top: 6px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

.site-header__aside { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lang-switch__item {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    transition: color 0.2s, background 0.2s;
}
.lang-switch__item:hover { color: var(--brand); background: var(--brand-soft); }
.lang-switch__item.is-current { color: var(--brand); font-weight: 600; }

/* --------------------------------------------------------------------------
   5. 首屏轮播（数字深空 hero：网格 + 光晕压在轮播图上）
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(600px 300px at 82% 20%, rgb(34 211 238 / 12%), transparent 60%),
        radial-gradient(500px 260px at 12% 85%, rgb(59 130 246 / 12%), transparent 60%);
}

.hero__track { position: relative; }

.hero__slide {
    position: relative;
    display: none;
    min-height: 540px;
    align-items: center;
}
.hero__slide.is-active { display: flex; }

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
}

.hero__body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 100px 0 108px;
}
.hero__body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgb(7 13 26 / 90%) 12%, rgb(7 13 26 / 55%) 70%);
}

.hero__body .hero__subtitle,
.hero__body .hero__title,
.hero__body .hero__desc {
    max-width: 720px;
    margin-left: max(24px, calc((100% - var(--container)) / 2 + 24px));
}

.hero__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 7px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgb(15 28 51 / 60%);
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.12em;
}
.hero__subtitle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 12px var(--brand);
}

.hero__title {
    margin: 0 0 22px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
}
.hero__title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__desc {
    margin: 0 0 38px;
    font-size: 16.5px;
    color: var(--ink-soft);
}

.hero__nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgb(15 28 51 / 60%);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.hero__arrow:hover { border-color: var(--brand); color: var(--brand); }

.hero__dots { display: flex; gap: 10px; }

.hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(120 170 255 / 30%);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.hero__dot.is-active {
    background: var(--brand);
    box-shadow: 0 0 12px var(--brand);
    transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   6. 区块通用
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head { max-width: 660px; margin: 0 auto 52px; text-align: center; }

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.section__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 10px var(--brand);
}

.section__title { margin: 0 0 14px; font-size: 34px; font-weight: 700; }
.section__title--sm { font-size: 22px; }

.section__desc { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

.section__more { margin: 40px 0 0; text-align: center; }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --------------------------------------------------------------------------
   7. 关于我们 + 统计（数据面板质感）
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.about__text .section__eyebrow { margin-bottom: 12px; }
.about__text .section__title { text-align: left; }
.about__text { text-align: left; }
.about__desc { margin: 0 0 24px; color: var(--ink-soft); }

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    margin: 0;
}

.stats__item {
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(15 28 51 / 45%);
    transition: transform 0.25s, border-color 0.25s;
}
.stats__item:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.stats__label { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-muted); }
.stats__value { display: flex; align-items: baseline; gap: 4px; margin: 0; }

.stats__number {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stats__unit { font-size: 14px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   8. 信任版块（行业价值点）
   -------------------------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.vcard {
    position: relative;
    overflow: hidden;
    padding: 34px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), rgb(15 28 51 / 40%));
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.vcard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.vcard:hover { transform: translateY(-4px); border-color: rgb(34 211 238 / 40%); box-shadow: var(--shadow); }
.vcard:hover::before { opacity: 1; }

.vcard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
}
.vcard__icon svg { width: 24px; height: 24px; }

.vcard__title { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.vcard__desc { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   9. 内容卡片
   -------------------------------------------------------------------------- */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), rgb(15 28 51 / 50%));
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgb(34 211 238 / 40%); box-shadow: var(--shadow); }

.card__media { overflow: hidden; background: var(--panel-2); }
.card__media img {
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    transition: transform 0.4s, opacity 0.3s;
    opacity: 0.92;
}
.card:hover .card__media img { transform: scale(1.04); opacity: 1; }

.card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 22px 24px 24px;
}

.card__eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--brand);
}
.card__eyebrow:hover { color: var(--brand-2); }

.card__title { margin: 0; font-size: 17.5px; font-weight: 600; }
.card__title a:hover { color: var(--brand); }

.card__summary {
    margin: 0;
    flex: 1;
    font-size: 13.5px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--ink-muted);
}

.card__more { font-weight: 600; color: var(--brand); white-space: nowrap; }
.card__more:hover { color: var(--brand-2); }

/* --------------------------------------------------------------------------
   10. 转化区
   -------------------------------------------------------------------------- */
.cta { background: var(--bg); }

.cta__inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 56px;
    border: 1px solid rgb(34 211 238 / 30%);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgb(34 211 238 / 8%), rgb(59 130 246 / 8%));
}
.cta__title { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.cta__desc { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   11. 面包屑 + 页面头
   -------------------------------------------------------------------------- */
.breadcrumb { padding: 18px 0 0; font-size: 13.5px; }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 4px; color: var(--ink-muted); }
.breadcrumb__item { display: flex; align-items: center; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin-right: 4px; color: var(--line-strong); }
.breadcrumb__item a:hover { color: var(--brand); }

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(500px 260px at 80% 10%, rgb(34 211 238 / 10%), transparent 60%),
        linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
}
.page-hero--image .page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.page-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgb(7 13 26 / 88%) 10%, rgb(7 13 26 / 45%) 75%);
}
.page-hero__body { position: relative; z-index: 1; padding: 64px 24px 68px; }
.page-hero__title { margin: 0 0 10px; font-size: 36px; font-weight: 700; }
.page-hero__desc { margin: 0; max-width: 40em; color: var(--ink-soft); }
.page-hero__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   12. 分页 + 搜索
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    font-size: 14px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgb(15 28 51 / 45%);
    color: var(--ink-soft);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pagination__link:hover { border-color: var(--brand); color: var(--brand); }
.pagination__link.is-current {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: var(--on-brand);
    font-weight: 600;
}
.pagination__link.is-disabled { opacity: 0.4; pointer-events: none; }
.pagination__gap { color: var(--ink-muted); }
.pagination__total { margin-left: 8px; color: var(--ink-muted); font-family: var(--font-mono); }

.search-form {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 0 0 40px;
}
.search-form__input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: rgb(15 28 51 / 55%);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form__input::placeholder { color: var(--ink-muted); }
.search-form__input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

/* --------------------------------------------------------------------------
   13. 详情页（文章）
   -------------------------------------------------------------------------- */
.article__meta { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); font-family: var(--font-mono); }

.article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    padding-block: 56px;
}

.article__cover {
    width: 100%;
    margin-bottom: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.article__fields { margin-top: 48px; }

.prose { font-size: 15.5px; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { margin: 32px 0 14px; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose img { border-radius: var(--radius); }
.prose a { color: var(--brand); }
.prose a:hover { text-decoration: underline; }
.prose blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--ink);
}
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { width: 220px; color: var(--ink); font-weight: 600; font-family: var(--font-mono); font-size: 13.5px; background: rgb(15 28 51 / 45%); }
.spec-table td { color: var(--ink-soft); }
.spec-table--wide th { width: 280px; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.gallery__item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery--thumbs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

.article__aside { display: flex; flex-direction: column; gap: 24px; }

.aside-block {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(15 28 51 / 45%);
}
.aside-block__title { margin: 0 0 14px; font-size: 16px; font-weight: 600; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgb(15 28 51 / 45%);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-soft);
    transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--brand); color: var(--brand); }

/* --------------------------------------------------------------------------
   14. 产品详情
   -------------------------------------------------------------------------- */
.product__head { padding-block: 56px 32px; }

.product__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: start;
    padding-bottom: 56px;
}

.product__cover {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
}

.product__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--panel), rgb(15 28 51 / 40%));
}

.product__meta { margin: 0; width: 100%; }
.product__meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line-strong);
    font-size: 14.5px;
}
.product__meta-row:last-child { border-bottom: 0; }
.product__meta-row dt { color: var(--ink-muted); }
.product__meta-row dd { margin: 0; font-weight: 600; color: var(--ink); font-family: var(--font-mono); }

.product__back { padding-bottom: 64px; }

/* --------------------------------------------------------------------------
   15. 联系页 + 表单
   -------------------------------------------------------------------------- */
.contact-page {
    position: relative;
    overflow: hidden;
    padding: 38px 0 104px;
    background:
        radial-gradient(700px 420px at 12% 14%, rgb(34 211 238 / 8%), transparent 62%),
        var(--bg);
}

.contact-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, black, transparent 54%);
}

.contact-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(40px, 6vw, 82px);
    align-items: start;
}

.contact-layout__info {
    padding-top: 38px;
    animation: contact-enter 0.5s ease-out both;
}

.contact-layout__heading {
    max-width: 470px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line-strong);
}

.contact-layout__title {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.contact-layout__summary {
    max-width: 36em;
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.8;
}

.contact-layout__details { margin-top: 42px; }
.contact-layout__details-title {
    margin: 0 0 8px;
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-layout__accent {
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 42px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.contact-layout__form {
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: var(--radius-lg);
    color: #10223a;
    background: #f3f7fb;
    box-shadow: 0 26px 70px rgb(0 0 0 / 34%);
    animation: contact-enter 0.5s 0.08s ease-out both;
}

.contact-layout__form .notice {
    border-color: #d8e2ec;
    color: #52647a;
    background: #fff;
}

.contact-info { margin: 0; }
.contact-info__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line-strong);
}
.contact-info__label { font-size: 12.5px; color: var(--ink-muted); }
.contact-info__value { font-size: 15px; color: var(--ink); }
.contact-info__value a:hover { color: var(--brand); }

.contact-layout__info .contact-info__item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
}
.contact-layout__info .contact-info__label { padding-top: 2px; }
.contact-layout__info .contact-info__value { overflow-wrap: anywhere; }

.cms-form__intro {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #dbe4ed;
}
.cms-form__intro-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}
.cms-form__title { margin: 0; color: #10223a; font-size: 24px; letter-spacing: -0.01em; }
.cms-form__desc { margin: 10px 0 0; font-size: 14px; color: #627186; }
.cms-form__required-note {
    flex: none;
    margin: 0;
    color: #6c7889;
    font-size: 12px;
}
.cms-form__required-note span { color: #c93636; }

.cms-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full,
.field--wide { grid-column: 1 / -1; }
.field--captcha { grid-column: 1 / -1; }

.field__label { font-size: 13.5px; font-weight: 600; color: #243751; }
.field__required { color: #c93636; }

.field__control {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #c9d5e2;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: #10223a;
    caret-color: #0891b2;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field__control::placeholder { color: #8794a5; }
.field__control:hover { border-color: #9db0c5; }
.field__control:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgb(8 145 178 / 13%);
}
.field textarea.field__control { min-height: 148px; resize: vertical; }
.field__control--file { padding: 7px 10px; background: #fff; }
.field__control--file::file-selector-button {
    margin-right: 12px;
    padding: 7px 16px;
    border: 0;
    border-radius: 7px;
    background: #e5f4f7;
    color: #087b94;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.field__options { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 8px 0; }
.field__option { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #455971; cursor: pointer; }
.field__option input { width: 17px; height: 17px; margin: 0; accent-color: #0891b2; }

.field__captcha-row { display: flex; align-items: center; gap: 12px; }
.field__captcha-row .field__control { flex: 1 1 180px; min-width: 0; }
.field__captcha-image {
    flex: 0 0 120px;
    width: 120px;
    height: 44px;
    border: 1px solid #c9d5e2;
    border-radius: var(--radius-sm);
    background: #fff;
    object-fit: contain;
}
.contact-layout__form .btn--ghost { border-color: #b9c8d8; color: #3e536c; }
.contact-layout__form .btn--ghost:hover { border-color: #0891b2; color: #087b94; }

.field__help { margin: 0; font-size: 12.5px; color: #718096; }
.field__error { margin: 0; font-size: 13px; font-weight: 500; color: #b42318; }
.field.has-error .field__control { border-color: #d92d20; box-shadow: 0 0 0 3px rgb(217 45 32 / 10%); }

.cms-form__honeypot { display: none; }

.cms-form__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    padding-top: 24px;
    border-top: 1px solid #dbe4ed;
}
.cms-form__actions .btn--primary { min-width: 126px; }
.cms-form__actions .btn--primary:disabled { cursor: wait; filter: saturate(0.65); opacity: 0.8; transform: none; }
.cms-form__actions .btn--primary.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgb(4 18 31 / 28%);
    border-top-color: var(--on-brand);
    border-radius: 50%;
    animation: form-spin 0.7s linear infinite;
}
.cms-form__status { margin: 0; font-size: 13.5px; color: #627186; }
.cms-form__status.is-success { color: #087b5a; font-weight: 600; }
.cms-form__status.is-error { color: #b42318; font-weight: 600; }

@keyframes contact-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes form-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   16. 页脚
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; }

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 64px 24px 48px;
}

.site-footer__title { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--ink); }
.site-footer__col .contact-info__item { border-bottom-color: var(--line); }
.site-footer__col .contact-info__value { color: var(--ink-soft); }
.site-footer__col .contact-info__value a:hover { color: var(--brand); }
.site-footer__col .nav__list { flex-direction: column; align-items: flex-start; gap: 10px; font-weight: 400; }
.site-footer__col .nav__link { padding: 0; color: var(--ink-muted); }
.site-footer__col .nav__link:hover { color: var(--brand); }

.site-footer__empty { margin: 0; }

.link-list li { margin-bottom: 10px; }
.link-list a { color: var(--ink-muted); transition: color 0.2s; }
.link-list a:hover { color: var(--brand); }

.site-footer__bar { border-top: 1px solid var(--line); }
.site-footer__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
    font-size: 12.5px;
    color: var(--ink-muted);
}
.site-footer__copy { margin: 0; }
.site-footer__icp { margin: 0; }
.site-footer__icp a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   17. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .values { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .article__layout { grid-template-columns: 1fr; }
    .product__layout { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    :root { --section-y: 64px; }

    .nav-toggle { display: block; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 12px 24px 20px;
        border-bottom: 1px solid var(--line);
        background: var(--bg-2);
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: block; }

    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__item { border-bottom: 1px solid var(--line); }
    .nav__item:last-child { border-bottom: 0; }
    .nav__link { display: block; padding: 13px 4px; }

    .nav__expand {
        position: absolute;
        top: 6px;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: var(--radius-sm);
        color: var(--ink-soft);
    }
    .nav__expand::before {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.2s;
    }
    .nav__expand[aria-expanded="true"]::before { transform: rotate(-135deg); }

    .nav__sub {
        position: static;
        min-width: 0;
        display: none;
        padding: 0 0 8px 16px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav__item.has-children > .nav__sub.is-open { display: block; }

    .hero__slide { min-height: 460px; }
    .hero__body { padding: 68px 0 92px; }
    .hero__title { font-size: 34px; }
    .hero__body .hero__subtitle,
    .hero__body .hero__title,
    .hero__body .hero__desc { margin-left: 24px; margin-right: 24px; }

    .about { grid-template-columns: 1fr; gap: 36px; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-layout__info { padding-top: 8px; }
    .contact-layout__heading { max-width: 680px; }
    .contact-layout__details { max-width: 520px; }
    .search-form { flex-direction: column; }
    .cta__inner { padding: 36px 28px; }
}

@media (max-width: 640px) {
    .values, .grid--3, .stats { grid-template-columns: 1fr; }
    .section__title { font-size: 27px; }
    .page-hero__title { font-size: 28px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .cta__inner { flex-direction: column; align-items: flex-start; }
    .brand__text { font-size: 17px; }
    .site-header__inner { height: 66px; gap: 16px; }
    .contact-page { padding: 22px 0 72px; }
    .contact-layout { gap: 38px; }
    .contact-layout__title { font-size: 36px; }
    .contact-layout__heading { padding-bottom: 24px; }
    .contact-layout__details { margin-top: 30px; }
    .contact-layout__form { margin-inline: -8px; padding: 26px 20px; }
    .contact-layout__info .contact-info__item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
    .cms-form { grid-template-columns: 1fr; }
    .cms-form__intro-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .field__captcha-row { flex-wrap: wrap; }
    .field__captcha-row .field__control { flex-basis: 100%; }
    .cms-form__actions { align-items: stretch; flex-direction: column; }
    .cms-form__actions .btn--primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
