/* ==========================================================================
   SHUOXU-API 前台设计系统  (assets/css/front.css)
   设计原则：
     1. 克制的企业级视觉：细边框、小圆角、几乎不用阴影、零渐变
     2. 单一主色 + 中性灰阶，颜色只用于传达状态与层级，不做装饰
     3. 系统字体栈，不依赖外部字体 CDN（首屏更快、断网不崩）
     4. 移动优先断点：1024 / 768 / 560
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
    --bg:          #f4f5f7;
    --surface:     #ffffff;
    --surface-2:   #fafbfc;

    --ink:         #0e1420;   /* 标题 / 主文字 */
    --ink-2:       #4a5361;   /* 正文 */
    --ink-3:       #7d8794;   /* 辅助说明 */
    --ink-4:       #a8b0bb;   /* 占位 / 极弱 */

    --line:        #e2e5ea;   /* 常规边框 */
    --line-2:      #eef0f3;   /* 极细分隔线 */

    --brand:       #1449c4;   /* 主色：深蓝 */
    --brand-hover: #10399c;
    --brand-soft:  #eef2fd;   /* 主色浅底 */
    --brand-line:  #c7d5f7;

    --ok:          #06693f;
    --ok-soft:     #eaf7f0;
    --warn:        #9a5b00;
    --warn-soft:   #fdf4e3;
    --danger:      #a92216;
    --danger-soft: #fdeeec;
    --info-soft:   #eef2fd;

    --radius:      6px;
    --radius-lg:   8px;
    --shadow-1:    0 1px 2px rgba(14, 20, 32, .05);
    --shadow-2:    0 4px 12px -2px rgba(14, 20, 32, .10);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
            "Liberation Mono", monospace;

    --nav-h: 60px;
    --wrap: 1240px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.3; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a  { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

code, kbd, pre, .mono { font-family: var(--mono); font-size: .92em; }

.num { font-variant-numeric: tabular-nums; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---------- 布局容器 ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.main { flex: 1 0 auto; }

.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-hairline { border-top: 1px solid var(--line-2); }

.section-head { margin-bottom: 28px; }
.section-head h2 {
    font-size: 22px;
    letter-spacing: -.2px;
}
.section-head .sub {
    margin-top: 6px;
    color: var(--ink-3);
    font-size: 13px;
}
.section-head.center { text-align: center; }

/* 页面标题条（列表页通用） */
.page-head {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}
.page-head h1 {
    font-size: 22px;
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-head .desc { margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-3);
    margin-bottom: 8px;
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--ink-4); }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.nav {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    color: var(--ink);
    font-weight: 650;
    font-size: 16px;
    letter-spacing: -.2px;
}
.brand:hover { color: var(--ink); }
.brand img { height: 26px; width: auto; object-fit: contain; }
.brand .mark {
    width: 26px; height: 26px;
    border-radius: 5px;
    background: var(--brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.nav-links a {
    display: block;
    padding: 7px 11px;
    border-radius: var(--radius);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 500;
    transition: background .13s, color .13s;
    white-space: nowrap;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a.is-active { color: var(--brand); background: var(--brand-soft); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-2);
    padding-right: 10px;
    border-right: 1px solid var(--line);
}

.nav-toggle {
    display: none;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
.nav-toggle:hover { background: var(--surface-2); }

/* 移动端抽屉 */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 8px 0 14px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 24px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--line-2);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a.is-active { color: var(--brand); background: var(--brand-soft); }
.mobile-nav .m-group {
    padding: 12px 24px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-nav .m-user {
    padding: 6px 24px 10px;
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 550;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background .13s, border-color .13s, color .13s;
}
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }

.btn-outline {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink-4); background: var(--surface-2); color: var(--ink); }

.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c12; color: #fff; }

/* ==========================================================================
   表单控件
   ========================================================================== */
.field {
    height: 36px;
    width: 100%;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    transition: border-color .13s, box-shadow .13s;
}
.field::placeholder { color: var(--ink-4); }
.field:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(20, 73, 196, .10);
}
textarea.field { height: auto; padding: 9px 11px; line-height: 1.6; resize: vertical; }
select.field {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d8794' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.field-search { position: relative; flex: 1; min-width: 180px; }
.field-search i {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: var(--ink-4);
    font-size: 12px;
    pointer-events: none;
}
.field-search .field { padding-left: 31px; }

.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--ink);
    margin-bottom: 6px;
}
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }

/* ==========================================================================
   卡片 / 面板
   ========================================================================== */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.panel-head {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.panel-head h3 {
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-head h3 i { color: var(--ink-3); font-size: 12px; }
.panel-body { padding: 16px; }
.panel-foot {
    padding: 12px 16px;
    border-top: 1px solid var(--line-2);
    background: var(--surface-2);
}

/* 通用卡片 */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: border-color .13s, box-shadow .13s;
}
.card-hover:hover {
    border-color: var(--brand-line);
    box-shadow: var(--shadow-1);
}

.card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.card-desc {
    margin-top: 7px;
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.65;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-3);
}
.card-sep { border-top: 1px solid var(--line-2); margin: 12px 0 0; padding-top: 11px; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 图标方块（统一代替彩色圆底） */
.ic {
    width: 34px; height: 34px;
    flex: 0 0 34px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.ic-sm { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
.ic-lg { width: 42px; height: 42px; flex-basis: 42px; font-size: 17px; }

/* ==========================================================================
   徽标 / 状态
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 21px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 550;
    line-height: 1;
    background: var(--surface-2);
    color: var(--ink-2);
    border: 1px solid var(--line);
    white-space: nowrap;
}
.badge-brand  { background: var(--brand-soft);  color: var(--brand);  border-color: var(--brand-line); }
.badge-ok     { background: var(--ok-soft);     color: var(--ok);     border-color: #cbe9da; }
.badge-warn   { background: var(--warn-soft);   color: var(--warn);   border-color: #f2e0bf; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #f6d5d1; }
.badge-plain  { background: transparent; border-color: var(--line); color: var(--ink-3); }

.price {
    font-weight: 650;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.price .unit { font-weight: 400; color: var(--ink-3); font-size: .85em; }

/* ==========================================================================
   网格
   ========================================================================== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* 空状态 */
.empty {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px 24px;
    text-align: center;
    color: var(--ink-3);
}
.empty i { font-size: 30px; color: var(--ink-4); display: block; margin-bottom: 12px; }
.empty p { font-size: 13.5px; }
.empty .empty-hint { font-size: 12.5px; color: var(--ink-4); margin-top: 5px; }

/* ==========================================================================
   首页 Hero
   ========================================================================== */
.hero {
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 66px 0 62px;
}
.hero h1 {
    font-size: 40px;
    line-height: 1.18;
    letter-spacing: -1px;
}
.hero .lead {
    margin-top: 16px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--ink-2);
    max-width: 52ch;
}
.hero-actions {
    margin-top: 26px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-points {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line-2);
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
.hero-points .pt {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--ink-2);
}
.hero-points .pt i { color: var(--ok); font-size: 11px; }

/* 代码示例卡 */
.code-card {
    background: #0e1420;
    border: 1px solid #1e2836;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2);
}
.code-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #1e2836;
    background: #131b28;
}
.code-bar .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #2c3849;
}
.code-bar .label {
    margin-left: 6px;
    font-size: 12px;
    color: #7f8da0;
    font-family: var(--mono);
}
.code-card pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.85;
    color: #c8d3e0;
}
.code-card .k { color: #7fb4ff; }
.code-card .s { color: #8fd6a8; }
.code-card .c { color: #64748b; }

/* ==========================================================================
   指标条
   ========================================================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}
.stats .stat {
    padding: 20px 22px;
    border-right: 1px solid var(--line-2);
}
.stats .stat:last-child { border-right: none; }
.stats .label {
    font-size: 12.5px;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 7px;
}
.stats .value {
    margin-top: 7px;
    font-size: 26px;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}
.stats .foot { margin-top: 3px; font-size: 12px; color: var(--ink-4); }

/* ==========================================================================
   特性网格
   ========================================================================== */
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
}
.feature h3 {
    margin-top: 14px;
    font-size: 15px;
}
.feature p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.7;
}

/* ==========================================================================
   市场页（接口 / 模型）布局
   ========================================================================== */
.market {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* 侧栏分类 */
.side { position: sticky; top: calc(var(--nav-h) + 20px); }
.side-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.side-title {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--ink-3);
}
.side-list { padding: 6px; }
.side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    font-size: 13.5px;
    color: var(--ink-2);
    border-left: 2px solid transparent;
    transition: background .13s, color .13s, border-color .13s;
}
.side-item:hover { background: var(--surface-2); color: var(--ink); }
.side-item.is-active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 550;
    border-left-color: var(--brand);
}
.side-item .n {
    font-size: 12px;
    color: var(--ink-4);
    font-variant-numeric: tabular-nums;
}
.side-item.is-active .n { color: var(--brand); }
.side-item .txt {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.side-item .txt i { font-size: 11px; color: var(--ink-4); width: 12px; text-align: center; }
.side-item.is-active .txt i { color: var(--brand); }

/* 顶部工具栏 */
.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 16px;
}
.toolbar .field { height: 34px; }
.toolbar select.field { width: auto; min-width: 118px; }

.result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink-3);
    margin-bottom: 14px;
}
.result-bar strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 列表页卡片网格 */
.api-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* 移动端分类横滑条 */
.chip-row {
    display: none;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 24px 14px;
    margin: 0 -24px;
    scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    color: var(--ink-2);
    white-space: nowrap;
}
.chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 550;
}
.chip .n { font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   分页
   ========================================================================== */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.pager a, .pager span {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 13px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--ink-4); color: var(--ink); }
.pager .is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}
.pager .gap { border: none; background: none; color: var(--ink-4); }
.pager-summary {
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-4);
    margin-top: 12px;
}

/* ==========================================================================
   价格方案
   ========================================================================== */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.price-card.is-featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}
.price-card .tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.price-card .tier h3 { font-size: 15px; }
.price-card .amount {
    margin-top: 16px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.price-card .amount .n {
    font-size: 32px;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -.8px;
    font-variant-numeric: tabular-nums;
}
.price-card .amount .p { font-size: 13px; color: var(--ink-3); }
.price-card .cycle {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-4);
    line-height: 1.7;
}
.price-card .perks {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line-2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.price-card .perks li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--ink-2);
}
.price-card .perks i { color: var(--ok); font-size: 11px; margin-top: 5px; }
.price-card .perks .off { color: var(--ink-4); }
.price-card .perks .off i { color: var(--ink-4); }
.price-card .cta { margin-top: 22px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
    margin-top: auto;          /* 内容不足一屏时页脚贴底；上方 .section 已提供间距 */
    background: #0e1420;
    color: #93a0b2;
    font-size: 13px;
}
.site-footer .cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0 34px;
}
.site-footer h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}
.site-footer .about {
    color: #93a0b2;
    line-height: 1.75;
    max-width: 34ch;
}
.site-footer .f-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}
.site-footer .f-brand .mark {
    width: 24px; height: 24px;
    border-radius: 5px;
    background: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
}
.site-footer .f-brand img { height: 24px; width: auto; }
.site-footer ul { display: flex; flex-direction: column; gap: 9px; }
.site-footer ul a { color: #93a0b2; }
.site-footer ul a:hover { color: #fff; }
.site-footer .contact li { display: flex; gap: 8px; align-items: flex-start; }
.site-footer .contact i { margin-top: 4px; color: #5c6a7d; font-size: 12px; }
.site-footer .bottom {
    border-top: 1px solid #1c2534;
    padding: 20px 0;
    font-size: 12.5px;
    color: #7b8798;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.site-footer .bottom a { color: #7b8798; }
.site-footer .bottom a:hover { color: #fff; }

/* ==========================================================================
   公告条
   占满内容区宽度，与导航 / Hero / 卡片等板块左右边缘对齐。
   文字静态展示，过长时以省略号收尾（不做横向滚动）
   ========================================================================== */
/* 白底：与上方导航、下方 Hero 连成一片，避免中间出现灰色横带 */
.notice-bar { padding: 12px 0; background: var(--surface); }

.notice {
    display: flex;
    align-items: center;
    gap: 9px;
    /* 占满内容区：与导航、Hero、卡片等板块左右边缘对齐 */
    width: 100%;
    padding: 7px 13px 7px 9px;
    font-size: 13px;
    line-height: 1.6;
    border-radius: var(--radius);
    /* 用 inset 阴影代替边框：浅色底上呈现细描边，深色底上自动隐去，不会出现突兀线条 */
    box-shadow: inset 0 0 0 1px rgba(14, 20, 32, .06);
    overflow: hidden;
}

/* 图标做成小方块，弱底衬托，与文字区分开 */
.notice-ic {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(14, 20, 32, .055);
    font-size: 11px;
}

.notice-view { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.notice-track {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}
/* 文字超长时以省略号收尾，不做横向滚动 */
.notice-track > span {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================================================================
   工具类
   ========================================================================== */
.mt-0 { margin-top: 0; }   .mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.flex-1 { flex: 1; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.muted-2 { color: var(--ink-4); }
.ink { color: var(--ink); }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; }
.fs-15 { font-size: 15px; } .fs-18 { font-size: 18px; }
.fw-600 { font-weight: 600; }
.hr { height: 1px; background: var(--line-2); border: none; margin: 20px 0; }
.mr-1 { margin-right: 4px; }
.ml-1 { margin-left: 4px; }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.text-brand { color: var(--brand); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
    .model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .api-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .nav-toggle { display: inline-flex; }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px 0 46px;
    }
    .hero h1 { font-size: 32px; }
    .hero .lead { font-size: 14.5px; }

    .market { grid-template-columns: 1fr; gap: 0; }
    .side { display: none; }
    .chip-row { display: flex; }

    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats .stat:nth-child(2) { border-right: none; }
    .stats .stat:nth-child(1),
    .stats .stat:nth-child(2) { border-bottom: 1px solid var(--line-2); }

    .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 26px; padding: 34px 0 26px; }
}

@media (max-width: 768px) {
    .wrap { padding: 0 16px; }
    .section { padding: 40px 0; }
    .section-head { margin-bottom: 22px; }
    .section-head h2 { font-size: 19px; }

    .page-head { padding: 18px 0; }
    .page-head h1 { font-size: 19px; }

    .hero h1 { font-size: 27px; letter-spacing: -.6px; }
    .hero-points { gap: 14px; }
    .hero-actions .btn { flex: 1 1 auto; }

    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .api-grid { grid-template-columns: 1fr; }
    .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price-grid { grid-template-columns: 1fr; }
    .price-card.is-featured { order: -1; }

    .stats .stat { padding: 16px; }
    .stats .value { font-size: 22px; }

    .toolbar { padding: 10px; }
    .toolbar .field-search { flex-basis: 100%; }
    .toolbar select.field { flex: 1 1 auto; min-width: 0; }
    .toolbar .btn { flex: 1 1 auto; }

    .chip-row { padding: 2px 16px 12px; margin: 0 -16px; }

    .notice-bar { padding: 10px 0; }
    .notice { padding: 6px 11px 6px 8px; font-size: 12.5px; gap: 8px; }

    .code-card pre { font-size: 11.5px; }
    .site-footer .cols { grid-template-columns: 1fr; gap: 22px; }
    .site-footer .bottom { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .hide-xs { display: none; }
    .model-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stats .stat { border-right: none; border-bottom: 1px solid var(--line-2); }
    .stats .stat:last-child { border-bottom: none; }
    .pager a, .pager span { min-width: 30px; height: 30px; font-size: 12.5px; }
}

/* 打印：去掉导航与装饰 */
@media print {
    .site-header, .site-footer, .notice-bar, .pager { display: none; }
    body { background: #fff; }
}
