/* =========================================================
   亚娱电子 简体中文官网 · 共享样式 /assets/site.css
   坐标与路径 · 模块化 Bento · 玻璃层 + 实色层
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --yy-indigo: #0A1230;
  --yy-indigo-soft: #131C44;
  --yy-cyan: #22D3EE;
  --yy-cyan-deep: #38BDF8;
  --yy-orange: #FB923C;
  --yy-purple: #A78BFA;
  --yy-text: #E6EDF7;
  --yy-muted: #94A3B8;
  --yy-line: #1E2A5A;
  --yy-green: #34D399;
  --yy-yellow: #FACC15;

  --yy-wrap: 1180px;
  --yy-gap: clamp(14px, 2vw, 26px);
  --yy-radius: 14px;
  --yy-radius-sm: 10px;

  --yy-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --yy-fast: 180ms;
  --yy-mid: 260ms;
  --yy-slow: 320ms;

  --yy-font-head: "HarmonyOS Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --yy-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --yy-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --yy-header-h: 68px;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  font-family: var(--yy-font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--yy-text);
  background-color: var(--yy-indigo);
  background-image:
    radial-gradient(920px 520px at 88% -10%, rgba(34, 211, 238, 0.14), transparent 62%),
    radial-gradient(760px 480px at 4% 10%, rgba(167, 139, 250, 0.12), transparent 60%),
    radial-gradient(700px 520px at 50% 112%, rgba(251, 146, 60, 0.08), transparent 64%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(30, 42, 90, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 42, 90, 0.38) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.3) 58%, transparent 100%);
  mask-image: radial-gradient(130% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.3) 58%, transparent 100%);
}
h1, h2, h3, h4 {
  font-family: var(--yy-font-head);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.yy-h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.yy-h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.yy-h3 { font-size: 1.25rem; }
p { line-height: 1.8; }
strong { color: #fff; font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--yy-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
#main-content { scroll-margin-top: 112px; }
#main-content:focus { outline: none; }

.yy-wrap {
  width: 100%;
  max-width: var(--yy-wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.yy-section { padding-block: clamp(38px, 6.5vw, 82px); }
.yy-section--tight { padding-block: clamp(24px, 4vw, 46px); }

.yy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--yy-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yy-cyan);
  margin-bottom: 14px;
}
.yy-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--yy-cyan), transparent);
}
.yy-lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: #C6D3E8;
  max-width: 62ch;
}
.yy-mono {
  font-family: var(--yy-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--yy-muted);
}
.yy-note {
  border-left: 2px solid var(--yy-purple);
  padding-left: 14px;
  color: var(--yy-muted);
  font-size: 0.94rem;
}
.yy-divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--yy-line) 18%, var(--yy-line) 82%, transparent);
}

/* ---------- 4. 头部框架导航 ---------- */
.yy-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: var(--yy-radius-sm);
  background: var(--yy-cyan);
  color: #04122A;
  font-family: var(--yy-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top var(--yy-fast) var(--yy-ease);
}
.yy-skip:focus { top: 10px; }

.yy-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 18, 48, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--yy-line);
  transition: background var(--yy-mid) var(--yy-ease), box-shadow var(--yy-mid) var(--yy-ease);
}
.yy-header[data-scrolled] {
  background: rgba(10, 18, 48, 0.95);
  box-shadow: 0 18px 40px -28px rgba(34, 211, 238, 0.6);
}
.yy-header__scale,
.yy-footer__scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 22px;
  padding-inline: clamp(16px, 4vw, 32px);
  font-family: var(--yy-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5E7099;
  border-bottom: 1px solid var(--yy-line);
  background-image:
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.4) 0 1px, transparent 1px 16px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.07) 46%, rgba(251, 146, 60, 0.09));
  background-size: auto 6px, auto;
  background-position: 0 100%, 0 0;
  background-repeat: repeat-x, no-repeat;
}
.yy-header__scale-item,
.yy-footer__scale-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.yy-header__frame { position: relative; }
.yy-header__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--yy-header-h);
  padding-block: 12px;
}

/* 品牌 */
.yy-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.yy-brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.26), rgba(167, 139, 250, 0.18) 60%, rgba(10, 18, 48, 0.9));
  display: grid;
  place-items: center;
}
.yy-brand__mark::before,
.yy-brand__mark::after {
  content: "";
  position: absolute;
  background: rgba(34, 211, 238, 0.4);
}
.yy-brand__mark::before { width: 1px; height: 100%; left: 50%; }
.yy-brand__mark::after { height: 1px; width: 100%; top: 50%; }
.yy-brand__dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yy-cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}
.yy-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.yy-brand__name {
  font-family: var(--yy-font-head);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
}
.yy-brand__sub {
  font-family: var(--yy-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--yy-muted);
}
.yy-brand--footer .yy-brand__name { font-size: 1.15rem; }

/* 导航 */
.yy-nav { margin-left: auto; }
.yy-nav__list { display: flex; align-items: center; gap: 2px; }
.yy-nav__item { flex: none; }
.yy-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: #C3CFE4;
  transition: color var(--yy-fast) var(--yy-ease), background var(--yy-fast) var(--yy-ease), border-color var(--yy-fast) var(--yy-ease);
}
.yy-nav__idx {
  font-family: var(--yy-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #55658C;
  transition: color var(--yy-fast) var(--yy-ease);
}
.yy-nav__label { font-size: 0.94rem; font-weight: 500; }
.yy-nav__link:hover,
.yy-nav__link:focus-visible {
  color: #fff;
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.28);
}
.yy-nav__link:hover .yy-nav__idx { color: var(--yy-cyan); }
.yy-nav__link[aria-current="page"] {
  color: var(--yy-cyan);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.05));
  border-color: rgba(34, 211, 238, 0.4);
}
.yy-nav__link[aria-current="page"] .yy-nav__idx { color: var(--yy-cyan); }
.yy-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--yy-cyan), rgba(167, 139, 250, 0.35));
}

/* 移动菜单按钮 */
.yy-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: var(--yy-radius-sm);
  border: 1px solid var(--yy-line);
  background: rgba(19, 28, 68, 0.75);
  color: var(--yy-text);
  font-family: var(--yy-font-head);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color var(--yy-fast) var(--yy-ease), color var(--yy-fast) var(--yy-ease);
}
.yy-nav-toggle:hover { border-color: rgba(34, 211, 238, 0.5); }
.yy-nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.yy-nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--yy-cyan);
  transition: transform var(--yy-mid) var(--yy-ease), opacity var(--yy-fast) var(--yy-ease), width var(--yy-mid) var(--yy-ease);
}
.yy-nav-toggle__bars span:nth-child(2) { width: 13px; }
.yy-nav-toggle[aria-expanded="true"] .yy-nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.yy-nav-toggle[aria-expanded="true"] .yy-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.yy-nav-toggle[aria-expanded="true"] .yy-nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.yy-nav-toggle[aria-expanded="true"] { border-color: rgba(34, 211, 238, 0.55); color: var(--yy-cyan); }

/* 进度条 */
.yy-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  z-index: 3;
  background: linear-gradient(90deg, var(--yy-cyan), var(--yy-purple) 55%, var(--yy-orange));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
  transition: width 120ms linear;
}

/* ---------- 5. 页脚 ---------- */
.yy-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--yy-line);
  background:
    radial-gradient(760px 360px at 12% 0%, rgba(167, 139, 250, 0.14), transparent 62%),
    radial-gradient(700px 340px at 92% 8%, rgba(34, 211, 238, 0.12), transparent 60%),
    rgba(8, 14, 38, 0.92);
}
.yy-footer__scale {
  height: 22px;
  border-bottom: 1px solid var(--yy-line);
  border-top: 0;
  align-items: center;
  justify-content: space-between;
  display: flex;
  background-image:
    repeating-linear-gradient(90deg, rgba(167, 139, 250, 0.34) 0 1px, transparent 1px 16px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.1), rgba(34, 211, 238, 0.07) 55%, rgba(251, 146, 60, 0.07));
  background-size: auto 6px, auto;
  background-position: 0 100%, 0 0;
  background-repeat: repeat-x, no-repeat;
}
.yy-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px) clamp(18px, 2.4vw, 34px);
  padding-block: clamp(36px, 5vw, 62px) clamp(22px, 3vw, 34px);
}
.yy-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.yy-footer__tagline {
  color: var(--yy-muted);
  font-size: 0.94rem;
  max-width: 34ch;
}
.yy-footer__contact { display: grid; gap: 8px; }
.yy-footer__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
}
.yy-footer__line--wide { align-items: flex-start; }
.yy-footer__key {
  font-family: var(--yy-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--yy-muted);
  border: 1px solid var(--yy-line);
  border-radius: 5px;
  padding: 2px 6px;
  flex: none;
}
.yy-footer__val { color: #D3DDF0; word-break: break-word; }
.yy-copy {
  font-family: var(--yy-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--yy-cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 2px 9px;
  cursor: pointer;
  transition: background var(--yy-fast) var(--yy-ease), color var(--yy-fast) var(--yy-ease), border-color var(--yy-fast) var(--yy-ease);
}
.yy-copy:hover { background: rgba(34, 211, 238, 0.14); }
.yy-copy[data-state="ok"] { color: var(--yy-green); border-color: rgba(52, 211, 153, 0.5); }
.yy-copy[data-state="fail"] { color: var(--yy-yellow); border-color: rgba(250, 204, 21, 0.5); }

.yy-footer__col { display: flex; flex-direction: column; gap: 12px; }
.yy-footer__title {
  font-size: 0.78rem;
  font-family: var(--yy-font-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--yy-muted);
  text-transform: uppercase;
}
.yy-footer__list { display: grid; gap: 8px; }
.yy-footer__link {
  position: relative;
  display: inline-block;
  font-size: 0.94rem;
  color: #C7D2E6;
  padding-left: 14px;
  transition: color var(--yy-fast) var(--yy-ease), transform var(--yy-fast) var(--yy-ease);
}
.yy-footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 1px;
  background: var(--yy-line);
  transition: background var(--yy-fast) var(--yy-ease), width var(--yy-fast) var(--yy-ease);
}
.yy-footer__link:hover,
.yy-footer__link:focus-visible { color: var(--yy-cyan); transform: translateX(2px); }
.yy-footer__link:hover::before { width: 9px; background: var(--yy-cyan); }

.yy-footer__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: clamp(16px, 2.4vw, 24px);
  border-top: 1px solid var(--yy-line);
  font-family: var(--yy-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #6F80A6;
}
.yy-footer__icp { color: var(--yy-muted); }
.yy-footer__legal { color: #6F80A6; }

/* 返回顶部 */
.yy-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 55;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(10, 18, 48, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--yy-cyan);
  font-family: var(--yy-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--yy-mid) var(--yy-ease), transform var(--yy-mid) var(--yy-ease), visibility var(--yy-mid) var(--yy-ease), background var(--yy-fast) var(--yy-ease);
}
.yy-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.yy-top:hover { background: rgba(34, 211, 238, 0.16); }

/* ---------- 6. 通用排版区块 ---------- */
.yy-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.yy-section__head > div { max-width: 68ch; }

/* 面包屑 */
.yy-crumb { padding-top: clamp(18px, 3vw, 28px); }
.yy-crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--yy-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--yy-muted);
}
.yy-crumb__item { display: inline-flex; align-items: center; gap: 8px; }
.yy-crumb__link { color: var(--yy-muted); border-bottom: 1px solid transparent; transition: color var(--yy-fast) var(--yy-ease), border-color var(--yy-fast) var(--yy-ease); }
.yy-crumb__link:hover { color: var(--yy-cyan); border-color: rgba(34, 211, 238, 0.6); }
.yy-crumb__sep { color: #45557C; }
.yy-crumb__current { color: var(--yy-text); }

/* ---------- 7. 按钮 ---------- */
.yy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--yy-radius-sm);
  border: 1px solid transparent;
  font-family: var(--yy-font-head);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.3;
  cursor: pointer;
  transition: transform var(--yy-fast) var(--yy-ease), background var(--yy-fast) var(--yy-ease), border-color var(--yy-fast) var(--yy-ease), color var(--yy-fast) var(--yy-ease), box-shadow var(--yy-fast) var(--yy-ease);
}
.yy-btn:hover { transform: translateY(-1px); }
.yy-btn--primary {
  background: linear-gradient(135deg, var(--yy-cyan), var(--yy-cyan-deep));
  color: #04122A;
  box-shadow: 0 12px 26px -16px rgba(34, 211, 238, 0.9);
}
.yy-btn--accent {
  background: linear-gradient(135deg, var(--yy-orange), var(--yy-yellow));
  color: #2A1204;
  box-shadow: 0 12px 26px -16px rgba(251, 146, 60, 0.9);
}
.yy-btn--ghost {
  background: rgba(230, 237, 247, 0.04);
  border-color: var(--yy-line);
  color: var(--yy-text);
}
.yy-btn--ghost:hover { border-color: rgba(34, 211, 238, 0.55); color: var(--yy-cyan); }
.yy-btn--block { width: 100%; }

/* ---------- 8. 卡片 / Bento / 标签 ---------- */
.yy-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--yy-gap);
}
.yy-card {
  position: relative;
  border: 1px solid var(--yy-line);
  border-radius: var(--yy-radius);
  background: var(--yy-indigo-soft);
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  transition: border-color var(--yy-mid) var(--yy-ease), transform var(--yy-mid) var(--yy-ease), background var(--yy-mid) var(--yy-ease);
}
.yy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.07), transparent 42%);
  opacity: 0;
  transition: opacity var(--yy-mid) var(--yy-ease);
}
.yy-card:hover { border-color: rgba(34, 211, 238, 0.35); transform: translateY(-2px); }
.yy-card:hover::after { opacity: 1; }
.yy-card--glass {
  background:
    linear-gradient(155deg, rgba(34, 211, 238, 0.14), rgba(167, 139, 250, 0.1) 52%, rgba(19, 28, 68, 0.72));
  border-color: rgba(34, 211, 238, 0.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.yy-card--focus {
  background:
    radial-gradient(520px 300px at 88% 0%, rgba(251, 146, 60, 0.16), transparent 62%),
    linear-gradient(160deg, rgba(34, 211, 238, 0.14), rgba(19, 28, 68, 0.94) 58%);
  border-color: rgba(34, 211, 238, 0.32);
}
.yy-card__title {
  font-family: var(--yy-font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.yy-card__meta {
  font-family: var(--yy-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--yy-muted);
}
.yy-card__body { color: #C6D3E8; font-size: 0.96rem; }

.yy-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--yy-line);
  font-family: var(--yy-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--yy-muted);
  white-space: nowrap;
}
.yy-tag--info { color: var(--yy-cyan); border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.1); }
.yy-tag--ok { color: var(--yy-green); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }
.yy-tag--warn { color: var(--yy-yellow); border-color: rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.1); }
.yy-tag--alert { color: var(--yy-orange); border-color: rgba(251, 146, 60, 0.45); background: rgba(251, 146, 60, 0.12); }
.yy-tag--soft { color: var(--yy-purple); border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.1); }

/* ---------- 9. 图片容器基础规则 ---------- */
.yy-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--yy-radius);
  border: 1px solid var(--yy-line);
  background:
    linear-gradient(140deg, rgba(34, 211, 238, 0.1), rgba(167, 139, 250, 0.09) 55%, rgba(10, 18, 48, 0.95));
}
.yy-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(30, 42, 90, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 42, 90, 0.4) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  opacity: 0.7;
}
.yy-media--16x9 { aspect-ratio: 16 / 9; }
.yy-media--4x3 { aspect-ratio: 4 / 3; }
.yy-media--3x2 { aspect-ratio: 3 / 2; }
.yy-media--1x1 { aspect-ratio: 1 / 1; }
.yy-media--21x9 { aspect-ratio: 21 / 9; }
.yy-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.yy-media__cap {
  display: block;
  margin-top: 8px;
  font-family: var(--yy-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--yy-muted);
}

/* ---------- 10. 折叠问答 ---------- */
.yy-accordion { display: grid; gap: 10px; }
.yy-accordion__item {
  border: 1px solid var(--yy-line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(19, 28, 68, 0.9), rgba(10, 18, 48, 0.9));
  overflow: hidden;
  transition: border-color var(--yy-mid) var(--yy-ease), background var(--yy-mid) var(--yy-ease);
}
.yy-accordion__item[data-open] { border-color: rgba(34, 211, 238, 0.45); background: rgba(19, 28, 68, 0.95); }
.yy-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  font-family: var(--yy-font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--yy-text);
}
.yy-accordion__trigger:hover { color: var(--yy-cyan); }
.yy-accordion__label { display: block; }
.yy-accordion__meta {
  display: block;
  margin-top: 4px;
  font-family: var(--yy-font-mono);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--yy-muted);
}
.yy-accordion__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--yy-line);
  border-radius: 6px;
}
.yy-accordion__icon::before,
.yy-accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--yy-cyan);
  border-radius: 2px;
}
.yy-accordion__icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.yy-accordion__icon::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); transition: transform var(--yy-mid) var(--yy-ease); }
.yy-accordion__item[data-open] .yy-accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.yy-accordion__panel { max-height: 0; overflow: hidden; transition: max-height var(--yy-slow) var(--yy-ease); }
.yy-accordion__body { padding: 0 18px 18px; color: var(--yy-muted); font-size: 0.95rem; }

/* ---------- 11. 筛选标签 ---------- */
.yy-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px 22px; }
.yy-chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--yy-line);
  background: rgba(19, 28, 68, 0.6);
  color: var(--yy-muted);
  font-family: var(--yy-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color var(--yy-fast) var(--yy-ease), background var(--yy-fast) var(--yy-ease), border-color var(--yy-fast) var(--yy-ease);
}
.yy-chip:hover { color: var(--yy-text); border-color: rgba(34, 211, 238, 0.4); }
.yy-chip[aria-pressed="true"] {
  color: #04122A;
  background: linear-gradient(135deg, var(--yy-cyan), var(--yy-cyan-deep));
  border-color: transparent;
  font-weight: 700;
}

/* ---------- 12. 时间轴 ---------- */
.yy-timeline { position: relative; display: grid; gap: 20px; padding-left: 26px; }
.yy-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--yy-cyan), rgba(167, 139, 250, 0.6) 55%, rgba(251, 146, 60, 0.5));
}
.yy-timeline__item { position: relative; }
.yy-timeline__node {
  position: absolute;
  left: -26px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yy-indigo);
  border: 2px solid var(--yy-cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.yy-timeline__time {
  display: block;
  font-family: var(--yy-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--yy-muted);
  margin-bottom: 4px;
}

/* ---------- 13. 显现动效 ---------- */
.yy-js .yy-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--yy-ease), transform 520ms var(--yy-ease);
}
.yy-js .yy-reveal.is-in { opacity: 1; transform: none; }
.yy-js .yy-reveal--delay { transition-delay: 90ms; }
.yy-js .yy-reveal--delay-2 { transition-delay: 180ms; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .yy-nav__idx { display: none; }
  .yy-nav__link { padding: 9px 10px; }
}

@media (max-width: 1023px) {
  .yy-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yy-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  .yy-brand__mark { width: 30px; height: 30px; }
  .yy-brand__name { font-size: 1rem; }
  .yy-nav-toggle { display: inline-flex; margin-left: auto; }

  .yy-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    border-bottom: 1px solid var(--yy-line);
    background: rgba(10, 18, 48, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: max-height var(--yy-slow) var(--yy-ease), visibility var(--yy-slow) var(--yy-ease);
  }
  .yy-nav[data-open] {
    max-height: min(74vh, 560px);
    overflow-y: auto;
    visibility: visible;
  }
  .yy-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px clamp(16px, 4vw, 32px) 18px; }
  .yy-nav__item + .yy-nav__item { border-top: 1px solid rgba(30, 42, 90, 0.7); }
  .yy-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .yy-nav__idx { display: inline; font-size: 0.68rem; }
  .yy-nav__link[aria-current="page"] { background: none; color: var(--yy-cyan); }
  .yy-nav__link[aria-current="page"]::after { left: 4px; right: auto; width: 3px; height: 100%; top: 0; bottom: 0; }
  .yy-nav__link:hover { background: rgba(34, 211, 238, 0.08); }
}

@media (max-width: 720px) {
  .yy-header__scale,
  .yy-footer__scale { font-size: 0.56rem; letter-spacing: 0.14em; }
  .yy-header__scale-item:first-child,
  .yy-footer__scale-item:first-child { max-width: 60%; }
  .yy-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .yy-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .yy-footer__meta { font-size: 0.68rem; }
}

@media (max-width: 520px) {
  .yy-footer__line { align-items: flex-start; }
  .yy-footer__val { font-size: 0.86rem; }
  .yy-top { right: 12px; bottom: 12px; padding: 9px 13px; }
}

@media (min-width: 960px) {
  .yy-nav[data-open] { max-height: none; }
}

/* ---------- 15. 降低动效偏好 ---------- */
@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;
    transition-delay: 0ms !important;
  }
  .yy-js .yy-reveal { opacity: 1; transform: none; }
}
