/* ==========================================================================
   指挥官 · 个人站点 共用样式
   所有页面共用，改动此处即全站生效
   ========================================================================== */

:root {
  --ink: #16203a;
  --ink-soft: #4b5875;
  --muted: #7a87a3;
  --line: #e3e8f2;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --brand: #2f5bd8;
  --brand-dark: #1f3f9e;
  --brand-soft: #eaf0ff;
  --accent: #0ea5a5;
  --shadow: 0 1px 2px rgba(22, 32, 58, .04), 0 8px 24px rgba(22, 32, 58, .06);
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

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

.brand {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand .dot { color: var(--accent); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav a {
  color: #c7d2e5;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 15px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
}
.main-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

/* ---------- 通用区块 ---------- */

main { display: block; }

.page-head {
  padding: 46px 0 8px;
}
.page-head .eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.page-head h1 {
  font-size: 34px;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -.5px;
}
.page-head .lead {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
  max-width: 62ch;
}

.section { padding: 34px 0; }
.section + .section { border-top: 1px solid var(--line); }

h2 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -.2px;
}
h3 { font-size: 17px; margin: 0 0 6px; }

.section-note {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card p { margin: 8px 0 0; color: var(--ink-soft); }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-soft); }
.card li { margin: 5px 0; }

.tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 6px 6px 0;
}
.tag.plain {
  background: #eef2f8;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- 首页 Hero ---------- */

.hero {
  padding: 58px 0 48px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -1px;
}
.hero .lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.fact-bar {
  display: grid;
  gap: 1px;
  /* 8 格：宽屏 4 列 × 2 行正好填满；中屏 4 列，窄屏 2 列。
     不用 auto-fit —— 它会按最小宽度硬塞，最后一行会空出一截。 */
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .fact-bar { grid-template-columns: repeat(2, 1fr); }
}

.fact {
  background: var(--surface);
  padding: 18px 20px;
  text-align: center;
}
.fact .k { color: var(--muted); font-size: 13px; }
.fact .v { font-weight: 700; margin-top: 4px; }

.fact-sub { font-weight: 400; color: var(--muted); font-size: 14px; }

/* ---------- 聊天页 ---------- */

.chat-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  background: #fbfcfe;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.status-dot.ok { background: #16a34a; }
.status-dot.warn { background: #d97706; }
.status-dot.err { background: #dc2626; }

.chat-log {
  padding: 20px;
  min-height: 320px;
  max-height: 52vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fcfdff;
}

.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  font-size: 15.5px;
}
.msg.bot {
  align-self: flex-start;
  background: #eef2f9;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.sys {
  align-self: center;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 100%;
  text-align: center;
  padding: 4px 0;
}
.msg.pending { color: var(--muted); font-style: italic; }

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat-form textarea {
  flex: 1 1 auto;
  resize: none;
  min-height: 46px;
  max-height: 150px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.chat-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.chat-form button {
  flex: none;
  align-self: flex-end;
  padding: 11px 24px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.chat-form button:hover:not(:disabled) { background: var(--brand-dark); }
.chat-form button:disabled { background: #b9c3d8; cursor: not-allowed; }

.chat-hint {
  font-size: 13.5px;
  color: var(--muted);
  margin: 10px 0 0;
}

.quick-asks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.quick-asks button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.quick-asks button:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 联系 ---------- */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .k {
  color: var(--muted);
  min-width: 88px;
  font-size: 14px;
  flex: none;
}
.contact-list .contact-strong {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .3px;
  color: var(--ink);
}
.contact-list .contact-strong a { color: var(--brand); }
.contact-tip {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 案例页 ---------- */

.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 0 0 20px;
}
.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
}
.case-head h3 { margin: 0; }
.case-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 11px;
  background: #eef2f8;
  color: var(--ink-soft);
}
.case-badge.live { background: #e7f7ef; color: #16794c; }
.case-badge.reserved { background: #fff4e5; color: #9a5b00; }
.case-badge.local { background: #eef1f6; color: #46536b; }
.case-meta {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 14px;
}
.case-note { margin: 12px 0 0; }
.slot + .slot { margin-top: 10px; }
.section-note.tight { margin-top: 22px; }
.case p { margin: 10px 0 0; color: var(--ink-soft); }
.case ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-soft); }
.case li { margin: 5px 0; }
.case-shots {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  margin: 16px 0 0;
}
.case-shots figure { margin: 0; }
/* 第四张（信息量最大的一张）通栏，避免 3+1 落单 */
.case-shots figure.wide { grid-column: 1 / -1; }
.case-shots img {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
}
.case-shots figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* 手机截图：竖长图，不能按 300px 裁，要整张放大显示 */
.case-shots.phone {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}
.case-shots.phone img {
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
}
@media (max-width: 700px) {
  .case-shots.phone { grid-template-columns: 1fr; max-width: 380px; }
}
.slot {
  border: 1px dashed #c6d0e4;
  border-radius: 10px;
  padding: 16px 18px;
  background: #fbfcff;
  margin: 14px 0 0;
}
.slot .k {
  color: var(--muted);
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}
.slot p { margin: 0; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: 46px;
  background: #0f172a;
  color: #93a2bd;
  font-size: 14px;
}
.site-footer .wrap {
  padding-top: 26px;
  padding-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: #c7d2e5; }

/* ---------- 留言表单 ---------- */

.contact-form-card { margin-top: 18px; }

.field { margin: 0 0 14px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .req {
  color: #b91c1c;
  font-weight: 600;
  font-size: 12.5px;
  margin-left: 4px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* 蜜罐栏位：正常访客看不见（挪出屏幕），机器人会去填 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-foot button {
  padding: 11px 26px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.form-foot button:hover:not(:disabled) { background: var(--brand-dark); }
.form-foot button:disabled { background: #b9c3d8; cursor: not-allowed; }
.form-msg { font-size: 14.5px; color: var(--ink-soft); }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: #b91c1c; }

/* ---------- 卡片轮播（一次一页，到点自动翻） ---------- */

.carousel { margin: 0; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.carousel-item {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--brand);
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.carousel-dot:hover { background: var(--brand-soft); }
.carousel-dot.is-active {
  background: var(--brand);
  transform: scale(1.18);
}
.carousel-dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.carousel-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 首页业务入口条 ---------- */

.biz-strip {
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.biz-strip-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
}
.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}
.biz-strip-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- 业务承诺条（1对1 专人服务） ---------- */

.service-promise {
  margin-top: 22px;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.service-promise p {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.75;
}
.service-promise strong {
  color: var(--brand-dark);
}

/* ---------- 关于我 · 卡片内链接 ---------- */

.card-link {
  margin: 10px 0 0;
  font-size: 14.5px;
}

/* ---------- 关于我 · 收尾区 ---------- */

.about-cta {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  align-items: start;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-cta-main h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--ink);
}

.about-cta-main p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-cta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.about-cta-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 15px;
}

.about-cta-list .k {
  flex: 0 0 62px;
  color: var(--muted);
  font-size: 13.5px;
}

.about-quote {
  margin: 22px 0 0;
  padding: 20px 26px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- 移动端 ---------- */

@media (max-width: 720px) {
  .about-cta {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .about-cta-list {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
  .about-quote {
    padding: 16px 18px;
    font-size: 15.5px;
  }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .main-nav { width: 100%; }
  .main-nav a { padding: 6px 10px; font-size: 14px; }
  .hero { padding: 34px 0 28px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 17px; }
  .page-head h1 { font-size: 26px; }
  .msg { max-width: 92%; }
  .chat-log { max-height: none; min-height: 260px; }
  .form-foot button { width: 100%; }
}
