@import url('variables.css');
/* T03 · 炽橙主题（Ember）· 默认品牌「橙榜投票」
 * ---------------------------------------------------------------------------
 * 用法：建站时由 ConsoleManager::copyThemeAssets() 复制到 sites/{域名}/public/theme.css，
 *       并把上面那行 @import 的相对路径重写为同目录的 variables.css。
 *       ⚠️ @import 必须在文件最前一行，且路径写法不可变更，否则部署后 variables.css 404、整套变量失效。
 *
 * 本文件承担两件事：
 *   1) 逐个覆盖共享变量基的 10 个变量（该文件全站共享、不分主题，漏覆盖任何一个都会漏出 T01 的深蓝主色）。
 *      --primary 家族之外的项一并接管，使 T03 站不依赖共享基文件的任何取值。
 *   2) 提供 T03 全站共享的组件样式（.t03-* 系列，含左侧竖导航、暖调卡片、筛选 chip、分页、
 *      FAQ 通栏分隔条、案例 figure、法律页 TOC 等）。
 *   各页独有的一屏布局（Hero 高度、页内栅格列宽等）由页面内联 <style> 收口，与 T02 模式一致。
 *
 * 差异化：T02 为冷蓝 + 顶部横导航 + 全站无衬线；T03 为暖橙/奶油底 + 左侧固定竖导航 + 衬线标题，
 *         且类名全部走 t03- 前缀，绝不复用 T01/T02 的结构类（防百度绿萝同源判定）。
 * 色彩纪律：主橙只用于主按钮/选中态/强调小标，大面积背景一律不用橙；正文对比度 ≥ 7:1。
 */

:root {
  /* ---- 覆盖共享变量基的 10 个变量（缺一项即漏出深蓝主色，必须逐项写全）---- */
  --primary:        #ea580c;   /* 主色 橙 600：按钮/强调/选中态 */
  --primary-dark:   #c2410c;   /* 主色深染：hover/描边 */
  --bg:             #fffbf5;   /* 页面底色 奶油暖白（非纯白，与 T02 一眼分开） */
  --text:           #29211a;   /* 正文 暖调近黑 */
  --muted:          #7c6a5d;   /* 次要文字 暖褐 */
  --card-bg:        #ffffff;   /* 卡片底 */
  --radius:         14px;      /* 圆角（T02 为 10px，形状语言也拉开） */
  --shadow:         0 1px 2px rgba(80,40,10,.06), 0 8px 24px rgba(80,40,10,.05);
  --nav-bg:         #1c1917;   /* 左侧竖导航底 暖调近黑（深-暖-亮 三层） */
  --link:           #0f766e;   /* 内容区链接走辅助色，不用主色，避免满屏橙 */

  /* ---- T03 新增令牌（PRD §2.1）---- */
  --primary-soft:   #fff3e8;   /* 主色浅底：筛选激活态、chip 底 */
  --accent:         #0f766e;   /* 辅助强调色：正文链接、要点（橙色之外的第二色） */
  --surface-alt:    #fdf6ec;   /* 次级底：侧栏、CTA 区 */
  --border:         #f0dfc8;   /* 边框 暖米色 */
  --border-strong:  #e2c9a4;   /* 强边框 */
  --nav-fg:         #fafaf9;   /* 竖导航文字 */
  --nav-active:     #fb923c;   /* 竖导航高亮 */

  /* ---- 字体栈（零 webfont、零字体请求）---- */
  --t03-font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --t03-font-title: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
}

/* ---- T03 专属结构变体（T01 用 nav-a/card-a、T02 用 nav-b/card-b，此处取 c 系列） ---- */
/* 站群内同节点 ≤3 站须主题与结构变体互不相同；T03 站 site.php 配 skin => array('nav'=>'nav-c','card'=>'card-c')。
 * T03 模板自身不使用 nav-*/card-* 类（避免串主题样式），这里只提供控制台列表页的变体标记。 */
.nav-c  {}
.card-c {}

/* ===================== 基础重置（各页共用） ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--t03-font-body);
  font-size: 1rem;
  line-height: 1.85;          /* 比 T02 的 1.6 更松垮，阅读感 */
  color: var(--text);
  background: var(--bg);
  /* 正文段落限宽 72ch（约 34 个中文字符），长文阅读必需 */
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* 正文主区限宽（长段落不至于拉满 1920px 宽屏） */
.t03-main p,
.t03-main li,
.t03-post-full p,
.t03-legal p,
.t03-legal li { max-width: 72ch; }

/* ===================== 左侧固定竖导航（核心骨架差异） ===================== */
.t03-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 236px;
  display: flex;
  flex-direction: column;
  background: var(--nav-bg);
  color: var(--nav-fg);
  z-index: 40;
}

.t03-rail__brand {
  display: block;
  padding: 28px 24px;
  font-family: var(--t03-font-title);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--nav-fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 250, 249, .12);
}
.t03-rail__brand:hover { color: var(--nav-active); }

.t03-rail__list {
  list-style: none;
  flex: 1 1 auto;
  padding: 20px 0;
  overflow-y: auto;
}

/* 每项高 44px，左侧 3px 选中色条 */
.t03-rail__item { position: relative; }

.t03-rail__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px 0 27px;
  font-size: 1.05rem;
  color: rgba(250, 250, 249, .78);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .15s ease, background .15s ease;
}
.t03-rail__link:hover {
  color: var(--nav-fg);
  background: rgba(251, 146, 60, .10);
}
/* 选中态用 .is-on（不用 T02 的 .active，避免样式与指纹串台） */
.t03-rail__link.is-on {
  color: var(--nav-active);
  border-left-color: var(--nav-active);
  background: rgba(251, 146, 60, .14);
  font-weight: 600;
}

.t03-rail__cta {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(250, 250, 249, .12);
}

/* 移动端展开开关：<details> 无 JS 兜底，仅用 CSS 控制显隐 */
.t03-rail__toggle { display: none; }

/* ===================== 主区 ===================== */
.t03-wrap { min-height: 100%; }

.t03-main {
  margin-left: 236px;
  max-width: 1120px;
  padding: 44px 56px 72px;
}

.t03-main--wide { max-width: 1280px; }

/* ===================== 标题 / 小标 ===================== */
.t03-h1 {
  font-family: var(--t03-font-title);
  font-size: 2.25rem;          /* 页面 H1 */
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

/* 装饰性小标：主色、字间距 .09em、先于 h2 出现（T02 无此元素） */
.t03-eyebrow {
  font-size: .8125rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--primary);
  margin-bottom: .7rem;
}

.t03-h2 {
  font-family: var(--t03-font-title);
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}

.t03-h3 {
  font-family: var(--t03-font-title);
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}

.t03-lead {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ===================== 按钮 ===================== */
.t03-btn {
  display: inline-block;
  padding: .8rem 1.7rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-family: var(--t03-font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.t03-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

/* 次按钮（幽灵）：透明底 + 主色描边 */
.t03-btn--ghost {
  background: transparent;
  color: var(--primary);
}
.t03-btn--ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.t03-btn--block { display: block; width: 100%; text-align: center; }

/* 导航内 CTA（深底上需要浅色按钮） */
.t03-rail__cta .t03-btn {
  display: block;
  text-align: center;
  padding: .7rem 1rem;
  font-size: .95rem;
}

/* ===================== 面包屑（ol 结构 + span 分隔符） ===================== */
.t03-crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.t03-crumbs li { display: inline-flex; align-items: center; gap: .45rem; }
.t03-crumbs a { color: var(--accent); }
.t03-crumbs [aria-hidden="true"] { color: var(--border-strong); }

/* ===================== 区块 ===================== */
.t03-section { margin-bottom: 4rem; }
.t03-section__head { margin-bottom: 1.8rem; }

/* ===================== 卡片通用（暖米边框 + 暖调投影） ===================== */
.t03-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===================== 案例卡（figure + figcaption） ===================== */
.t03-case {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);   /* 左侧橙条 */
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.t03-case:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(80, 40, 10, .10);
}
.t03-case__cap { margin: 0; }
.t03-case__cap .t03-h3 { margin-bottom: .55rem; }
.t03-case__stat {
  font-family: var(--t03-font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.t03-case__text { color: var(--muted); margin-bottom: .9rem; }
.t03-case__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
}
.t03-case__tags li {
  font-size: .75rem;
  line-height: 1;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

/* ===================== FAQ 通栏分隔式（不用卡片盒子） ===================== */
.t03-qa__item {
  padding: 1.5rem 0 1.5rem 1.2rem;
  border-left: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
  max-width: 72ch;
}
.t03-qa__item:last-of-type { border-bottom: none; }
.t03-qa__q {
  font-family: var(--t03-font-title);
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .55rem;
}
.t03-qa__a { color: var(--muted); }

/* ===================== 法律页（正文 + 右侧 TOC） ===================== */
.t03-legal__h {
  font-family: var(--t03-font-title);
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
  margin: 2.2rem 0 .8rem;
  scroll-margin-top: 24px;
}
.t03-legal__h:first-of-type { margin-top: 0; }
.t03-legal__toc {
  position: sticky;
  top: 24px;
  padding: 1.4rem 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.t03-legal__toc .t03-eyebrow { margin-bottom: .8rem; }
.t03-legal__toc ol { list-style: none; counter-reset: none; }
.t03-legal__toc li { margin-bottom: .5rem; }
.t03-legal__toc li:last-child { margin-bottom: 0; }
.t03-legal__toc a { font-size: .9rem; line-height: 1.5; }

/* ===================== 侧栏（sticky，位于左列） ===================== */
.t03-aside {
  padding: 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.t03-aside__title {
  font-family: var(--t03-font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--primary);
}
.t03-aside__list { list-style: none; }
.t03-aside__list li {
  padding: .45rem 0 .45rem .9rem;
  border-left: 2px solid var(--border-strong);
  font-size: .95rem;
  line-height: 1.6;
}
.t03-aside__list li:hover { border-left-color: var(--primary); }
.t03-aside__list a { color: var(--text); }
.t03-aside__list a:hover { color: var(--primary-dark); }

/* ===================== 筛选 chip（data-filter + aria-selected） ===================== */
.t03-filter {
  display: flex;
  gap: .6rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.t03-filter::-webkit-scrollbar { display: none; }
.t03-filter { scrollbar-width: none; }

.t03-filter__btn {
  flex: 0 0 auto;
  padding: .5rem 1.05rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text);
  font-family: var(--t03-font-body);
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.t03-filter__btn:hover { border-color: var(--primary); color: var(--primary-dark); }
/* 选中态：.is-on（不使用 T02 的 .active） */
.t03-filter__btn.is-on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ===================== 分页（位于列表上方，ol 结构） ===================== */
.t03-pager {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.t03-pager__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.t03-pager__cell { display: inline-flex; }
.t03-pager__link {
  display: inline-block;
  min-width: 40px;
  padding: .45rem .8rem;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-size: .95rem;
  text-decoration: none;
}
.t03-pager__link:hover { border-color: var(--primary); color: var(--primary-dark); }
/* 当前页用 aria-current="page"，不用 <b class="active"> */
.t03-pager__link[aria-current="page"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: default;
}
.t03-pager__link[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

/* ===================== 空态 ===================== */
.t03-empty {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--muted);
}

/* ===================== 页脚（三列，非 T02 的单行居中） ===================== */
.t03-foot {
  margin-left: 236px;
  padding: 3rem 56px 2rem;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}
.t03-foot__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1120px;
}
.t03-foot__h {
  font-family: var(--t03-font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .9rem;
}
.t03-foot__col p,
.t03-foot__col li { font-size: .9rem; line-height: 1.9; color: var(--muted); }
.t03-foot__col ul { list-style: none; }
.t03-foot__legal {
  max-width: 1120px;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  line-height: 1.8;
  color: var(--muted);
}
.t03-foot__filing { margin-top: .35rem; }

/* ===================== CTA 通栏（左侧 4px 橙条，不用蓝底盒） ===================== */
.t03-cta {
  margin-top: 3rem;
  padding: 2rem 2.2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}
.t03-cta .t03-h2 { margin-bottom: .5rem; }
.t03-cta p { color: var(--muted); max-width: 60ch; }
.t03-cta .t03-btn { margin-top: 1.2rem; }

/* ===================== 响应式降级 ===================== */
/* ≤1024px：左侧竖导航降级为顶部吸顶条，导航项横向滚动 */
@media (max-width: 1024px) {
  .t03-rail {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0 1.2rem;
  }
  .t03-rail__brand {
    padding: 14px 0;
    border-bottom: none;
    font-size: 1.15rem;
    white-space: nowrap;
  }
  .t03-rail__list {
    display: flex;
    flex: 1 1 auto;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .t03-rail__list::-webkit-scrollbar { display: none; }
  .t03-rail__item { flex: 0 0 auto; }
  .t03-rail__link {
    min-height: 52px;
    padding: 0 .9rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: .95rem;
  }
  .t03-rail__link.is-on {
    border-left-color: transparent;
    border-bottom-color: var(--nav-active);
  }
  .t03-rail__cta {
    padding: 0;
    border-top: none;
    flex: 0 0 auto;
  }
  .t03-rail__cta .t03-btn { padding: .5rem 1rem; white-space: nowrap; }

  /* 主区让位给吸顶条 */
  .t03-main { margin-left: 0; max-width: 100%; padding: 32px 28px 56px; }
  .t03-foot { margin-left: 0; padding: 2.5rem 28px 1.8rem; }
  .t03-foot__cols { grid-template-columns: 1fr 1fr; }
}

/* ≤640px：单列化；文章日期块由左侧竖排改为标题上方横排 */
@media (max-width: 640px) {
  .t03-h1 { font-size: 1.75rem; }
  .t03-eyebrow { font-size: .8125rem; }

  .t03-rail {
    flex-wrap: wrap;
    padding: 0 1rem;
    row-gap: 0;
  }
  .t03-rail__brand { padding: 12px 0 10px; }
  .t03-rail__cta { display: none; }   /* 移动端 CTA 由页脚/正文提供，隐藏以省横向空间 */

  .t03-main { padding: 20px 18px 48px; }
  .t03-foot { padding: 2rem 18px 1.5rem; }
  .t03-foot__cols { grid-template-columns: 1fr; gap: 1.6rem; }

  .t03-cta { padding: 1.4rem 1.3rem; }
  .t03-btn { display: block; width: 100%; text-align: center; }   /* 移动端 CTA 满宽 */
  .t03-btn--ghost { margin-top: .7rem; }

  .t03-qa__item { padding-left: .9rem; }
  .t03-legal__toc { position: static; }   /* 移动端 TOC 不再 sticky */
}

/* 无障碍：仅供读屏使用的文本 */
.t03-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}