/* ==========================================================================
   ICIA — 國際信息內容產業協會
   视觉系统：深海军蓝 + 琥珀金 / 衬线标题 + 无衬线正文 / Bento 与玻璃态导航
   所有颜色、间距、字级集中声明于 :root
   ========================================================================== */

:root {
  /* —— 主色 —— */
  --navy-900: #0F1E3D;
  --navy-800: #17264A;
  --navy-700: #1B2A4A;
  --navy-600: #24365C;
  --navy-500: #33486F;

  /* —— 强调色 —— */
  --gold-600: #86621F;
  --gold-500: #C49A4A;
  --gold-400: #D9B978;
  --gold-100: #F4EBD8;
  --teal-600: #2E7D6B;
  --teal-100: #E4F0EC;

  /* —— 中性色阶（背景 → 正文）—— */
  --n-50: #F7F8FA;
  --n-100: #EFF1F5;
  --n-200: #E2E6EC;
  --n-300: #C9D0DA;
  --n-400: #9AA3B2;
  --n-500: #616A78;
  --n-600: #4A5260;
  --n-700: #333A46;
  --n-900: #1A1A1A;

  --paper: #FCFCFD;
  --ink: var(--n-900);
  --ink-soft: var(--n-600);
  --ink-mute: var(--n-500);
  --line: rgba(15, 30, 61, 0.09);
  --line-strong: rgba(15, 30, 61, 0.16);

  /* —— 字体 —— */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "PingFang SC", "Noto Sans CJK TC", "Noto Sans CJK SC", "Microsoft JhengHei",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif CJK TC", "Noto Serif CJK SC", "Songti TC", "Songti SC",
    "Source Han Serif TC", Georgia, "Times New Roman", serif;
  --font-latin: "Inter", "Helvetica Neue", Arial, var(--font-sans);

  /* —— 字级（流体）—— */
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.5vw, 3.75rem);
  --fs-h1-inner: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.45vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  /* —— 空间 —— */
  --gutter: min(1200px, 92vw);
  --section-gap: clamp(3rem, 6vw, 7rem);
  --header-h: 72px;

  /* —— 形状 —— */
  --r-card: 12px;
  --r-btn: 8px;
  --r-tag: 6px;

  --shadow-card: 0 4px 24px rgba(15, 30, 61, 0.04);
  --shadow-lift: 0 12px 36px rgba(15, 30, 61, 0.09);
  --shadow-header: 0 1px 0 rgba(15, 30, 61, 0.06), 0 8px 30px rgba(15, 30, 61, 0.05);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ========================= 基础 ========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--n-50);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color 200ms var(--ease), opacity 200ms var(--ease);
}

a:hover { color: var(--gold-600); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--navy-900);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: var(--gutter);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--navy-700);
  color: #F7F8FA;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  font-size: var(--fs-sm);
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: 10px; color: #F7F8FA; }

/* ========================= 页头 ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 253, 254, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 260ms var(--ease), background 260ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(252, 253, 254, 0.9);
  box-shadow: var(--shadow-header);
}

.header-inner {
  width: var(--gutter);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 0;
}
.brand img {
  height: 34px;
  width: auto;
}

.nav-list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.2vw, 1.1rem);
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--n-700);
  letter-spacing: 0.02em;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.6rem;
  bottom: 12px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-link:hover { color: var(--navy-900); }
.nav-link:hover::after,
.nav-item.is-current > .nav-link::after { transform: scaleX(1); }
.nav-item.is-current > .nav-link { color: var(--navy-900); font-weight: 600; }

.nav-sub {
  position: absolute;
  top: calc(100% - 4px);
  inset-inline-start: 0;
  min-width: 190px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-tag);
  font-size: var(--fs-sm);
  color: var(--n-700);
}
.nav-sub a:hover { background: var(--n-100); color: var(--navy-900); }
.nav-sub a.is-active { color: var(--gold-600); font-weight: 600; }

/* 语言选择 */
.lang {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}
.lang::after {
  content: "";
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--n-500);
  border-bottom: 1.5px solid var(--n-500);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.lang select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 34px;
  padding-block: 0;
  padding-inline: 12px 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, 0.6);
  color: var(--n-700);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.lang select:hover { border-color: var(--n-400); background: rgba(255, 255, 255, 0.9); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--navy-700);
  position: relative;
  transition: transform 240ms var(--ease), background 240ms var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--navy-700);
  transition: transform 240ms var(--ease), top 240ms var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ========================= 首页 Hero ========================= */
.hero {
  position: relative;
  overflow: hidden;
  color: #F2F4F8;
  background:
    radial-gradient(90% 120% at 88% 8%, rgba(196, 154, 74, 0.16) 0%, rgba(196, 154, 74, 0) 55%),
    radial-gradient(70% 90% at 12% 100%, rgba(46, 125, 107, 0.18) 0%, rgba(46, 125, 107, 0) 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-700) 48%, var(--navy-900) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--gutter);
  margin-inline: auto;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.hero-copy { max-width: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-latin);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero h1 {
  max-width: none;
  color: #F7F8FA;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.16;
  text-wrap: initial;
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--gold-500);
  margin: 2rem 0 0;
  border: 0;
}

.hero-plate {
  margin: 0;
  width: 100%;
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(6, 14, 30, 0.45);
  background: var(--navy-800);
  aspect-ratio: 1280 / 600;
}
.hero-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 横幅图内嵌有 slogan，叠一层极轻的暗角以保文字可读 */
.hero-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(15, 30, 61, 0) 45%, rgba(15, 30, 61, 0.38) 100%);
  pointer-events: none;
}

/* 文章头图（原站详情页 banner） */
.article-banner {
  position: relative;
  height: clamp(150px, 19vw, 260px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--navy-900);
}
.article-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) contrast(1.02);
}

/* ========================= 内页页头 ========================= */
.page-head {
  position: relative;
  background: linear-gradient(180deg, #EEF1F6 0%, var(--n-50) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-end: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(196, 154, 74, 0.13) 0%, rgba(196, 154, 74, 0) 62%);
  pointer-events: none;
}
.page-head-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.6rem, 5vw, 4.5rem) clamp(1.6rem, 2.6vw, 2.4rem);
}
.page-head .eyebrow { color: var(--gold-600); margin-bottom: 1.1rem; }
.page-head h1 {
  font-size: var(--fs-h1-inner);
  max-width: 24ch;
}
.page-head .meta {
  margin-top: 1rem;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* 内页两栏：左侧栏目导航 + 正文 */
.doc-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.doc-rail-inner {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  flex-direction: column;
  border-inline-start: 1px solid var(--line);
}
.doc-rail a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.35rem;
  padding-inline-start: 1.1rem;
  margin-inline-start: -1px;
  border-inline-start: 3px solid transparent;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  transition: color 200ms var(--ease), border-color 200ms var(--ease),
    background 200ms var(--ease);
}
.doc-rail a:hover {
  color: var(--navy-900);
  border-inline-start-color: var(--n-300);
  background: rgba(15, 30, 61, 0.035);
}
.doc-rail a.is-active {
  color: var(--navy-900);
  font-weight: 600;
  border-inline-start-color: var(--gold-500);
}

.doc-body { min-width: 0; }

/* ========================= 正文区 ========================= */
.main { padding-block: var(--section-gap); }

.article {
  max-width: 74ch;
}

.article > * { margin-block: 0; }
.article > * + * { margin-top: 1.5rem; }

/* 正文段落：两端对齐，长串（网址、英文复合词）允许断行，避免顶破栏宽 */
.article > p {
  text-align: justify;
  text-justify: inter-ideograph;
  line-break: strict;
  overflow-wrap: break-word;
}

/* 中文（繁/简）按原站与中文排版惯例：首行缩进两字 */
:where(html[lang^="zh"]) .article > p {
  text-indent: 2em;
}
:where(html[lang^="zh"]) .article > p.is-item,
:where(html[lang^="zh"]) .article > p.back-row {
  text-indent: 0;
}

.article h2 {
  font-size: var(--fs-h3);
  margin-top: 2.6rem;
  margin-bottom: 0.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--navy-800);
}
.article h2.is-dupe { display: none; }
.article > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article p {
  color: var(--n-700);
}

.article strong {
  color: var(--navy-900);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.article a {
  color: var(--navy-700);
  border-bottom: 1px solid rgba(196, 154, 74, 0.55);
  padding-bottom: 1px;
}
.article a:hover { color: var(--gold-600); border-bottom-color: var(--gold-600); }

/* 「——」起首的条目：左侧细金线，避免与破折号重复标记 */
.article p.is-item {
  position: relative;
  padding-inline-start: 1.25rem;
  color: var(--n-700);
}
.article p.is-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.32em;
  bottom: 0.32em;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-500), rgba(196, 154, 74, 0.25));
}

/* 列表 */
.article ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.article ul li {
  position: relative;
  padding-inline-start: 1.35rem;
  color: var(--n-700);
}
.article ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.85;
}

/* 图片 */
.article figure {
  margin: 2.5rem 0;
}
.article figure img {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  width: auto;
  max-width: 100%;
  height: auto;
}
.article figcaption {
  margin-top: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-align: start;
}
.article figure.is-narrow {
  max-width: 100%;
  text-align: start;
}
.article figure.is-chart {
  max-width: 100%;
  text-align: start;
}

/* 联系方式行 */
.contact-list {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
}
.contact-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-row:first-child { border-top: 1px solid var(--line); }
.contact-row dt {
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.contact-row dd {
  margin: 0;
  color: var(--n-900);
}

/* ========================= 表单 ========================= */
.form-panel {
  max-width: 74ch;
  margin-top: 2.2rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.field {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}
.field label {
  font-size: var(--fs-sm);
  color: var(--n-700);
  letter-spacing: 0.03em;
}
.field .req {
  color: #A8433C;
  margin-right: 0.2em;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--n-900);
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  padding: 0.8rem 0.9rem;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field input { min-height: 46px; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(36, 54, 92, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 132px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--navy-700);
  color: #F7F8FA;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:hover {
  background: var(--navy-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 30, 61, 0.18);
}
.btn:active { transform: translateY(0); }

.form-note {
  margin-top: 1.2rem;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.form-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--r-btn);
  background: var(--gold-100);
  border: 1px solid rgba(196, 154, 74, 0.35);
  color: var(--n-700);
  font-size: var(--fs-sm);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #A8433C;
  box-shadow: 0 0 0 3px rgba(168, 67, 60, 0.1);
}

/* ========================= 动态列表 ========================= */
.news-grid {
  --card-gap: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

/* 卡片流：末行不满时自动居中 */
.card-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
}

.card-flow .card {
  flex: 0 0 calc((100% - 2 * var(--card-gap)) / 3);
  min-width: 0;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(15, 30, 61, 0.14);
}

.card--feature {
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}

.card-media {
  position: relative;
  overflow: hidden;
  background: #F1F3F7;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.card--feature .card-media {
  flex: 0 0 46%;
  aspect-ratio: auto;
}
.card-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
  transition: transform 600ms var(--ease);
}
.card:hover .card-media img { transform: scale(1.03); }

.card-body {
  padding: clamp(1.1rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.card--feature .card-body {
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.6rem);
}
.card-title {
  font-family: var(--font-serif);
  font-size: calc(var(--fs-body) * 1.05);
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy-900);
  margin: 0;
}
.card--feature .card-title {
  font-size: var(--fs-h3);
  line-height: 1.4;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--gold-600); }
.card-excerpt {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-soft);
}
.card--feature .card-excerpt { max-width: 46ch; }

/* 分页 */
.pager {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  font-size: var(--fs-sm);
  border-radius: var(--r-btn);
  letter-spacing: 0.02em;
}
.pager a {
  color: var(--n-700);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease);
}
.pager a:hover {
  color: var(--navy-900);
  border-color: var(--n-400);
  background: #FFFFFF;
}
.pager .is-current {
  color: #F7F8FA;
  background: var(--navy-700);
  border: 1px solid var(--navy-700);
  font-variant-numeric: tabular-nums;
}
.pager .is-disabled {
  color: var(--n-400);
  border: 1px solid var(--line);
  background: transparent;
}

/* 详情 */
.page-news-detail .page-head-inner {
  max-width: 74ch;
  margin-inline: auto;
}
.page-news-detail .article--news {
  margin-inline: auto;
}
/* 详情页：页头到正文的过渡收紧，避免标题与正文之间出现大片空白 */
.page-news-detail .main {
  padding-top: clamp(1.9rem, 3vw, 2.6rem);
}
.page-news-detail .lead-rule {
  margin-bottom: 1.4rem;
}
.article--news .lead-rule {
  width: 48px;
  height: 2px;
  background: var(--gold-500);
  border: 0;
  margin: 0 0 2.2rem;
}
.article .back-row {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.back-link:hover { color: var(--gold-600); }

/* ========================= 页脚 ========================= */
.page-home .site-footer { margin-top: 0; }

.site-footer {
  background: var(--navy-900);
  color: rgba(242, 244, 248, 0.78);
  padding-block: clamp(2.8rem, 5vw, 4.5rem) 1.8rem;
  margin-top: var(--section-gap);
}
.footer-inner {
  width: var(--gutter);
  margin-inline: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.92);
  margin-bottom: 1.1rem;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  color: #F2F4F8;
  margin: 0;
}
.footer-label {
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 0.85rem;
  font-family: var(--font-latin);
  font-weight: 600;
}
.footer-col p {
  margin: 0 0 0.35rem;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: rgba(242, 244, 248, 0.78);
}
.footer-col a { color: rgba(242, 244, 248, 0.78); }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
}
.footer-bottom p {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: rgba(242, 244, 248, 0.62);
}
.footer-rail {
  font-family: var(--font-latin);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  border: 1px solid rgba(196, 154, 74, 0.4);
  border-radius: var(--r-tag);
  padding: 0.35rem 0.7rem;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.footer-rail:hover {
  background: rgba(196, 154, 74, 0.14);
  color: var(--gold-400);
}

/* ========================= 动效 ========================= */
.reveal { transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ========================= RTL 与阿拉伯语排版 ========================= */
[lang="ar"] {
  --font-sans: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro",
    "Arabic Typesetting", "Traditional Arabic", system-ui, sans-serif;
  --font-serif: "Noto Naskh Arabic", "Traditional Arabic", "Segoe UI", Tahoma, serif;
  --font-latin: "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif;
}

[lang="ar"] body {
  line-height: 1.95;
  letter-spacing: 0;
}

[lang="ar"] .nav-link,
[lang="ar"] .subnav a,
[lang="ar"] .card-title,
[lang="ar"] .article h2,
[lang="ar"] h1 {
  letter-spacing: 0;
}

[lang="ar"] .eyebrow {
  letter-spacing: 0.12em;
  text-transform: none;
}

[lang="ar"] .card-excerpt,
[lang="ar"] .article p {
  line-height: 1.95;
}

[dir="rtl"] .hero-plate,
[dir="rtl"] .article figure img {
  transform: none;
}

/* ========================= 响应式 ========================= */
@media (max-width: 1024px) {
  .nav-link { padding: 0 0.45rem; font-size: 0.875rem; }
  .card-flow .card { flex-basis: calc((100% - var(--card-gap)) / 2); }
  .card--feature .card-media { flex: 0 0 44%; }
  .card--feature .card-media { flex: none; aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; order: 4; margin-left: 0.5rem; }
  .lang { margin-left: auto; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: block;
    max-height: calc(100svh - var(--header-h));
    padding: 0.6rem clamp(1rem, 5vw, 2rem) 2.4rem;
    background: #FCFCFD;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(15, 30, 61, 0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms;
  }
  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  body.nav-open { overflow: hidden; }

  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link {
    min-height: 56px;
    padding: 0;
    font-size: 1.0625rem;
    width: 100%;
  }
  .nav-link::after { display: none; }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 0.6rem 0.9rem;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-sub a { min-height: 44px; padding-left: 0.6rem; color: var(--ink-soft); }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: clamp(1.6rem, 5vw, 2.4rem);
    padding-block: clamp(2.2rem, 8vw, 3.4rem);
  }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(1.75rem, 7.2vw, 2.25rem); }
  .hero-rule { margin-top: 1.4rem; }

  .page-head h1 { max-width: none; }
  .article { max-width: none; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .doc-rail {
    min-width: 0;
    border-bottom: 1px solid var(--line);
  }
  .doc-rail-inner {
    position: static;
    flex-direction: row;
    gap: 0.25rem;
    min-width: 0;
    border-inline-start: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .doc-rail-inner::-webkit-scrollbar { display: none; }
  .doc-rail a {
    min-height: 48px;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding-block: 0;
    padding-inline: 0.9rem;
    margin-inline-start: 0;
  }
  .doc-rail a:hover,
  .doc-rail a.is-active {
    border-inline-start-color: transparent;
    border-bottom-color: var(--gold-500);
    background: none;
  }

  .card-flow .card { flex-basis: 100%; }
  .card--feature { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .contact-row { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.8rem 0; }
}

@media (max-width: 400px) {
  .brand img { height: 28px; }
  .pager a, .pager span { min-width: 42px; padding: 0 0.6rem; }
}

/* ========================= 无障碍与降级 ========================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
