/* ===========================================================
   康研之家 shiyaota.com — 模板 TA
   深藏蓝 + 衬线 + 2px 方角 + 左目录双栏
   骨架特征：首页 h2=6~7，table=2，section 少
   =========================================================== */

:root {
  --ta-ink: #1B3A5C;
  --ta-ink-deep: #12283F;
  --ta-accent: #E8710A;
  --ta-text: #23303D;
  --ta-muted: #6B7A8C;
  --ta-line: #DDE4EC;
  --ta-bg: #FFFFFF;
  --ta-soft: #F4F7FA;
  --ta-warn-bg: #FFF6EC;
  --ta-ok: #1E7A4F;
  --ta-radius: 2px;
  --ta-serif: "Songti SC", "SimSun", "Source Han Serif SC", Georgia, serif;
  --ta-sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ta-bg);
  color: var(--ta-text);
  font-family: var(--ta-sans);
  font-size: 16px;
  line-height: 1.9;
}

a { color: var(--ta-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.ta-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; min-width: 0; }

/* ---------- 顶栏 ---------- */
.ta-head {
  background: var(--ta-ink);
  color: #fff;
  border-bottom: 3px solid var(--ta-accent);
}
.ta-head .ta-wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 64px;
}
.ta-logo {
  font-family: var(--ta-serif);
  font-size: 21px; font-weight: 700; color: #fff;
  letter-spacing: 1px; white-space: nowrap;
}
.ta-logo em { font-style: normal; color: #FFC98A; }
.ta-nav { display: flex; gap: 2px; flex: 1; }
.ta-nav a {
  color: #D7E2EE; font-size: 14.5px; padding: 8px 13px;
  border-radius: var(--ta-radius);
}
.ta-nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.ta-nav a[aria-current="page"] { background: var(--ta-accent); color: #fff; }
.ta-head-tel { font-size: 13.5px; color: #FFC98A; white-space: nowrap; }

/* ---------- 页头 ---------- */
.ta-crumb {
  font-size: 13px; color: var(--ta-muted);
  padding: 12px 0 0;
}
.ta-crumb a { color: var(--ta-muted); }
.ta-crumb span { margin: 0 6px; }

.ta-hero { padding: 18px 0 22px; border-bottom: 1px solid var(--ta-line); }
.ta-hero h1 {
  font-family: var(--ta-serif);
  font-size: 27px; line-height: 1.5; margin: 0 0 12px;
  color: var(--ta-ink-deep); font-weight: 700;
}
.ta-hero .ta-sub { font-size: 14px; color: var(--ta-muted); margin: 0; }

/* ---------- 答案胶囊（GEO 核心） ---------- */
.ta-answer {
  background: var(--ta-soft);
  border-left: 4px solid var(--ta-ink);
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ta-text);
}
.ta-answer b { color: var(--ta-ink-deep); }
.ta-answer .ta-ans-label {
  display: block; font-size: 12px; color: var(--ta-muted);
  letter-spacing: 2px; margin-bottom: 6px; font-family: var(--ta-sans);
}

/* ---------- 双栏 ---------- */
.ta-cols { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 26px 0 40px; }
/* grid 子项默认 min-width:auto，长中文内容会把整列撑破，必须显式归零 */
.ta-cols > * { min-width: 0; }
.ta-side { position: sticky; top: 16px; align-self: start; }
.ta-side h2 {
  font-size: 13px; color: var(--ta-muted); font-weight: 600;
  letter-spacing: 1px; margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--ta-line); font-family: var(--ta-sans);
}
.ta-side ul { list-style: none; margin: 0 0 22px; padding: 0; }
.ta-side li { margin: 0; }
.ta-side li a {
  display: block; padding: 6px 0; font-size: 14px; color: var(--ta-text);
  border-bottom: 1px dotted #E8EDF3;
}
.ta-side li a:hover { color: var(--ta-accent); text-decoration: none; }

/* ---------- 正文 ---------- */
.ta-main h2 {
  font-family: var(--ta-serif);
  font-size: 20px; color: var(--ta-ink-deep);
  margin: 34px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--ta-line);
  font-weight: 700;
}
.ta-main h3 {
  font-size: 16.5px; color: var(--ta-ink); margin: 22px 0 8px; font-weight: 600;
}
.ta-main p { margin: 0 0 14px; }
.ta-main ul, .ta-main ol { margin: 0 0 16px; padding-left: 22px; }
.ta-main li { margin: 5px 0; }

/* ---------- 事实表（GEO 核心） ---------- */
.ta-table { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 15px; }
.ta-table caption {
  text-align: left; font-size: 13px; color: var(--ta-muted);
  padding: 0 0 8px; caption-side: top;
}
.ta-table th, .ta-table td {
  border: 1px solid var(--ta-line); padding: 9px 12px; vertical-align: top;
}
.ta-table th {
  background: var(--ta-soft); color: var(--ta-ink);
  font-weight: 600; width: 132px; white-space: nowrap;
}
.ta-table tr:nth-child(even) td { background: #FBFCFE; }

/* ---------- 列表表格（首页在招） ---------- */
.ta-list { overflow-x: auto; margin: 0 0 8px; }
.ta-list table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.ta-list th {
  background: var(--ta-ink); color: #fff; font-weight: 500;
  padding: 9px 10px; text-align: left; white-space: nowrap; font-size: 13.5px;
}
.ta-list td { padding: 9px 10px; border-bottom: 1px solid var(--ta-line); }
.ta-list tr:hover td { background: var(--ta-soft); }
/* 表格内项目链接：撑到 28px 点击高度，避免手指点不准 */
.ta-list td a { display: block; padding: 5px 0; }

/* ---------- 标签 ---------- */
.ta-tag {
  display: inline-block; font-size: 12.5px; padding: 1px 8px;
  border: 1px solid var(--ta-line); border-radius: var(--ta-radius);
  color: var(--ta-muted); background: #fff; margin: 0 6px 6px 0;
}
.ta-tag.is-on { border-color: #BFD9CB; color: var(--ta-ok); background: #F2FAF5; }

/* ---------- 卡片（三件事 / 相关） ---------- */
.ta-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 8px; }
.ta-card {
  border: 1px solid var(--ta-line); padding: 16px;
  border-radius: var(--ta-radius); background: #fff;
}
.ta-card h3 { margin: 0 0 8px; font-size: 15.5px; color: var(--ta-ink); }
.ta-card p { margin: 0; font-size: 14px; color: var(--ta-muted); line-height: 1.75; }

/* ---------- FAQ ---------- */
.ta-faq { border-top: 1px solid var(--ta-line); }
.ta-faq details { border-bottom: 1px solid var(--ta-line); }
.ta-faq summary {
  cursor: pointer; padding: 13px 0; font-size: 15.5px; font-weight: 600;
  color: var(--ta-ink-deep); list-style: none;
}
.ta-faq summary::-webkit-details-marker { display: none; }
.ta-faq summary::before { content: "问 "; color: var(--ta-accent); font-size: 13px; }
.ta-faq .ta-a { padding: 0 0 14px; font-size: 15px; color: var(--ta-text); display: none; }
.ta-faq details[open] .ta-a { display: block; }


/* 长 URL / 长英文串必须能断行，否则会把表格撑破视口 */
.ta-table td a, .ta-table td, .ta-src li {
  word-break: break-word; overflow-wrap: anywhere;
}

/* ---------- 依据与三日期 ---------- */
.ta-src { background: var(--ta-soft); border: 1px solid var(--ta-line); padding: 16px 18px; margin: 26px 0 0; }
.ta-src h2 { border: 0; margin: 0 0 10px; font-size: 17px; padding: 0; }
.ta-src ol { margin: 0 0 12px; padding-left: 20px; font-size: 14px; }
.ta-src li { margin: 4px 0; }
.ta-dates {
  font-size: 13px; color: var(--ta-muted);
  border-top: 1px dashed var(--ta-line); padding-top: 10px;
}
.ta-dates b { color: var(--ta-text); font-weight: 600; }

/* ---------- 边界声明 ---------- */
.ta-bound {
  border: 1px solid #F0DCC4; background: var(--ta-warn-bg);
  padding: 13px 16px; font-size: 13.5px; color: #7A5320;
  line-height: 1.8; margin: 22px 0 0;
}

/* ---------- 报名表单 ---------- */
.ta-form { border: 1px solid var(--ta-line); padding: 22px; margin: 26px 0 0; }
.ta-form h2 { border: 0; margin: 0 0 4px; padding: 0; font-size: 20px; }
.ta-form .ta-form-tip { font-size: 13.5px; color: var(--ta-muted); margin: 0 0 18px; }
.ta-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ta-f { display: flex; flex-direction: column; }
.ta-f.is-full { grid-column: 1 / -1; }
.ta-f label { font-size: 13.5px; color: var(--ta-ink); margin-bottom: 5px; font-weight: 600; }
.ta-f label i { color: #C0392B; font-style: normal; margin-left: 2px; }
.ta-f input, .ta-f select, .ta-f textarea {
  font-family: inherit; font-size: 15px; color: var(--ta-text);
  border: 1px solid #C9D4E0; border-radius: var(--ta-radius);
  padding: 9px 11px; background: #fff; width: 100%;
}
.ta-f input:focus, .ta-f select:focus, .ta-f textarea:focus {
  outline: none; border-color: var(--ta-ink); box-shadow: 0 0 0 2px rgba(27,58,92,.12);
}
.ta-f textarea { min-height: 84px; resize: vertical; }
.ta-radio { display: flex; gap: 20px; padding-top: 6px; }
.ta-radio label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin: 0; }
.ta-radio input { width: auto; }
.ta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; line-height: 1.2;
  background: var(--ta-ink); color: #fff; border: 0;
  border-radius: var(--ta-radius); font-size: 16.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; margin-top: 20px;
}
.ta-btn:hover { background: var(--ta-ink-deep); }
.ta-btn:disabled { opacity: .6; cursor: default; }
.ta-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ta-muted); margin-top: 14px; line-height: 1.7; }
.ta-consent input { margin-top: 4px; }

/* ---------- 页脚 ---------- */
.ta-foot { background: var(--ta-ink-deep); color: #A9BACB; margin-top: 50px; padding: 30px 0 34px; font-size: 13.5px; line-height: 1.9; }
.ta-foot a { color: #C9D8E6; }
.ta-foot .ta-fnav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.ta-foot .ta-fnav a { font-size: 13.5px; }
.ta-foot .ta-firm { border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; margin-top: 14px; color: #8FA3B7; }
.ta-foot .ta-firm b { color: #C9D8E6; font-weight: 500; }

/* ---------- 落地页（无导航） ---------- */
.ta-lp .ta-lp-hero {
  background: var(--ta-ink); color: #fff; padding: 44px 0 40px;
}
.ta-lp .ta-lp-hero h1 { font-family: var(--ta-serif); font-size: 30px; margin: 0 0 12px; line-height: 1.45; }
.ta-lp .ta-lp-hero p { margin: 0; font-size: 16px; color: #D7E2EE; }
.ta-lp .ta-lp-body { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .ta-cols { grid-template-columns: 1fr; gap: 0; }
  .ta-side { position: static; order: 2; margin-top: 30px; }
  /* 侧栏在移动端改成 2 列网格：flex 横排会因长中文标签撑破视口 */
  .ta-side ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ta-side li a {
    border: 1px solid var(--ta-line); padding: 7px 10px;
    border-radius: var(--ta-radius); font-size: 13px;
    white-space: normal; word-break: break-word;
  }
  .ta-hero h1 { font-size: 22px; }
  .ta-main h2 { font-size: 18px; }
  .ta-cards { grid-template-columns: 1fr; }
  .ta-head .ta-wrap { flex-wrap: wrap; gap: 0 10px; min-height: 0; padding-top: 10px; padding-bottom: 8px; }
  .ta-nav { order: 3; flex: 1 1 100%; width: 100%; min-width: 0; overflow-x: auto; padding-bottom: 6px; }
  .ta-nav a { white-space: nowrap; padding: 7px 11px; font-size: 14px; }
  .ta-logo { font-size: 18px; }
  .ta-head-tel { margin-left: auto; font-size: 12.5px; }
  .ta-fgrid { grid-template-columns: 1fr 1fr; }
  .ta-table th { width: 96px; font-size: 13.5px; }
  .ta-table th, .ta-table td { padding: 8px 9px; }
}

@media (max-width: 420px) {
  .ta-fgrid { grid-template-columns: 1fr; }
  .ta-f.is-full { grid-column: auto; }
}

/* ---------- 表单提示文字（报名页新增） ---------- */
.ta-hint { display: block; font-size: 12.5px; color: var(--ta-muted); margin-top: 4px; line-height: 1.6; }

/* ---------- 报名表：label 包裹结构（点击字段名即可聚焦） ---------- */
.ta-form label.ta-f {
  display: flex; flex-direction: column; cursor: pointer;
  font-weight: 400; font-size: 15px; color: var(--ta-text);
}
.ta-form .ta-fname {
  font-size: 13.5px; color: var(--ta-ink); font-weight: 600; margin-bottom: 5px; display: block;
}
.ta-form .ta-fname i { color: #C0392B; font-style: normal; margin-left: 2px; }
.ta-form label.ta-f input, .ta-form label.ta-f select, .ta-form label.ta-f textarea { width: 100%; }
.ta-form label.ta-f .ta-hint { margin-top: 4px; }
.ta-form .ta-fgrid { align-items: start; }

/* ---------- 报名三步 ---------- */
.ta-steps {
  margin: 0 0 20px; padding: 0 0 0 20px; font-size: 13.5px; color: var(--ta-muted);
  line-height: 1.85; border-left: 2px solid var(--ta-line);
}
.ta-steps li { margin: 3px 0; }
.ta-steps b { color: var(--ta-ink); font-weight: 600; }

/* 窄屏表格：收紧单元格内边距并允许断词，避免 6 列表格把视口撑破 */
@media (max-width: 760px) {
  .ta-table th, .ta-table td { padding: 7px 6px; font-size: 13px; word-break: break-word; }
  .ta-list table th, .ta-list table td { padding: 7px 6px; font-size: 13px; }
}

/* ---------- 报名表单：单选块 / 提示条 / 确认框（2026-11-28 新增） ---------- */
.ta-form .ta-f,
.ta-form label.ta-f { display: flex; flex-direction: column; }
.ta-form .ta-f > .ta-fname {
  font-size: 13.5px; color: var(--ta-ink); font-weight: 600; margin-bottom: 5px; display: block;
}
.ta-fname i { color: #C0392B; font-style: normal; margin-left: 2px; }
.ta-radio label { cursor: pointer; }
.ta-msg {
  margin: 14px 0 0; padding: 11px 14px; font-size: 14px; line-height: 1.75;
  border: 1px solid var(--ta-line); border-radius: var(--ta-radius);
  background: var(--ta-soft); color: var(--ta-text);
}
.ta-msg[hidden] { display: none; }
.ta-msg.is-ok { border-color: #BFDCCB; background: #F1F8F4; color: var(--ta-ok); }
.ta-msg.is-err { border-color: #EBC8A6; background: var(--ta-warn-bg); color: #8A4A10; }

.ta-confirm {
  position: fixed; inset: 0; z-index: 90; padding: 20px;
  background: rgba(20, 30, 40, .55);
  display: flex; align-items: center; justify-content: center;
}
.ta-confirm[hidden] { display: none; }
.ta-confirm-box {
  background: #fff; width: 100%; max-width: 420px; padding: 22px 22px 18px;
  border-radius: var(--ta-radius); border-top: 3px solid var(--ta-accent);
}
.ta-confirm-box h3 { margin: 0 0 10px; font-size: 17px; }
.ta-confirm-box p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; color: var(--ta-text); }
.ta-confirm-phone { font-size: 21px; letter-spacing: 1px; color: #C0392B; }
.ta-confirm-tip { color: var(--ta-muted); font-size: 13px; }
.ta-confirm-act { display: flex; gap: 10px; margin-top: 14px; }
.ta-confirm-act > button { flex: 1 1 0; min-width: 0; }
.ta-btn-ghost {
  height: 44px; padding: 0 16px; font-size: 15px; font-family: inherit; cursor: pointer;
  border: 1px solid var(--ta-line); background: #fff; color: var(--ta-ink);
  border-radius: var(--ta-radius);
}
.ta-confirm-act > .ta-btn { height: 44px; }
.ta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.yi-fwide { display: block; }

/* ===== 报名 CTA（2026-11-28 上线整改：首屏可见，不用滑到底）===== */
.ta-cta { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
  background:var(--ta-soft); border:1px solid var(--ta-line); border-left:3px solid var(--ta-accent);
  border-radius:var(--ta-radius); padding:14px 18px; margin:22px 0; }
.ta-cta p { margin:0; font-size:13.5px; line-height:1.65; color:var(--ta-muted); }
.ta-cta p b { display:block; font-size:15px; color:var(--ta-text); font-weight:600; margin-bottom:3px; }
.ta-cta-btn { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  height:44px; padding:0 24px; background:var(--ta-ink); color:#fff; border-radius:var(--ta-radius);
  font-size:15.5px; font-weight:600; text-decoration:none; white-space:nowrap; font-family:inherit; }
.ta-cta-btn:hover { background:var(--ta-ink-deep); color:#fff; }
.ta-cta--tight { margin:16px 0 6px; }
.ta-cta--tight p b { font-size:14.5px; }
@media (max-width:640px) {
  .ta-cta { flex-direction:column; align-items:stretch; gap:10px; padding:14px; }
  .ta-cta-btn { width:100%; }
}

/* ===== 导航「报名」按钮 + 手机端导航换行（2026-11-28 整改）===== */
.ta-cta-btn-nav {
  background: var(--ta-accent) !important; color: #fff !important;
  margin-left: auto; font-weight: 600;
}
.ta-cta-btn-nav:hover { background: #C85C00 !important; color: #fff !important; }
@media (max-width: 900px) {
  /* 原来 9 项挤一行靠横滑，用户滑不到最后的「报名」→ 改成自动换行，全部可见 */
  .ta-nav { flex-wrap: wrap; overflow-x: visible; row-gap: 4px; }
  .ta-nav a { padding: 7px 10px; font-size: 13.5px; }
  .ta-nav .ta-cta-btn-nav { margin-left: 0; }
}

/* ===== 手机端页头瘦身（2026-11-28：9 项导航换行后页头 188px，太高）===== */
@media (max-width: 900px) {
  .ta-head .ta-wrap { padding-top: 7px; padding-bottom: 5px; gap: 0 8px; }
  .ta-logo { font-size: 17px; }
  .ta-head-tel { font-size: 12px; }
  .ta-nav { row-gap: 3px; padding-bottom: 2px; }
  .ta-nav a { padding: 6px 9px; font-size: 13px; }
}

/* ===== 项目列表：≤760px 表格转卡片（2026-11-28）=====
   原来 min-width:640px → 390px 屏要横滑 250px 才看得到城市和补偿。
   现在一屏一张卡，全部字段竖排，不用滑。 */
.ta-list table { min-width: 640px; }

@media (max-width: 760px) {
  .ta-list { overflow-x: visible; }
  .ta-list table { min-width: 0; width: 100%; display: block; border: 0; }
  .ta-list thead { display: none; }
  .ta-list tbody { display: block; }
  .ta-list tr {
    display: block; margin: 0 0 12px; padding: 4px 0;
    border: 1px solid var(--ta-line); border-radius: var(--ta-radius);
    background: #fff;
  }
  .ta-list tr:last-child { margin-bottom: 0; }
  .ta-list td {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; padding: 7px 14px; border: 0; font-size: 14.5px;
  }
  .ta-list td::before {
    content: attr(data-label);
    color: var(--ta-muted); font-size: 13px; flex: 0 0 auto;
  }
  .ta-list td:first-child {
    display: block; font-weight: 600; font-size: 15.5px;
    color: var(--ta-ink); padding-bottom: 8px; border-bottom: 1px solid var(--ta-line);
  }
  .ta-list td:first-child::before { display: none; }
  /* 表格外那行"左右滑动"提示在卡片模式下不需要 */
  .ta-list + p { display: none; }
}

/* ===== 手机端导航点击区 ≥44px（2026-11-28，苹果可用性建议）===== */
@media (max-width: 900px) {
  .ta-nav a, .yi-head nav a, .yi-nav a, .e-head nav a, header nav a {
    min-height: 44px; display: inline-flex; align-items: center;
  }
}

/* ===== 站内搜索框（2026-11-28）：提交到老站 /search/?keyword= ===== */
.ta-search { display: flex; gap: 0; margin: 0 0 0 14px; flex: 0 1 auto; }
.ta-search input[type="search"] {
  width: 150px; height: 34px; padding: 0 10px; font-size: 13.5px;
  border: 1px solid rgba(255,255,255,.3); border-right: 0; border-radius: var(--ta-radius) 0 0 var(--ta-radius);
  background: rgba(255,255,255,.1); color: #fff; font-family: inherit;
}
.ta-search input[type="search"]::placeholder { color: #A9BACB; }
.ta-search input[type="search"]:focus { outline: none; background: rgba(255,255,255,.18); border-color: var(--ta-accent); }
.ta-search button {
  height: 34px; padding: 0 14px; font-size: 13.5px; font-weight: 600;
  border: 0; border-radius: 0 var(--ta-radius) var(--ta-radius) 0;
  background: var(--ta-accent); color: #fff; cursor: pointer; font-family: inherit;
}
.ta-search button:hover { background: #C85C00; }
@media (max-width: 900px) {
  .ta-search { order: 4; flex: 1 1 100%; width: 100%; margin: 6px 0 2px; }
  .ta-search input[type="search"] { flex: 1 1 auto; width: auto; height: 40px; }
  .ta-search button { height: 40px; }
}

/* 2026-11-28 修：加了搜索框后页头 188px 太高，窄屏隐藏服务时间、压搜索框 */
@media (max-width: 900px) {
  .ta-head-tel { display: none; }
  .ta-search { margin: 4px 0 0; }
  .ta-search input[type="search"] { height: 38px; }
  .ta-search button { height: 38px; }
}

/* 2026-11-28：搜索框与 logo 同一行（logo 右侧大片空白），省下一整行 */
@media (max-width: 900px) {
  .ta-head .ta-wrap { align-items: center; }
  .ta-search {
    order: 2; flex: 1 1 auto; width: auto; margin: 0 0 0 10px; min-width: 0;
  }
  .ta-search input[type="search"] { flex: 1 1 auto; width: auto; min-width: 0; }
  .ta-search button { flex: 0 0 auto; }
  .ta-nav { order: 3; }
}
