@charset "utf-8";
/* ==========================================================================
   留余方舟文化 · 官网样式表（唯一来源）
   --------------------------------------------------------------------------
   设计语言：「留余」＝真诚、利他，留有余地；视觉上表现为大量留白、克制的色、数据先行的排版。
   品牌色：藏青 #1E3357 ｜ 金 #BD8D2D ｜ 纸 #FDFDF3（对齐小程序 design-tokens v1.2）

   ⛔ 本文件是样式唯一来源；由 build_geo_site.py 复制到
      01_韩国留学\留余方舟官网_GEO\assets\style.css，请勿手改产物。
   ⛔ 已解除对旧框架目录「留余方舟官网框架/assets/style.css」的依赖（该目录已弃用）。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 向后兼容别名：早期模板以 var(--red) 指代品牌主色 */
  --red: #1E3357;
  --red-dark: #16294A;

  --brand: #1E3357;          /* 藏青：主色 */
  --brand-2: #16294A;        /* 深藏青：渐变 / 深底 */
  --brand-3: #2B4770;        /* 亮藏青：描边 / 悬停 */
  --gold: #BD8D2D;           /* 留余金：装饰、描边、强调块 */
  --gold-ink: #8A6414;       /* 金字（浅底文字用，对比 5.4:1） */
  --gold-on-dark: #D9B45E;   /* 金字（深底文字用，对比 6.4:1） */
  --paper: #FDFDF3;          /* 纸底 */
  --gold-band: #FBF7E9;      /* 米金底 */

  --ink: #1A2130;            /* 标题 */
  --body: #3E4757;           /* 正文 */
  --muted: #5D6779;          /* 次要文字（白底 5.6:1，达 WCAG AA） */
  --line: #E4E7EE;
  --bg: #F5F6F9;
  --card: #FFFFFF;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(26, 33, 48, .04), 0 10px 26px -14px rgba(26, 33, 48, .16);
  --container: 1080px;
}

/* ---------- 2. 基础与排版 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
strong, b { color: var(--ink); }
ul, ol { margin: 0 0 12px; }
[hidden] { display: none !important; }

/* 键盘可见焦点（无障碍：不得用 outline: none 抹掉焦点） */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: min(var(--container), 100% - 40px); margin: 0 auto; }

/* 跳到主要内容（only 键盘/读屏可见） */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-size: 14px;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- 3. 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd-in { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17.5px; color: var(--ink); letter-spacing: .01em; }
.brand img { border-radius: 7px; }
.brand:hover { color: var(--brand); }

.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.nav a { color: var(--ink); position: relative; padding: 6px 0; white-space: nowrap; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-toggle {
  display: none; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-family: inherit; padding: 8px 14px; border-radius: 8px; cursor: pointer;
}

/* ---------- 4. 首页 Hero（双栏：主张 + 事实卡） ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 58%, #101E38 100%);
  color: #fff; padding: clamp(38px, 6vw, 74px) 0 clamp(42px, 6.5vw, 82px);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: 1.28fr .82fr; gap: clamp(22px, 4vw, 54px); align-items: start; }
.hero h1 { color: #fff; font-size: clamp(25px, 3.5vw, 38px); line-height: 1.32; margin: 0 0 16px; }
.hero-lead { color: rgba(255, 255, 255, .9); font-size: clamp(14.5px, 1.6vw, 16.5px); line-height: 1.85; max-width: 640px; margin: 0 0 24px; }
.hero-lead strong { color: var(--gold-on-dark); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* 事实速览卡：给家长和 AI 都能一眼摘取的「实体事实」 */
.facts {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); padding: 22px;
}
.facts-h {
  margin: 0 0 14px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; color: var(--gold-on-dark);
}
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0; font-size: 13.5px; }
.facts dt { color: rgba(255, 255, 255, .64); white-space: nowrap; }
.facts dd { margin: 0; color: #fff; line-height: 1.7; }
.facts dd a { color: var(--gold-on-dark); font-weight: 700; }

/* ---------- 5. 主张带（「留余」·真诚、利他，留有余地） ---------- */
.creed { background: var(--paper); border-top: 1px solid #EDE9D8; border-bottom: 1px solid #EDE9D8; padding: clamp(26px, 3.4vw, 38px) 0; }
.creed-lead { margin: 0 0 18px; font-size: 16px; color: var(--ink); }
.creed-lead strong { color: var(--brand); }
.creed-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.creed-list li { border-left: 2px solid var(--gold); padding-left: 14px; }
.creed-list strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.creed-list span { color: var(--muted); font-size: 13.5px; line-height: 1.75; display: block; }

/* ---------- 6. 通用区块 ---------- */
.section { padding: clamp(38px, 5.6vw, 68px) 0; }
.section.no-pad-top { padding-top: 0; }
.section.alt { background: var(--bg); }
.sec-head { max-width: 780px; margin-bottom: clamp(18px, 2.6vw, 30px); }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--gold-ink); }
.eyebrow-on-dark { color: var(--gold-on-dark); }
.section-title { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.36; margin: 0 0 8px; color: var(--ink); }
.section-sub { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.section-sub a { color: var(--brand); text-decoration: underline; }

/* ---------- 7. 结论前置速答（GEO：AI 可直接摘取） ---------- */
.answer { display: grid; gap: 16px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.qa-q { margin: 0 0 9px; font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.qa-a { margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.9; }

/* ---------- 8. 网格与卡片 ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* 联系页双卡：桌面 1.05/0.95，移动单列。⚠️不能用内联 style（会压过断点，390px 下左卡被挤扁） */
.assess-grid { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 680px) { .assess-grid { grid-template-columns: 1fr; } }
/* 资质页经营范围 26 项：chip 标签化（原为长段落，可读性差） */
.scope-chips { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border: 1px solid #e3e7f0; border-radius: 8px; padding: 16px 18px; margin: 0 0 12px; }
.scope-chips .chip { background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; line-height: 1.6; padding: 5px 11px; border-radius: 999px; }
/* 院校详情页「其他院校资料」链接列表：桌面两列，680px 以下单列（勿用内联 style） */
.school-links { columns: 2; column-gap: 36px; }
.school-links li { break-inside: avoid; }
@media (max-width: 680px) { .school-links { columns: 1; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h2 { margin: 0 0 10px; font-size: 16.5px; line-height: 1.45; color: var(--ink); }
.card h3 { margin: 0 0 8px; font-size: 16.5px; line-height: 1.45; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.card p + p { margin-top: 6px; }
.card .ko { font-size: 13px; font-weight: 400; color: var(--muted); }
.card .tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--brand);
  background: #EEF1F7; border-radius: 999px; padding: 3px 11px; margin-bottom: 10px;
}
/* 授权标记（2026-10-15 两极制）：仅 A 类院校使用＝已获校方书面授权。
   C 类（公开资料整理）不设徽标、不出卡片，改走表格，避免与 A 类同框混排。 */
.card .tag-auth { background: #E4F4EC; color: #0F6E56; }
.card-link { margin-top: auto; padding-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.card-link:hover { color: var(--gold-ink); }

/* 院校视觉图（由 04_工具与临时文件/gen_school_cards.py 生成，勿手改产物）
   卡片缩略图 object-position 偏右：只露母题几何图形，避免把图里的院校名裁成半截。 */
.card-fig { display: block; margin: -22px -22px 16px; overflow: hidden; background: var(--brand-2); }
.card-fig img { display: block; width: 100%; height: 136px; object-fit: cover; object-position: center; }
.card-fig:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

/* 院校详情页宽幅头图 */
.school-figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--brand-2); box-shadow: var(--shadow); }
.school-figure img { display: block; width: 100%; height: auto; }
/* 图片 = 版权凭证，署名必须贴在图上（CC BY-SA / 校方公开资料的署名义务） */
.school-figure figcaption {
  margin: 0; padding: 8px 14px; font-size: 12.5px; line-height: 1.6;
  color: var(--muted); background: var(--card); border-top: 1px solid var(--line);
}

/* ---------- 9. 流程步骤 ---------- */
.steps { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding: 0 0 0 46px; font-size: 14.5px; line-height: 1.8; }
.steps li::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--ink); }

/* ---------- 10. 表格（数据即内容：GEO 最易被引用的形态） ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl {
  width: 100%; border-collapse: collapse; background: var(--card); font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  min-width: 640px;
}
.tbl th { background: var(--brand); color: #fff; text-align: left; padding: 11px 14px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--body); vertical-align: top; line-height: 1.7; }
.tbl tbody tr:nth-child(even) { background: #FAFBFD; }
.tbl td strong { color: var(--ink); }
.src { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.h1-ko { font-size: 20px; font-weight: 400; color: rgba(255, 255, 255, .9); }
.bullets { margin: 0; padding-left: 20px; line-height: 2; font-size: 14.5px; color: var(--body); }
.bullets a { color: var(--brand); text-decoration: underline; }

/* ---------- 11. FAQ ---------- */
.faq-group { margin-bottom: 30px; }
.faq-group > h2 { font-size: 18px; color: var(--brand); margin: 0 0 4px; }
.faq-group > p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
details.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 0 16px; }
details.faq-item > summary { cursor: pointer; list-style: none; padding: 14px 30px 14px 0; position: relative; font-size: 15px; font-weight: 600; color: var(--ink); }
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after { content: "＋"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold-ink); font-weight: 700; }
details.faq-item[open] > summary::after { content: "－"; }
.faq-q { display: inline; margin: 0; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
details.faq-item .ans { padding: 0 0 16px; color: var(--body); font-size: 14px; line-height: 1.85; }

/* ---------- 12. 键值列表 / 提示条 ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; color: var(--ink); }
.kv dd a { color: var(--brand); text-decoration: underline; }

.notice { background: #F3F6FB; border-left: 4px solid var(--brand); padding: 15px 18px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--body); line-height: 1.85; }
.notice strong { color: var(--ink); }
.notice a { color: var(--brand); text-decoration: underline; }
.notice.gold { background: var(--gold-band); border-left-color: var(--gold); }
.notice ul { margin: 8px 0 0; padding-left: 20px; }

.tel { font-size: 24px; font-weight: 800; letter-spacing: .4px; }
.tel a { color: var(--brand); }

/* ---------- 13. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--gold); border-color: var(--gold); color: #2A1E02; }
.btn-solid:hover { background: #CDA34A; border-color: #CDA34A; color: #2A1E02; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-3); border-color: var(--brand-3); color: #fff; }
.btn-primary { background: #fff; border-color: #fff; color: var(--brand); font-weight: 700; }
.btn-primary:hover { background: #EDF0F6; color: var(--brand); }
.btn-line { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-line:hover { background: #F1F4F9; color: var(--brand); }
.btn-ghost, .btn-line-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover, .btn-line-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 14. 表单（免费评估） ---------- */
.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 84px; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.ok { display: none; background: #EDF7F0; border: 1px solid #B7E0C4; color: #1E6B3E; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; line-height: 1.85; }

/* ---------- 15. 页脚（含互链闭环，GEO 实体锚定） ---------- */
.site-footer { background: var(--ink); color: #B9BEC9; padding: clamp(30px, 4vw, 46px) 0 22px; font-size: 13.5px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.25fr 1.25fr; gap: 26px; }
.ft-name { margin: 0 0 8px; color: #fff; font-size: 16px; font-weight: 700; }
.ft-tag { margin: 0 0 12px; color: #9AA1AE; line-height: 1.8; }
.ft-tel { margin: 0; }
.ft-tel a { color: var(--gold-on-dark); font-weight: 700; font-size: 17px; }
.ft-h { margin: 0 0 10px; color: #fff; font-size: 13.5px; font-weight: 700; }
.ft-list { list-style: none; margin: 0; padding: 0; line-height: 2; }
.ft-list a { color: #B9BEC9; }
.ft-list a:hover { color: #fff; text-decoration: underline; }
.ft-bottom { margin-top: 26px; border-top: 1px solid #2C3340; padding-top: 16px; color: #8B909B; font-size: 12.5px; line-height: 1.85; }
.ft-bottom p { margin: 0 0 6px; }
.ft-bottom a { color: #B9BEC9; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .creed-list { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 680px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 0;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; font-size: 15px; }
  .nav ul li + li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 13px 4px; }
  .nav a[aria-current="page"]::after { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .facts dl { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dt { color: var(--gold-on-dark); font-size: 12.5px; margin-top: 8px; }
}

/* ---------- 17. 打印 ---------- */
@media print {
  .site-header, .nav-toggle, .hero-cta, .site-footer { display: none; }
  body { background: #fff; }
  .hero, .page-hero { background: #fff; color: #000; }
  .hero h1, .page-hero h1, .hero-lead, .page-hero p { color: #000; }
}
