@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --ink: #001e3c;
  --ink2: #01264a;
  --mint: #99ffcc;
  --lime: #00ff41;
  --line: rgba(153, 255, 204, 0.26);
  --line-soft: rgba(153, 255, 204, 0.14);
  --txt: #d6f3e7;
  --dim: #9ec4b8;
  --serif: 'Cormorant Garamond', 'Crimson Pro', 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: clip;
  overflow-wrap: break-word;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 20% 14%, rgba(0, 255, 65, 0.16), transparent 72%),
    radial-gradient(closest-side at 82% 58%, rgba(153, 255, 204, 0.15), transparent 72%),
    radial-gradient(closest-side at 44% 98%, rgba(0, 255, 65, 0.1), transparent 70%);
  filter: blur(46px);
  transform: scale(1.06);
  animation: breathe 16s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1.04); opacity: 0.85; }
  50% { transform: scale(1.14); opacity: 1; }
}

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

a {
  color: var(--lime);
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.97), rgba(0, 30, 60, 0.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  max-width: 100%;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 255, 65, 0.05);
  padding: 4px 0;
}

.track {
  display: flex;
  gap: 2.6rem;
  white-space: nowrap;
  font-size: 16px;
  letter-spacing: 0.26em;
  color: var(--lime);
  animation: slide 26s linear infinite;
  padding-left: 0.6rem;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-34%); }
}

.brandrow {
  padding: 8px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  max-width: 100%;
  color: var(--mint);
}

.brand .blogo img {
  display: block;
  height: 30px;
  width: auto;
  border-radius: 8px;
}

.bmark {
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--lime);
}

.btxt {
  font-size: 22px;
  letter-spacing: 0.32em;
  text-transform: none;
}

.dock {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px 14px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.dock::-webkit-scrollbar { display: none; }

.grp { position: relative; flex: 0 0 auto; }

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--txt);
  font-size: 16px;
  letter-spacing: 0.14em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tab::-webkit-details-marker { display: none; }

summary.tab::after {
  content: '▾';
  margin-left: 7px;
  color: var(--lime);
  font-size: 16px;
  transition: transform 0.2s ease;
}

details[open] summary.tab::after { transform: rotate(180deg); }

.tab:hover,
details[open] summary.tab {
  color: var(--lime);
  border-color: var(--line);
  background: rgba(0, 255, 65, 0.07);
}

.panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 196px;
  max-width: calc(100vw - 28px);
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 24, 48, 0.98);
  box-shadow: none;
}

.panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--txt);
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.panel a:hover {
  background: rgba(0, 255, 65, 0.1);
  color: var(--lime);
}

/* 主区 */
main {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 70px;
  overflow-x: clip;
}

.rail {
  position: sticky;
  top: 152px;
  align-self: start;
  padding-top: 34px;
  min-width: 0;
  max-width: 100%;
}

.rail-h {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--lime);
}

.rail nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 12px;
  border-left: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 16px;
  line-height: 1.5;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rail a:hover {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(0, 255, 65, 0.06);
}

.post { min-width: 0; max-width: 100%; }

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: 100vh;
  padding: 34px 0 48px;
  min-width: 0;
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.hero-art::before {
  content: '';
  position: absolute;
  inset: 14% 2% 8% 6%;
  border-radius: 50% 44% 52% 46%;
  background: radial-gradient(closest-side, rgba(0, 255, 65, 0.2), transparent 74%);
  filter: blur(24px);
  animation: breathe 12s ease-in-out infinite;
}

.cell {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(58deg, rgba(153, 255, 204, 0.08) 0 1px, transparent 1px 11px),
    radial-gradient(circle at 32% 28%, rgba(0, 255, 65, 0.26), transparent 68%),
    var(--ink2);
}

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

.cell-a {
  inset: 0 30% 26% 0;
  z-index: 2;
  border-radius: 18px 46px 18px 42px;
}

.cell-b {
  inset: 22% 0 0 30%;
  z-index: 1;
  border-radius: 42px 18px 46px 18px;
  opacity: 0.92;
}

.badge {
  position: absolute;
  left: 0;
  bottom: 12%;
  z-index: 3;
  max-width: 88%;
  padding: 6px 16px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: rgba(0, 30, 60, 0.86);
  color: var(--lime);
  font-size: 16px;
  letter-spacing: 0.18em;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-copy {
  text-align: right;
  min-width: 0;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 58px);
  color: var(--mint);
  letter-spacing: 0.02em;
}

.hero-sub {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.3em;
  color: var(--lime);
}

hr.hair {
  width: 92px;
  margin: 14px 0 0 auto;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 正文卡片 */
div > section {
  scroll-margin-top: 158px;
  margin: clamp(22px, 3vw, 36px) 0;
  padding: clamp(22px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(158deg, rgba(153, 255, 204, 0.06), rgba(0, 30, 60, 0.28));
  max-width: 100%;
  overflow-wrap: break-word;
}

div > section h2,
div > section h3 {
  margin: 0;
  color: var(--mint);
  font-size: clamp(22px, 2.8vw, 31px);
}

div > section h3 { font-size: clamp(19px, 2.2vw, 24px); }

div h2 + hr,
div h3 + hr {
  margin: 12px 0 20px;
  border: 0;
  border-top: 1px solid var(--lime);
  opacity: 0.5;
}

div p {
  margin: 0 0 1em;
  max-width: 68ch;
}

div a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

div ul,
div ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

div li { margin: 0.3em 0; }

div blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--lime);
  color: var(--mint);
}

div img {
  border-radius: 18px;
  border: 1px solid var(--line-soft);
}

div table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 16px;
  table-layout: fixed;
}

div th,
div td {
  border: 1px solid var(--line-soft);
  padding: 10px 12px;
  text-align: left;
  overflow-wrap: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* 页脚 */
.foot {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 34px 22px 26px;
  border-top: 1px solid var(--line);
  overflow-wrap: break-word;
}

.footnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footnav dl { margin: 0; min-width: 0; }

.footnav dt {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--lime);
}

.footnav dd { margin: 0; }

.footnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  color: var(--dim);
  font-size: 16px;
  transition: color 0.2s ease;
}

.footnav a:hover { color: var(--lime); }

.copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--dim);
}

.copy a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 窄屏 */
@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 18px 56px;
    gap: 0;
  }

  .rail {
    position: static;
    padding: 12px 0 6px;
    border-bottom: 1px solid var(--line-soft);
  }

  .rail-h {
    margin-bottom: 8px;
    letter-spacing: 0.2em;
  }

  .rail nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .rail nav::-webkit-scrollbar { display: none; }

  .rail a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    white-space: nowrap;
  }

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

  .hero-copy {
    order: -1;
    text-align: left;
  }

  .hero-copy h1 { font-size: clamp(28px, 8.6vw, 40px); }

  hr.hair { margin-left: 0; }

  .hero-art {
    aspect-ratio: 16 / 11;
    transform: none;
    margin-top: 6px;
  }

  .hero-art::before { inset: 8% 2% 6% 2%; }

  .cell-a { inset: 0 32% 18% 0; }
  .cell-b { inset: 14% 0 0 32%; }

  .badge { left: auto; right: 6px; bottom: 6%; max-width: 74%; }

  div > section { scroll-margin-top: 140px; }

  .footnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .btxt { font-size: 19px; letter-spacing: 0.22em; }

  .brandrow { padding: 8px 16px; }

  .dock { padding: 4px 12px 8px; }

  .footnav { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .copy { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .track,
  .badge,
  .hero-art::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art { transform: none; }
}

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