@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --text: #f6eef3;
  --dim: #c8b7c3;
  --glass: rgba(255, 255, 255, 0.085);
  --glass-2: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.2);
  --r: 18px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: #0d0509;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36rem 36rem at 10% -8%, rgba(255, 0, 0, 0.42), transparent 62%),
    radial-gradient(40rem 40rem at 94% 4%, rgba(139, 0, 255, 0.46), transparent 66%),
    radial-gradient(28rem 28rem at 74% 96%, rgba(255, 0, 0, 0.22), transparent 68%),
    radial-gradient(24rem 24rem at 20% 70%, rgba(139, 0, 255, 0.2), transparent 70%),
    linear-gradient(160deg, #1b0a13 0%, #0d0509 58%, #160811 100%);
}

a { color: #ffd9d9; text-decoration: none; border-bottom: 1px solid rgba(255, 0, 0, 0.45); }
a:hover { color: #fff; border-bottom-color: var(--red); }

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

/* ---------- 顶部两行导航 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 6, 11, 0.62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.topInner { max-width: 1180px; margin: 0 auto; padding: 8px 20px 4px; }

.brandrow { display: flex; align-items: center; gap: 14px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 2px;
  border-bottom: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logoImg { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; display: block; }
.logoDot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--violet));
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.8);
  flex: none;
}
.brandName { font-size: 1.05rem; }

.contact {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font-size: 0.95rem;
}
.contact:hover { background: var(--glass-2); border-color: var(--red); }

.nav { position: relative; }

.nav > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 2px;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.nav > summary::-webkit-details-marker { display: none; }
.nav > summary::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.nav[open] > summary::before { transform: rotate(225deg) translateY(-2px); }
.nav[open] > summary { color: #fff; }

.nav > menu { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 6px; }

.nav > menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.nav > menu a:hover { background: rgba(255, 0, 0, 0.2); border-color: var(--red); }

/* ---------- 主区 ---------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

section { display: grid; gap: 22px; min-width: 0; }

section > article {
  position: relative;
  min-width: 0;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-bottom: 2px solid rgba(255, 0, 0, 0.6);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 22px 48px -34px #000;
  scroll-margin-top: 152px;
}

section > article:hover { border-bottom-color: var(--violet); }

section > * { animation: rise 0.5s ease both; }
section > *:nth-child(2) { animation-delay: 0.04s; }
section > *:nth-child(3) { animation-delay: 0.08s; }
section > *:nth-child(4) { animation-delay: 0.12s; }
section > *:nth-child(5) { animation-delay: 0.16s; }
section > *:nth-child(6) { animation-delay: 0.2s; }
section > *:nth-child(7) { animation-delay: 0.24s; }
section > *:nth-child(8) { animation-delay: 0.28s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 22px;
  min-height: 70vh;
  padding: 40px 22px;
  background:
    linear-gradient(150deg, rgba(255, 0, 0, 0.16), rgba(139, 0, 255, 0.18) 58%, rgba(255, 255, 255, 0.05));
  overflow: hidden;
}

.heroText { flex: 1 1 auto; min-width: 0; text-align: right; }

.chips { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 18px; }
.chip {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--violet));
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
}
.chip:nth-child(2) { width: 20px; animation-delay: 0.6s; }
.chip:nth-child(3) { width: 12px; animation-delay: 1.2s; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 6vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-shadow: 0 0 40px rgba(255, 0, 0, 0.35);
}

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

.heroAside { flex: none; display: flex; align-items: center; }

.heroMark {
  width: 96px;
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(139, 0, 255, 0.5);
}

.orb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--red), var(--violet), #ff7a7a, var(--red));
  box-shadow: 0 0 56px rgba(139, 0, 255, 0.55), inset 0 0 28px rgba(255, 255, 255, 0.25);
  animation: float 8s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- 正文排版 ---------- */
section h2 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  line-height: 1.42;
}
section h2 > span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}
section h3 { margin: 22px 0 10px; font-size: 1.08rem; line-height: 1.5; }
section h3 > span { color: #ffd9d9; }
section p { margin: 0 0 14px; color: #eee2ea; }
section ul, section ol { margin: 0 0 16px; padding-left: 1.25em; }
section li { margin-bottom: 8px; }
section img { border-radius: 12px; display: block; margin: 12px 0; }
section blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--violet);
  background: rgba(139, 0, 255, 0.12);
  border-radius: 0 12px 12px 0;
}
section code { font-size: 0.95em; color: #ffb4b4; }
section article > h2:first-child { margin-top: 0; }

/* ---------- 侧栏 ---------- */
.side { display: grid; gap: 18px; align-content: start; }

.side .panel {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.side h2 { margin: 0 0 12px; font-size: 0.92rem; letter-spacing: 0.08em; }
.side h2 > span { display: inline-block; padding-bottom: 5px; border-bottom: 2px solid var(--violet); }

.side menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
}
.side menu a:hover { background: rgba(255, 0, 0, 0.18); color: #fff; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.footInner { max-width: 1180px; margin: 0 auto; padding: 40px 20px 28px; display: grid; gap: 26px; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.3), rgba(139, 0, 255, 0.32));
}
.cta h2 { margin: 0; font-size: clamp(1.4rem, 4.2vw, 2rem); line-height: 1.3; }
.cta h2 > span { display: inline-block; padding-bottom: 6px; border-bottom: 2px solid #fff; }

.ctaLink {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.95rem;
  transition: transform 0.18s ease, background 0.18s ease;
}
.ctaLink:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }

.footRows { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.footRows dl { margin: 0; }
.footRows dt { font-size: 0.78rem; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 6px; }
.footRows dd { margin: 0; font-size: 0.95rem; color: #eadfe6; }
.footNav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.footNav a { border-bottom: 0; color: #eadfe6; }
.footNav a:hover { color: #fff; text-decoration: underline; }
.dot { color: var(--red); }

.copy {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.84rem;
  color: var(--dim);
}

/* ---------- 断点 ---------- */
@media (max-width: 560px) {
  .hero { flex-direction: column-reverse; align-items: flex-end; min-height: 62vh; padding: 32px 18px; }
  .orb, .heroMark { width: 76px; }
  section > article { padding: 22px 18px; }
}

@media (min-width: 900px) {
  main { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .side { position: sticky; top: 156px; }
  .nav > menu { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
  .nav > menu a { min-height: 40px; border-radius: 999px; }
  .footRows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) and (max-width: 1000px) {
  .nav > menu a { font-size: 0.9rem; padding: 8px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section > *, .chip, .orb { animation: none; }
  .ctaLink { transition: none; }
}

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