/* ============================================================
   格局企迪 · 官网（面向学员）
   与系统同一套视觉语言（public/styles.css）：编辑设计 / 杂志排版，
   纸与墨 + 矿物强调色，Playfair Display · Archivo · IBM Plex Mono，方角、发丝线、硬边投影。
   面向学员，比系统更舒展：字号更大、留白更多、图片更多，不用数据密集的排版。
   官网要能单独部署，所以不引用系统的样式表；下面的变量与 public/styles.css 的 :root 保持一致，
   系统改了色板或字体，这里同步改。
   ============================================================ */

:root {
  --paper:      #F4F0E6;
  --paper-2:    #EFEADC;
  --sheet:      #FBF9F3;
  --ink:        #17150F;
  --ink-2:      #4A4437;
  --ink-3:      #857C69;
  --ink-4:      #B3AB97;

  --rust:       #B0432A;
  --rust-wash:  #F2E1D9;
  --pine:       #2C6851;
  --pine-wash:  #DCE8E0;
  --ochre:      #BC8324;
  --ochre-wash: #F3E7CE;
  --slate:      #33606F;
  --slate-wash: #DCE6E9;
  --umber:      #77502D;
  --umber-wash: #EBE0D3;

  --line:       #D8D1BF;
  --line-soft:  #E6E0D0;

  /* 深色块上的文字（与登录页刊头一致） */
  --on-ink:     #CFC7B4;
  --on-ink-2:   #A69D89;
  --on-ink-3:   #6E6653;
  --ink-rule:   #453F32;

  --f-display: 'Playfair Display', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --f-serif:   'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --f-body:    'Archivo', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --f-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --wrap: 1180px;
  --gutter: 34px;
  --edge: 64px;    /* 通栏部分（顶栏 / 首屏）的左边距 */
  --top-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}
/* 纸张颗粒叠层，与系统相同 */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

a { color: inherit; }
ol, ul { list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon-sprite { display: none; }
.ico { width: 16px; height: 16px; flex-shrink: 0; }
.mt { margin-top: 24px; }
.mt-lg { margin-top: 64px; }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

/* 跳到正文：键盘用户第一下 Tab 就能跳过导航 */
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 10px; }

/* ============================================================
   按钮（与系统 .btn-solid / .btn-line 同一套形状）
   ============================================================ */
.btn-rust, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); letter-spacing: .12em;
  padding: 12px 22px; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid; transition: background .15s, color .15s, border-color .15s;
}
.btn-rust { background: var(--rust); color: var(--paper); border-color: var(--rust); }
.btn-rust:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost { background: transparent; color: var(--on-ink); border-color: var(--on-ink-3); }
.btn-ghost:hover { border-color: var(--ochre); color: var(--ochre); }

/* ============================================================
   顶栏
   ============================================================ */
.site-top {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}
.top-row { display: flex; align-items: center; gap: 22px; height: var(--top-h); padding: 0 44px 0 var(--edge); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; background: var(--rust); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 19px; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-size: 20px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--ink-2); letter-spacing: .08em; margin-top: 4px; white-space: nowrap; }

.site-nav { display: flex; align-items: stretch; margin-left: auto; height: 100%; }
.site-nav a {
  display: flex; align-items: center;
  padding: 0 15px; font-size: 15px; color: var(--ink-2); text-decoration: none; letter-spacing: .04em;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover, .site-nav a.on { color: var(--ink); border-bottom-color: var(--rust); }
.top-actions { display: flex; align-items: center; gap: 10px; }
/* 员工入口：学员用不到，用最轻的样式放在角落 */
.staff-login {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-3); text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border: 1px solid transparent; transition: color .15s, border-color .15s;
}
.staff-login .ico { width: 13px; height: 13px; }
.staff-login:hover { color: var(--ink); border-color: var(--line); }
.nav-toggle {
  display: none; width: 40px; height: 40px; place-items: center;
  border: 1px solid var(--line); background: var(--sheet); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ============================================================
   首屏：左刊头（与登录页同构）/ 右主图
   ============================================================ */
.hero { display: grid; grid-template-columns: minmax(340px, 44%) minmax(0, 1fr); min-height: min(calc(100vh - var(--top-h)), 820px); }
.hero-brand {
  background: var(--ink); color: var(--paper);
  padding: 56px 48px 34px var(--edge);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
}
.hero-brand::after {   /* 斜向纹理，与登录页一致 */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background: repeating-linear-gradient(126deg, transparent 0 22px, var(--paper) 22px 23px);
}
.hb-spine {
  position: absolute; left: 18px; top: 56px;
  writing-mode: vertical-rl;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--on-ink-3);
}
.hb-main { position: relative; z-index: 1; max-width: 460px; margin-top: auto; }
.hb-kicker {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ochre); margin-bottom: 18px;
}
.hb-title {
  font-family: var(--f-display); font-size: 78px; font-weight: 900;
  line-height: .95; letter-spacing: .02em; white-space: nowrap;
}
.hb-sub { font-size: 19px; color: var(--on-ink); margin-top: 14px; letter-spacing: .14em; }
.hb-rule { height: 1px; background: var(--ink-rule); margin: 28px 0 24px; }
.hb-lead { font-family: var(--f-serif); font-size: 30px; font-weight: 700; line-height: 1.5; color: var(--paper); letter-spacing: .04em; }
.hb-desc { font-size: 15px; color: var(--on-ink-2); line-height: 2; margin-top: 12px; }
.hb-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hb-foot {
  position: relative; z-index: 1;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ochre);
}

.hero-visual { position: relative; padding: 56px 56px 56px 72px; display: grid; align-content: center; min-width: 0; }
.photo-hero { aspect-ratio: 4 / 3; box-shadow: 14px 14px 0 rgba(23,21,15,.12); border-color: var(--ink); }
.hero-quote {
  /* 压在主图左下角 */
  position: relative; justify-self: start; margin: -52px 0 0 -36px; max-width: 340px;
  background: var(--sheet); border: 1px solid var(--ink); border-left: 4px solid var(--rust);
  padding: 16px 20px 14px; box-shadow: 8px 8px 0 rgba(23,21,15,.1);
}
.hero-quote p { font-family: var(--f-serif); font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.hero-quote cite { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 6px; letter-spacing: .06em; }

/* ============================================================
   照片占位框：纸色底 + 斜线纹 + 标签。换成真实照片时，用 <img> 替换整个 .photo
   ============================================================ */
.photo {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(23,21,15,.045) 14px 15px);
  border: 1px solid var(--line); color: var(--ink-3); text-align: center; padding: 16px;
  min-height: 160px;
}
.photo .ico { width: 30px; height: 30px; color: var(--ink-4); margin-bottom: 4px; }
.ph-label { font-family: var(--f-serif); font-size: 16px; font-weight: 600; color: var(--ink-2); letter-spacing: .08em; }
.ph-sub { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
/* 真实照片放进来后的样式 */
img.photo-img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }

/* ============================================================
   章节：报头式页头（系统 .masthead）
   ============================================================ */
.sec { padding: 110px 0 30px; }
.sec.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 100px; margin-top: 80px; }
.sec.alt + .sec { padding-top: 110px; }
.sec-head {
  display: grid; grid-template-columns: 96px auto 1fr;
  align-items: end; gap: 18px;
  padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}
.sh-meta { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.sh-num { font-family: var(--f-display); font-size: 46px; font-weight: 700; line-height: 1; color: var(--rust); }
.sh-kicker { font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.sh-title { font-family: var(--f-display); font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.sh-rule { height: 1px; background: var(--line); margin-bottom: 15px; }
.sec-lede { max-width: 780px; font-size: 17px; color: var(--ink-2); line-height: 2; margin: 0 0 48px 114px; }

/* 小标题：英文标签 + 中文名 + 发丝线（系统 .block-title） */
.block-title {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 9px; margin-bottom: 22px;
  border-bottom: 1px solid var(--ink);
}
.block-title .bt-name { color: var(--ink); font-family: var(--f-serif); font-size: 19px; font-weight: 600; letter-spacing: .06em; text-transform: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* 要点列表：方块项目符号 */
.points { display: flex; flex-direction: column; }
.points li { position: relative; padding: 13px 0 13px 20px; border-bottom: 1px dotted var(--line); font-size: 15.5px; color: var(--ink-2); line-height: 1.85; }
.points li:last-child { border-bottom: none; }
.points li::before { content: ''; position: absolute; left: 0; top: 24px; width: 7px; height: 7px; background: var(--rust); }
.points li b { color: var(--ink); font-weight: 600; }

.note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

/* ============================================================
   01 关于我们
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--sheet); }
.pillar { padding: 32px 30px 34px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: none; }
.pillar:nth-child(2) { background: var(--paper-2); }
.pl-label {
  display: inline-block; font-size: 13px; letter-spacing: .3em; color: var(--paper); background: var(--rust);
  padding: 2px 10px 2px 13px;
}
.pillar h3 { font-family: var(--f-serif); font-size: 22px; font-weight: 700; line-height: 1.55; margin: 18px 0 12px; letter-spacing: .04em; }
.pillar p { font-size: 15.5px; color: var(--ink-2); line-height: 1.95; }

/* 发展历程：横向时间轴，最后一项（今年）用深色 */
.milestones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; position: relative; }
/* 时间轴的线画在每一项上：超过 4 条换行后，第二行也有线 */
.milestones li::before { content: ''; position: absolute; left: 0; right: 0; top: 37px; height: 1px; background: var(--ink); }
.milestones li { position: relative; padding: 0 22px 0 0; }
.ms-date { display: block; font-family: var(--f-display); font-size: 26px; font-weight: 700; color: var(--rust); line-height: 1; }
.milestones li::after {   /* 时间轴上的节点 */
  content: ''; position: absolute; left: 0; top: 32px; width: 11px; height: 11px;
  background: var(--paper); border: 2px solid var(--rust);
}
.milestones li.now::after { background: var(--rust); }
.milestones p { margin-top: 32px; font-size: 15px; color: var(--ink-2); line-height: 1.8; }

.split { display: grid; grid-template-columns: 6fr 5fr; gap: 44px; align-items: center; }
.split-lede { font-size: 15.5px; color: var(--ink-2); line-height: 1.9; margin: -6px 0 6px; }
.photo-wide { aspect-ratio: 4 / 3; box-shadow: 12px 12px 0 rgba(23,21,15,.1); border-color: var(--ink); }

/* ============================================================
   02 课程体系
   ============================================================ */
/* 进阶系列：三级台阶，越往后越高 */
/* 两大版块：版块名压在左侧深色条上，项目卡两列 */
.board { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.board-head {
  background: var(--ink); color: var(--paper); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
.board-head::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background: repeating-linear-gradient(126deg, transparent 0 18px, var(--paper) 18px 19px);
}
.board-head .ico { width: 28px; height: 28px; color: var(--ochre); }
.board-head h3 { font-family: var(--f-serif); font-size: 28px; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.board-head p { font-size: 14px; color: var(--on-ink-2); margin-top: 6px; letter-spacing: .08em; }

.course {
  background: var(--sheet); border: 1px solid var(--line); border-top: 5px solid var(--umber);
  padding: 22px 26px 24px; display: flex; flex-direction: column; align-items: flex-start;
}
.course.t-slate { border-top-color: var(--slate); }
.course.t-pine  { border-top-color: var(--pine); }
.course.t-ochre { border-top-color: var(--ochre); }
.course.t-rust  { border-top-color: var(--rust); }
.course-tag {
  font-size: 12.5px; letter-spacing: .08em; padding: 2px 10px;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--paper-2);
}
.course h4 { font-family: var(--f-serif); font-size: 22px; font-weight: 700; margin: 14px 0 8px; letter-spacing: .04em; line-height: 1.4; }
.course p { font-size: 15px; color: var(--ink-2); line-height: 1.9; }

/* 学习旅程：六步横排，序号用衬线大字 */
.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--sheet); }
.journey li { padding: 24px 20px 26px; border-right: 1px solid var(--line); position: relative; }
.journey li:last-child { border-right: none; }
.journey li:nth-child(even) { background: var(--paper-2); }
.jn-num { font-family: var(--f-display); font-size: 30px; font-weight: 700; color: var(--rust); line-height: 1; }
.journey h3 { font-family: var(--f-serif); font-size: 19px; font-weight: 700; margin: 14px 0 8px; letter-spacing: .04em; }
.journey p { font-size: 14px; color: var(--ink-2); line-height: 1.85; }

/* ============================================================
   03 学员风采
   ============================================================ */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 220px 220px;
  grid-template-areas:
    "a a b c"
    "a a d e";
}
.gallery .photo { min-height: 0; }
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; } .g-e { grid-area: e; }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote {
  background: var(--sheet); border: 1px solid var(--line); border-top: 2px solid var(--ink);
  padding: 54px 26px 20px; display: flex; flex-direction: column; position: relative;
}
.quote::before {   /* 大号引号压在正文上方，不与文字重叠 */
  content: '“'; position: absolute; left: 22px; top: 10px;
  font-family: var(--f-display); font-size: 64px; line-height: 1; color: var(--rust);
}
.quote blockquote p { font-family: var(--f-serif); font-size: 17px; font-weight: 600; line-height: 1.85; color: var(--ink); position: relative; }
.quote figcaption {
  margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.q-who { font-size: 13.5px; color: var(--ink-2); }
.q-tag { font-size: 11.5px; color: var(--ink-3); border: 1px dashed var(--ink-4); padding: 0 6px; }

/* ============================================================
   04 常见问题：原生 details，不需要脚本
   ============================================================ */
.faq { max-width: 900px; margin-top: -8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 48px 20px 0; font-family: var(--f-serif); font-size: 19px; font-weight: 600; color: var(--ink);
  letter-spacing: .03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {   /* 加号，展开后转成减号 */
  content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--rust), var(--rust)) center / 14px 2px no-repeat,
    linear-gradient(var(--rust), var(--rust)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { background: linear-gradient(var(--rust), var(--rust)) center / 14px 2px no-repeat; }
.faq summary:hover { color: var(--rust); }
.faq details p { padding: 0 48px 22px 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.95; }

/* ============================================================
   05 联系我们（只展示，不收集任何信息）
   ============================================================ */
.contact { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: start; }
.contact-list { margin-top: -8px; }
.ct-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px dotted var(--line); align-items: baseline; }
.ct-row dt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); letter-spacing: .1em; }
.ct-row dt .ico { color: var(--rust); }
.ct-row dd { font-size: 16px; color: var(--ink); }
.todo { color: var(--ink-3); border-bottom: 1px dashed var(--ink-4); }
.ct-sub { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-box {
  width: 168px; height: 168px; border: 1px solid var(--ink); background-color: var(--sheet);
  background-image:
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(23,21,15,.06) 10px 11px);
  background-size: 34px 34px, 34px 34px, 34px 34px, auto;
  background-position: 14px 14px, calc(100% - 14px) 14px, 14px calc(100% - 14px), 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  box-shadow: 8px 8px 0 rgba(23,21,15,.1);
}

/* ============================================================
   页脚
   ============================================================ */
.site-foot { background: var(--ink); color: var(--paper); margin-top: 110px; position: relative; overflow: hidden; }
.site-foot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background: repeating-linear-gradient(126deg, transparent 0 22px, var(--paper) 22px 23px);
}
.site-foot > * { position: relative; z-index: 1; }
.foot-row { display: grid; grid-template-columns: 1.2fr 2fr; gap: 34px; padding-top: 48px; padding-bottom: 34px; }
.site-foot .brand { color: var(--paper); }
.site-foot .brand-sub { color: var(--on-ink); }
.foot-brand p { font-family: var(--f-serif); font-size: 15px; color: var(--on-ink-2); margin-top: 16px; line-height: 1.8; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 30px; align-content: start; justify-content: flex-end; padding-top: 6px; }
.foot-nav a { font-size: 15px; color: var(--on-ink); text-decoration: none; padding: 3px 0; }
.foot-nav a:hover { color: var(--ochre); }
.foot-base {
  border-top: 1px solid var(--ink-rule); padding: 16px 0 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; letter-spacing: .1em; color: var(--on-ink-2);
}
/* 备案号（写在 services/site-render.js 的 BEIAN 里，填了才显示） */
.foot-beian { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.foot-beian a { color: var(--on-ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.foot-beian a:hover { color: var(--on-ink); }
/* 官方公安备案图标不是正方形（62×67），按高度缩放、宽度随原图比例 */
.foot-beian img { height: 14px; width: auto; }
.foot-staff { color: var(--on-ink-3); text-decoration: none; }
.foot-staff:hover { color: var(--on-ink); }

/* ============================================================
   官网管理生成的部分：真实照片、照片墙、新闻、文章页、预览横条
   ============================================================ */
/* 主图、配图换成真实照片后保持 4:3，按比例裁切 */
img.photo-img.photo-hero, img.photo-img.photo-wide { height: auto; aspect-ratio: 4 / 3; }

/* 照片墙。正好 5 张时用上面的大小格版式，其余张数用等大的格子（.free） */
.gal-photo { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); min-height: 0; }
.gal-photo img { width: 100%; height: 100%; object-fit: cover; }
.gal-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px; font-size: 13px; letter-spacing: .06em; color: var(--paper);
  background: linear-gradient(transparent, rgba(23,21,15,.72));
}
.gallery.free { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 240px; grid-template-areas: none; }

.qr-img { width: 168px; height: 168px; object-fit: contain; background: #fff; border: 1px solid var(--ink); padding: 6px; box-shadow: 8px 8px 0 rgba(23,21,15,.1); }

/* ---------- 新闻卡片（首页三条、列表页） ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0;
  background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--rust);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.news-card.k-event { border-top-color: var(--pine); }
.news-card:hover { border-color: var(--ink); box-shadow: 8px 8px 0 rgba(23,21,15,.1); transform: translate(-2px, -2px); }
.news-card.k-event:hover { border-top-color: var(--pine); }
.news-card:not(.k-event):hover { border-top-color: var(--rust); }
.nc-cover {
  aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(23,21,15,.045) 14px 15px);
  border-bottom: 1px solid var(--line);
}
.nc-cover img { width: 100%; height: 100%; object-fit: cover; }
.nc-cover-kind { font-family: var(--f-serif); font-size: 24px; font-weight: 700; color: var(--ink-4); letter-spacing: .3em; }
.nc-body { padding: 18px 22px 20px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; line-height: 1.6; }
.nc-kind { padding: 0 8px; color: var(--paper); background: var(--rust); }
.nc-kind.k-event { background: var(--pine); }
.nc-pin { padding: 0 7px; border: 1px solid var(--ochre); color: var(--ochre); }
.ev-state { padding: 0 7px; border: 1px solid var(--ink-4); color: var(--ink-3); }
.ev-state[hidden] { display: none; }
.news-card h3 { font-family: var(--f-serif); font-size: 19px; font-weight: 700; line-height: 1.5; margin: 12px 0 8px; letter-spacing: .03em; overflow-wrap: anywhere; }
.nc-sum { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; overflow-wrap: anywhere; }
.nc-event { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.nc-event span { display: inline-flex; align-items: center; gap: 6px; }
.nc-event .ico { width: 14px; height: 14px; color: var(--pine); }
.nc-more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--rust); letter-spacing: .08em; }
.nc-more .ico { width: 14px; height: 14px; transition: transform .15s; }
.news-card:hover .nc-more .ico { transform: translateX(3px); }
/* 已经结束的活动：颜色淡一些 */
.news-card.is-ended .nc-cover img { filter: grayscale(.7); opacity: .85; }
.news-card.is-ended h3 { color: var(--ink-2); }

.news-more { margin-top: 30px; text-align: right; }
.news-more a, .art-back a {
  display: inline-flex; align-items: center; gap: 8px; color: var(--rust); text-decoration: none;
  font-size: 15px; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.news-more .ico, .art-back .ico { width: 15px; height: 15px; }

/* ---------- 新闻列表页 ---------- */
.page-sec { padding-top: 56px; }
.sh-num:empty { display: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 28px; letter-spacing: .06em; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--rust); }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-card.wide { flex-direction: row; }
.news-card.wide .nc-cover { width: 300px; flex-shrink: 0; aspect-ratio: auto; min-height: 190px; border-bottom: none; border-right: 1px solid var(--line); }

/* ---------- 文章页 ---------- */
.article { padding: 56px 0 30px; }
.art-wrap { max-width: 860px; }
.article .nc-meta { font-size: 13.5px; }
.art-title { font-family: var(--f-display); font-size: 40px; font-weight: 700; line-height: 1.35; letter-spacing: .02em; margin: 14px 0 18px; overflow-wrap: anywhere; }
.art-lede { font-family: var(--f-serif); font-size: 18px; color: var(--ink-2); line-height: 1.9; padding-left: 16px; border-left: 3px solid var(--rust); }
.art-event { margin-top: 24px; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--pine); padding: 4px 20px; }
.art-event div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--line); align-items: baseline; }
.art-event div:last-child { border-bottom: none; }
.art-event dt { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); letter-spacing: .08em; }
.art-event dt .ico { color: var(--pine); }
.art-event dd { font-size: 15.5px; }
.art-cover { margin-top: 28px; }
.art-cover img, .art-body figure img { width: 100%; border: 1px solid var(--line); }
.art-body { margin-top: 30px; font-size: 16.5px; line-height: 2; color: var(--ink); overflow-wrap: anywhere; }
.art-body > * + * { margin-top: 1.1em; }
.art-body h2 {
  font-family: var(--f-serif); font-size: 23px; font-weight: 700; line-height: 1.5; letter-spacing: .04em;
  margin-top: 1.8em; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.art-body ul li { position: relative; padding-left: 20px; }
.art-body ul li + li { margin-top: .4em; }
.art-body ul li::before { content: ''; position: absolute; left: 2px; top: .85em; width: 7px; height: 7px; background: var(--rust); }
/* 编号列表：编号用砖红色等宽数字 */
.art-body ol { list-style: decimal; padding-left: 2em; }
.art-body ol li { padding-left: .3em; }
.art-body ol li + li { margin-top: .4em; }
.art-body ol li::marker { color: var(--rust); font-family: var(--f-mono); font-size: .9em; }
.art-body figure { margin-top: 1.6em; }
.art-body figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.art-back { margin-top: 48px; }
.page-sec .art-back { margin-top: 18px; }

/* 预览横条（只在系统里预览时出现） */
.preview-bar {
  position: relative; z-index: 60; background: var(--ochre); color: var(--ink);
  text-align: center; font-size: 13.5px; letter-spacing: .06em; padding: 7px 16px;
}

/* ============================================================
   进场：栏线延展 + 内容上移（与系统 .reveal 一致）
   ============================================================ */
.sec-head { animation: ruleIn .6s cubic-bezier(.2,.7,.3,1) both; }
@keyframes ruleIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.hero-brand .hb-main { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; }
.hero-visual { animation: rise .6s .12s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

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

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .site-nav a { padding: 0 10px; font-size: 14px; }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey li:nth-child(3) { border-right: none; }
  .journey li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .journey li:nth-child(even) { background: var(--sheet); }
  .journey li:nth-child(2), .journey li:nth-child(4), .journey li:nth-child(6) { background: var(--paper-2); }
}
@media (max-width: 1020px) {
  :root { --gutter: 22px; --edge: 22px; }
  .top-row { padding: 0 var(--gutter); }
  .top-actions { margin-left: auto; }
  .nav-toggle { display: grid; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; height: auto; margin: 0;
    background: var(--paper-2); border-bottom: 2px solid var(--ink);
    padding: 6px var(--gutter) 14px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); margin: 0; font-size: 16px; }
  .site-nav a:hover, .site-nav a.on { border-bottom-color: var(--line-soft); box-shadow: inset 3px 0 0 var(--rust); padding-left: 12px; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-brand { padding: 52px var(--gutter) 30px; }
  .hb-spine { display: none; }
  .hero-visual { padding: 40px var(--gutter) 48px; }
  .hero-quote { justify-self: stretch; max-width: none; margin: -28px 18px 0; }

  .sec-lede { margin-left: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .board { grid-template-columns: 1fr; gap: 16px; }
  .board-head { flex-direction: row; align-items: center; padding: 18px 22px; }
  .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .milestones li::before { display: none; }
  .milestones li { border-top: 1px solid var(--ink); padding-top: 14px; }
  .milestones li::after { top: -6px; }
  .milestones p { margin-top: 10px; }
  .quotes { grid-template-columns: 1fr; }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 240px 160px 160px;
    grid-template-areas: "a a" "b c" "d e";
  }
  .foot-row { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
  .gallery.free { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-template-areas: none; grid-auto-rows: 200px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.wide .nc-cover { width: 220px; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .staff-login { padding: 6px 4px; }
  .hb-title { font-size: 58px; }
  .hb-sub { font-size: 17px; }
  .hb-lead { font-size: 24px; }
  .milestones { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .journey li { border-right: none; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; padding: 20px 18px; }
  .journey li:last-child { border-bottom: none; }
  .journey li:nth-child(n) { background: var(--sheet); }
  .journey li:nth-child(even) { background: var(--paper-2); }
  .journey .jn-num { grid-row: 1 / span 2; }
  .journey h3 { margin: 0 0 4px; }
  .sec { padding-top: 80px; }
  .sec.alt { margin-top: 64px; padding-bottom: 72px; }
  .sec-head { grid-template-columns: 64px 1fr; row-gap: 8px; }
  .sh-rule { display: none; }
  .sh-num { font-size: 34px; }
  .sh-title { font-size: 36px; }
  .sec-lede { font-size: 16px; margin-bottom: 36px; }
  .faq summary { font-size: 17px; padding-right: 36px; }
  .faq details p { padding-right: 0; }
  .contact { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 1fr; gap: 4px; }
  .qr { align-items: flex-start; }
  .gallery { grid-template-rows: 200px 130px 130px; gap: 10px; }
  .gallery.free { grid-template-rows: none; grid-auto-rows: 150px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.wide { flex-direction: column; }
  .news-card.wide .nc-cover { width: auto; min-height: 0; aspect-ratio: 16 / 9; border-right: none; border-bottom: 1px solid var(--line); }
  .article, .page-sec { padding-top: 36px; }
  .art-title { font-size: 30px; }
  .art-lede { font-size: 16.5px; }
  .art-body { font-size: 16px; }
  .art-event div { grid-template-columns: 1fr; gap: 2px; }
}
