@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&family=Playfair+Display+SC:wght@400;700&display=swap');

:root {
  --ink: #172617;
  --ink-deep: #0d180e;
  --panel: #1f3321;
  --neon: #69ff69;
  --cyan: #00ffff;
  --text: #e7ffe7;
  --muted: #a9c8ab;
  --line: rgba(105, 255, 105, 0.45);
  --line-soft: rgba(105, 255, 105, 0.2);
  --chrome: linear-gradient(135deg, #eaf7ff 0%, #b7c8d4 28%, #ffffff 48%, #93a9ba 68%, #dcecf7 100%);
  --r: 18px;
  --serif: 'Playfair Display SC', 'Songti SC', 'Times New Roman', serif;
  --sans: 'Karla', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 3%, rgba(0, 255, 255, 0.16), transparent 44%),
    radial-gradient(circle at 90% 12%, rgba(105, 255, 105, 0.18), transparent 46%),
    radial-gradient(circle at 48% 96%, rgba(0, 255, 255, 0.12), transparent 52%),
    linear-gradient(180deg, #0d180e 0%, #172617 44%, #112013 100%);
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--cyan); }

h1, h2, h3 { font-weight: 700; }

/* 顶栏 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px clamp(14px, 4vw, 44px) 8px;
  background: linear-gradient(180deg, rgba(13, 24, 14, 0.97), rgba(13, 24, 14, 0.82));
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--neon);
  background: var(--chrome);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.55);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #0f2210;
  background: var(--chrome);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

/* 菜单（details） */
.menu { margin-top: 6px; }

.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  cursor: pointer;
  list-style: none;
  border-radius: 999px;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
}

.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: "▾"; letter-spacing: 0; }
.menu[open] > summary::after { content: "▴"; }

.menu > menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.menu a:hover,
.menu a:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 头图 */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px) clamp(16px, 5vw, 56px) 0;
  border-bottom: 2px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(105, 255, 105, 0.14), transparent 62%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), rgba(0, 255, 255, 0.32) 44%, rgba(105, 255, 105, 0.12) 68%, transparent 74%);
  opacity: 0.62;
}

.hero::before { width: 180px; height: 180px; left: -56px; top: 12%; }
.hero::after { width: 118px; height: 118px; right: -34px; bottom: 30%; opacity: 0.5; }

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.chip {
  margin: 0;
  display: inline-flex;
  gap: 10px;
  font-size: 1rem;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.75);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.16;
  color: #f5fff5;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.55), 0 0 48px rgba(0, 255, 255, 0.3);
}

.hero-acts {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #0f2210;
  background: var(--chrome);
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -7px 12px rgba(0, 0, 0, 0.2);
}

.btn.ghost {
  background: rgba(23, 38, 23, 0.6);
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: none;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  height: clamp(170px, 30vh, 300px);
  margin: auto auto 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-bottom: 0;
  border-radius: 60px 60px 0 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(105, 255, 105, 0.22) 60%, rgba(255, 255, 255, 0.12));
}

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

/* 主体 */
main { padding: clamp(24px, 4vw, 52px) clamp(14px, 4vw, 44px) 58px; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 30px;
  align-items: start;
}

.paper {
  padding: clamp(20px, 3.4vw, 40px);
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(31, 51, 33, 0.94), rgba(19, 33, 21, 0.96));
}

.paper > article {
  scroll-margin-top: 168px;
  padding: 32px 0;
  border-top: 1px dashed var(--line-soft);
}

.paper > article:first-child {
  padding-top: 4px;
  border-top: 0;
}

.paper > article:last-child { padding-bottom: 4px; }

.paper p { margin: 0 0 1.05em; line-height: 1.78; }

.paper h2 {
  margin: 0.2em 0 0.55em;
  font-family: var(--serif);
  font-size: clamp(1.32rem, 3.4vw, 1.75rem);
  line-height: 1.35;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.32);
}

.paper h2 > span,
.paper h3 > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid rgba(0, 255, 255, 0.5);
}

.paper h3 {
  margin: 1.1em 0 0.4em;
  font-size: 1.12rem;
  color: var(--cyan);
}

.paper ul,
.paper ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
  line-height: 1.75;
}

.paper li { margin: 0.32em 0; }
.paper strong { color: #ffffff; }
.paper a { color: var(--cyan); text-underline-offset: 3px; }

.paper blockquote {
  margin: 1em 0;
  padding: 12px 18px;
  border-left: 4px solid var(--neon);
  border-radius: 0 14px 14px 0;
  background: rgba(105, 255, 105, 0.08);
}

.paper code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.94em;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(0, 255, 255, 0.14);
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 16px;
}

.rail-box {
  padding: 16px;
  border: 2px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(15, 28, 16, 0.86);
}

.rail-box h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--neon);
}

.rail-box h2 > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid rgba(105, 255, 105, 0.5);
}

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

.rail-box li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px dashed transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.rail-box li a:hover,
.rail-box li a:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.rail-go p { margin: 0; }
.rail-go .btn { width: 100%; min-height: 44px; padding: 10px 14px; font-size: 0.95rem; }

/* 页脚 */
.base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding: 26px clamp(14px, 4vw, 44px) 38px;
  border-top: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.07), transparent 70%);
  font-size: 0.94rem;
}

.base-brand a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

.base-brand .brand-mark { width: 34px; height: 34px; }

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

.base-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.base-nav a:hover,
.base-nav a:focus-visible { color: var(--cyan); }

.base-copy { color: var(--muted); }

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

.js .reveal.in { opacity: 1; transform: none; }
.js .rail-box:nth-child(2) { transition-delay: 0.09s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
  .js .rail-box:nth-child(2) { transition-delay: 0s; }
}

/* 断点 */
@media (min-width: 780px) {
  .menu > summary { display: none; }
  .menu > menu { margin-top: 0; padding-top: 6px; }
}

@media (max-width: 999px) {
  .wrap { grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; }
}

@media (max-width: 779px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; top: auto; }
  .menu > menu { flex-direction: column; gap: 2px; }
  .menu a {
    width: 100%;
    border: 1px dashed var(--line-soft);
    border-radius: 12px;
  }
  .base { justify-content: flex-start; }
  .base-nav ul { gap: 0; }
  .paper > article { scroll-margin-top: 120px; }
  .hero { min-height: 62vh; }
  .hero-art { border-radius: 40px 40px 0 0; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 1rem; }
  .contact { padding: 8px 16px; font-size: 0.9rem; }
  .hero-acts { gap: 8px; }
  .btn { padding: 12px 20px; }
}

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