/* ==========================================================================
   JRISA — 视觉系统
   依据：规格书第 14 节「Visual Design System」

   设计目标：Quiet credibility.
   应像一本可信的大学或非营利机构学术刊物，而不是升学咨询网站、
   学生竞赛页、会议售票页、创业公司落地页或掠夺性期刊。

   规格书明令避免：鲜艳渐变、霓虹蓝、金色"prestige"效果、
   大面积红色、紫色创业风渐变、装饰性字体、图库人物照。
   ========================================================================== */

:root {
  /* 规格书给定色板 —— 五色，不得增补强调色 */
  --navy:       #183247;  /* 标题、导航、标识 */
  --paper:      #F7F6F1;  /* 主背景 */
  --teal:       #3D6F73;  /* 链接、按钮、克制的强调 */
  --charcoal:   #2B2B2B;  /* 正文 */
  --gray:       #E9EEF0;  /* 分隔线与次级背景 */

  /* 由给定色板推导的层次（未引入新色相） */
  --navy-soft:  #2A4A63;
  --teal-deep:  #305A5E;
  --teal-tint:  #EEF5F4;
  --charcoal-muted: #5A5A5A;
  --charcoal-faint: #656565; /* 5.48:1 on warm off-white; WCAG AA for normal text */
  --rule:       #D8DFE2;
  --rule-faint: var(--gray);
  --surface:    #FFFFFF;

  /* 排版 —— 规格书第 482 行 */
  --font-serif: "Source Serif 4", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: Inter, "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* 间距 —— 规格书要求 generous whitespace */
  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 3rem;   --s8: 4.5rem;
  --s9: 6.5rem;

  --measure: 68ch;
  --container: 1180px;
  --container-narrow: 820px;
  --article-width: 800px;   /* 规格书第 488 行：正文宽 720–850px */

  --radius: 2px;
}

/* ==========================================================================
   基础
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 var(--s4);
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.7rem); letter-spacing: -.012em; }
h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.8rem); letter-spacing: -.008em; }
h3 { font-size: 1.16rem; }
h4,
.label {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
}

p { margin: 0 0 var(--s4); max-width: var(--measure); }

a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--teal-deep); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

ul, ol { margin: 0 0 var(--s4); padding-left: 1.25em; max-width: var(--measure); }
li { margin-bottom: var(--s2); }

strong { color: var(--navy); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s7) 0; }

code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: .88em;
  background: var(--gray);
  padding: .12em .35em;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: var(--s3) var(--s4);
  font-size: .9rem;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   布局
   ========================================================================== */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }
.container--narrow { max-width: var(--container-narrow); }
.container--article { max-width: var(--article-width); }

.section { padding-block: var(--s8); }
.section--tight { padding-block: var(--s7); }
.section--tinted { background: var(--teal-tint); }
.section--gray { background: var(--gray); }
.section--ruled { border-top: 1px solid var(--rule); }

.grid { display: grid; gap: var(--s6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.layout-sidebar { display: grid; gap: var(--s7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) {
  .layout-sidebar { grid-template-columns: 220px 1fr; gap: var(--s8); }
}

.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }
.mb-0 { margin-bottom: 0; }
.full { max-width: none; }
.text-sm { font-size: .92rem; }
.text-muted { color: var(--charcoal-muted); }
.lede { font-size: 1.12rem; color: var(--charcoal-muted); max-width: 60ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   页眉 —— 规格书第 137 节「Global Header」
   品牌锁定：JRISA / 全称 / 描述句。出版方不得在主页眉突出显示。
   ========================================================================== */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding-block: var(--s4);
  position: relative;
}

.brand { text-decoration: none; display: block; min-width: 0; }

/* 规格书第 501 行：排版优先的 wordmark + 一个克制的括号母题 */
.brand__lockup { display: flex; align-items: center; gap: .5rem; }

.brand__motif {
  /* 与 .brand__mark 的大写字高对齐（1.5rem × ≈0.7），读作字母组的一部分 */
  width: .46rem;
  height: 1.05rem;
  flex: none;
  color: var(--teal);
}

.brand__mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .01em;
  line-height: 1;
  display: block;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: .95rem;
  color: var(--navy);
  line-height: 1.25;
  display: block;
  margin-top: .3rem;
  /* 刊名有 58 个字符。不限宽的话，页眉锁定会在 1050px 断点附近
     一路挤占主导航的横向空间；限到 34ch 让它稳定折成两行。 */
  max-width: 34ch;
}

.brand__descriptor {
  font-size: .74rem;
  color: var(--charcoal-faint);
  display: block;
  margin-top: .18rem;
}

/* ── 主导航 ── */

.nav { display: flex; align-items: center; gap: var(--s5); }

.nav__list { display: flex; align-items: center; gap: var(--s5); list-style: none; margin: 0; padding: 0; max-width: none; }
.nav__list > li { margin: 0; position: relative; }

.nav__link,
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: 0;
  padding: var(--s3) 0;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav__link:hover, .nav__trigger:hover { color: var(--teal); border-bottom-color: var(--teal); }
.nav__link[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
.nav__trigger[aria-expanded="true"] { color: var(--teal); border-bottom-color: var(--teal); }

.nav__caret { width: .55em; height: .55em; flex-shrink: 0; transition: transform .15s; }
.nav__trigger[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

/* ── 下拉面板 ── */

.nav__menu {
  position: absolute;
  top: 100%;
  left: calc(var(--s4) * -1);
  min-width: 15rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--navy);
  padding: var(--s3) 0;
  margin: 0;
  list-style: none;
  max-width: none;
  z-index: 10;
}
.nav__menu[hidden] { display: none; }

.nav__menu li { margin: 0; }

.nav__menu a {
  display: block;
  padding: var(--s2) var(--s4);
  font-size: .88rem;
  color: var(--charcoal);
  text-decoration: none;
}
.nav__menu a:hover { background: var(--teal-tint); color: var(--teal-deep); }
.nav__menu a[aria-current="page"] { color: var(--teal); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: inherit;
  font-size: .85rem;
  padding: .5em 1em;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-top: 2px solid var(--navy);
    padding: var(--s4) var(--s5) var(--s5);
    max-height: 75vh;
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--rule-faint); }
  .nav__link, .nav__trigger { display: flex; justify-content: space-between; width: 100%; padding: var(--s3) 0; border-bottom: 0; }
  .nav__menu {
    position: static;
    border: 0;
    border-left: 2px solid var(--gray);
    padding: 0 0 var(--s3);
    margin-left: var(--s3);
    min-width: 0;
  }
  .nav__menu a { padding: var(--s2) var(--s4); }
  .nav .btn { margin-top: var(--s4); text-align: center; }
}

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  padding: .7em 1.4em;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

.btn--outline { background: transparent; color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: #fff; }

.btn--navy { background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); }

.btn--lg { padding: .85em 1.75em; font-size: .96rem; }

/* ==========================================================================
   首页
   ========================================================================== */

.hero {
  background: var(--navy);
  color: #fff;
  padding-block: var(--s9) var(--s8);
}

/* 规格书第 503 行：hero 使用排版、克制的期刊封面 mockup 或抽象图形，
   不得使用学生图库照片。这里是「排版 + 封面 mockup」两栏。 */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s8);
  align-items: center;
}

.hero__cover { justify-self: end; width: 100%; max-width: 300px; }

.hero__cover .journal-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.28);
  outline: 1px solid rgba(255,255,255,.12);
  outline-offset: -1px;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .hero__cover { justify-self: start; max-width: 216px; }
}

.hero h1 { color: #fff; max-width: 22ch; }

.hero__subtitle {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  color: rgba(255,255,255,.88);
  max-width: 58ch;
  margin-bottom: var(--s5);
}

.hero__support { color: rgba(255,255,255,.74); max-width: 62ch; margin-bottom: var(--s6); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero .btn--outline { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn--outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

.section-head { margin-bottom: var(--s6); }
.section-head h2 { margin-bottom: var(--s3); }
.section-head p { color: var(--charcoal-muted); margin-bottom: 0; }

/* 稿件类型条目 */
.type-item { padding-top: var(--s4); border-top: 1px solid var(--rule); }
.type-item h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: var(--s2); }
.type-item p { font-size: .94rem; color: var(--charcoal-muted); margin-bottom: 0; }

/* 期刊事实栏 */
.factlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: var(--s5);
  border-top: 1px solid var(--rule);
  padding-top: var(--s5);
}
.factlist dt {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
  margin-bottom: var(--s2);
}
.factlist dd { margin: 0; font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); }

/* ==========================================================================
   页首
   ========================================================================== */

.page-header {
  background: var(--teal-tint);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s7);
}
.page-header h1 { margin-bottom: var(--s3); max-width: 22ch; }
.page-header p { color: var(--charcoal-muted); font-size: 1.06rem; margin-bottom: 0; max-width: 62ch; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  list-style: none; padding: 0; margin: 0 0 var(--s4); max-width: none;
  font-size: .82rem; color: var(--charcoal-faint);
}
.breadcrumb li { margin: 0; display: flex; gap: var(--s2); align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--rule); }
.breadcrumb a { color: var(--charcoal-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }

/* ==========================================================================
   正文页
   ========================================================================== */

.prose > h2 { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > h3 { margin-top: var(--s6); }

.toc { position: sticky; top: 6.5rem; }
.toc .label { margin-bottom: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--rule); }
.toc ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.toc li { margin-bottom: 0; }
.toc a {
  display: block; font-size: .88rem; line-height: 1.35;
  color: var(--charcoal-muted); text-decoration: none;
  padding: .35em 0 .35em var(--s3);
  border-left: 2px solid transparent;
}
.toc a:hover { color: var(--teal); }
.toc a.is-active { color: var(--teal); border-left-color: var(--teal); font-weight: 600; }

@media (max-width: 999px) {
  .toc { position: static; margin-bottom: var(--s6); }
  .toc ul { columns: 2; column-gap: var(--s5); }
}

/* 提示区块 */
.callout {
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  padding: var(--s5);
  margin-bottom: var(--s6);
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }
.callout--integrity { background: #FBEFE8; border-left-color: #B06A43; }

/* --------------------------------------------------------------------------
   未定项说明块 —— 见 src/templates/layout.mjs 的 notice()

   用于「该区块尚未就绪」的中性陈述。刻意做得比 .callout 更安静：
   不使用警示色，因为这不是警告，而是状态说明。
   -------------------------------------------------------------------------- */
.notice {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  background: var(--surface);
  padding: var(--s5);
  margin-bottom: var(--s5);
  border-radius: var(--radius);
}

.notice p { color: var(--charcoal-muted); max-width: 62ch; }

/* --------------------------------------------------------------------------
   期刊封面 —— 规格书第 14 节「Journal Cover」
   -------------------------------------------------------------------------- */
.journal-cover { display: block; width: 100%; height: auto; }

.issue-cover {
  float: right;
  width: 168px;
  margin: 0 0 var(--s5) var(--s6);
}

.issue-cover .journal-cover {
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(24,50,71,.16);
}

@media (max-width: 640px) {
  .issue-cover { float: none; width: 150px; margin: 0 0 var(--s5); }
}

/* ==========================================================================
   表格
   ========================================================================== */

.table-wrap { overflow-x: auto; margin-bottom: var(--s6); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: var(--s3) var(--s4) var(--s3) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-faint); }
thead th {
  font-family: var(--font-sans);
  font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--charcoal-faint); border-bottom: 1px solid var(--navy);
}
tbody th { font-weight: 600; color: var(--navy); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 1px solid var(--rule); }

/* ==========================================================================
   编委会
   ========================================================================== */

.board-group { margin-bottom: var(--s7); }
.board-group__title {
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--charcoal-faint);
  padding-bottom: var(--s2); border-bottom: 1px solid var(--navy); margin-bottom: var(--s5);
}
/* 每位编辑一行、上下用细线分隔。
   条目现在带简介与专长列表，单栏比双栏网格更好读，也避免了
   网格里 :first-child 只能去掉第一格顶线、第二格却仍带线的错位。 */
.board-people { display: grid; gap: var(--s5); }

.person { padding-top: var(--s4); border-top: 1px solid var(--rule-faint); }
.person:first-child { border-top: 0; padding-top: 0; }
.person__name { font-family: var(--font-serif); font-size: 1.12rem; color: var(--navy); font-weight: 600; margin-bottom: var(--s1); }
.person__meta { font-size: .92rem; color: var(--charcoal-muted); margin-bottom: var(--s2); }
.person__bio { font-size: .92rem; margin-bottom: 0; max-width: 68ch; }

.person__expertise {
  font-size: .86rem;
  color: var(--charcoal-muted);
  margin: var(--s3) 0 0;
  max-width: 68ch;
}
.person__expertise-label {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--charcoal-faint);
  margin-bottom: var(--s1);
}

/* ==========================================================================
   文章卡片与列表
   ========================================================================== */

.article-card {
  padding-block: var(--s5);
  border-bottom: 1px solid var(--rule-faint);
}
.article-card:first-child { border-top: 1px solid var(--rule); }

.article-card__type,
.article-item__type {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: var(--s2);
}

.article-card__title { font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.3; margin-bottom: var(--s2); }
.article-card__title a { color: var(--navy); text-decoration: none; }
.article-card__title a:hover { color: var(--teal); }

.article-card__authors { font-size: .93rem; color: var(--charcoal-muted); margin-bottom: var(--s2); }
.article-card__excerpt { font-size: .95rem; margin-bottom: var(--s3); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: var(--s4); font-size: .82rem; color: var(--charcoal-faint); }

.empty-state {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: var(--s7) var(--s5);
  text-align: center;
}
.empty-state p { margin-inline: auto; color: var(--charcoal-muted); }

/* ==========================================================================
   文章落地页 —— 标题必须视觉主导（规格书第 488 行）
   ========================================================================== */

.article-header { border-bottom: 1px solid var(--rule); padding-bottom: var(--s5); margin-bottom: var(--s6); }
.article-header h1 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.45rem); max-width: 26ch; }

.article-authors { font-size: 1.02rem; color: var(--charcoal); margin-bottom: var(--s3); }
.article-affils { font-size: .88rem; color: var(--charcoal-muted); }
.article-affils ol { font-size: inherit; max-width: none; }

.article-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: var(--s4);
  padding-block: var(--s4);
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
  margin-bottom: var(--s5);
  font-size: .86rem;
}
.article-meta dt { font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--charcoal-faint); margin-bottom: .2rem; }
.article-meta dd { margin: 0; color: var(--charcoal); }

.article-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.orcid { font-family: var(--font-sans); font-size: .78em; font-weight: 600; }

.author-information { margin: 0; }
.author-information > div { padding-block: var(--s3); border-bottom: 1px solid var(--rule); }
.author-information dt { color: var(--navy); font-weight: 600; }
.author-information dd { margin: .2rem 0 0; color: var(--charcoal-muted); }

.abstract {
  background: var(--teal-tint);
  padding: var(--s5);
  margin-bottom: var(--s6);
}
.abstract h2 {
  font-family: var(--font-sans);
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: var(--s3);
}
.abstract p { margin-bottom: 0; max-width: none; }

.article-section { margin-bottom: var(--s6); }
.article-section h2 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: var(--s3); }
.article-section p:last-child { margin-bottom: 0; }

.refs { font-size: .93rem; }
.refs ol { max-width: none; }
.refs li { margin-bottom: var(--s3); }

.cite-box {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: var(--s4);
  font-size: .9rem;
}
.cite-box p { max-width: none; margin-bottom: 0; }

/* ==========================================================================
   表单样式已移除

   规格书第 514 行明令不自建投稿/审稿系统，投稿与审稿流程交由 OJS 承载
   （第 15 节 Option 2：独立公开站 + OJS 后台）。因此本站不含任何
   <form> / <input> / <textarea>，对应样式一并删除，避免死代码，
   也避免引入规格书五色色板之外的色相。

   若将来需要为 OJS 页面套用 JRISA 皮肤，样式应写在 OJS 主题里，不在此处。
   ========================================================================== */


/* ==========================================================================
   步骤列表（投稿流程）
   ========================================================================== */

.steps { list-style: none; padding: 0; margin: 0; max-width: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  padding-bottom: var(--s6);
  margin: 0;
  max-width: 46em;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: .82rem; font-weight: 600;
  display: grid; place-items: center;
}
.steps li::after {
  content: ""; position: absolute; left: .93rem; top: 2.2rem; bottom: .6rem;
  width: 1px; background: var(--rule);
}
.steps li:last-child::after { display: none; }
.steps h2 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: var(--s2); }
.steps p { color: var(--charcoal-muted); font-size: .95rem; margin-bottom: 0; max-width: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-item { border-bottom: 1px solid var(--rule-faint); padding-block: var(--s5); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-item h2 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: var(--s3); }
.faq-item p:last-child { margin-bottom: 0; }

/* ==========================================================================
   页脚 —— 出版方在此透明披露（规格书第 627 行）
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.76);
  padding-block: var(--s7) var(--s6);
  margin-top: var(--s9);
  font-size: .92rem;
}

.footer-grid {
  display: grid; gap: var(--s6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.footer-brand__mark { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: #fff; display: block; }
.footer-brand__name { font-family: var(--font-serif); font-size: .92rem; color: rgba(255,255,255,.85); display: block; margin-top: .25rem; }

/* 刊物标语 —— 规格书第 90 行 "Preferred" tagline，亦见第 780 行品牌总表。
   放在页脚品牌区：页眉锁定与首页 hero 的文案由规格书第 2、3 节逐字指定，
   不应改动，故标语落在页脚这一品牌签名位。 */
.footer-brand__tagline {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-style: italic;
  color: rgba(255,255,255,.80);
  margin: var(--s3) 0 0;
}

.footer-col .label { color: #fff; margin-bottom: var(--s4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.footer-col li { margin-bottom: var(--s2); }
.footer-col a { color: rgba(255,255,255,.76); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { color: rgba(255,255,255,.76); font-size: .88rem; margin-bottom: var(--s2); max-width: none; }

.footer-bottom {
  padding-top: var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.76); }

@media print {
  .site-header, .site-footer, .toc, .article-actions { display: none; }
  body { background: #fff; color: #000; }
}
