/* ============================================================
   nn_style.css · 涂王新材料主页
   ============================================================ */

:root {
  --sea-abyss: #08151f;
  --sea-deep: #0A2436;
  --sea-mid: #103A50;
  --sea-light: #16506A;
  --rose: #872651;
  --rose-light: #a83264;
  --rose-dark: #6b1c3f;
  --gold: #d4af37;
  --gold-deep: #b8912a;
  --ochre: #c48a5a;
  --tiffany: #0ABAB5;
  --tiffany-deep: #078F8B;
  --rosegold-deep: #3a1424;
  --rosegold-mid: #6b1c3f;
  --rosegold-light: #8f2e50;
  --page-bg: #F6F2EB;
  --card: #FFFEFB;
  --card-warm: #FBF7F0;
  --line: #E8E1D5;
  --line-soft: #F0EBE2;
  --line-frame: #E5DDD0;
  --ink: #2a2521;
  --ink-2: #5e564d;
  --ink-3: #948a7d;
  --nav-bg: rgba(6, 22, 31, 0.82);
  --nav-border: rgba(10, 186, 181, 0.14);
  --nav-border-hover: rgba(10, 186, 181, 0.32);
  --nav-text: rgba(210, 240, 248, 0.78);
  --nav-h: 54px;
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  --flash-duration: 75s;
  --flash-step: 5s;
  --flash-height: 172px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sea-abyss);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.nav-open,
body.nav-open { overflow: hidden; height: 100%; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #C73B7C; }

/* ============================================================
   动态背景
   ============================================================ */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -4;
  background: url('http://www.rayways.com/dh/ima/bg.jpg') top center no-repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}
.bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sea-light) 0%, var(--sea-mid) 38%, var(--sea-deep) 72%, var(--sea-abyss) 100%);
  mix-blend-mode: color;
}
.bg-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,80,106,0.38) 0%, rgba(10,36,54,0.48) 55%, rgba(6,22,31,0.6) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
}
.bg-aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.bg-aurora span { position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen; will-change: transform, background; }
.aurora-1 { width: 1400px; height: 1400px; top: -40%; left: -25%; animation: aurora-1 32s ease-in-out infinite; }
@keyframes aurora-1 {
  0%   { transform: translate(0,0) scale(1);          background: radial-gradient(circle, rgba(94,36,138,0.62) 0%, rgba(94,36,138,0.22) 40%, transparent 72%); }
  25%  { transform: translate(14vw,8vh) scale(1.16);  background: radial-gradient(circle, rgba(10,186,181,0.55) 0%, rgba(10,186,181,0.18) 40%, transparent 72%); }
  50%  { transform: translate(22vw,20vh) scale(1.10); background: radial-gradient(circle, rgba(212,175,55,0.45) 0%, rgba(212,175,55,0.12) 40%, transparent 72%); }
  75%  { transform: translate(-8vw,14vh) scale(1.20); background: radial-gradient(circle, rgba(135,38,81,0.55) 0%, rgba(135,38,81,0.18) 40%, transparent 72%); }
  100% { transform: translate(0,0) scale(1);          background: radial-gradient(circle, rgba(94,36,138,0.62) 0%, rgba(94,36,138,0.22) 40%, transparent 72%); }
}
.aurora-2 { width: 1200px; height: 1200px; top: -20%; right: -30%; animation: aurora-2 26s ease-in-out infinite; }
@keyframes aurora-2 {
  0%   { transform: translate(0,0) scale(1);          background: radial-gradient(circle, rgba(10,186,181,0.58) 0%, rgba(10,186,181,0.18) 40%, transparent 72%); }
  25%  { transform: translate(-12vw,12vh) scale(1.22); background: radial-gradient(circle, rgba(135,38,81,0.52) 0%, rgba(135,38,81,0.16) 40%, transparent 72%); }
  50%  { transform: translate(-6vw,-6vh) scale(1.10);  background: radial-gradient(circle, rgba(94,36,138,0.60) 0%, rgba(94,36,138,0.20) 40%, transparent 72%); }
  75%  { transform: translate(8vw,16vh) scale(1.18);   background: radial-gradient(circle, rgba(212,175,55,0.45) 0%, rgba(212,175,55,0.12) 40%, transparent 72%); }
  100% { transform: translate(0,0) scale(1);          background: radial-gradient(circle, rgba(10,186,181,0.58) 0%, rgba(10,186,181,0.18) 40%, transparent 72%); }
}
.aurora-3 { width: 1100px; height: 1100px; bottom: -30%; left: 8%; animation: aurora-3 38s ease-in-out infinite; }
@keyframes aurora-3 {
  0%   { transform: translate(0,0) scale(1);          background: radial-gradient(circle, rgba(212,175,55,0.42) 0%, rgba(212,175,55,0.12) 42%, transparent 72%); }
  25%  { transform: translate(12vw,-10vh) scale(1.20); background: radial-gradient(circle, rgba(94,36,138,0.55) 0%, rgba(94,36,138,0.18) 42%, transparent 72%); }
  50%  { transform: translate(-8vw,-6vh) scale(1.10);  background: radial-gradient(circle, rgba(135,38,81,0.52) 0%, rgba(135,38,81,0.16) 42%, transparent 72%); }
  75%  { transform: translate(6vw,8vh) scale(1.16);    background: radial-gradient(circle, rgba(10,186,181,0.50) 0%, rgba(10,186,181,0.15) 42%, transparent 72%); }
  100% { transform: translate(0,0) scale(1);          background: radial-gradient(circle, rgba(212,175,55,0.42) 0%, rgba(212,175,55,0.12) 42%, transparent 72%); }
}
.aurora-4 { width: 1300px; height: 1300px; bottom: -20%; right: -20%; animation: aurora-4 44s ease-in-out infinite; }
@keyframes aurora-4 {
  0%   { transform: translate(0,0) scale(1);          background: radial-gradient(circle, rgba(135,38,81,0.52) 0%, rgba(135,38,81,0.16) 40%, transparent 72%); }
  25%  { transform: translate(-14vw,-12vh) scale(1.18); background: radial-gradient(circle, rgba(212,175,55,0.42) 0%, rgba(212,175,55,0.12) 40%, transparent 72%); }
  50%  { transform: translate(10vw,-8vh) scale(1.08);  background: radial-gradient(circle, rgba(10,186,181,0.55) 0%, rgba(10,186,181,0.18) 40%, transparent 72%); }
  75%  { transform: translate(12vw,10vh) scale(1.20);  background: radial-gradient(circle, rgba(94,36,138,0.58) 0%, rgba(94,36,138,0.18) 40%, transparent 72%); }
  100% { transform: translate(0,0) scale(1);          background: radial-gradient(circle, rgba(135,38,81,0.52) 0%, rgba(135,38,81,0.16) 40%, transparent 72%); }
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(150,210,230,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,210,230,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
}
.bg-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 32%, transparent 30%, rgba(3,12,20,0.68) 90%);
}

.page { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(6, 22, 31, 0.95);
  border-bottom: 1px solid var(--nav-border);
  border-radius: 0 0 10px 10px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header:hover { background: rgba(6, 22, 31, 0.98); border-bottom-color: var(--nav-border-hover); }

@media (min-width: 901px) {
  .site-header {
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
  }
  .site-header:hover { background: rgba(6, 22, 31, 0.90); }
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 22px;
  min-height: 56px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark { display: inline-flex; gap: 2px; width: 22px; height: 18px; }
.brand-mark i { flex: 1; border-radius: 2px; display: block; }
.brand-mark i:nth-child(1) { background: var(--rose); }
.brand-mark i:nth-child(2) { background: var(--tiffany); }
.brand-mark i:nth-child(3) { background: var(--gold); }
.brand-text { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }

/* 三横按钮：is-active 时三横变 X */
#x9t.is-active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
#x9t.is-active span:nth-child(2) { opacity: 0; }
#x9t.is-active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 主导航：三层显式 flex，让列表与 CTA 在同一行 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
.nav-menu-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
.nav-menu-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }

.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--nav-text);
  border-radius: 6px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-item > a::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 12px; right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.nav-item > a:hover,
.nav-item.has-dropdown:hover > a,
.nav-item:focus-within > a,
.nav-item > a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-item > a:hover::after,
.nav-item.has-dropdown:hover > a::after,
.nav-item > a.active::after { transform: scaleX(1); }

.caret {
  display: inline-block; font-size: 9px; line-height: 1;
  opacity: 0.55; margin-left: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, color 0.2s ease;
}
.nav-item.has-dropdown:hover .caret,
.nav-item.has-dropdown:focus-within .caret {
  transform: rotate(180deg); opacity: 1; color: var(--gold);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(10,36,54,0.98) 0%, rgba(6,22,31,0.98) 100%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(10,186,181,0.22);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(2,10,18,0.75), 0 0 0 1px rgba(10,186,181,0.05);
  z-index: 999;
}
.dropdown::before {
  content: ""; position: absolute;
  top: -6px; left: 0; right: 0; height: 6px;
}
.nav-item.has-dropdown:hover > .dropdown,
.nav-item.has-dropdown:focus-within > .dropdown {
  display: block;
  animation: dropdownIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 16px;
  font-size: 12.5px;
  color: rgba(210,240,248,0.78);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}
.dropdown a::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--tiffany));
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dropdown a:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(10,186,181,0.10), rgba(10,186,181,0.02));
  padding-left: 20px;
}
.dropdown a:hover::before { transform: scale(1.5); box-shadow: 0 0 12px var(--dot, var(--tiffany)); }
.dropdown .tag {
  margin-left: 8px; padding: 1px 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: rgba(10,186,181,0.85);
  background: rgba(10,186,181,0.10);
  border: 1px solid rgba(10,186,181,0.22);
  border-radius: 3px; flex-shrink: 0;
}
.dropdown a:hover .tag {
  color: var(--gold);
  background: rgba(212,175,55,0.10);
  border-color: rgba(212,175,55,0.32);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--gold) !important;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.nav-cta:hover {
  background: rgba(212,175,55,0.16);
  border-color: rgba(212,175,55,0.62);
  color: #f0d675 !important;
  box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}

/* ============================================================
   内容区
   ============================================================ */
.col-wrap {
  position: relative;
  background: var(--page-bg);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 22px 64px rgba(2,10,18,0.55);
}
.col-wrap::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(120,100,80,0.010) 0px, rgba(120,100,80,0.010) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(120,100,80,0.007) 0px, rgba(120,100,80,0.007) 1px, transparent 1px, transparent 6px);
}
.content-layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 26px;
  padding: 26px 30px;
}
.main-content { min-width: 0; }

.hero-banner {
  position: relative;
  background: linear-gradient(90deg, var(--card-warm) 0%, var(--card) 42%);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px 18px 24px;
  margin-bottom: 22px;
  box-shadow: 0 2px 14px rgba(60,40,20,0.05);
  overflow: hidden;
}
.hero-banner::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--rose) 0%, var(--rose-light) 38%, var(--ochre) 72%, var(--gold) 100%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 8px;
}
.hero-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--rose); }
.hero-banner h1 {
  font-size: 22px; font-weight: 600;
  color: var(--rose-dark); line-height: 1.4;
  margin-bottom: 8px;
}
.hero-banner .sub { font-size: 13px; color: var(--ink-2); }
.hero-banner .sub strong { color: var(--rose); }
.intro-text { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 22px; }
.intro-text strong { color: var(--ink); }

/* 闪隐模块 */
.flash-label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.flash-label .live { display: inline-flex; align-items: center; gap: 7px; color: var(--tiffany-deep); }
.flash-label .live::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: var(--tiffany);
  animation: pulse-tiffany 2s ease-in-out infinite;
}
@keyframes pulse-tiffany {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(10,186,181,0.55); }
  50%      { opacity: .55; box-shadow: 0 0 0 5px rgba(10,186,181,0); }
}

.flash-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,0.42);
  background-color: #0ABAB5;
  animation: paintCycle var(--flash-duration) linear infinite;
  background-image:
    radial-gradient(ellipse 100% 58% at 50% 0%, rgba(255,255,255,0.20), transparent 62%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.14) 100%);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.35),
    inset 0 -8px 16px rgba(0,0,0,0.15),
    0 18px 50px rgba(4,80,90,0.42),
    0 0 80px rgba(10,186,181,0.22),
    0 0 140px rgba(10,186,181,0.10);
}
@keyframes paintCycle {
  0%, 6%           { background-color: #0ABAB5; }
  6.667%, 12.667%  { background-color: #1E7A8C; }
  13.333%, 19.333% { background-color: #7FA86B; }
  20%, 26%         { background-color: #D98E73; }
  26.667%, 32.667% { background-color: #E8E5DF; }
  33.333%, 39.333% { background-color: #5D5A7A; }
  40%, 46%         { background-color: #D9A441; }
  46.667%, 52.667% { background-color: #7A9E8E; }
  53.333%, 59.333% { background-color: #B84A3A; }
  60%, 66%         { background-color: #9DB8C4; }
  66.667%, 72.667% { background-color: #8A9A7B; }
  73.333%, 79.333% { background-color: #A88BA8; }
  80%, 86%         { background-color: #B8A992; }
  86.667%, 92.667% { background-color: #58514D; }
  93.333%, 99.333% { background-color: #A47E6B; }
  100%             { background-color: #0ABAB5; }
}
.flash-card::before {
  content: ""; position: absolute;
  top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  z-index: 5;
}
.flash-scan-a {
  position: absolute; top: -8%; left: -40%;
  width: 38%; height: 116%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  pointer-events: none; z-index: 1;
  animation: scan-a 9s ease-in-out infinite;
}
@keyframes scan-a {
  0%   { left: -40%; top: -8%; transform: skewY(0deg);  opacity: 0; }
  10%  { opacity: 1; }
  35%  { top: 3%;   transform: skewY(2deg); }
  65%  { left: 100%; top: -4%; transform: skewY(-2deg); opacity: 1; }
  75%  { left: 100%; opacity: 0; }
  100% { left: -40%; top: -8%; transform: skewY(0deg);  opacity: 0; }
}
.flash-scan-b {
  position: absolute; top: -6%; right: -40%;
  width: 34%; height: 112%;
  background: linear-gradient(270deg, transparent, rgba(255,255,255,0.16), transparent);
  pointer-events: none; z-index: 1;
  animation: scan-b 13s ease-in-out infinite;
  animation-delay: -3s;
}
@keyframes scan-b {
  0%   { right: -40%; top: 2%;  opacity: 0; }
  8%   { opacity: 1; }
  30%  { top: -3%; }
  62%  { right: 100%; top: 3%;  opacity: 1; }
  74%  { right: 100%; opacity: 0; }
  100% { right: -40%; top: 2%;  opacity: 0; }
}
.flash-viewport {
  position: relative;
  height: var(--flash-height);
  z-index: 2;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.flash-item {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 7px; padding: 18px 26px;
  opacity: 0; transform: translateY(8px);
  animation: flashCycle var(--flash-duration) infinite both;
  animation-delay: calc(var(--i) * var(--flash-step));
}
.flash-viewport .flash-item:nth-child(1)  { --t: #04302E; --th: rgba(255,255,255,0.30); }
.flash-viewport .flash-item:nth-child(2)  { --t: #E8F0F0; --th: rgba(255,255,255,0.16); }
.flash-viewport .flash-item:nth-child(3)  { --t: #1A2E1C; --th: rgba(255,255,255,0.32); }
.flash-viewport .flash-item:nth-child(4)  { --t: #3A1F14; --th: rgba(255,255,255,0.28); }
.flash-viewport .flash-item:nth-child(5)  { --t: #2A2521; --th: rgba(255,255,255,0.45); }
.flash-viewport .flash-item:nth-child(6)  { --t: #EAE4F0; --th: rgba(255,255,255,0.14); }
.flash-viewport .flash-item:nth-child(7)  { --t: #3A2810; --th: rgba(255,255,255,0.28); }
.flash-viewport .flash-item:nth-child(8)  { --t: #1A2E28; --th: rgba(255,255,255,0.30); }
.flash-viewport .flash-item:nth-child(9)  { --t: #F5EDE2; --th: rgba(255,255,255,0.14); }
.flash-viewport .flash-item:nth-child(10) { --t: #1A2A35; --th: rgba(255,255,255,0.32); }
.flash-viewport .flash-item:nth-child(11) { --t: #2A2E1F; --th: rgba(255,255,255,0.30); }
.flash-viewport .flash-item:nth-child(12) { --t: #2A1A2A; --th: rgba(255,255,255,0.30); }
.flash-viewport .flash-item:nth-child(13) { --t: #2A221A; --th: rgba(255,255,255,0.32); }
.flash-viewport .flash-item:nth-child(14) { --t: #F0EBE2; --th: rgba(255,255,255,0.12); }
.flash-viewport .flash-item:nth-child(15) { --t: #2A1A12; --th: rgba(255,255,255,0.28); }
.flash-q {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--t, #04302E); text-transform: uppercase; font-weight: 700;
}
.flash-q span { opacity: 0.55; margin-right: 6px; }
.flash-a { font-size: 13.5px; line-height: 1.7; color: var(--t, #04302E); }
.flash-a strong {
  color: var(--t, #04302E); font-weight: 700;
  background: var(--th, rgba(255,255,255,0.30));
  padding: 0 3px; border-radius: 2px;
}
@keyframes flashCycle {
  0%    { opacity: 0; transform: translateY(8px); }
  0.4%  { opacity: 1; transform: translateY(0); }
  6%    { opacity: 1; transform: translateY(0); }
  6.67% { opacity: 0; transform: translateY(-6px); }
  100%  { opacity: 0; transform: translateY(-6px); }
}

/* 图片 */
.img-card {
  background: var(--card-warm);
  border: 1px solid var(--line-frame);
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 3px 16px rgba(60,40,20,0.06);
  margin: 18px 0;
}
.img-card img { border-radius: 2px; width: 100%; border: 1px solid #EDE6DA; }
.img-caption { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.float-img-wrap { float: right; margin: 4px 0 14px 18px; max-width: 200px; }
.float-img-wrap img {
  width: 100%;
  padding: 5px;
  background: var(--card-warm);
  border: 1px solid var(--line-frame);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(60,40,20,0.05);
}
@media (max-width: 600px) { .float-img-wrap { float: none; margin: 12px auto; } }

/* 标题 / 段落 / 对比 */
.section-title {
  font-size: 17px; font-weight: 600;
  color: var(--rose-dark);
  margin: 26px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.section-title::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose);
  margin-right: 9px; vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(135,38,81,0.10);
}
.main-content p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 14px; }
.main-content p strong { color: var(--ink); }
.highlight-line { font-size: 15px; font-weight: 600; color: var(--rose); margin: 18px 0 14px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
@media (max-width: 500px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 14px;
  text-align: center;
}
.compare-card .num {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 600;
  color: var(--ink); margin-bottom: 4px;
}
.compare-card .desc { font-size: 12px; color: var(--ink-3); }
.compare-card.highlight {
  border-color: rgba(135,38,81,0.22);
  background: linear-gradient(180deg, #FDF4EE, var(--card));
}
.compare-card.highlight .num { color: var(--rose); }
.contact-line {
  font-size: 14px; color: var(--ink-2);
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.contact-line strong { color: var(--rose); }
.quick-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13px; }
.quick-links a { color: var(--rose); }

/* 侧栏 */
.sidebar { align-self: start; }
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 3px 16px rgba(60,40,20,0.06);
}
.sidebar-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.sidebar-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 3px;
  background: var(--num-color, var(--rose));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 600; line-height: 1;
}
.sidebar-head h2 { font-size: 13px; font-weight: 600; color: var(--rose-dark); }
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 5px; }
.sidebar li a {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 12.5px; color: var(--ink-2); padding: 3px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.sidebar li a::before {
  content: ""; flex-shrink: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: #d3c9bb;
}
.sidebar li a:hover { color: var(--rose); padding-left: 2px; }
.sidebar li a:hover::before { background: var(--rose); }
.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--line-soft) 60%, transparent);
  margin: 18px 0;
}
.video-card {
  position: relative;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.32);
  box-shadow: 0 8px 24px rgba(58,20,36,0.35), 0 0 40px rgba(196,138,90,0.12);
  background: linear-gradient(155deg, var(--rosegold-deep) 0%, var(--rosegold-mid) 45%, #7d2647 72%, var(--rosegold-light) 100%);
  background-size: 180% 180%;
  animation: rosegold-flow 22s ease-in-out infinite;
}
@keyframes rosegold-flow {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
.video-card .thumb {
  width: 96px; height: 96px;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  padding: 4px;
  border: 1px solid rgba(212,175,55,0.28);
}
.video-card p {
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(255,240,225,0.68);
  margin-bottom: 12px;
  text-align: left;
}
.video-card p strong { color: rgba(255,245,230,0.96); }
.video-btn {
  display: block;
  padding: 8px 10px;
  background: var(--gold);
  color: var(--rosegold-deep) !important;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}
.video-btn:hover { background: #e6c34a; color: var(--rosegold-deep) !important; }

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1px;
}
.contact-list dd {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 9px;
  word-break: break-all;
}
.contact-list dd:last-child { margin-bottom: 0; }

/* 页脚 */
.site-footer {
  color: rgba(210,235,245,0.72);
  padding: 20px 30px 28px;
  font-size: 11.5px;
  line-height: 1.7;
}
.site-footer p { margin-bottom: 5px; }
.site-footer a { color: rgba(220,240,248,0.82); }
.site-footer a:hover { color: var(--gold); }
.license-wrap { text-align: center; padding: 12px 0 0; }
.license-wrap img { margin: 0 auto; border-radius: 4px; }

/* ============================================================
   色卡条
   ============================================================ */
.nav-colorbar {
  display: none;
  position: fixed;
  top: 50%;
  right: 2px;
  bottom: auto;
  transform: translateY(-50%);
  width: 8px;
  height: 50vh;
  max-height: 480px;
  min-height: 260px;
  z-index: 999998;
  pointer-events: none;
  border-radius: 4px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent calc(6.667% - 1px),
      rgba(0, 0, 0, 0.55) calc(6.667% - 1px),
      rgba(0, 0, 0, 0.55) 6.667%
    ),
    linear-gradient(
      180deg,
      #0ABAB5 0%,       #0ABAB5 6.667%,
      #1E7A8C 6.667%,   #1E7A8C 13.333%,
      #7FA86B 13.333%,  #7FA86B 20%,
      #D98E73 20%,      #D98E73 26.667%,
      #E8E5DF 26.667%,  #E8E5DF 33.333%,
      #5D5A7A 33.333%,  #5D5A7A 40%,
      #D9A441 40%,      #D9A441 46.667%,
      #7A9E8E 46.667%,  #7A9E8E 53.333%,
      #B84A3A 53.333%,  #B84A3A 60%,
      #9DB8C4 60%,      #9DB8C4 66.667%,
      #8A9A7B 66.667%,  #8A9A7B 73.333%,
      #A88BA8 73.333%,  #A88BA8 80%,
      #B8A992 80%,      #B8A992 86.667%,
      #58514D 86.667%,  #58514D 93.333%,
      #A47E6B 93.333%,  #A47E6B 100%
    );
  box-shadow: -1px 0 6px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
}
.nav-colorbar.is-visible { display: block; }

/* 滑块长度 = 色卡高度 × 10% = 1.5 个色块 */
.nav-colorbar-thumb {
  position: absolute;
  right: 1px;
  width: 5px;
  top: 0;
  height: 10%;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 2.5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 4px rgba(255, 255, 255, 0.7);
  transition: top 0.06s linear;
}

/* ============================================================
   移动端
   ============================================================ */
@media (max-width: 900px) {
  .page { max-width: 100%; padding-top: var(--nav-h, 54px); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    z-index: 10000;
  }

  .nav-inner {
    padding: 8px 56px 8px 16px;
    min-height: 54px;
  }

  #x9t { display: flex; }

  .nav-brand { flex-shrink: 0; }

  /* 抽屉 */
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h, 54px);
    left: 0;
    right: 0;
    bottom: 0;
    background: #06161f;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    z-index: 9999;
    overflow: hidden;
  }
  .nav-menu.is-open { display: flex; }

  /* 内层面板可滚动，三层隐藏滚动条 */
  .nav-menu-panel {
    display: block;
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .nav-menu-panel::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
  }

  .nav-menu-inner {
    display: block;
    padding: 16px 52px 200px 20px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    list-style: none;
  }
  .nav-item { position: static; }
  .nav-item > a {
    display: flex;
    padding: 14px 4px;
    font-size: 14px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    justify-content: space-between;
    background: transparent !important;
    color: var(--nav-text);
  }
  .nav-item > a::after { display: none; }
  .caret { font-size: 10px; }

  .dropdown {
    display: block;
    position: static;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 4px 0 8px 14px;
    padding: 0 0 0 12px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(10,186,181,0.30);
    border-radius: 0;
    box-shadow: none;
    animation: none !important;
  }
  .dropdown::before { display: none; }
  .dropdown a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    font-size: 12.5px;
    border-bottom: 1px dashed rgba(255,255,255,0.04);
    white-space: normal;
    color: var(--nav-text);
    justify-content: flex-start;
  }
  .dropdown a:last-child { border-bottom: none; }
  .dropdown a:hover { padding-left: 8px; }
  .dropdown .tag {
    margin-left: 6px;
    padding: 1px 5px;
    font-size: 9.5px;
    flex-shrink: 0;
  }

  .nav-cta {
    margin-top: 20px;
    padding: 14px;
    justify-content: center;
    font-size: 13px;
    display: flex;
  }

  .content-layout { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .col-wrap { border-radius: 0; }
  .sidebar { order: 2; }
  .sidebar-card { padding: 20px; }
  :root { --flash-height: 196px; }
}

@media (max-width: 720px) {
  .aurora-1 { width: 700px; height: 700px; }
  .aurora-2 { width: 640px; height: 640px; }
  .aurora-3 { width: 600px; height: 600px; }
  .aurora-4 { width: 680px; height: 680px; }
  .bg-grid { background-size: 40px 40px; }
  .bg-photo { opacity: 0.45; }
}

@media (max-width: 600px) {
  :root { --flash-height: 208px; }
  .hero-banner h1 { font-size: 19px; }
  .flash-item { padding: 16px 20px; }
  .flash-a { font-size: 13px; }
  .site-footer { padding: 16px 20px 22px; }
  .sidebar-card { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-aurora span { animation: none; opacity: 0.8; }
  .flash-card { animation: none; background-color: #0ABAB5; }
  .flash-scan-a, .flash-scan-b { animation: none; opacity: 0; }
  .video-card { animation: none; }
  .flash-item { animation: none; opacity: 0; }
  .flash-item:first-child { opacity: 1; }
  .flash-label .live::before { animation: none; }
  .nav-item.has-dropdown:hover > .dropdown,
  .nav-item.has-dropdown:focus-within > .dropdown { animation: none; }
}