/* ============================================================
 * 鸟人助手 — 内容页 / NIAOREN SUPPORT ARCHIVE
 * 深紫档案底 + 品牌黄标记 + 编辑式排版
 * 独立样式，不依赖首页整屏滚动或下载页组件。
 * ============================================================ */

:root {
  --archive-bg: #090816;
  --archive-bg-soft: #111024;
  --archive-panel: #15132b;
  --archive-yellow: #ffd020;
  --archive-yellow-deep: #f5b800;
  --archive-ink: #211700;
  --archive-text: #f8f7fc;
  --archive-text-1: rgba(248, 247, 252, 0.72);
  --archive-text-2: rgba(248, 247, 252, 0.44);
  --archive-line: rgba(255, 255, 255, 0.1);
  --archive-line-strong: rgba(255, 255, 255, 0.2);
  --archive-purple: #a78bfa;
  --archive-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--archive-bg);
  color: var(--archive-text);
  font-family: var(--archive-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--archive-yellow); color: var(--archive-ink); }

:focus-visible {
  outline: 2px solid var(--archive-yellow);
  outline-offset: 5px;
}

.content-page {
  position: relative;
  background:
    radial-gradient(ellipse 70% 38% at 82% 0%, rgba(124, 107, 255, 0.2), transparent 72%),
    radial-gradient(ellipse 48% 32% at 0% 52%, rgba(73, 45, 143, 0.12), transparent 76%),
    var(--archive-bg);
  overflow-x: clip;
}

.content-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.sr-only {
  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: fixed;
  top: 12px;
  left: 20px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--archive-yellow);
  color: var(--archive-ink);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

.archive-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 56px;
}

/* 顶部档案栏 */
.archive-topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--archive-line);
}

.archive-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}
.archive-brand img { width: 42px; height: 42px; }
.archive-brand__name { display: block; font-size: 17px; font-weight: 700; letter-spacing: 0.08em; }
.archive-brand__sub {
  display: block;
  margin-top: 4px;
  color: var(--archive-text-2);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.archive-topbar__actions { display: flex; align-items: center; gap: 28px; }
.archive-download {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  background: var(--archive-yellow);
  color: var(--archive-ink);
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.archive-download span { font-size: 17px; font-weight: 400; }

/* 每页英雄区：编号是档案识别符号，不作正文 */
.archive-hero {
  position: relative;
  min-height: 390px;
  padding: 82px 0 72px;
  border-bottom: 1px solid var(--archive-line);
  isolation: isolate;
}

.archive-hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: var(--archive-yellow);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.archive-hero__meta span + span { display: inline-flex; align-items: center; gap: 18px; }
.archive-hero__meta span + span::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.archive-hero__english {
  margin: 38px 0 13px;
  color: var(--archive-text-2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.archive-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 900px;
  font-size: clamp(64px, 8.2vw, 118px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.065em;
}
.archive-hero__title em { color: var(--archive-yellow); font-style: normal; }

.archive-hero__lead {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--archive-text-1);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.archive-hero__number {
  position: absolute;
  z-index: -1;
  top: 24px;
  right: -12px;
  color: transparent;
  font-size: clamp(210px, 25vw, 350px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.1em;
  -webkit-text-stroke: 1px rgba(255, 208, 32, 0.16);
  pointer-events: none;
  user-select: none;
}

.archive-hero__side-note {
  position: absolute;
  right: 4px;
  bottom: 56px;
  color: var(--archive-text-2);
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.archive-hero__meta,
.archive-hero__english,
.archive-hero__title,
.archive-hero__lead { animation: archive-rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) both; }
.archive-hero__english { animation-delay: 0.08s; }
.archive-hero__title { animation-delay: 0.16s; }
.archive-hero__lead { animation-delay: 0.24s; }
.archive-hero__number { animation: archive-fade 1s 0.2s ease both; }

@keyframes archive-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes archive-fade { from { opacity: 0; } to { opacity: 1; } }

.archive-section {
  position: relative;
  padding: 72px 0;
  border-bottom: 1px solid var(--archive-line);
}

.archive-section__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  color: var(--archive-yellow);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.archive-section__label::before { content: ""; width: 24px; height: 2px; background: currentColor; }

/* 关于我们：单一简介面板，保留设计感但不过度堆叠模块 */
.archive-hero--simple { min-height: 300px; padding: 64px 0 56px; }
.archive-hero--simple .archive-hero__title { font-size: 84px; letter-spacing: -0.05em; }
.archive-hero--simple .archive-hero__number { font-size: 250px; }
.about-simple { padding: 48px 0 72px; }
.about-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 52px;
  border: 1px solid var(--archive-line-strong);
  border-left: 3px solid var(--archive-yellow);
  background:
    linear-gradient(115deg, rgba(255, 208, 32, 0.065), transparent 42%),
    rgba(21, 19, 43, 0.72);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.about-card::after {
  content: "";
  position: absolute;
  top: 13px;
  right: -8px;
  width: 42px;
  height: 1px;
  background: var(--archive-yellow);
  transform: rotate(45deg);
}
.about-card__monogram { align-self: center; }
.about-card__monogram span {
  display: block;
  color: transparent;
  font-size: 94px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px rgba(255, 208, 32, 0.48);
}
.about-card__monogram small { display: block; margin-top: 18px; color: var(--archive-text-2); font-size: 8px; letter-spacing: 0.18em; white-space: nowrap; }
.about-card__label { margin: 0 0 24px; color: var(--archive-yellow); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; }
.about-simple__text { margin: 0; color: var(--archive-text-1); font-size: 17px; line-height: 2.15; }
.about-simple__text strong { color: var(--archive-text); font-weight: 650; }

/* 联系方式：简洁信息列表 */
.contact-simple { padding: 32px 0 56px; }
.contact-panel { max-width: none; margin: 0 auto; padding: 0 32px; border: 1px solid var(--archive-line); border-top: 2px solid var(--archive-yellow); background: rgba(21, 19, 43, 0.58); }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
.contact-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--archive-line); }
.contact-item:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--archive-line); }
.contact-item:nth-child(even) { padding-right: 0; }
.contact-item:nth-last-child(-n+2) { border-bottom: 0; }
.contact-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.contact-item__label { color: var(--archive-text-2); font-size: 12px; }
.contact-item__value { color: var(--archive-text); font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.contact-item__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; }
.contact-action { min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--archive-text-2); font-size: 13px; }
.contact-action--accent, .contact-action.is-copied { color: var(--archive-yellow); }
.contact-action.is-copy-error { color: #ff8a80; }

/* FAQ：故障档案 */
.faq-layout { padding: 64px 0 72px; }

.faq-list { border-top: 1px solid var(--archive-line); }
.faq-item { border-bottom: 1px solid var(--archive-line); scroll-margin-top: 32px; }
.faq-item summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__number { color: var(--archive-yellow); font-size: 20px; font-weight: 700; letter-spacing: 0.12em; }
.faq-item__question { font-size: 19px; font-weight: 600; line-height: 1.55; transition: color 0.2s ease; }
.faq-item__icon { position: relative; width: 28px; height: 28px; }
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 5px;
  width: 18px;
  height: 1px;
  background: var(--archive-yellow);
  transition: transform 0.25s ease;
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon::after { transform: rotate(0); }
.faq-item[open] .faq-item__question { color: var(--archive-yellow); }

.faq-item__body { width: 100%; padding: 0 54px 38px 88px; }
.faq-answer { width: 100%; max-width: none; color: var(--archive-text-1); font-size: 15px; line-height: 2; }
.faq-answer p { margin: 0 0 16px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--archive-text); font-weight: 600; }
.faq-answer--split { display: block; max-width: none; }
.faq-answer--split .faq-shot { max-width: 760px; margin-top: 26px; }
.inline-link { color: var(--archive-yellow); text-decoration: underline; text-decoration-color: rgba(255, 208, 32, 0.4); text-underline-offset: 4px; }

.faq-shot { margin: 0; }
.faq-shot__link { position: relative; display: block; overflow: hidden; border: 1px solid var(--archive-line-strong); background: var(--archive-panel); }
.faq-shot__link img { width: 100%; height: auto; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-shot figcaption { margin-top: 10px; color: var(--archive-text-2); font-size: 10px; line-height: 1.6; }

/* 正式法务长文 */
.legal-document-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 30px; color: var(--archive-yellow); font-size: 11px; letter-spacing: 0.08em; }
.legal-reading { padding: 56px 0 80px; }
.legal-document { width: 100%; max-width: none; margin: 0; color: var(--archive-text-1); font-size: 16px; line-height: 2.1; }
.legal-document h2 { margin: 64px 0 24px; padding-top: 28px; border-top: 1px solid var(--archive-line); color: var(--archive-text); font-size: 27px; font-weight: 650; line-height: 1.5; scroll-margin-top: 28px; }
.legal-document h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-document h3 { margin: 42px 0 18px; color: var(--archive-text); font-size: 20px; font-weight: 600; line-height: 1.6; }
.legal-document h4 { margin: 30px 0 14px; color: var(--archive-text); font-size: 16px; font-weight: 600; line-height: 1.75; }
.legal-document p { margin: 0 0 18px; }
.legal-document .legal-clause { padding-left: 2.4em; text-indent: -2.4em; }
.legal-document strong { color: var(--archive-text); font-weight: 650; }
.legal-document u { text-decoration-color: var(--archive-yellow); text-underline-offset: 3px; }
.legal-link { color: var(--archive-yellow); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: rgba(255, 208, 32, 0.38); text-underline-offset: 3px; }
.legal-signature { margin-top: 42px !important; color: var(--archive-text); text-align: right; }
.legal-table-wrap { margin: 26px 0 34px; overflow-x: auto; border: 1px solid var(--archive-line); background: rgba(21, 19, 43, 0.58); scroll-margin-top: 28px; }
.legal-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.legal-table--sdk { min-width: 1080px; }
.legal-table caption { padding: 15px 18px; border-bottom: 1px solid var(--archive-line); color: var(--archive-yellow); font-size: 13px; font-weight: 600; text-align: left; }
.legal-table th, .legal-table td { padding: 15px 16px; border-right: 1px solid var(--archive-line); border-bottom: 1px solid var(--archive-line); font-size: 13px; line-height: 1.8; vertical-align: top; }
.legal-table th { background: rgba(255, 255, 255, 0.035); color: var(--archive-text); font-weight: 600; white-space: nowrap; }
.legal-table th:last-child, .legal-table td:last-child { border-right: 0; }
.legal-table tbody tr:last-child td { border-bottom: 0; }

/* 页脚交叉导航 */
.archive-footer { padding: 30px 0 38px; }
.archive-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; font-size: 12px; color: var(--archive-text-2); }
.archive-footer__nav a { min-height: 32px; display: inline-flex; align-items: center; transition: color 0.2s ease; }
.archive-footer__nav a[aria-current="page"] { color: var(--archive-yellow); }

@media (hover: hover) {
  .archive-download:hover { background: #ffe064; transform: translateY(-2px); }
  .contact-action:hover, a.contact-item__value:hover { color: var(--archive-yellow); border-bottom-color: currentColor; }
  .faq-item summary:hover .faq-item__question { color: var(--archive-yellow); }
  .archive-footer__nav a:hover { color: var(--archive-yellow); }
}

@media (max-width: 1100px) {
  .archive-shell { padding: 0 36px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .content-page::before { background-size: 48px 48px; }
  .archive-shell { padding: 0 22px; }
  .archive-topbar { min-height: 76px; gap: 14px; }
  .archive-brand { gap: 9px; }
  .archive-brand img { width: 36px; height: 36px; }
  .archive-brand__name { font-size: 15px; }
  .archive-brand__sub { display: none; }
  .archive-download { gap: 10px; padding: 0 14px; font-size: 11px; }
  .archive-hero { min-height: 340px; padding: 62px 0 54px; }
  .archive-hero__meta { gap: 10px; font-size: 8px; letter-spacing: 0.18em; }
  .archive-hero__meta span + span { gap: 10px; }
  .archive-hero__meta span + span::before { width: 18px; }
  .archive-hero__english { margin-top: 34px; font-size: 8px; letter-spacing: 0.35em; }
  .archive-hero__title { font-size: clamp(52px, 15vw, 76px); letter-spacing: -0.06em; }
  .archive-hero__lead { max-width: 92%; margin-top: 24px; font-size: 15px; line-height: 1.9; }
  .archive-hero__number { top: 62px; right: 0; font-size: 210px; }
  .archive-hero__side-note { display: none; }
  .archive-section { padding: 48px 0; }
  .archive-section__label { margin-bottom: 24px; }
  .archive-hero--simple { min-height: 250px; padding: 48px 0 44px; }
  .archive-hero--simple .archive-hero__title { font-size: 58px; }
  .archive-hero--simple .archive-hero__number { font-size: 190px; }
  .about-simple { padding: 32px 0 48px; }
  .about-card { grid-template-columns: 1fr; gap: 0; padding: 34px 28px; }
  .about-card__monogram { position: absolute; top: 28px; right: 22px; opacity: 0.62; }
  .about-card__monogram span { font-size: 68px; }
  .about-card__monogram small { display: none; }
  .about-card__content { position: relative; z-index: 1; }
  .about-card__label { max-width: 160px; margin-bottom: 24px; line-height: 1.7; }
  .about-simple__text { font-size: 15px; line-height: 2.1; }
  .contact-simple { padding: 24px 0 40px; }
  .contact-panel { padding: 0 18px; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-item, .contact-item:nth-child(odd), .contact-item:nth-child(even) { gap: 16px; padding: 16px 0; border-right: 0; }
  .contact-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--archive-line); }
  .contact-item:last-child { border-bottom: 0; }
  .contact-item__text { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
  .contact-item__label { font-size: 12px; }
  .contact-item__value { font-size: 16px; }
  .contact-item__actions { gap: 12px; }
  .contact-action { font-size: 12px; }
  .faq-layout { padding: 42px 0 48px; }
  .faq-item summary { grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 12px; padding: 25px 0; }
  .faq-item__question { font-size: 16px; }
  .faq-item__body { padding: 0 40px 32px 54px; }
  .faq-answer { font-size: 14px; }
  .legal-document-meta { flex-direction: column; gap: 8px; margin-top: 24px; }
  .legal-reading { padding: 40px 0 56px; }
  .legal-document { font-size: 15px; line-height: 2.05; }
  .legal-document h2 { margin: 48px 0 20px; padding-top: 24px; font-size: 22px; }
  .legal-document h3 { margin: 34px 0 16px; font-size: 18px; }
  .legal-document h4 { margin: 26px 0 12px; font-size: 15px; }
  .legal-table caption { padding: 13px 14px; }
  .legal-table th, .legal-table td { padding: 12px; font-size: 12px; }
  .archive-footer__nav { gap: 4px 16px; font-size: 11px; }
}

@media (max-width: 420px) {
  .archive-shell { padding: 0 18px; }
  .archive-brand__name { font-size: 14px; }
  .archive-download { gap: 7px; padding: 0 11px; }
  .archive-download span { font-size: 14px; }
  .archive-hero__title { font-size: 52px; }
  .archive-hero__lead { max-width: 100%; }
  .contact-item__value { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
