/* ============================================================
   niuniu-win.com.cn — 共享样式 /assets/site.css
   控制台 × 展览画册：深墨绿底、暗金细边界、朱红与电光青点缀
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 变量 ---------- */
:root {
  --ink-900: #040b09;
  --ink-800: #071310;
  --ink-700: #0b1d18;
  --ink-600: #102a23;
  --panel-bg: rgba(16, 42, 35, .68);

  --gold: #c8a54a;
  --gold-2: #e9cd7d;
  --jade: #1c6b58;
  --red: #f0402e;
  --cyan: #25ded0;

  --text: #dbe6e0;
  --text-2: #9db3aa;
  --text-3: #6d857c;

  --line: rgba(200, 165, 74, .20);
  --line-2: rgba(200, 165, 74, .44);
  --hair: rgba(219, 230, 224, .10);

  --shell: min(1240px, 100% - 2.5rem);

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, .04), 0 20px 44px -30px rgba(0, 0, 0, .95);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .05), 0 30px 70px -40px rgba(0, 0, 0, 1);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 640px at 10% -10%, rgba(28, 107, 88, .38), transparent 62%),
    radial-gradient(920px 520px at 94% 2%, rgba(200, 165, 74, .15), transparent 58%),
    radial-gradient(700px 700px at 50% 120%, rgba(37, 222, 208, .07), transparent 65%),
    var(--ink-900);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: #10130a; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #eef5f1;
}

p { text-wrap: pretty; }

.mono { font-family: var(--font-mono); letter-spacing: .08em; }
.muted { color: var(--text-2); }

.display {
  font-size: clamp(2.6rem, 8.5vw, 5.6rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.035em;
  font-stretch: 88%;
  color: #f2f8f4;
}

.display__accent {
  color: var(--gold-2);
  text-shadow: 0 0 34px rgba(200, 165, 74, .34);
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.9;
  color: var(--text-2);
  max-width: 60ch;
}

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2em; }
.prose h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { list-style: none; }
.prose ul > li { padding-left: 1.35rem; position: relative; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 8px; height: 1px;
  background: var(--gold);
}
.prose a { color: var(--gold-2); text-underline-offset: .28em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- 布局工具 ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.6rem, 7vw, 5.5rem);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: clamp(1.4rem, 3.5vw, 2.6rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: -.025em;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-2), transparent 78%);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease), background-color .22s var(--ease),
    color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.btn--primary {
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  color: #161a0d;
  box-shadow: 0 16px 34px -22px rgba(200, 165, 74, .95);
}

.btn--ghost {
  background: rgba(200, 165, 74, .05);
  border-color: var(--line-2);
  color: var(--gold-2);
}

.btn--quiet {
  background: rgba(255, 255, 255, .03);
  border-color: var(--hair);
  color: var(--text-2);
}

.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { box-shadow: 0 20px 40px -20px rgba(200, 165, 74, 1); }
.btn--ghost:hover { border-color: var(--gold-2); color: #fff4d6; }
.btn--quiet:hover { color: var(--text); border-color: var(--line); }

/* ---------- 面板 / 标签 / 徽标 ---------- */
.panel {
  position: relative;
  padding: clamp(1.1rem, 2.8vw, 1.8rem);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, var(--panel-bg), rgba(4, 11, 9, .72));
  box-shadow: var(--shadow-1);
}

.panel--gold { border-color: var(--line-2); }

.panel--jade {
  background: linear-gradient(168deg, rgba(28, 107, 88, .34), rgba(4, 11, 9, .78));
  border-color: rgba(37, 222, 208, .22);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .6rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(255, 255, 255, .02);
  white-space: nowrap;
}

.chip--gold { color: var(--gold-2); border-color: var(--line-2); background: rgba(200, 165, 74, .08); }
.chip--cyan { color: var(--cyan); border-color: rgba(37, 222, 208, .3); background: rgba(37, 222, 208, .07); }
.chip--red { color: #ff8a7c; border-color: rgba(240, 64, 46, .34); background: rgba(240, 64, 46, .09); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(37, 222, 208, .16);
}
.badge--gold::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(200, 165, 74, .16); }
.badge--red::before { background: var(--red); box-shadow: 0 0 0 3px rgba(240, 64, 46, .18); }

/* ---------- 筛选（只作用于当前页面已有条目） ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.filter-btn {
  padding: .48rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .02);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.filter-btn:hover { color: var(--text); border-color: var(--line-2); }

.filter-btn[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--cyan), var(--jade));
  color: #04120f;
  border-color: transparent;
}

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(28, 107, 88, .55), transparent 68%),
    linear-gradient(150deg, #0c2119, #050d0b);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-1);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.05);
  transition: transform .6s var(--ease);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(4, 11, 9, .72), transparent 52%);
}

.media:hover img { transform: scale(1.035); }

.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--tilt { transform: rotate(-.6deg); }

.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: .8rem 1rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-block: clamp(1rem, 3vw, 1.8rem) 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.breadcrumb__list li + li::before {
  content: "/";
  display: inline-block;
  margin-right: .5rem;
  color: var(--line-2);
}

.breadcrumb__list a { color: var(--text-2); text-decoration: none; }
.breadcrumb__list a:hover { color: var(--gold-2); }

/* ---------- 头部 ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -120%;
  z-index: 200;
  padding: .7rem 1.15rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--gold-2);
  color: #10130a;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(4, 11, 9, .97), rgba(4, 11, 9, .88));
  border-bottom: 1px solid var(--line);
}

/* 上层：品牌说明带 */
.header-band {
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(90deg, rgba(28, 107, 88, .3), rgba(4, 11, 9, 0) 56%, rgba(200, 165, 74, .14));
}

.header-band__inner {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 3vw, 2.4rem);
  min-height: 74px;
  padding-block: .55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--gold-2), #8c6f22);
  color: #12150c;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(233, 205, 125, .45), 0 14px 30px -18px rgba(200, 165, 74, .95);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.16; }

.brand__name {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #f1f7f3;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  color: var(--gold);
}

.header-band__note {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .84rem;
  color: var(--text-3);
  letter-spacing: .04em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .62rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--text-2);
  background: rgba(255, 255, 255, .02);
  white-space: nowrap;
}

.meta-chip__k { color: var(--text-3); }
.meta-chip__v { color: var(--gold-2); }

.meta-chip--accent {
  border-color: var(--line-2);
  background: rgba(200, 165, 74, .08);
}
.meta-chip--accent .meta-chip__v { color: var(--cyan); }

/* 下层：栏目导航 */
.nav-bar {
  position: relative;
  background: rgba(7, 19, 16, .74);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .18rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.nav__link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background-color .2s var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .045);
  border-color: var(--hair);
}

.nav__link[aria-current="page"] {
  color: #14180d;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  border-color: transparent;
  box-shadow: 0 12px 26px -18px rgba(200, 165, 74, 1);
}

.nav__link[aria-current="page"]::before { background: #14180d; }

.nav-bar__cta { flex: 0 0 auto; padding: .55rem 1.1rem; font-size: .88rem; }

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .48rem .72rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(200, 165, 74, .06);
  color: var(--gold-2);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 17px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 滚动读数条 */
.readout {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
}

.readout__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--red));
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(3rem, 8vw, 7rem);
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(7, 19, 16, .92), rgba(4, 11, 9, 1));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 3.6vw, 3rem);
  padding-top: clamp(2.4rem, 6vw, 4.4rem);
  padding-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.footer-brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #f1f7f3;
}

.footer-brand__desc {
  margin-top: .7rem;
  max-width: 34ch;
  font-size: .9rem;
  line-height: 1.85;
  color: var(--text-2);
}

.footer-brand__sig {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .24em;
  color: var(--gold);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.footer-col__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.footer-list {
  margin-top: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.footer-list a {
  color: var(--text-2);
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.footer-list a:hover {
  color: var(--gold-2);
  padding-left: .28rem;
}

.footer-list--plain li {
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.7;
}

.footer-note {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--hair);
  font-size: .8rem;
  line-height: 1.75;
  color: var(--text-3);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.15rem 1.4rem;
  border-top: 1px solid var(--hair);
  font-size: .8rem;
  color: var(--text-3);
}

.footer-legal__icp { color: var(--text-2); }

/* ---------- 显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__desc { max-width: 52ch; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: .7rem clamp(1rem, 4vw, 1.6rem) 1rem;
    background: linear-gradient(180deg, rgba(7, 19, 16, .99), rgba(4, 11, 9, .99));
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow-2);
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }

  .nav[data-open] { display: block; }

  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }

  .nav__link {
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--r-md);
    padding: .72rem .85rem;
  }

  .nav-bar__cta { margin-left: auto; }
}

@media (max-width: 760px) {
  .header-band__note { display: none; }
  .header-band__inner { min-height: 66px; }
}

@media (max-width: 640px) {
  :root { --shell: min(1240px, 100% - 1.75rem); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: .45rem; }

  .nav-bar__cta { display: none; }

  .meta-chip:first-child { display: none; }

  .btn { padding: .68rem 1.05rem; }
}

@media (min-width: 901px) {
  .nav[data-open] { display: block; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.js [data-reveal] { opacity: 1; transform: none; }

  .btn:hover { transform: none; }
  .media:hover img { transform: none; }
}
