/* ============================================================
   游客首页：概览 / 公告 / 通知 / 登录注册
   设计方向：墨蓝 + 荧光青，强对比大字号
   ============================================================ */

:root {
  --ink: #0B1220;
  --ink-deep: #07101E;
  --ink-panel: #111C2B;
  --mint: #2CE6B6;
  --blue: #4C8DFF;
  --paper: #F4F1EA;
  --white: #E8EDF4;
  --text-dark: #1B2430;
  --muted: #8A97A8;
  --grid: rgba(255, 255, 255, .045);
  --grid-dark: rgba(27, 36, 48, .06);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --pad: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.landing {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
body.landing a { color: inherit; text-decoration: none; }
body.landing button { font: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--mint);
  z-index: 100;
  transition: width .1s linear;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, backdrop-filter .2s ease, border-color .2s ease;
}
.nav.is-scrolled {
  background: rgba(9, 15, 26, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(44, 230, 182, .5);
  background:
    linear-gradient(135deg, rgba(44, 230, 182, .22), transparent 60%),
    var(--ink-panel);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(44, 230, 182, .55);
  border-radius: 3px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .12em; }

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: rgba(232, 237, 244, .78);
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.nav-links a.is-current { color: var(--mint); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 38px; height: 34px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 1px; background: var(--white); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.btn-solid { background: var(--mint); color: #062018; font-weight: 600; }
.btn-solid:hover { background: #55f0c6; box-shadow: 0 10px 30px rgba(44, 230, 182, .28); }

.btn-outline { color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn-outline:hover { border-color: var(--mint); color: var(--mint); }

.btn-outline-dark { color: var(--text-dark); border-color: rgba(27, 36, 48, .28); }
.btn-outline-dark:hover { border-color: #0f8f74; color: #0f8f74; }

.btn-lg { padding: 14px 30px; font-size: 15px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 150px 0 80px;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 520px at 76% 34%, rgba(76, 141, 255, .2), transparent 62%),
    radial-gradient(560px 420px at 16% 10%, rgba(44, 230, 182, .12), transparent 60%);
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .55;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 12%, rgba(11, 18, 32, .55) 46%, rgba(11, 18, 32, .2) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--mint);
  margin: 0 0 22px;
}
.eyebrow-line { width: 34px; height: 1px; background: var(--mint); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 24px;
  color: #F7FAFC;
  text-wrap: balance;
}
.hero-sub {
  max-width: 34em;
  color: rgba(232, 237, 244, .76);
  margin: 0 0 32px;
  font-size: 16px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  list-style: none;
}
.hero-points li { display: flex; flex-direction: column; gap: 4px; }
.hero-points b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--mint);
}
.hero-points span { font-size: 12.5px; color: var(--muted); }

/* 晶圆 */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.wafer {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  transition: transform .2s ease-out;
}
.wafer-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); }
.wafer-ring.r1 { inset: 3%; border-color: rgba(44, 230, 182, .3); }
.wafer-ring.r2 { inset: 15%; border-color: rgba(255, 255, 255, .1); }
.wafer-ring.r3 { inset: 29%; border-color: rgba(76, 141, 255, .3); }
.wafer-core {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 230, 182, .6), rgba(44, 230, 182, .06) 70%);
  box-shadow: 0 0 60px rgba(44, 230, 182, .4);
}
.wafer-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.wafer-lines line { stroke: rgba(255, 255, 255, .09); stroke-width: .7; }
.wafer-lines .rays line:nth-child(2n) { stroke: rgba(76, 141, 255, .18); }

.spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(44, 230, 182, .9);
  animation: orbit 20s linear infinite;
}
.spark.s1 { animation-delay: 0s; }
.spark.s2 { animation-delay: -7s; background: var(--blue); box-shadow: 0 0 12px rgba(76, 141, 255, .9); }
.spark.s3 { animation-delay: -13s; }

@keyframes orbit {
  from { transform: rotate(0deg) translateX(32%) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(32%) rotate(-360deg); }
}

/* ---------- 通用章节 ---------- */
.section { padding: 96px 0; position: relative; }
main section[id] { scroll-margin-top: 76px; }

.section.paper {
  background: var(--paper);
  color: var(--text-dark);
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 40px 40px;
}
.section.dark { background: var(--ink); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: #0f8f74;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.section.dark .kicker { color: var(--mint); }

.section h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 14px;
}
.section-sub { margin: 0; color: #5b6878; }
.section.dark .section-sub { color: var(--muted); }

.empty-tip {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  color: #7a8798;
  font-size: 14px;
}
.section.paper .empty-tip { color: #6b7889; }

/* ---------- 公告卡片 ---------- */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ann-card {
  display: flex;
  flex-direction: column;
  background: #FBF9F4;
  border: 1px solid rgba(27, 36, 48, .12);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.ann-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 116, .5);
  box-shadow: 0 18px 40px rgba(27, 36, 48, .14);
}
.ann-card:focus-visible { outline: 2px solid #0f8f74; outline-offset: 3px; }

.ann-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(44, 230, 182, .32), transparent 55%),
    linear-gradient(140deg, #12283D, #0B1220 70%);
}
.ann-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.ann-card:hover .ann-cover img { transform: scale(1.04); }
.ann-cover .cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .3em;
  color: rgba(232, 237, 244, .55);
}
.ann-cover .cover-fallback::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
}
.ann-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  background: rgba(6, 32, 24, .72);
  color: var(--mint);
  border: 1px solid rgba(44, 230, 182, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ann-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ann-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}
.ann-title a { display: block; }
.ann-title a:hover { color: #0f8f74; }
.ann-excerpt {
  margin: 0;
  font-size: 13.5px;
  color: #5b6878;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ann-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 36, 48, .08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7a8798;
  font-family: var(--mono);
}

/* ---------- 通知列表 ---------- */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: padding-left .15s, background .15s;
}
.notice-item:hover { padding-left: 8px; }
.notice-item .dot {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  align-self: center;
}
.notice-item a {
  flex: 1;
  font-size: 15.5px;
  color: rgba(232, 237, 244, .9);
}
.notice-item a:hover { color: var(--mint); }
.notice-item time {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta { padding: 110px 0; }
.cta-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.cta-note {
  font-size: 14px;
  color: #5b6878;
  margin: 0 0 26px;
  padding: 12px 20px;
  border: 1px dashed rgba(27, 36, 48, .22);
  border-radius: 10px;
  display: inline-block;
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 30px;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-fine { margin: 24px 0 0; font-size: 13px; color: #6b7889; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink-deep);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 56px 0 24px;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-brand strong { font-family: var(--serif); color: var(--white); font-weight: 600; font-size: 15px; }
.footer-brand p { margin: 10px 0 0; font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links a:hover { color: var(--mint); }
.footer-meta p { margin: 0 0 6px; font-size: 13px; font-family: var(--mono); }
.copyright { text-align: center; font-size: 12px; margin: 40px 0 0; color: #5d6a7c; }

/* ---------- 入场动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .ann-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 56px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: 2; }
  .wafer { width: min(100%, 240px); }
  .hero-actions .btn { flex: 1; }
  .hero-points { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 14, 25, .97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-solid { padding: 7px 14px; font-size: 13px; }

  .ann-grid { grid-template-columns: 1fr; }
  .notice-item { flex-wrap: wrap; gap: 10px; }
  .notice-item time { margin-left: 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta { padding: 72px 0; }
}

@media (max-width: 375px) {
  :root { --pad: 16px; }
  .hero h1 { font-size: 32px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-sub { font-size: 15px; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
