/* ===== AIMate 内容页（/guides/）共享样式 =====
   视觉语言与 home.html 同源：集团青蓝 B+ 渐变 + 白卡片 + 冷灰底。
   抽成独立文件而不是每页内联：内容页会持续增加，样式只有一处编辑面。
   色值与 home.html 的 :root 保持一致，改色时两处一起改。 */
:root {
  --brand: #1888EB; --brand-dark: #214EC7; --brand-light: #1CC6EE;
  --brand-soft: #E9F5FE; --brand-strong: #214EC7;
  --grad: linear-gradient(135deg, #214EC7 0%, #1888EB 55%, #1CC6EE 100%);
  --bg: #f7f9fc; --card: #fff; --line: #e6eaf0;
  --t1: #17202e; --t2: #5a6472; --t3: #98a1ad;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--t1); line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶栏（与首页同形制）===== */
header { background: var(--brand-soft); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(24,136,235,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.brand { font-size: 18px; font-weight: 700; color: var(--t1); white-space: nowrap; }
.brand a { color: var(--t1); display: inline-flex; align-items: center; }
.brand a:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; margin-right: 8px; }
.nav .links a { margin-left: 18px; font-size: 13.5px; color: var(--t2); }
.nav .links a:hover { color: var(--brand); text-decoration: none; }

/* ===== 面包屑 ===== */
.crumb { font-size: 12.5px; color: var(--t3); padding: 16px 0 0; }
.crumb a { color: var(--t3); }
.crumb span { margin: 0 6px; }

/* ===== 文章容器：正文窄栏更易读 ===== */
.article { max-width: 780px; margin: 0 auto; padding: 24px 24px 8px; background: var(--card);
           border: 1px solid var(--line); border-radius: 16px; margin-top: 20px;
           box-shadow: 0 10px 28px rgba(15,23,42,.06); }
.article h1 { font-size: 30px; line-height: 1.35; margin-bottom: 12px; letter-spacing: -.01em; }
.meta { font-size: 12.5px; color: var(--t3); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.meta b { color: var(--t2); font-weight: 600; }
.lede { font-size: 16px; color: var(--t2); margin-bottom: 22px; }

.article h2 { font-size: 21px; margin: 34px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.4; }
.article h3 { font-size: 16.5px; margin: 22px 0 8px; color: var(--t1); }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 7px; }
.article strong { color: var(--t1); }
.article em { font-style: normal; background: rgba(24,136,235,.08); padding: 1px 5px; border-radius: 4px; color: var(--brand-dark); }

/* 结论框：把可直接被引用的判断单独拎出来 */
.take { background: var(--brand-soft); border-radius: 12px; padding: 18px 20px; margin: 0 0 24px;
        font-size: 15px; border-left: 4px solid var(--brand); }
.take b { color: var(--brand-dark); }

table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 13.5px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: #f2f6fb; font-weight: 600; color: var(--t1); white-space: nowrap; }
td code, p code, li code { background: #f2f6fb; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }

/* 自查清单 */
.check { list-style: none; margin-left: 0 !important; }
.check li { padding-left: 28px; position: relative; }
.check li::before { content: "☐"; position: absolute; left: 6px; color: var(--brand); font-size: 15px; }

/* 引用/出处 */
.src { font-size: 12.5px; color: var(--t3); border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 26px; }
.src li { margin-bottom: 4px; }

/* FAQ：问句与答案都在页面可见（结构化数据必须与可见内容一致，不做只写进 JSON-LD 的隐形问答） */
.faq { margin-top: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: #fcfdff; }
.faq details[open] { background: #fff; }
.faq summary { font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; position: relative; padding-right: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--brand); font-weight: 400; font-size: 18px; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { font-size: 14px; color: var(--t2); margin-top: 8px; }

/* ===== 卡片（指南中心列表 + 相关阅读）===== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
        padding: 22px 24px; box-shadow: 0 10px 28px rgba(15,23,42,.06); transition: .18s; color: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(24,136,235,.14); text-decoration: none; }
.card .tag { display: inline-block; font-size: 11px; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px;
             background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; margin-bottom: 10px; }
.card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.card p { font-size: 13.5px; color: var(--t2); }
.card .more { font-size: 13px; color: var(--brand); margin-top: 12px; display: inline-block; }

.hero { text-align: center; padding: 48px 0 8px; }
.hero h1 { font-size: 34px; line-height: 1.35; margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 16px; color: var(--t2); max-width: 660px; margin: 0 auto; }

.section { padding: 40px 0; }
.section > .wrap > h2, .section > h2 { font-size: 22px; margin-bottom: 6px; }
.section .lead { color: var(--t2); font-size: 14.5px; margin-bottom: 24px; }

/* ===== 转化区 ===== */
.cta { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 34px;
       display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
       box-shadow: 0 10px 28px rgba(15,23,42,.06); }
.cta h3 { font-size: 18px; margin-bottom: 6px; }
.cta p { font-size: 13.5px; color: var(--t2); max-width: 560px; }
.btn { display: inline-block; padding: 11px 26px; border-radius: 10px; border: 0; background: var(--grad);
       color: #fff !important; font-size: 14.5px; cursor: pointer; transition: .18s; white-space: nowrap;
       box-shadow: 0 6px 18px rgba(24,136,235,.28); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(24,136,235,.34); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--brand-dark) !important; box-shadow: 0 1px 6px rgba(15,23,42,.08); }
.btn.ghost:hover { background: rgba(24,136,235,.06); box-shadow: none; transform: translateY(-1px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

footer { border-top: 1px solid var(--line); padding: 26px 0 34px; text-align: center; font-size: 12.5px; color: var(--t3); margin-top: 40px; }
footer a { color: var(--t3); margin: 0 6px; }
footer .sep { margin: 0 4px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .article h1 { font-size: 24px; }
  .article { padding: 20px 18px; border-radius: 12px; }
  .nav .links a { margin-left: 12px; font-size: 13px; }
  .cta { padding: 24px 20px; }
  .brand { font-size: 16px; }
}
