@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Varela+Round&display=swap');

:root {
  --ink: #261717;
  --ink-deep: #170d0d;
  --ink-soft: #2c1a1a;
  --red: #ff0000;
  --pink: #ff1493;
  --paper: #fff4f1;
  --paper-dim: rgba(255, 244, 241, .78);
  --paper-mute: rgba(255, 244, 241, .55);
  --line: rgba(255, 244, 241, .16);
  --r: 10px;
  --shell: 1160px;
  --font-body: "Nunito Sans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-head: "Varela Round", "Nunito Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  background: var(--ink-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background: var(--ink-deep);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 20, 147, .42), transparent 52%),
    radial-gradient(circle at 86% 4%, rgba(255, 0, 0, .34), transparent 48%),
    radial-gradient(circle at 62% 88%, rgba(255, 20, 147, .26), transparent 58%),
    radial-gradient(circle at 30% 70%, rgba(255, 0, 0, .18), transparent 55%);
  background-size: 200% 200%;
  filter: saturate(1.2);
  animation: aurora 11s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 244, 241, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .85;
}

@keyframes aurora {
  0%   { background-position: 0% 0%, 100% 0%, 60% 100%, 20% 70%; }
  50%  { background-position: 30% 20%, 70% 24%, 40% 80%, 44% 54%; }
  100% { background-position: 12% 40%, 88% 12%, 66% 92%, 34% 40%; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); }
p { margin: 0 0 1em; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 顶部 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px clamp(14px, 4vw, 40px) 10px;
  background: linear-gradient(180deg, rgba(23, 13, 13, .95), rgba(23, 13, 13, .74));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: .02em;
  line-height: 1.2;
}

.brand-logo { display: inline-flex; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }

.brand-word {
  background: linear-gradient(94deg, var(--red), var(--pink) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 6px;
}

.menu { min-width: 0; }

.drop-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
}

.drop-list > li > a,
.drop summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}

.drop-list > li > a:hover,
.drop summary:hover { background: rgba(255, 20, 147, .14); border-color: var(--line); }

.drop-home > a {
  background: linear-gradient(100deg, rgba(255, 0, 0, .3), rgba(255, 20, 147, .28));
  border-color: rgba(255, 20, 147, .5);
}

.drop { position: relative; }
.drop summary { list-style: none; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .65;
}

.drop[open] summary {
  background: rgba(255, 20, 147, .18);
  border-color: var(--line);
}

.drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 45;
  min-width: 188px;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  display: grid;
  gap: 2px;
  background: #2b1818;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.drop-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--paper);
}

.drop-panel a:hover { background: rgba(255, 20, 147, .18); }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--pink);
  background: linear-gradient(100deg, rgba(255, 0, 0, .26), rgba(255, 20, 147, .3));
  text-decoration: none;
  font-size: .98rem;
  white-space: nowrap;
}

.contact:hover { background: linear-gradient(100deg, rgba(255, 0, 0, .42), rgba(255, 20, 147, .46)); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 70vh;
  padding: clamp(26px, 6vw, 76px) clamp(16px, 5vw, 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.04);
  will-change: transform;
  transform: scale(1.04);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(258deg, rgba(23, 13, 13, .46), rgba(23, 13, 13, .9) 64%),
    radial-gradient(circle at 82% 26%, rgba(255, 20, 147, .45), transparent 58%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38ch;
  margin-left: auto;
  text-align: right;
}

.hero-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: .01em;
  text-shadow: 0 6px 30px rgba(23, 13, 13, .7);
}

.hero-desc {
  margin: 14px 0 0 auto;
  max-width: 32ch;
  font-size: 1rem;
  color: var(--paper-dim);
}

/* ---------- 主体网格 ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: clamp(22px, 4vw, 52px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 62px) clamp(16px, 4vw, 40px);
}

.main { min-width: 0; }

.prose { min-width: 0; }

.prose > article {
  scroll-margin-top: 130px;
  padding-block: clamp(22px, 4vw, 36px);
  border-top: 1px solid var(--line);
}

.prose > article:first-child { border-top: 0; padding-top: 0; }

.prose > article:first-child h2 { margin-top: 0; }

.prose h2 {
  position: relative;
  margin: 0 0 .55em;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  line-height: 1.34;
  padding-left: 16px;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  bottom: .22em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--red), var(--pink));
}

.prose h2 > span { display: inline; }

.prose h3 {
  margin: 1.5em 0 .45em;
  font-family: var(--font-head);
  font-size: 1.14rem;
  color: var(--paper);
}

.prose p, .prose li { color: var(--paper-dim); }
.prose strong { color: var(--paper); }

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }

.prose a {
  color: #ff9ecb;
  text-decoration: underline;
  text-decoration-color: rgba(255, 158, 203, .5);
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--paper); text-decoration-color: var(--pink); }

.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 20, 147, .09);
  color: var(--paper-dim);
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: .95rem;
}

.prose th, .prose td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th { background: rgba(255, 20, 147, .14); color: var(--paper); }

.prose figure { margin: 1.2em 0; }
.prose figcaption { font-size: .88rem; color: var(--paper-mute); margin-top: .5em; }

/* ---------- 侧栏 ---------- */
.rail { position: relative; }

.rail-box {
  position: sticky;
  top: 132px;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(38, 23, 23, .58);
  backdrop-filter: blur(6px);
}

.rail-title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--paper-mute);
}

.rail-title > span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 20, 147, .55);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  text-decoration: none;
  font-size: .95rem;
  color: var(--paper-dim);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.rail-list a:hover {
  color: var(--paper);
  border-left-color: var(--pink);
  background: rgba(255, 20, 147, .13);
}

/* ---------- 行动块 ---------- */
.cta-outer { padding: 0 clamp(16px, 4vw, 40px); }

.cta {
  max-width: var(--shell);
  margin: 0 auto clamp(30px, 6vw, 68px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 26px;
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid rgba(255, 20, 147, .55);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 0, 0, .34), transparent 62%),
    radial-gradient(circle at 90% 82%, rgba(255, 20, 147, .38), transparent 62%),
    rgba(38, 23, 23, .62);
}

.cta-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.3;
}

.cta-title > span {
  background: linear-gradient(94deg, #fff4f1, #ffc0dd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--red), var(--pink));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cta-btn:hover { filter: brightness(1.1); }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(23, 13, 13, .62);
}

.foot-row {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 26px;
}

.foot-addr {
  font-style: normal;
  font-size: .92rem;
  color: var(--paper-mute);
}

.foot-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: .94rem;
  color: var(--paper-dim);
  text-decoration: none;
}

.foot-nav a:hover { color: var(--paper); background: rgba(255, 20, 147, .16); }

/* ---------- 动效 ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}

html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { order: 2; }
  .rail-box { position: static; }
  .prose > article { scroll-margin-top: 154px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { min-height: 62vh; padding-top: 40px; }
  .hero-desc { max-width: 26ch; font-size: .95rem; }
  .brand { font-size: 1.2rem; }
  .bar { gap: 8px; }
  .drop-list > li > a, .drop summary { min-height: 44px; padding: 0 11px; font-size: .96rem; }
  .drop-panel { position: static; min-width: 0; margin: 4px 0 4px 6px; border: 0; padding: 0 0 0 10px; background: transparent; }
  .contact { min-height: 44px; padding: 0 15px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { transform: none !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
