/*
 * HarnessMate 官网 · 多页面设计稿扩展样式
 * 依赖 base.css（= office_web/styles.css 原样复制），只追加新组件，不改原有类
 */
@import url("base.css");

/* ========== 通用：小标签 / 眉标 ========== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
}

.eyebrow.is-violet { background: rgba(109, 63, 209, .09); color: var(--violet); }
.eyebrow.is-green { background: rgba(0, 180, 42, .10); color: #00822A; }

/* ========== 页面级 Hero（非首页的页头） ========== */
.page-hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 420px at 20% -20%, rgba(22, 93, 255, .10), transparent 60%),
    radial-gradient(700px 380px at 85% -30%, rgba(109, 63, 209, .08), transparent 62%),
    var(--bg-page);
  border-bottom: 1px solid var(--border);
}

.page-hero .container { max-width: 980px; }

.page-hero h1 {
  font-size: 42px;
  line-height: 1.26;
  margin: 18px 0 0;
}

.page-hero .lead {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 760px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -12px rgba(22, 93, 255, .7); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text-title); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: #C9CFDB; transform: translateY(-1px); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }

/* ========== 卡片网格 ========== */
.grid { display: grid; gap: 20px; }
.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)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.card .ic {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.card .ic svg { width: 20px; height: 20px; }
.card .ic.is-violet { background: rgba(109, 63, 209, .09); color: var(--violet); }
.card .ic.is-green { background: rgba(0, 180, 42, .10); color: #00822A; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-body); line-height: 1.75; }
.card ul { margin-top: 12px; display: grid; gap: 8px; }
.card ul li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--text-body); }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  opacity: .55;
}

/* ========== 分栏特性行 ========== */
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.feature-row.is-flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: 32px; margin: 14px 0 14px; }
.feature-copy .lead { font-size: 15.5px; line-height: 1.85; color: var(--text-body); }
.feature-list { margin-top: 22px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-body); }
.feature-list .tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 180, 42, .12); color: #00822A;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  margin-top: 2px;
}
.feature-list b { color: var(--text-title); font-weight: 600; }

/* 右侧视觉容器 */
.visual-box {
  background: linear-gradient(180deg, #fff, #F7F9FC);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* 模拟窗口 */
.mock-win {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.mock-bar {
  height: 34px; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; background: #F7F8FA; border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.mock-bar i:nth-child(1) { background: #F97066; }
.mock-bar i:nth-child(2) { background: #FDB022; }
.mock-bar i:nth-child(3) { background: #32D583; }
.mock-bar span { margin-left: 8px; font-size: 11.5px; color: var(--text-muted); }
.mock-body { padding: 16px; display: grid; gap: 10px; }
.mock-msg { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.6; }
.mock-msg.me { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.mock-msg.ai { background: #F2F4F8; color: var(--text-body); border-bottom-left-radius: 4px; }
.mock-msg .who { display: block; font-size: 10.5px; opacity: .7; margin-bottom: 3px; }

/* ========== 数据条 ========== */
.stat-band { background: var(--text-title); color: #fff; padding: 46px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-grid .num { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.stat-grid .lbl { font-size: 13px; color: rgba(255, 255, 255, .62); margin-top: 6px; }

/* ========== 定价 ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.price-card.is-hot { border: 1.5px solid var(--brand); box-shadow: 0 20px 44px -24px rgba(22, 93, 255, .5); position: relative; }
.price-card.is-hot::after {
  content: "推荐"; position: absolute; top: -11px; left: 26px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.price-name { font-size: 17px; font-weight: 700; color: var(--text-title); }
.price-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.price-num { font-size: 32px; font-weight: 800; color: var(--text-title); margin-top: 18px; letter-spacing: -.5px; }
.price-num small { font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.price-card ul { margin: 20px 0 24px; display: grid; gap: 10px; }
.price-card ul li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--text-body); }
.price-card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; font-size: 13px;
}
.price-card .btn { margin-top: auto; width: 100%; }

/* ========== 下载页 ========== */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
}
.dl-card .app-ic {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft);
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand); margin-bottom: 10px;
}
.dl-card .app-ic svg { width: 24px; height: 24px; }
.dl-card h3 { font-size: 19px; }
.dl-card .meta { font-size: 13px; color: var(--text-muted); }
.dl-card .ver-line { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-muted); margin: 10px 0 18px; flex-wrap: wrap; }
.dl-card .ver-line b { color: var(--text-body); font-weight: 600; }
.dl-card .btn { margin-top: auto; }

/* 表格 */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
table.spec th, table.spec td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border); }
table.spec th { background: #F7F9FC; font-weight: 600; color: var(--text-title); font-size: 13.5px; }
table.spec tr:last-child td { border-bottom: none; }
table.spec td { color: var(--text-body); }
table.spec td:first-child { color: var(--text-title); font-weight: 500; width: 34%; }

/* 更新日志 */
.changelog { display: grid; gap: 14px; }
.log-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--border); }
.log-item:last-child { border-bottom: none; }
.log-ver { font-size: 14px; font-weight: 700; color: var(--text-title); }
.log-ver small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.log-body { font-size: 14px; color: var(--text-body); line-height: 1.8; }

/* ========== 文档页布局 ========== */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-side { position: sticky; top: 88px; display: grid; gap: 26px; }
.doc-side .grp-title { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 10px; }
.doc-side a { display: block; font-size: 14px; color: var(--text-body); padding: 6px 0; }
.doc-side a:hover { color: var(--brand); }
.doc-side a.is-active { color: var(--brand); font-weight: 600; }
.doc-search {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; color: var(--text-placeholder); font-size: 14px;
}
.doc-search svg { width: 16px; height: 16px; flex: none; }
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: .15s ease; }
.doc-card:hover { border-color: #C6D4F5; transform: translateY(-1px); }
.doc-card h4 { font-size: 15px; font-weight: 600; color: var(--text-title); margin: 0 0 6px; }
.doc-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ========== 关于页 ========== */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.about-p { font-size: 15px; line-height: 1.9; color: var(--text-body); margin-bottom: 16px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-row .k { width: 76px; flex: none; font-size: 13px; color: var(--text-muted); }
.contact-row .v { font-size: 14px; color: var(--text-title); }
.contact-row .v small { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }

/* ========== 底部 CTA 带 ========== */
.cta-band {
  padding: 72px 0;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(22, 93, 255, .18), transparent 60%),
    radial-gradient(700px 320px at 85% 100%, rgba(109, 63, 209, .16), transparent 62%),
    #0F1626;
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 34px; }
.cta-band p { color: rgba(255, 255, 255, .68); font-size: 15px; margin: 14px auto 28px; max-width: 620px; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.cta-band .btn-ghost:hover { border-color: rgba(255, 255, 255, .55); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== 章节标题 ========== */
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 34px; margin-top: 14px; }
.section-head p { font-size: 15.5px; color: var(--text-body); margin-top: 14px; line-height: 1.8; }
.section-head.is-left { margin-left: 0; text-align: left; }

/* ========== 架构分层图 ========== */
.arch { display: grid; gap: 12px; }
.arch-layer {
  display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.arch-layer .lyr-name { font-size: 13.5px; font-weight: 600; color: var(--text-title); }
.arch-layer .lyr-name small { display: block; font-weight: 400; color: var(--text-muted); font-size: 11.5px; margin-top: 2px; }
.arch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-chip {
  font-size: 12.5px; padding: 5px 11px; border-radius: var(--radius-pill);
  background: #F2F4F8; color: var(--text-body);
}
.arch-chip.is-brand { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.arch-chip.is-violet { background: rgba(109, 63, 209, .09); color: var(--violet); font-weight: 600; }
.arch-chip.is-green { background: rgba(0, 180, 42, .10); color: #00822A; font-weight: 600; }

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.is-flip .feature-copy { order: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .doc-side { position: static; }
}
@media (max-width: 860px) {
  .grid-3, .grid-2, .pricing-grid, .dl-grid, .doc-cards { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .page-hero h1 { font-size: 32px; }
  .log-item { grid-template-columns: 1fr; gap: 6px; }
  .arch-layer { grid-template-columns: 1fr; gap: 10px; }
}

/* ========== 移动端修正（2026-11-17） ========== */
@media (max-width: 1024px) {
  .hero-grid > *,
  .feature-row > *,
  .about-grid > *,
  .doc-layout > *,
  .grid > * { min-width: 0; }
  .mock-win,
  .visual-box,
  .table-wrap,
  .arch { max-width: 100%; }
  .container { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 12px; }
  .nav-actions { gap: 10px; }
  .nav-github { display: none; }
  .nav-actions .btn-console { height: 32px; padding: 0 12px; font-size: 13px; }
  .nav-brand-name { font-size: 16px; }
  .nav-brand img { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .hero-copy h1 { font-size: 30px !important; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero .lead { font-size: 15px; }
  .hero-lead { font-size: 14.5px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .feature-copy h2 { font-size: 24px; }
  .stat-grid .num { font-size: 26px; }
  .price-num { font-size: 26px; }
  .card { padding: 20px 18px; }
  .price-card,
  .dl-card { padding: 22px 20px; }
  .cta-band { padding: 52px 0; }
  .cta-band h2 { font-size: 26px; }
}

/* ========== 品牌副名「一聊平台」 ========== */
.nav-brand-name .brand-sep {
  margin: 0 5px;
  color: var(--text-placeholder);
  font-weight: 400;
}
.nav-brand-name .brand-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: 0;
}

/* ========== 品牌主次反转：英文名小、中文名大 ========== */
.nav-brand-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: 0;
}
.nav-brand-name .brand-sep {
  margin: 0 6px;
  color: #C9CFDB;
  font-weight: 300;
}
.nav-brand-name .brand-sub {
  font-family: var(--font-sans);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: .2px;
  vertical-align: -1px;
}

.footer-brand-name { font-size: 15px; font-weight: 500; color: var(--text-body); }
.footer-brand-name .brand-sep { margin: 0 6px; color: #C9CFDB; font-weight: 300; }
.footer-brand-name .brand-sub {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: .2px;
}

@media (max-width: 1024px) {
  .nav-brand-name { font-size: 13.5px; }
  .nav-brand-name .brand-sub { font-size: 16px; }
}

/* ========== 品牌标识 v3（按老板给的横排图：衬线英文 + 小圆点 + 粗黑中文） ========== */
.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 500;
  color: #4A4F57;
  letter-spacing: .2px;
}
.nav-brand-name .brand-sep {
  margin: 0 8px;
  color: #C4CAD4;
  font-size: 13px;
  font-weight: 400;
  vertical-align: 1px;
}
.nav-brand-name .brand-sub {
  font-family: var(--font-sans);
  font-size: 20.5px;
  font-weight: 800;
  color: #14161A;
  letter-spacing: .6px;
  vertical-align: -2px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: #4A4F57;
  letter-spacing: .2px;
}
.footer-brand-name .brand-sep { margin: 0 9px; color: #C4CAD4; font-size: 15px; font-weight: 400; }
.footer-brand-name .brand-sub {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  color: #14161A;
  letter-spacing: .6px;
  vertical-align: -2px;
}

@media (max-width: 1024px) {
  .nav-brand-name { font-size: 13.5px; }
  .nav-brand-name .brand-sub { font-size: 17.5px; }
  .nav-brand-name .brand-sep { margin: 0 6px; }
}

/* ========== 官网内嵌宣传片 ========== */
.film-band { padding: 76px 0 88px; }
.film-box {
  margin: 0 auto;
  max-width: 1080px;
  border-radius: 20px;
  overflow: hidden;
  background: #0F1626;
  border: 1px solid var(--border);
  box-shadow: 0 44px 100px -54px rgba(16, 24, 40, .62);
}
.film-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0F1626;
}
@media (max-width: 860px) {
  .film-band { padding: 48px 0 56px; }
  .film-box { border-radius: 14px; }
}

/* ========== 三端下载卡 ========== */
.dl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .dl-grid-3 { grid-template-columns: 1fr; } }
