/* ══════════════════════════════════════════════════════════════
   研图 · 研学资源地图 — SEO 静态页公共样式
   适用：point.html / course.html / hub.html
   设计：移动优先，390px 无横向滚动；颜色沿用站点主色
   ══════════════════════════════════════════════════════════════ */

:root{
  --brand:#2563EB;
  --brand-ink:#1D4ED8;
  --brand-soft:#EFF5FF;
  --text:#111827;
  --text-2:#374151;
  --muted:#5B6673;
  --faint:#8A94A3;
  --bg:#F8FAFC;
  --card:#FFFFFF;
  --line:#E6EBF2;
  --line-soft:#F0F3F8;
  --r:14px;
  --wrap:760px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  display:flex;flex-direction:column;min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font:15px/1.68 "PingFang SC","Hiragino Sans GB",Inter,-apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overflow-wrap:break-word;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-decoration:none}
p{margin:0}
h1,h2,h3,h4{margin:0}

/* ── 跳到正文（无障碍） ── */
.skip{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:#fff;color:var(--text);padding:8px 14px;border-radius:0 0 10px 0;
  font-size:13px;box-shadow:0 2px 10px rgba(15,30,60,.12);
}
.skip:focus{left:0}

/* ── 容器 ── */
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding-left:14px;padding-right:14px}
main.wrap{flex:1 0 auto;padding-top:14px;padding-bottom:30px;min-width:0}

/* ── 顶部导航 ── */
.site-head{
  position:sticky;top:0;z-index:30;
  background:rgba(248,250,252,.92);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.head-in{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;
  min-height:56px;padding-top:8px;padding-bottom:8px;
}
.brand{
  font-size:15.5px;font-weight:700;color:var(--text);
  letter-spacing:.2px;white-space:nowrap;line-height:1.3;
}
.brand-sep{color:#9AA6B5;font-weight:400;margin:0 1px}
.nav{display:flex;align-items:center;gap:14px;margin-left:auto;font-size:13px;line-height:1.3}
.nav a{color:var(--muted);font-weight:500;white-space:nowrap;padding:4px 0}
.nav a:hover{color:var(--brand)}

/* ── 面包屑 ── */
.crumbs{
  margin:2px 0 12px;
  font-size:12.5px;line-height:1.65;color:var(--muted);
  overflow-wrap:anywhere;
}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--brand)}
.crumbs span,.crumbs i{color:#A8B2BF;font-style:normal;margin:0 3px}
.crumbs:empty{display:none}

/* ── 标题区 ── */
.page-head{margin:0 0 14px;min-width:0}
.eyebrow{margin:0 0 6px;color:#8A7B5C;font-size:11px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;line-height:1.5}
.eyebrow:empty{display:none}
.seo-note{margin:8px 0 0;padding:8px 10px;border-left:2px solid #C9BFA8;
  background:#FAF8F3;color:#5B6673;font-size:12.5px;line-height:1.7;border-radius:4px}
.seo-note:empty{display:none}
.h1{
  margin:0 0 6px;
  font-size:clamp(22px,5.8vw,30px);
  line-height:1.32;font-weight:800;letter-spacing:-.2px;
  overflow-wrap:anywhere;
}
.subtitle{margin:0;color:var(--muted);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.subtitle:empty{display:none}
.head-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.head-actions:empty{display:none}

/* ── 按钮 ── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:38px;padding:0 15px;border-radius:11px;
  border:1px solid transparent;font-size:13.5px;font-weight:600;
  line-height:1.3;transition:background .15s,border-color .15s,color .15s,transform .15s;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-ink);color:#fff}
.btn-ghost{background:#fff;color:var(--text-2);border-color:var(--line)}
.btn-ghost:hover{border-color:#C7D5EA;color:var(--brand)}
a[href=""]{display:none!important}

/* ── 封面 ── */
.cover{
  margin:0 0 14px;border-radius:16px;overflow:hidden;
  background:#E8EEF6;min-width:0;
}
.cover:empty{display:none}
.cover img,.cover picture,.cover figure{margin:0;width:100%}
.cover img{aspect-ratio:16/9;object-fit:cover}
.cover figcaption{
  padding:8px 12px;background:#fff;color:var(--faint);
  font-size:12px;line-height:1.5;
}

/* ── 卡片与区块 ── */
.section{margin:0 0 18px;min-width:0}
.section:last-child{margin-bottom:0}
.card{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);padding:16px;
}
.sec-title{
  display:flex;align-items:center;gap:8px;
  margin:0 0 10px;font-size:16px;line-height:1.4;font-weight:700;
}
.sec-title::before{
  content:"";display:inline-block;flex:0 0 auto;
  width:3px;height:15px;border-radius:2px;background:var(--brand);
}
.sec-sub{margin:-4px 0 10px;font-size:12.5px;color:var(--muted);line-height:1.6}

/* ── 信息表 / 元信息表 ──
   期望后端输出（每个字段一行，任选一种结构）：
   <div class="info-row"><span class="info-k">开放时间</span><span class="info-v">…</span></div>
   或 <div><span>开放时间</span><span>…</span></div>
   或 <dl><div><dt>开放时间</dt><dd>…</dd></div></dl>
   或 <tr><th>开放时间</th><td>…</td></tr>                     */
.info-rows{display:flex;flex-direction:column;min-width:0;font-size:14px}
.info-rows > *{
  display:flex;gap:12px;align-items:flex-start;
  padding:9px 0;border-bottom:1px solid var(--line-soft);
  line-height:1.6;min-width:0;
}
.info-rows > *:first-child{padding-top:0}
.info-rows > *:last-child{border-bottom:0;padding-bottom:0}
.info-rows .info-k,
.info-rows > * > span:first-child,
.info-rows dt,
.info-rows th{
  flex:0 0 76px;color:var(--muted);font-weight:500;
  overflow-wrap:anywhere;
}
.info-rows .info-v,
.info-rows > * > span:nth-child(2),
.info-rows dd,
.info-rows td{
  flex:1 1 auto;min-width:0;color:var(--text);margin:0;
  overflow-wrap:anywhere;word-break:break-word;
}
.info-rows table{width:100%;border-collapse:collapse}
.info-rows dl{margin:0}
.info-rows dl > div{display:flex;gap:12px;padding:9px 0;border-bottom:1px solid var(--line-soft);min-width:0}
.info-rows dl > div:last-child{border-bottom:0}
.info-rows a{color:var(--brand)}

/* ── 卡片列表（课程 / 周边） ── */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;min-width:0}
.cards:empty::after{
  content:"暂无内容，欢迎咨询工作人员";
  display:block;padding:14px 2px;color:var(--muted);font-size:13.5px;
}
.cards > *{
  display:block;min-width:0;
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:13px 14px;color:inherit;
  transition:border-color .15s,box-shadow .15s,transform .15s;
}
.cards > a:hover{
  border-color:#BFD3F2;
  box-shadow:0 5px 16px rgba(37,99,235,.09);
  transform:translateY(-1px);
}
.cards h2,.cards h3,.cards h4{
  margin:0 0 4px;font-size:15px;line-height:1.45;font-weight:700;color:var(--text);
  overflow-wrap:anywhere;
}
.cards p{margin:2px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
.cards .card-meta,.cards .meta,.cards time{display:block;margin-top:3px;font-size:12.5px;color:var(--faint);line-height:1.55}
.cards .card-price,.cards .price{color:var(--brand);font-weight:600}
.cards .card-cta{margin-top:6px;font-size:12.5px;font-weight:600;color:var(--brand)}
.cards ul,.cards ol{margin:4px 0 0;padding-left:1.15em;font-size:13px;color:var(--muted)}

/* ── FAQ 折叠 ── */
.faq{display:flex;flex-direction:column;gap:8px;min-width:0}
.faq:empty::after{content:"暂无常见问题，欢迎直接咨询工作人员";color:var(--muted);font-size:13.5px}
.faq details{
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:0 14px;min-width:0;
}
.faq details[open]{border-color:#CFDEF4;background:#FCFDFF}
.faq summary{
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
  padding:12px 0;cursor:pointer;list-style:none;
  font-size:14px;line-height:1.55;font-weight:600;color:var(--text);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::marker{content:""}
.faq summary::after{
  content:"+";flex:0 0 auto;color:var(--brand);
  font-size:18px;line-height:1.2;font-weight:500;
}
.faq details[open] summary::after{content:"–"}
.faq summary:focus-visible{outline:2px solid #BFD3F2;outline-offset:3px;border-radius:6px}
.faq .faq-a,.faq details > p,.faq details > div{
  margin:0;padding:0 0 13px;font-size:13.5px;line-height:1.72;color:var(--muted);
  overflow-wrap:anywhere;
}
.faq .faq-a p{margin:0 0 6px}
.faq .faq-a p:last-child{margin-bottom:0}

/* ── 富文本正文 ── */
.prose{font-size:15px;line-height:1.78;color:var(--text-2);min-width:0}
.prose > :first-child{margin-top:0}
.prose > :last-child{margin-bottom:0}
.prose p{margin:0 0 .85em}
.prose h2,.prose h3,.prose h4{margin:1.3em 0 .5em;line-height:1.45;color:var(--text);font-weight:700}
.prose h2{font-size:18px}
.prose h3{font-size:16px}
.prose h4{font-size:15px}
.prose ul,.prose ol{margin:0 0 .9em;padding-left:1.3em}
.prose li{margin:0 0 .3em}
.prose blockquote{
  margin:0 0 .9em;padding:8px 12px;border-left:3px solid #BFD3F2;
  background:var(--brand-soft);color:var(--muted);border-radius:0 8px 8px 0;
}
.prose img{border-radius:12px;margin:10px 0}
.prose figure{margin:10px 0}
.prose figcaption{font-size:12.5px;color:var(--faint);margin-top:6px;text-align:center}
.prose hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.prose table{
  display:block;width:100%;max-width:100%;overflow-x:auto;
  border-collapse:collapse;font-size:13.5px;margin:0 0 .9em;
  -webkit-overflow-scrolling:touch;
}
.prose th,.prose td{border:1px solid var(--line);padding:7px 9px;text-align:left;vertical-align:top}
.prose th{background:var(--line-soft);font-weight:600;white-space:nowrap}
.prose pre{
  max-width:100%;overflow-x:auto;padding:12px;border-radius:10px;
  background:#0F172A;color:#E2E8F0;font-size:12.5px;line-height:1.6;
}
.prose code{font-size:.94em;background:var(--line-soft);padding:1px 5px;border-radius:5px}
.prose pre code{background:none;padding:0}
.prose iframe,.prose video{max-width:100%;border-radius:12px;border:0}
.prose a{text-decoration:underline;text-underline-offset:2px}

/* ── 课程页：所属点位 ── */
.point-ref-body{font-size:14.5px;line-height:1.7;color:var(--text-2);min-width:0}
.point-ref-body p{margin:0 0 6px}
.point-ref-body p:last-child{margin-bottom:0}
.point-ref-body a{font-weight:600}

/* ── 课程页：咨询区（复用点位链接，渲染为按钮） ── */
.consult{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:12px;padding:16px;border-radius:var(--r);
  background:linear-gradient(135deg,#EFF5FF 0%,#F7FAFF 100%);
  border:1px solid #DCE8FA;
}
.consult-txt{flex:1 1 190px;min-width:0}
.consult-title{margin:0 0 2px;font-size:15px;font-weight:700;line-height:1.45;color:var(--text)}
.consult-note{margin:0;font-size:12.5px;line-height:1.6;color:var(--muted)}
.consult-cta{flex:0 0 auto;max-width:100%;min-width:0}
.consult-cta:empty{display:none}
.consult-cta a{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:0 18px;border-radius:11px;
  background:var(--brand);color:#fff!important;
  font-size:13.5px;font-weight:600;line-height:1.3;
  max-width:100%;overflow-wrap:anywhere;text-align:center;
}
.consult-cta a:hover{background:var(--brand-ink)}
.consult-cta p{margin:0 0 6px}
.consult-cta p:last-child{margin-bottom:0}

/* ── 聚合页：简介与卡片网格 ── */
.intro{margin:0 0 16px;font-size:14.5px;line-height:1.75;color:var(--text-2);min-width:0}
.intro p{margin:0 0 8px}
.intro p:last-child{margin-bottom:0}
.intro:empty{display:none}
.hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px;min-width:0}
.hub-grid:empty::after{content:"暂无内容，敬请期待";color:var(--muted);font-size:13.5px}
.hub-grid > *{
  display:block;min-width:0;background:#fff;border:1px solid var(--line);
  border-radius:12px;padding:13px 14px;color:inherit;
  transition:border-color .15s,box-shadow .15s,transform .15s;
}
.hub-grid > a:hover{
  border-color:#BFD3F2;box-shadow:0 5px 16px rgba(37,99,235,.09);transform:translateY(-1px);
}
.hub-grid h2,.hub-grid h3,.hub-grid h4{
  margin:0 0 4px;font-size:14.5px;line-height:1.45;font-weight:700;color:var(--text);
  overflow-wrap:anywhere;
}
.hub-grid p{margin:2px 0 0;font-size:12.5px;line-height:1.55;color:var(--muted)}
.hub-grid .count,.hub-grid .meta{display:block;margin-top:5px;font-size:12px;color:var(--faint)}
.hub-grid img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:9px;margin-bottom:8px}
.hub-grid ul{list-style:none;margin:0;padding:0}

/* ── 页脚 ── */
.site-foot{margin-top:8px;border-top:1px solid var(--line);background:#fff}
.site-foot .wrap{padding-top:18px;padding-bottom:26px;text-align:center}
.foot-note{margin:0 0 6px;font-size:13.5px;line-height:1.6;color:var(--text);font-weight:600}
.contact-bar{margin:10px 0 0;padding:9px 12px;background:#EFF6FF;border:1px solid #BFDBFE;border-radius:10px;font-size:13px;line-height:1.7;color:#1E3A8A;font-weight:600}
.contact-bar a{color:#1D4ED8;text-decoration:none;font-weight:700}
.contact-card{position:relative;overflow:hidden;background:linear-gradient(135deg,#F0F7FF 0%,#FFFFFF 55%,#F5F9FF 100%);border:1px solid #DBEAFE;border-radius:20px;padding:20px;box-shadow:0 14px 34px rgba(37,99,235,.12)}
.contact-card::after{content:"";position:absolute;right:-46px;top:-46px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.16),rgba(37,99,235,0) 70%);pointer-events:none}
.cc-top{display:flex;align-items:center;gap:12px;position:relative}
.cc-avatar{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#2563EB,#60A5FA);color:#fff;font-size:19px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 14px rgba(37,99,235,.28);flex:none}
.cc-title{font-size:11.5px;letter-spacing:.08em;color:#6B7280;font-weight:700}
.cc-name{font-size:17px;font-weight:800;color:#111827;margin-top:2px}
.cc-role{font-size:10.5px;font-weight:600;color:#2563EB;background:#EFF6FF;border-radius:6px;padding:2px 6px;margin-left:6px}
.cc-badge{margin-left:auto;font-size:10.5px;font-weight:700;color:#15803D;background:#DCFCE7;border-radius:999px;padding:4px 8px;white-space:nowrap}
.cc-phone{display:flex;align-items:baseline;gap:10px;margin-top:16px;padding:12px 14px;background:#fff;border:1px solid #E5EAF2;border-radius:14px;text-decoration:none}
.cc-phone-label{font-size:12px;color:#6B7280;flex:none}
.cc-phone-num{font-size:24px;font-weight:800;color:#1D4ED8;letter-spacing:.5px;font-variant-numeric:tabular-nums}
.cc-actions{display:flex;gap:10px;margin-top:14px}
.cc-btn{flex:1;height:44px;border-radius:12px;background:linear-gradient(135deg,#2563EB,#3B82F6);color:#fff;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;text-decoration:none;box-shadow:0 8px 18px rgba(37,99,235,.24)}
.cc-btn-ghost{background:#fff;color:#1D4ED8;border:1px solid #BFDBFE;box-shadow:none}
.cc-note{margin-top:10px;font-size:11.5px;color:#8A94A3;text-align:center}
.foot-copy{margin:0;font-size:12px;line-height:1.6;color:var(--faint)}

/* ── 小屏微调（390px 关键验证宽度） ── */
@media (max-width:420px){
  .brand{font-size:14.5px}
  .nav{gap:10px;font-size:12.5px}
  .cover{margin-left:-2px;margin-right:-2px;border-radius:14px}
  .card{padding:14px}
  .h1{letter-spacing:-.1px}
  .cards{grid-template-columns:1fr}
  .consult{padding:14px}
  .consult-cta,.consult-cta a{width:100%}
}

/* ── 平板 / 桌面 ── */
@media (min-width:641px){
  .wrap{padding-left:20px;padding-right:20px}
  main.wrap{padding-top:20px;padding-bottom:40px}
  .brand{font-size:16.5px}
  .nav{font-size:13.5px;gap:18px}
  .head-in{min-height:60px}
  .card{padding:20px}
  .cards{gap:12px}
  .hub-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
  .faq details{padding:0 16px}
  .prose{font-size:15.5px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

/* ── 留资区（英文页）── */
.enquiry{display:grid;grid-template-columns:1fr;gap:18px;background:#fff;
  border:1px solid #E6E9EE;border-radius:14px;padding:18px}
@media(min-width:760px){.enquiry{grid-template-columns:280px 1fr;padding:22px}}
.enq-lead{margin:6px 0 14px;color:var(--muted);font-size:13.5px;line-height:1.7}
.enq-contact{list-style:none;margin:0;padding:0;font-size:13.5px;line-height:1.9}
.enq-contact li{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;padding:5px 0;
  border-top:1px dashed #EDE8DC}
.enq-contact li:first-child{border-top:0}
.enq-k{min-width:104px;color:#8A7B5C;font-size:11px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase}
.enq-contact em{color:#98A2B3;font-style:normal;font-size:12px}
.enq-form{display:flex;flex-direction:column;gap:10px}
.enq-row{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:560px){.enq-row{grid-template-columns:1fr 1fr}}
.enq-form label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:#5B6673}
.enq-form input,.enq-form textarea{width:100%;box-sizing:border-box;border:1px solid #DCE2EA;
  border-radius:8px;padding:9px 10px;font:inherit;font-size:14px;color:#1F2937;background:#FCFCFD}
.enq-form input:focus,.enq-form textarea:focus{outline:2px solid #C9BFA8;outline-offset:1px;
  border-color:#C9BFA8}
.enq-opt{color:#98A2B3;font-size:11px}
.enq-submit{align-self:flex-start;cursor:pointer;border:0}
.enq-submit[disabled]{opacity:.6;cursor:default}
.enq-msg{margin:0;font-size:13px;line-height:1.6}
.enq-msg.ok{color:#1D7A46}
.enq-msg.err{color:#B42318}
.enq-fine{margin:0;color:#98A2B3;font-size:11.5px}
.foot-contact{margin:6px 0;color:#8A94A3;font-size:12.5px}
.foot-contact a{color:#5B6673}
.head-actions .cc-btn{flex:0 0 auto;padding:0 16px}
