:root {
  --red: #ff0000;
  --purple: #8b00ff;
  --ink: #261717;
  --txt: #f4ebeb;
  --muted: #cdb8bc;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.16);
  --focus: #ff4d4d;
}

* { box-sizing: border-box; }

html {
  background: #1b0f0f;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(58vw 58vw at 6% -8%, rgba(255, 0, 0, 0.44), transparent 62%),
    radial-gradient(52vw 52vw at 100% 0%, rgba(139, 0, 255, 0.44), transparent 60%),
    radial-gradient(78vw 56vw at 52% 112%, rgba(139, 0, 255, 0.22), transparent 68%);
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--txt);
  min-height: 100vh;
}

::selection { background: rgba(255, 0, 0, 0.45); color: #fff; }

a { color: #ff7b7b; }
a:focus-visible,
.tabgroup-label:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(32, 18, 18, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.topbar::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--purple), rgba(255, 255, 255, 0));
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--txt);
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; display: block; }

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 0, 0, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.contact-link:hover { background: rgba(255, 0, 0, 0.3); }

.menu-line { padding: 6px 0 9px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt);
  text-decoration: none;
  border: 1px solid transparent;
}

.tab:hover {
  border-color: var(--line);
  background: var(--glass);
}

.tabgroup { position: relative; display: inline-flex; }
.tabgroup:last-child .tabdrop { left: auto; right: 0; }

.tabgroup-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid transparent;
}

.tabgroup-label::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.tabgroup:hover .tabgroup-label,
.tabgroup:focus-within .tabgroup-label {
  color: var(--txt);
  border-color: var(--line);
  background: var(--glass);
}

.tabdrop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  min-width: 196px;
  padding: 6px;
  background: rgba(40, 22, 22, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tabgroup:hover .tabdrop,
.tabgroup:focus-within .tabdrop,
.tabgroup.open .tabdrop { display: flex; }

.tabdrop a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  font-size: 1rem;
  color: var(--txt);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tabdrop a:last-child { border-bottom: 0; }
.tabdrop a:hover { background: rgba(139, 0, 255, 0.24); }

/* ---------- 版心 ---------- */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

main { padding-bottom: 72px; }

article {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  column-gap: 46px;
  align-items: start;
}

article > div { grid-column: 2; scroll-margin-top: 148px; }

article > div + div {
  margin-top: 46px;
  padding-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- 侧栏 ---------- */
.rail {
  grid-column: 1;
  grid-row: 1 / -1;
  position: sticky;
  top: 138px;
  align-self: start;
  padding: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.rail-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-list a {
  display: block;
  min-height: 40px;
  padding: 7px 9px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.rail-list a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-left-color: var(--red);
}

hr {
  height: 1px;
  border: 0;
  margin: 12px 0 18px;
  background: linear-gradient(90deg, var(--red), var(--purple), rgba(255, 255, 255, 0.06));
  opacity: 0.85;
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 38px;
  min-height: 70vh;
  padding: 34px 0 40px;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 46%);
  mix-blend-mode: screen;
}

.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.orb {
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 0, 0, 0.95), rgba(139, 0, 255, 0.78) 54%, rgba(38, 23, 23, 0.92));
  box-shadow: 0 0 96px rgba(255, 0, 0, 0.34);
  filter: blur(4px);
}

.hero-copy {
  position: relative;
  text-align: right;
}

.ghost {
  position: absolute;
  top: -0.62em;
  right: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  margin: 0.18em 0 0.4em;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

/* ---------- 正文 ---------- */
div h2 {
  margin: 0.15em 0 0.1em;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
}

div h3 {
  margin: 1.7em 0 0.55em;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

div p { margin: 0 0 1.05em; max-width: 70ch; }
div ul,
div ol { margin: 0 0 1.1em; padding-left: 1.3em; }
div li { margin: 0.35em 0; }
div a:hover { color: #fff; }
strong { color: #fff; }

blockquote {
  margin: 1.5em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--purple);
  background: rgba(139, 0, 255, 0.12);
}

/* ---------- 页脚 ---------- */
.site-foot {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.foot-name {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

address { font-style: normal; }

.foot-addr ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.foot-addr a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
}

.foot-addr a:hover { color: #fff; }

.foot-nav dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.foot-nav dt {
  width: 100%;
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.foot-nav dd { margin: 0; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
}

.foot-nav a:hover { color: #fff; }

.copy {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- 滚动入场 ---------- */
.will-reveal {
  opacity: 0;
  transform: translateY(16px);
}

.will-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .will-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  article { grid-template-columns: minmax(0, 1fr); }
  article > div { grid-column: 1; }
  article > div + div { margin-top: 34px; padding-top: 34px; }

  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin-bottom: 26px;
    padding: 14px;
  }

  .rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 6px;
  }

  .rail-list a { padding: 7px 10px; border: 1px solid var(--line); }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 22px;
    padding: 18px 0 28px;
  }

  .hero-copy { text-align: left; }
  .ghost { top: -0.45em; right: auto; left: 0; }
  .hero-visual { aspect-ratio: 16 / 9; max-height: 200px; }

  .site-foot { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .copy { padding-top: 14px; }

  .tabdrop { min-width: 176px; }
}

@media (max-width: 420px) {
  .tab, .tabgroup-label, .contact-link { padding-left: 11px; padding-right: 11px; }
  .topbar-inner, .shell, .site-foot { padding-left: 16px; padding-right: 16px; }
}

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