/* ============================================================
   康州安诚 · 官网设计系统
   视觉参考：深海军蓝主色 + 金色点缀 + 蓝色辅助
   ============================================================ */
:root {
  --navy: #0e1b33;
  --navy-2: #16264a;
  --navy-3: #1f335c;
  --gold: #d59800;
  --gold-2: #e7b53b;
  --blue: #026fd7;
  --blue-2: #2b9bff;
  --ink: #0f1b30;
  --ink-2: #3a4a63;
  --muted: #6b7a92;
  --line: #e6ebf3;
  --bg: #f5f8fc;
  --bg-soft: #eef3fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(14, 27, 51, .08);
  --shadow-lg: 0 18px 50px rgba(14, 27, 51, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 27, 51, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(14, 27, 51, .25);
}
.brand .logo svg { display: block; }
.brand .name { font-size: 17px; letter-spacing: .5px; }
.brand .en { font-size: 11px; color: #9fb0cc; letter-spacing: 1.5px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; color: #cdd8e8; font-size: 14.5px;
  transition: .2s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy); font-weight: 700; margin-left: 8px;
}
.nav .cta:hover { filter: brightness(1.05); }
/* 汉堡按钮（三线变X动画） */
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2.5px; border-radius: 2px;
  background: currentColor; transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle.active .bar1 { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active .bar2 { opacity: 0; }
.menu-toggle.active .bar3 { transform: translateY(-7.5px) rotate(-45deg); }

.brand-motto { text-align: center; margin-bottom: 24px; }
.brand-motto .motto-title {
  font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', serif;
  font-size: clamp(40px, 9vw, 72px);
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 16px;
  text-indent: 16px;
  text-shadow: 0 4px 24px rgba(213, 152, 0, .3);
  line-height: 1.15;
}
.brand-motto .motto-sub {
  font-family: var(--font);
  font-size: clamp(14px, 3vw, 18px);
  color: rgba(255, 255, 255, .75);
  letter-spacing: 8px;
  text-indent: 8px;
  margin-top: 10px;
  font-weight: 300;
}
.hero .brand-motto { margin-bottom: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(2, 111, 215, .35), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(213, 152, 0, .18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0c1730 100%);
  color: #fff; padding: 84px 0 96px;
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #d8e3f5;
}
.hero .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.22; margin: 22px 0 14px;
  font-weight: 800; letter-spacing: .5px;
}
.hero h1 .gold { color: var(--gold-2); }
.hero p.lead { color: #b9c6dc; max-width: 660px; font-size: 16.5px; }
.hero .actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 15px;
  transition: .2s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); box-shadow: 0 10px 26px rgba(213, 152, 0, .35); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 数据条 ---------- */
.stats { background: var(--white); border-top: 1px solid var(--line); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats .item { padding: 30px 18px; text-align: center; border-right: 1px solid var(--line); }
.stats .item:last-child { border-right: 0; }
.stats .num { font-size: 34px; font-weight: 800; color: var(--navy); }
.stats .num .u { font-size: 18px; color: var(--gold); margin-left: 2px; }
.stats .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- 通用 section ---------- */
.section { padding: 74px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-head .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 12px; color: var(--ink); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- 业务卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .22s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3dded; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(2,111,215,.12), rgba(213,152,0,.12));
  color: var(--blue); font-size: 22px; margin-bottom: 14px;
  overflow: hidden;
}
.card .ico img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: 14px; }
.card .more:hover { color: var(--gold); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.card-actions .more { margin-top: 0; padding: 7px 14px; border: 1px solid rgba(2,111,215,.35); border-radius: 999px; }

/* ---------- 优势 ---------- */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: flex; gap: 16px; align-items: flex-start;
}
.feat .dot { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.feat h3 { font-size: 16.5px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; }

/* ---------- 联系 CTA 条 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff; border-radius: 20px; padding: 44px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: 26px; margin-bottom: 10px; }
.cta-band p { color: #c2cfe4; margin-bottom: 22px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #aebacd; padding: 56px 0 26px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 34px; }
.site-footer .brand .logo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: #fff;
  margin-bottom: 12px;
}
.site-footer .brand .logo svg { display: block; }
.site-footer .brand .name { color: #fff; font-weight: 700; font-size: 16px; }
.site-footer .brand p { margin-top: 10px; max-width: 300px; color: #8a99ad; font-size: 13px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .5px; }
.site-footer a { color: #aebacd; display: block; margin: 7px 0; font-size: 13.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .contact-list { margin-top: 4px; }
.site-footer .contact-item { display: flex; gap: 10px; align-items: baseline; margin: 7px 0; color: #aebacd; font-size: 13.5px; }
.site-footer .contact-item .ck { color: #6f7d91; min-width: 56px; flex: none; }
.site-footer .contact-item .cv { color: #cdd6e3; font-weight: 500; }
.site-footer .qq-row { align-items: center; }
.site-footer .qq-actions { display: flex; gap: 8px; }
.site-footer .qq-actions a {
  display: inline-block; margin: 0;
  background: rgba(255,255,255,.08); color: #fff;
  padding: 3px 10px; border-radius: 6px; font-size: 12px;
}
.site-footer .qq-actions a:hover { background: rgba(255,255,255,.15); color: #fff; }
.site-footer .biz-grid,
.site-footer .nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.site-footer .biz-grid a,
.site-footer .nav-grid a { margin: 0; font-size: 13px; }
.site-footer .bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
}
.site-footer .copy { color: #8a99ad; font-size: 13px; }
.site-footer .copy b { color: #cdd6e3; font-weight: 600; }
.site-footer .coop { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: #6f7d91; font-size: 12.5px; }
.site-footer .coop .lbl { color: #6f7d91; }
.site-footer .coop a { display: inline; margin: 0; color: #8a99ad; }
.site-footer .coop a:hover { color: #cdd6e3; }

/* ---------- 在线客服挂件 ---------- */
#chatWidget { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.chat-fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font-size: 26px;
  box-shadow: 0 12px 28px rgba(2, 111, 215, .45); transition: .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-panel {
  position: absolute; right: 0; bottom: 70px; width: 330px; max-width: 90vw;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; flex-direction: column; height: 440px; border: 1px solid var(--line);
}
.chat-panel.open { display: flex; }
.chat-head { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; padding: 14px 16px; position: relative; }
.chat-head .t { font-weight: 700; font-size: 15px; }
.chat-head .status { font-size: 12px; color: #bcd0ef; margin-top: 2px; }
.chat-head .close { position: absolute; right: 12px; top: 10px; cursor: pointer; font-size: 22px; color: #cdd8e8; }
.chat-body { flex: 1; padding: 14px; overflow-y: auto; background: #f6f8fc; }
.msg { margin-bottom: 12px; max-width: 85%; }
.msg .bubble { padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.msg.visitor { margin-left: auto; }
.msg.visitor .bubble { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; border-bottom-right-radius: 4px; }
.msg.admin .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .meta { font-size: 11px; color: #9aa7bd; margin-top: 3px; }
.msg.visitor .meta { text-align: right; }
.chat-input { display: flex; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 0; padding: 12px 14px; outline: none; font-size: 14px; }
.chat-input button { border: 0; background: var(--blue); color: #fff; padding: 0 18px; font-weight: 700; cursor: pointer; }

/* ---------- 反馈 / 工单 表单 ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tab { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; max-width: 640px; }
.form-card .field { margin-bottom: 18px; }
.form-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form-card label .req { color: #e5484d; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: inherit; outline: none; background: #fff; transition: .15s;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2,111,215,.12); }
.form-card textarea { min-height: 110px; resize: vertical; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; display: none; }
.alert.ok { display: block; background: #e8f6ee; color: #0a7a40; border: 1px solid #bfe6cd; }
.alert.err { display: block; background: #fdecec; color: #c0341d; border: 1px solid #f5c9c2; }
.ticket-result { margin-top: 18px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px dashed var(--line); display: none; }
.ticket-result.show { display: block; }
.ticket-result .id { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: 1px; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-open { background: #fff3d6; color: #9a6b00; }
.status-replied { background: #e3f3ff; color: #026fd7; }
.status-closed { background: #eceff3; color: #6b7a92; }
.reply-item { border-left: 3px solid var(--blue); padding: 8px 12px; margin: 8px 0; background: #f6f8fc; border-radius: 0 8px 8px 0; font-size: 14px; }

/* ---------- 详情页通用 ---------- */
.page-hero { background: linear-gradient(150deg, var(--navy), var(--navy-3)); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.page-hero p { color: #b9c6dc; margin-top: 10px; max-width: 720px; }
.brand-motto { text-align: center; margin-bottom: 28px; }
.brand-motto .motto-title {
  font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', serif;
  font-size: clamp(36px, 7vw, 56px);
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 12px;
  text-shadow: 0 4px 20px rgba(213, 152, 0, .25);
}
.brand-motto .motto-sub {
  font-family: var(--font);
  font-size: clamp(14px, 3vw, 17px);
  color: rgba(255, 255, 255, .72);
  letter-spacing: 6px;
  margin-top: 8px;
  font-weight: 400;
}
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 22px; margin: 34px 0 12px; color: var(--ink); }
.prose h3 { font-size: 17px; margin: 24px 0 8px; color: var(--ink-2); }
.prose p, .prose li { color: var(--ink-2); margin: 10px 0; font-size: 15px; }
.prose ul { padding-left: 22px; }
.prose .lead { font-size: 16px; color: var(--ink); }

/* ---------- 创始人故事 ---------- */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
.founder-photo { position: sticky; top: 90px; }
.photo-slot { aspect-ratio: 3 / 4; border-radius: 18px;
  background: linear-gradient(135deg, rgba(2,111,215,.14), rgba(213,152,0,.14)), var(--navy-2);
  border: 1px dashed rgba(255,255,255,.20); display: flex; align-items: center; justify-content: center;
  color: #9fb0cc; text-align: center; font-size: 14px; line-height: 1.8; padding: 16px; }
.founder-info { min-width: 0; }
.role-tag { display: inline-block; color: var(--gold); border: 1px solid rgba(213,152,0,.45);
  border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.founder-name { font-size: 30px; font-weight: 800; color: var(--ink); margin: 0 0 16px; }
.founder-bio { color: var(--ink-2); font-size: 15px; line-height: 1.85; margin: 0 0 18px; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.founder-tags span { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px; padding: 6px 12px; font-size: 13px; color: #cdd9ec; }
.timeline { border-left: 2px solid rgba(213,152,0,.35); padding-left: 20px; margin: 6px 0 22px; }
.tl-item { position: relative; padding: 10px 0; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 16px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(213,152,0,.18); }
.tl-year { font-weight: 800; color: var(--ink); font-size: 15px; }
.tl-desc { color: var(--muted); font-size: 14px; margin-top: 3px; }
.founder-sign { font-weight: 700; color: var(--ink); font-size: 14.5px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- 响应式 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
/* 移动端顶部下拉导航 */
.mobile-nav-head,
.mobile-nav-body,
.mobile-close { display: none; }
body.nav-open::before {
  content: ""; position: fixed; inset: 0; background: rgba(14, 27, 51, .45);
  z-index: 40; opacity: 1; pointer-events: auto;
}

@media (max-width: 900px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    width: 100%; max-width: none; height: auto;
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 0 0 16px; gap: 0;
    display: none; z-index: 60;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    border-radius: 0 0 18px 18px;
    animation: slideDown .25s ease forwards;
  }
  .nav.open { display: flex; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

  .menu-toggle { display: flex; color: var(--ink); }

  .mobile-nav-body {
    display: block; padding: 10px 16px 16px;
  }
  .mobile-nav-body > a {
    display: block; padding: 14px 16px; border-radius: 10px;
    background: var(--bg-soft); color: var(--ink);
    font-size: 15.5px; transition: .15s;
    margin-bottom: 8px;
  }
  .mobile-nav-body > a:hover { background: #e4ebf5; }
  .mobile-nav-body > a.active {
    color: var(--blue); background: rgba(2,111,215,.08);
    font-weight: 700;
  }

  .site-header {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    color: var(--ink);
  }
  .brand .en { color: var(--muted); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stats .item:nth-child(2) { border-right: 0; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .founder { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { position: static; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 20px; }
}
