/* ==========================================================================
   Lawyer Agentor — 官网落地页样式
   纯 CSS，无外部依赖；响应式断点：<768 单列 / 768–1199 两列 / ≥1200 三至四列
   ========================================================================== */

/* ---- 设计变量 ---- */
:root {
  --bg-1: #F0F0F5;
  --bg-2: #E8E8EF;
  --ink: #1C2539;                          /* 主文字 / 主色：深蓝墨 */
  --ink-soft: #2A3450;
  --gold: #C2A990;                         /* 品牌金（天平铜金色） */
  --gold-deep: #8A7159;                    /* 品牌金的深色，用于小号金色文字 */
  --body: #4A4A55;                         /* 正文灰 */
  --muted: #7A7A85;                        /* 次要说明灰 */
  --card: #FFFFFF;                         /* 卡片底 */
  --line: rgba(28, 37, 57, .08);           /* 分隔线 */
  --shadow: 0 1px 3px rgba(28, 37, 57, .06);
  --shadow-lg: 0 16px 40px rgba(28, 37, 57, .08);
  --radius: 16px;
  --font: Inter, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --maxw: 1180px;
}

/* ---- 基础重置 ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  color: var(--body);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

section[id] {
  scroll-margin-top: 84px;
}

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

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 37, 57, .28);
}

.btn-ghost:hover {
  background: rgba(28, 37, 57, .05);
  border-color: rgba(28, 37, 57, .42);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* ---- 顶栏 ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 251, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex: none;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--ink);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 26px;
}

.header-nav > a {
  color: var(--body);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s ease;
}

.header-nav > a:hover {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  min-height: min(86vh, 700px);
  background-color: var(--bg-1);
  background-image: url("../assets/lawyer-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 62% at 50% 50%,
              rgba(255, 255, 255, .92) 0%,
              rgba(255, 255, 255, .45) 58%,
              rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.hero-eyebrow {
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--ink);
}

.hero-subtitle {
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  margin-top: 14px;
}

.hero-note {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
}

.hero-slogan {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* ---- 一句话定位条 ---- */
.positioning {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

.positioning-text {
  margin: 0;
  text-align: center;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.positioning-text strong {
  color: var(--gold-deep);
  font-weight: 700;
}

/* ---- 通用分节 ---- */
.section {
  padding: 92px 0;
}

.section-tint {
  background: #fff;
  border-block: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.section-lede {
  max-width: 660px;
  margin: 0 0 42px;
  color: var(--body);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
}

/* ---- 栅格 ---- */
.grid {
  display: grid;
  gap: 20px;
}

/* ---- 卡片 ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(194, 169, 144, .14);
  color: var(--gold-deep);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-num {
  display: inline-block;
  margin-bottom: 14px;
  padding: 2px 8px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.card-mini {
  padding: 24px;
}

.card-mini h3 {
  font-size: 16px;
}

/* ---- 法律专业能力（7 项） ---- */
.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.capability-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.capability-item h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
}

.capability-item p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- 工作流程（4 步） ---- */
.steps {
  list-style: none;
  display: grid;
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- 差异化亮点（4 个） ---- */
.diff-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.diff-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(194, 169, 144, .15));
}

.diff-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 19px;
}

.diff-card p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- 数据条 ---- */
.stats-section {
  background: var(--ink);
  border-block: 1px solid var(--line);
}

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

.stat {
  text-align: center;
}

.stat:last-child {
  grid-column: span 2;
}

.stat-value {
  display: block;
  color: var(--gold);
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
}

.stat-value-long {
  font-size: clamp(18px, 2vw, 24px);
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  letter-spacing: .02em;
}

/* ---- 适用人群 ---- */
.audience-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.audience-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.audience-card .pain {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

.audience-card .fit {
  margin: 14px 0 0;
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6;
}

.fit-label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(194, 169, 144, .16);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
}

/* ---- 信任与边界 ---- */
.trust-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

.trust-list li::before {
  content: "✓";
  flex: none;
  color: var(--gold-deep);
  font-weight: 700;
}

/* ---- 软件功能界面介绍 ---- */
.ui-grid {
  align-items: start;
}

.ui-figure {
  margin: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ui-window {
  background: #F6F6FA;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.ui-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #ECECF1;
  border-bottom: 1px solid var(--line);
}

.ui-dots {
  display: flex;
  flex: none;
  gap: 5px;
}

.ui-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D2D2DA;
}

.ui-bar-title {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

.ui-body {
  padding: 14px;
}

.ui-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.ui-doc,
.ui-risk {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ui-doc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-doc-line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #E8E8EE;
}

.ui-doc-line.hl {
  background: rgba(194, 169, 144, .5);
}

.w-30 { width: 30%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

.ui-risk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ui-panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}

.ui-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.ui-tag--red { background: #FBECEA; color: #B23A33; }
.ui-tag--orange { background: #FCF0E3; color: #C0781C; }
.ui-tag--yellow { background: #FBF4DA; color: #A0831C; }
.ui-tag--blue { background: #EAF0FB; color: #4567C8; }

.ui-edit-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.ui-del {
  color: #B23A33;
  text-decoration: line-through;
}

.ui-ins {
  color: #2E8B57;
}

.ui-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ui-comment {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}

.ui-comment-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gold-deep);
}

.ui-folder-row {
  margin-bottom: 12px;
}

.ui-folder {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--body);
}

.ui-folder svg {
  width: 15px;
  height: 15px;
  color: var(--gold-deep);
}

.ui-progress-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.ui-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ui-progress-label {
  flex: none;
  width: 88px;
  font-size: 11px;
  color: var(--muted);
}

.ui-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #ECECF1;
  overflow: hidden;
}

.ui-progress-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--gold);
}

.ui-sheet-tabs {
  display: flex;
  gap: 6px;
}

.ui-sheet {
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  background: #ECECF1;
}

.ui-sheet.is-active {
  color: #fff;
  background: var(--ink);
}

.ui-layer {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ui-layer + .ui-layer {
  margin-top: 9px;
}

.ui-layer-name {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold-deep);
}

.ui-layer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ui-chip {
  padding: 3px 9px;
  font-size: 11px;
  color: var(--body);
  background: #F1F1F5;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.ui-figure figcaption {
  margin-top: 14px;
}

.ui-caption {
  margin: 0 0 6px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}

.ui-quote {
  margin: 0;
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 600;
}

.section-note {
  margin: 26px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---- 产品方案 ---- */
.plans-grid {
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.plan-card--featured {
  border-color: rgba(194, 169, 144, .5);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.plan-name {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.plan-tagline {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.plan-price {
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 26px;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

.plan-features li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

/* ---- 下载与资源 ---- */
.resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(194, 169, 144, .14);
  color: var(--gold-deep);
}

.resource-icon svg {
  width: 24px;
  height: 24px;
}

.resource-card h3 {
  margin: 0 0 8px;
}

.resource-desc {
  flex: 1;
  margin: 0 0 18px;
}

.btn-disabled {
  background: #ECECF1;
  color: var(--muted);
  border-color: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

.section-note a {
  color: var(--gold-deep);
  font-weight: 600;
}

/* ---- CTA ---- */
.cta {
  padding: 96px 0;
}

.cta-inner {
  max-width: 780px;
  margin-inline: auto;
  padding: 58px 40px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.cta-inner h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.cta-inner p {
  margin: 0 0 32px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---- Footer ---- */
.footer {
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  text-align: center;
}

.footer .brand {
  justify-content: center;
  margin-bottom: 16px;
}

.footer-copy {
  margin: 0 0 6px;
  color: var(--body);
  font-size: 14px;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---- 简化页内 Hero（内页顶部） ---- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  text-align: center;
  background-color: var(--bg-1);
  background-image: url("../assets/lawyer-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .78);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.page-hero-title {
  color: var(--ink);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.page-hero-sub {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--body);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
}

/* ---- 导航当前页高亮 ---- */
.header-nav > a:not(.btn).active {
  color: var(--ink);
  font-weight: 600;
}

.header-nav > a.btn.active {
  box-shadow: 0 0 0 2px rgba(194, 169, 144, .45);
}

/* ---- 页脚快捷链接 ---- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 0 0 16px;
}

.footer-nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* ---- 预约演示表单 ---- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 18px;
}

.field {
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(28, 37, 57, .18);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 169, 144, .18);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  margin-top: 6px;
}

.contact-meta {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 22px 24px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-meta h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.contact-meta-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

/* ---- 技能市场 ---- */
.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.market-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 10px;
  background: transparent;
  color: var(--body);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}

.market-tab:hover {
  color: var(--ink);
}

.market-tab.active,
.market-tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.market-panel[hidden] {
  display: none;
}

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.market-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 440px;
}

.market-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.market-search-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid rgba(28, 37, 57, .18);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.market-search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 169, 144, .18);
}

.market-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.market-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.market-chip:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.market-chip.active,
.market-chip[aria-pressed="true"] {
  background: rgba(194, 169, 144, .16);
  border-color: var(--gold);
  color: var(--gold-deep);
}

.market-grid {
  align-items: stretch;
}

.market-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.market-card[hidden] {
  display: none;
}

.market-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.market-card p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.market-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(28, 37, 57, .05);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
}

.market-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.market-status--ok {
  background: rgba(194, 169, 144, .16);
  color: var(--gold-deep);
}

.market-status--beta {
  background: rgba(28, 37, 57, .06);
  color: var(--ink);
}

.market-status--roadmap {
  border: 1px dashed rgba(28, 37, 57, .28);
  color: var(--muted);
}

.market-empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.market-empty[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .market-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   响应式断点
   ========================================================================== */

/* 平板：768–1199px，两列 */
@media (min-width: 768px) {
  .container {
    padding-inline: 32px;
  }

  .header-nav {
    display: flex;
    gap: 15px;
  }

  .header-nav > a:not(.btn) {
    font-size: 14px;
  }

  .header-cta {
    display: none;
  }

  .cards-4,
  .cards-8,
  .items-6,
  .steps,
  .diff-2,
  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stat:last-child {
    grid-column: auto;
  }
}

/* 桌面：≥1200px，三至四列 */
@media (min-width: 1200px) {
  .header-nav {
    gap: 26px;
  }

  .header-nav > a:not(.btn) {
    font-size: 15px;
  }

  .cards-4,
  .cards-8,
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .items-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .ui-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ============================================================
   移动端顶部导航修复（< 768px）
   原状：.header-nav 在窄屏被整段 display:none，且没有汉堡菜单按钮，
   导致手机上无法进入任何子页。现改为：品牌 + CTA 一行，
   导航另起一行铺满宽度并支持横向滚动（纯 CSS，无 JS）。
   ============================================================ */
@media (max-width: 767.98px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0;
    min-height: 0;
    padding-top: 10px;
  }
  .brand { order: 1; }
  .header-cta { order: 2; display: inline-flex; }
  .header-nav {
    order: 3;
    display: flex;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 10px;
    padding: 10px 0 12px;
    border-top: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav > a:not(.btn) { flex: none; font-size: 14px; }
  /* 移动端导航里不再重复放按钮：右上角 .header-cta 已提供「预约演示」 */
  .header-nav > a.btn { display: none; }
}

/* ---- 子页长条里的品牌天平标（与顶栏同款，金色居中） ---- */
.page-hero-mark {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  color: var(--gold);
}
@media (max-width: 767.98px) {
  .page-hero-mark { width: 38px; height: 38px; margin-bottom: 10px; }
}

/* ============================================================
   智能体页 · 系统架构图
   ============================================================ */
.arch-figure {
  margin: 0 auto;
  max-width: 1060px;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(28, 37, 57, .08);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(28, 37, 57, .06);
}

.arch-figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767.98px) {
  .arch-figure {
    padding: 8px;
    border-radius: 14px;
    overflow-x: auto;
  }

  .arch-figure img {
    min-width: 880px;
  }
}

/* ---- 数据条（深色底）上的说明文字可见性 ---- */
.stats-section .section-note {
  color: rgba(255, 255, 255, .62);
}

/* ---- 页脚备案号 ---- */
.footer-icp {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.footer-icp a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 37, 57, .16);
  transition: color .18s ease, border-color .18s ease;
}

.footer-icp a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- 下载页：两列资源卡 + 安装步骤 ---------- */
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.download-steps {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.8;
}

.download-steps code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(28, 37, 57, .06);
  font-size: 13px;
  word-break: break-all;
}

@media (max-width: 767.98px) {
  .cards-2 { grid-template-columns: 1fr; }
}
