/* ============================================================
   WwwSEO_Net · SaaS 平台组件层
   ------------------------------------------------------------
   仅消费 main.css 的设计令牌；负责首屏、卡片、表格、表单、
   标签页、徽标、控制台与案例中心等组件的高级视觉。
   ⚠ 保留全部 JS(saas.js) 与模板所依赖的类名 / ID / data-*，
     本次为纯视觉重塑，不改变 DOM 结构契约。
   ============================================================ */

/* ── 按钮 ───────────────────────────────────────────────── */
/* 防御：.btn 等自定义 display 会盖过浏览器 UA 的 [hidden]{display:none}，
   导致 JS 设置 hidden 属性不生效（如控制台登录态切换按钮）；全局强制兼容。 */
[hidden] { display: none !important; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: transform .16s var(--ease), box-shadow .16s var(--ease),
        border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}

.btn:hover {
    border-color: var(--primary-soft);
    color: var(--primary-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--grad-brand);
    border: none;
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    color: #fff;
    filter: brightness(1.06);
    box-shadow: 0 22px 46px -18px rgba(10, 132, 255, .55);
}

.btn-mini {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 9px;
}

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ── 首屏 Hero ──────────────────────────────────────────── */
.saas-hero {
    position: relative;
    overflow: hidden;
    background: var(--grad-hero);
    color: #fff;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.saas-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-glow);
    z-index: -1;
}

.saas-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -60px;
    top: -120px;
    background: radial-gradient(circle, rgba(10, 132, 255, .45), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #c7d2fe;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.saas-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.12;
    letter-spacing: -.03em;
    font-weight: 800;
    max-width: 20ch;
    color: #fff; /* 覆盖 main.css 全局 h1 深色，避免暗底不可读 */
}

.saas-hero h1 .grad-text {
    background: linear-gradient(120deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.saas-hero p {
    margin: 0 0 28px;
    color: #cdd5ec;
    max-width: 640px;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
}

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

.saas-hero-actions .btn {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    backdrop-filter: blur(8px);
    box-shadow: none;
}
.saas-hero-actions .btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.saas-hero-actions .btn-primary {
    background: #fff;
    color: var(--primary-strong);
    border: none;
}
.saas-hero-actions .btn-primary:hover { color: var(--primary); filter: none; background: #f4f6ff; }

/* 信任指标条 */
.saas-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.saas-hero-stats .stat b {
    display: block;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(120deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.saas-hero-stats .stat span { font-size: 13px; color: #9aa6c7; }

/* ── 区块与栅格 ─────────────────────────────────────────── */
.saas-section { margin-bottom: 48px; }

.saas-section > h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 28px);
    letter-spacing: -.02em;
    position: relative;
    padding-left: 16px;
}
.saas-section > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1em;
    bottom: .1em;
    width: 5px;
    border-radius: 4px;
    background: var(--grad-brand);
}

.saas-section h3 {
    margin: 26px 0 12px;
    font-size: 17px;
    color: var(--text);
    letter-spacing: -.01em;
}

.saas-section h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .01em;
}

.saas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.saas-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.saas-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.saas-card h3 {
    margin: 12px 0 8px;
    font-size: 17px;
}

.saas-card p {
    margin: 0 0 14px;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.65;
}

.saas-card-meta {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 13.5px;
    color: var(--muted);
    display: grid;
    gap: 7px;
}
.saas-card-meta li {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.saas-card-meta li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-soft);
    flex: none;
    transform: translateY(-2px);
}

/* 指标卡（控制台概览 / 用量） */
.saas-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 18px 0 26px;
}

.saas-cards .saas-card {
    padding: 18px 20px;
    overflow: hidden;
}
.saas-cards .saas-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--grad-brand);
    opacity: .9;
}

.saas-metric {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    word-break: break-all;
    font-variant-numeric: tabular-nums;
}

/* ── 徽标与提示 ─────────────────────────────────────────── */
.saas-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary-strong);
    border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
    white-space: nowrap;
}

.saas-notice {
    background: color-mix(in srgb, var(--warning) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
    color: #9a6b1a;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) { .saas-notice { color: #fcd34d; } }

.saas-empty {
    color: var(--muted);
    font-size: 14.5px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 26px;
    text-align: center;
}

.saas-muted { color: var(--muted); font-size: 13.5px; }

/* ── 表格 ───────────────────────────────────────────────── */
.saas-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    font-size: 14px;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.saas-table th,
.saas-table td {
    border-bottom: 1px solid var(--border);
    padding: 13px 16px;
    text-align: left;
    vertical-align: top;
}

.saas-table th {
    background: var(--surface-2);
    color: var(--text-2);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.saas-table tbody tr { transition: background .14s var(--ease); }
.saas-table tbody tr:hover { background: var(--surface-2); }
.saas-table tbody tr:last-child td { border-bottom: none; }

/* ── 表单 ───────────────────────────────────────────────── */
.saas-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 14px;
    display: grid;
    gap: 16px;
    max-width: 560px;
    box-shadow: var(--shadow-sm);
}

.saas-form label {
    display: grid;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
}

.saas-form input,
.saas-form select,
.saas-form textarea {
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}

.saas-form textarea { resize: vertical; min-height: 60px; }

.saas-form input::placeholder,
.saas-form textarea::placeholder { color: var(--muted); }

.saas-form input:focus,
.saas-form select:focus,
.saas-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.saas-form button { justify-self: start; }

/* 行内排列的查询 / 申请类表单 */
.saas-form-inline {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: none;
    align-items: end;
}
/* 行内表单防重叠修正：auto-fit 轨道默认 min 为 auto，会被长选项 select / 长占位符 input
   的固有宽度撑破轨道宽向右溢出，压住相邻列控件（如「我的绑定」申请表单标识列盖住需求说明）；
   label 轨道项 min-width:0 断掉固有宽度传导，控件 width:100% 收进格子内，超长文字省略号收尾 */
.saas-form-inline label { min-width: 0; }
.saas-form-inline input,
.saas-form-inline select,
.saas-form-inline textarea { width: 100%; min-width: 0; }
.saas-form-inline select { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

.saas-inline-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 10px;
}

.saas-inline-label select {
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

/* 表单内勾选框修正：.saas-form label 的 display:grid 特异性（0,1,1）高于 .saas-inline-label
   （0,1,0），导致 <input> 在前、文本在后的勾选标签被拆成上下两行，复选框浮到文字上方；
   同时 .saas-form input 的 padding 会拉伸 checkbox。用更高特异性恢复行内布局并重置尺寸。 */
.saas-form .saas-inline-label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    justify-self: start;
}
.saas-form input[type="checkbox"],
.saas-form input[type="radio"] {
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    flex: none;
    accent-color: var(--primary);
    cursor: pointer;
}

.saas-form-msg {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
}
.saas-form-msg.is-ok { color: var(--success); }
.saas-form-msg.is-error { color: var(--danger); }

/* ── 标签页 ─────────────────────────────────────────────── */
.saas-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    margin: 10px 0 24px;
    width: fit-content;
    max-width: 100%;
}

.saas-tabs button {
    border: none;
    background: transparent;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-2);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}

.saas-tabs button:hover { color: var(--text); }

.saas-tabs button.is-active {
    color: #fff;
    background: var(--grad-brand);
    box-shadow: var(--shadow-brand);
}

/* ── 登录 / 注册 ────────────────────────────────────────── */
.saas-auth {
    max-width: 520px;
    margin: 20px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-lg);
}

.saas-auth .saas-form {
    max-width: none;
    border: none;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
    background: transparent;
}

.saas-auth-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: var(--surface-2);
    border-radius: var(--radius-pill);
    margin-bottom: 26px;
}

.saas-auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    background: transparent;
    transition: all .16s var(--ease);
}

.saas-auth-tabs a.is-active {
    background: var(--surface);
    color: var(--primary-strong);
    box-shadow: var(--shadow-sm);
}

/* ── 控制台头部与密钥明文 ───────────────────────────────── */
.saas-console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.saas-console-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
    letter-spacing: -.02em;
}

.saas-account-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.saas-key-secret {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: color-mix(in srgb, var(--success) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
}

.saas-key-secret code {
    flex: 1;
    min-width: 200px;
    background: var(--surface);
    border: 1px dashed color-mix(in srgb, var(--success) 40%, transparent);
    border-radius: 8px;
    padding: 8px 10px;
    word-break: break-all;
    color: var(--success);
    font-size: 13px;
}

/* ── 案例中心 ───────────────────────────────────────────── */
.saas-card.is-locked {
    border-style: dashed;
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.saas-card.is-locked:hover { transform: none; box-shadow: var(--shadow-sm); }
.saas-card.is-locked h3 { color: var(--text-2); }

.saas-case-cover {
    width: 100%;
    height: 168px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin: -6px 0 14px;
    background: var(--surface-3);
}

.saas-badge.is-ok {
    background: color-mix(in srgb, var(--success) 14%, transparent);
    border-color: color-mix(in srgb, var(--success) 30%, transparent);
    color: var(--success);
}

.saas-badge.is-warn {
    background: color-mix(in srgb, var(--warning) 16%, transparent);
    border-color: color-mix(in srgb, var(--warning) 32%, transparent);
    color: #b45309;
}
@media (prefers-color-scheme: dark) { .saas-badge.is-warn { color: #fbbf24; } }

.saas-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.saas-unlock-note {
    background: color-mix(in srgb, var(--success) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
    color: #15803d;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) { .saas-unlock-note { color: #6ee7b7; } }

.saas-lock {
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.saas-lock .saas-form {
    border: none;
    padding: 0;
    margin-top: 8px;
    box-shadow: none;
    background: transparent;
}

.saas-prose {
    white-space: pre-wrap;
    line-height: 1.85;
    color: var(--text-2);
    padding: 22px !important;
}

.saas-highlight-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--text-2);
    font-size: 14.5px;
}
.saas-highlight-list li {
    position: relative;
    padding-left: 30px;
}
.saas-highlight-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--success) 16%, transparent);
    color: var(--success);
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.saas-figure { padding: 12px; }
.saas-figure img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
}
.saas-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.saas-figure.is-missing img { display: none; }
.saas-figure.is-missing::before {
    content: "截图暂不可用（图片地址未生效）";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    color: var(--muted);
    font-size: 13px;
}

/* ============================================================
   案例列表卡 · CTR 增强（主图可点击 + 悬停放大 + 渐变遮罩）
   ============================================================ */
.case-card { padding-top: 14px; }
.case-card__cover {
    position: relative;
    display: block;
    height: 168px;
    margin: -6px 0 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--surface-3);
    background-image: var(--grad-hero);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    transition: background-size .35s var(--ease);
}
.case-card:hover .case-card__cover { background-size: 112%; }
.case-card__cover span { color: #fff; }
.case-card__cover-ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: rgba(255, 255, 255, .92);
}
.case-card__badge { position: absolute; z-index: 2; top: 12px; left: 12px; }
.case-card__badge--featured { top: 12px; left: auto; right: 12px; }
.case-card__hover {
    position: absolute;
    z-index: 2;
    left: 0; right: 0; bottom: 0;
    padding: 26px 14px 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    text-align: right;
    background: linear-gradient(to top, rgba(17, 24, 39, .62), transparent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.case-card:hover .case-card__hover { opacity: 1; transform: translateY(0); }
.case-card__title { color: inherit; text-decoration: none; }
.case-card__title:hover { color: var(--primary-strong); }
.case-card__cta { width: 100%; }

/* ============================================================
   案例详情 · 转化层（电商式主图 + 购买面板 + 种草清单 + 交叉导流）
   ------------------------------------------------------------
   目标：让访客在首屏即「看懂价值 → 建立信任 → 明确下一步」，
   提升详情页点击率与授权转化率。仅消费既有设计令牌。
   ============================================================ */

/* 大按钮 */
.btn-lg {
    padding: 13px 26px;
    font-size: 16px;
    border-radius: var(--radius-sm);
}

/* 详情页通用区块节奏与标题 */
.case-hero, .case-benefits, .case-facts, .case-solution,
.case-gallery, .case-deliverables, .case-related {
    margin-bottom: 40px;
}
.case-benefits h2, .case-related h2 {
    margin: 0 0 18px;
    font-size: clamp(21px, 2.6vw, 26px);
    letter-spacing: -.02em;
    position: relative;
    padding-left: 16px;
}
.case-benefits h2::before, .case-related h2::before {
    content: "";
    position: absolute;
    left: 0; top: .1em; bottom: .1em;
    width: 5px; border-radius: 4px;
    background: var(--grad-brand);
}
.case-solution h3, .case-gallery h3, .case-deliverables h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

/* ── 首屏：主图 + 面板双栏 ───────────────────────────── */
.case-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: clamp(20px, 3vw, 30px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.case-hero__media { min-width: 0; }

.case-hero__shot {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--grad-hero);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}
.case-hero__shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
/* 主图缺失时的品牌化占位（电商主图兜底，绝不空白） */
.case-hero__ph {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
    color: #fff;
}
.case-hero__shot.has-cover .case-hero__ph { visibility: hidden; }
.case-hero__ph-badge {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
}
.case-hero__ph-title {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -.02em;
    max-width: 18ch;
}
.case-hero__flag {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: #7c4a03;
    background: linear-gradient(120deg, #fde68a, #fbbf24);
    box-shadow: var(--shadow-sm);
}

.case-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.case-chip {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

/* ── 转化面板 ─────────────────────────────────────────── */
.case-crumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}
.case-crumb a:hover { color: var(--primary-strong); }

.case-hero__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.16;
    letter-spacing: -.03em;
    font-weight: 800;
}
.case-hero__lead {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-2);
}

.case-trust {
    list-style: none;
    margin: 0 0 22px;
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.case-trust li { display: flex; flex-direction: column; gap: 3px; }
.case-trust b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.case-trust span { font-size: 12.5px; color: var(--muted); }

.case-buy {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: grid;
    gap: 12px;
    justify-items: start;
}
.case-buy__status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.case-buy .btn-lg { width: 100%; }
.case-buy__tip { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ── 你将获得：亮点卡片 ───────────────────────────────── */
.case-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.case-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.case-feature:hover {
    transform: translateY(-3px);
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-md);
}
.case-feature__ico {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: var(--grad-brand);
    box-shadow: var(--shadow-brand);
}
.case-feature h3 {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text);
}

/* ── 锁定态交付清单（种草）──────────────────────────── */
.saas-lock__title {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--text);
}
.saas-checklist {
    list-style: none;
    margin: 12px 0 18px;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-2);
}
.saas-checklist li {
    position: relative;
    padding-left: 30px;
}
.saas-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0; top: -1px;
    width: 20px; height: 20px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--success) 16%, transparent);
    color: var(--success);
    font-size: 12px; font-weight: 800;
    display: grid; place-items: center;
}

/* ── 交付物动作条 ─────────────────────────────────────── */
.case-dl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* ── 相关案例推荐（交叉导流）────────────────────────── */
.case-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.case-related__card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.case-related__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft);
}
.case-related__thumb {
    position: relative;
    height: 140px;
    background: var(--grad-hero);
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
}
.case-related__thumb span {
    font-size: 30px;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
    letter-spacing: -.02em;
}
.case-related__thumb:not(.has) { color: #fff; }
.case-related__flag {
    position: absolute;
    top: 10px; left: 10px;
    font-style: normal;
    font-size: 11px; font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    color: #7c4a03;
    background: linear-gradient(120deg, #fde68a, #fbbf24);
}
.case-related__card h3 {
    margin: 14px 16px 6px;
    font-size: 16px;
}
.case-related__card p {
    margin: 0 16px 12px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-related__cta {
    display: block;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-strong);
    border-top: 1px solid var(--border);
}

/* ── 移动端 ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .case-hero { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 600px) {
    .case-trust { gap: 18px; }
    .case-buy .btn-lg { width: 100%; }

    .saas-auth { padding: 24px 20px; }

    .saas-tabs { width: 100%; border-radius: var(--radius); }
    .saas-tabs button { flex: 1; padding: 10px 8px; }

    /* 表格列数较多，改为横向滚动而不是压缩换行 */
    .saas-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .saas-table td,
    .saas-table th { white-space: normal; min-width: 92px; }

    .saas-console-head { flex-direction: column; align-items: flex-start; }
    .saas-form { padding: 18px; }
}

/* ============================================================
   控制台 · 专业 Dashboard 重排（侧栏导航 + 内容面板 + 多列表单）
   ------------------------------------------------------------
   仅新增布局层，复用既有设计令牌；严格保留 .saas-tabs / .saas-tab
   / 各内部 ID 的 JS 契约，不改变行为，只重排视觉。
   ============================================================ */
.console-shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.console-side { position: sticky; top: calc(var(--header-h) + 18px); }

.console-side-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 6px 10px;
}

/* 侧栏内：标签导航由横向胶囊改为竖向列表 */
.console-side .saas-tabs {
    flex-direction: column;
    align-items: stretch;
    width: auto;
    gap: 4px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.console-side .saas-tabs button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
}
.console-side .saas-tabs button:hover { background: var(--surface-2); color: var(--text); }
.console-side .saas-tabs button.is-active {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

/* 内容面板卡片化，形成清晰分组 */
.console-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 2.6vw, 30px);
    box-shadow: var(--shadow-sm);
}
.console-panel > h3:first-child {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 19px;
}
.console-panel .saas-cards { margin-top: 0; }
.console-main > .saas-cards { margin-bottom: 22px; }

/* 长表单双列排布：含 textarea 的标签、提示、按钮自动跨列 */
.form-cols-2 {
    max-width: 900px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-cols-2 label:has(textarea) { grid-column: 1 / -1; }
.form-cols-2 .saas-form-msg { grid-column: 1 / -1; }
.form-cols-2 button { grid-column: 1 / -1; justify-self: start; }

/* 头部账户区更精致 */
.saas-console-head {
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.saas-account-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 6px 8px 6px 16px;
}

/* 响应式：窄屏折叠为顶部横向可滑动标签条 */
@media (max-width: 900px) {
    .console-shell { grid-template-columns: 1fr; gap: 16px; }
    .console-side { position: static; }
    .console-side-title { display: none; }
    .console-side .saas-tabs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-pill);
        background: var(--surface-2);
        border-color: transparent;
        padding: 6px;
    }
    .console-side .saas-tabs button {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 9px 16px;
        border-radius: var(--radius-pill);
    }
    .form-cols-2 { grid-template-columns: 1fr; }
}

/* ── 表格横向滚动包裹层（列多时按自然宽度排、超宽滚动而非竖排换行） ── */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 14px;
}
.table-scroll > .saas-table { margin-top: 0; min-width: 100%; }

/* 操作列按钮保持一行、间距统一；徽标列不竖排 */
.table-scroll td:has(.btn-mini) { white-space: nowrap; }
.table-scroll td .btn-mini + .btn-mini { margin-left: 6px; }

/* ── SEO 页面内容分析结果（控制台在线试用）────────────────── */
.seo-content-field { grid-column: 1 / -1; }
.seo-result {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    box-shadow: var(--shadow-xs);
}
.seo-result h4 { margin: 22px 0 10px; font-size: 15px; color: var(--text); }
.seo-result h4:first-of-type { margin-top: 18px; }

.seo-score {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 4px 0 16px;
    border-bottom: 1px solid var(--border);
}
.seo-score-num {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    background: var(--muted);
    box-shadow: var(--shadow-sm);
}
.seo-score[data-grade="A"] .seo-score-num { background: linear-gradient(135deg, #10b981, #059669); }
.seo-score[data-grade="B"] .seo-score-num { background: linear-gradient(135deg, #22c55e, #16a34a); }
.seo-score[data-grade="C"] .seo-score-num { background: linear-gradient(135deg, #f59e0b, #d97706); }
.seo-score[data-grade="D"] .seo-score-num { background: linear-gradient(135deg, #f97316, #ea580c); }
.seo-score[data-grade="E"] .seo-score-num { background: linear-gradient(135deg, #ef4444, #dc2626); }
.seo-score-meta { display: flex; flex-direction: column; gap: 4px; }
.seo-score-grade { font-size: 16px; font-weight: 700; color: var(--text); }
.seo-score-summary { font-size: 13.5px; color: var(--text-2); }

.seo-density, .seo-stats { margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); }
.seo-stats { color: var(--muted); }

.seo-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.seo-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}
.seo-check-tag {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--muted);
    white-space: nowrap;
}
.seo-check-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seo-check-body strong { font-size: 14px; color: var(--text); }
.seo-check-detail { font-size: 12.5px; color: var(--text-2); }
.seo-pts { flex: 0 0 auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seo-check.is-good .seo-check-tag { background: var(--success); }
.seo-check.is-warn .seo-check-tag { background: var(--warning); }
.seo-check.is-bad .seo-check-tag { background: var(--danger); }
.seo-check.is-info .seo-check-tag { background: var(--surface-3); color: var(--text-2); }

.seo-kw-table td { font-variant-numeric: tabular-nums; }
.seo-recs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.seo-recs li { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

/* ── 控制台说明文案折叠条（saas-help）：双站同规范，配套 initHelpFolds() 记忆展开态 ── */
.saas-help { margin: 10px 0 0; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(0, 0, 0, .015); }
.saas-help > summary { cursor: pointer; padding: 9px 12px; font-size: 13px; color: var(--text-2); list-style: none; user-select: none; }
.saas-help > summary::-webkit-details-marker { display: none; }
.saas-help > summary::before { content: "\25B8"; display: inline-block; margin-right: 6px; transition: transform .15s; }
.saas-help[open] > summary::before { transform: rotate(90deg); }
.saas-help--sec > summary { font-weight: 600; color: var(--text-2); }
.saas-help-body { padding: 0 14px 12px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.saas-help-body ol, .saas-help-body ul { margin: 6px 0 0; padding-left: 20px; }
.saas-help-body li { margin: 3px 0; }
