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

/* ── 变量 ── */
:root {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --gray: #111111;
  --gray2: #222222;
  --gray3: #333333;
  --border: 2px solid var(--green);
  --border-blue: 2px solid var(--blue);
  --border-white: 1px solid #333;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --max-content: 780px;
  --max-wide: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--white); }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

/* ── 导航 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: var(--border);
}
.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--white); text-decoration: none; }
.main-nav {
  flex: 1;
  overflow: hidden;
}
.main-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
}
.main-nav p a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  display: inline-block;
  min-height: 40px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}
.main-nav p a:hover {
  color: var(--green);
  border-color: var(--green);
  text-decoration: none;
}
.nav-cta {
  flex-shrink: 0;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--green);
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--black);
  color: var(--green);
  text-decoration: none;
}

/* ── 粘性锚点条 ── */
.sticky-anchor {
  background: var(--gray2);
  border-bottom: var(--border-white);
  position: sticky;
  top: 60px;
  z-index: 90;
}
.anchor-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}
.anchor-inner a { color: var(--green); }
.anchor-inner span { color: #666; }

/* ── 主布局（带侧边栏）── */
main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

/* ── Hero（首页）── */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
  border-bottom: 4px solid var(--green);
  grid-column: 1 / -1;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(5rem, 20vw, 18rem);
  font-weight: 700;
  color: rgba(0,255,128,0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 6rem;
  max-width: 700px;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-left: 4px solid var(--green);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.hero-desc {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-slant {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--black);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

/* ── 按钮 ── */
.btn-primary {
  background: var(--green);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--green);
  text-decoration: none;
  display: inline-block;
  min-height: 48px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
}
.btn-primary:hover {
  background: var(--black);
  color: var(--green);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--white);
  text-decoration: none;
  display: inline-block;
  min-height: 48px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

/* ── 内容区块 ── */
.content-section,
.cards-section {
  grid-column: 1 / -1;
  padding: 0;
}
.section-inner {
  padding: 3rem 0;
  border-top: var(--border-white);
}
.section-heading,
.cards-heading {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--green);
  padding-left: 1rem;
}
.section-heading > span,
.cards-heading > span { display: inline; }

/* ── 卡片网格 ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  border: var(--border);
  padding: 1.5rem;
  background: var(--gray);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}
.card[data-stagger="0"] { animation-delay: 0.05s; }
.card[data-stagger="1"] { animation-delay: 0.1s; }
.card[data-stagger="2"] { animation-delay: 0.15s; }
.card[data-stagger="3"] { animation-delay: 0.2s; }
.card[data-stagger="4"] { animation-delay: 0.25s; }
.card[data-stagger="5"] { animation-delay: 0.3s; }
.card[data-stagger="6"] { animation-delay: 0.35s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.card-title > span { display: inline; }
.card-desc {
  font-size: 0.85rem;
  color: #aaa;
  flex: 1;
}
.card-link {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.35rem 0.75rem;
  text-align: center;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-link:hover {
  background: var(--green);
  color: var(--black);
  text-decoration: none;
}

/* ── 正文内容 ── */
.page-content-block,
.art-content,
.about-content,
.priv-content,
.default-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #ddd;
  max-width: var(--max-content);
}
.page-content-block h2, .art-content h2, .about-content h2, .priv-content h2, .default-content h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin: 2rem 0 0.75rem;
  border-left: 4px solid var(--green);
  padding-left: 0.75rem;
}
.page-content-block h3, .art-content h3, .about-content h3, .priv-content h3, .default-content h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 1.5rem 0 0.5rem;
}
.page-content-block p, .art-content p, .about-content p, .priv-content p, .default-content p {
  margin-bottom: 1rem;
}
.page-content-block ul, .art-content ul, .about-content ul, .priv-content ul, .default-content ul,
.page-content-block ol, .art-content ol, .about-content ol, .priv-content ol, .default-content ol {
  margin: 0.75rem 0 1rem 1.25rem;
  list-style: disc;
}
.page-content-block ol, .art-content ol, .about-content ol, .priv-content ol, .default-content ol {
  list-style: decimal;
}
.page-content-block li, .art-content li, .about-content li, .priv-content li, .default-content li {
  margin-bottom: 0.4rem;
}
.page-content-block a, .art-content a, .about-content a, .priv-content a, .default-content a {
  color: var(--green);
  text-decoration: underline;
}
.page-content-block strong, .art-content strong { color: var(--white); }
.page-content-block table, .art-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.page-content-block th, .art-content th {
  background: var(--gray2);
  color: var(--green);
  font-weight: 700;
  padding: 0.6rem 0.75rem;
  border: 1px solid #333;
  text-align: left;
}
.page-content-block td, .art-content td {
  padding: 0.6rem 0.75rem;
  border: 1px solid #333;
  color: #ccc;
}
.page-content-block blockquote, .art-content blockquote {
  border-left: 4px solid var(--blue);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #aaa;
  font-style: italic;
}

/* ── 文章布局 ── */
.art-main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}
.art-wrap {
  min-width: 0;
}
.art-header-section {
  padding-bottom: 2rem;
  border-bottom: var(--border-white);
  margin-bottom: 2rem;
}
.art-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.art-date {
  font-size: 0.8rem;
  color: #666;
  font-family: var(--font-body);
}
.art-h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.art-desc {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}
.art-hero-wrap {
  margin-top: 1.5rem;
  border: var(--border);
}
.art-hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.art-body-section { padding: 0; }

/* ── About ── */
.about-main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}
.about-wrap { min-width: 0; }
.about-hero-section {
  padding: 3rem 0 2rem;
  border-bottom: 4px solid var(--green);
  margin-bottom: 2.5rem;
  position: relative;
}
.about-hero-num {
  font-family: var(--font-head);
  font-size: 6rem;
  font-weight: 700;
  color: rgba(0,255,128,0.07);
  position: absolute;
  top: 0;
  right: 0;
  line-height: 1;
  pointer-events: none;
}
.about-h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
}
.about-logo-wrap { margin-top: 1.5rem; }
.about-body-section {
  margin-bottom: 3rem;
}
.about-links-section {
  padding-top: 2rem;
  border-top: var(--border-white);
}
.about-dl dt {
  margin-bottom: 0.25rem;
}
.about-dl dt a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  border-bottom: 1px solid var(--green);
}
.about-dl dd {
  font-size: 0.88rem;
  color: #888;
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gray3);
}

/* ── Privacy ── */
.priv-main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}
.priv-wrap { min-width: 0; }
.priv-header-section {
  padding: 2.5rem 0 2rem;
  border-bottom: var(--border);
  margin-bottom: 2.5rem;
}
.priv-label {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.priv-h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.priv-date {
  font-size: 0.8rem;
  color: #666;
}
.priv-body-section { margin-bottom: 2.5rem; }
.priv-links-section {
  padding-top: 2rem;
  border-top: var(--border-white);
}
.priv-related { display: flex; flex-direction: column; gap: 0.5rem; }
.priv-related li a {
  color: var(--green);
  font-weight: 600;
}

/* ── Default layout ── */
.default-h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  padding: 2rem 0 1rem;
}
.default-desc {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.default-body-section { padding-top: 1rem; }

/* ── Aside ── */
.global-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 80px;
}
.aside-block {
  border: var(--border-white);
  border-left: 3px solid var(--green);
  padding: 1.25rem;
  background: var(--gray);
}
.aside-notice {
  border-left-color: var(--blue);
}
.aside-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.aside-title > span { display: inline; }
.aside-links li {
  border-bottom: 1px solid #222;
  padding: 0.35rem 0;
}
.aside-links li:last-child { border-bottom: none; }
.aside-links a {
  font-size: 0.85rem;
  color: #ccc;
  display: block;
  padding: 0.1rem 0;
  min-height: 28px;
  line-height: 1.4;
}
.aside-links a:hover { color: var(--green); }
.aside-block p {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.aside-block p:last-child { margin-bottom: 0; }
.aside-block p a { color: var(--green); }

/* ── 页脚 ── */
.site-footer {
  background: var(--black);
  border-top: 3px solid var(--green);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 56px;
}
.footer-brand a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  text-decoration: none;
}
.footer-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #888;
  font-size: 0.82rem;
  padding: 0.5rem 0.6rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--green); }
.footer-copy {
  font-size: 0.78rem;
  color: #555;
}

/* ── Home: 调整主容器使hero全宽 ── */
.page-home main {
  display: block;
  max-width: 100%;
  padding: 0;
}
.page-home .content-section,
.page-home .cards-section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1rem;
}
.page-home .global-aside {
  max-width: var(--max-wide);
  margin: 0 auto 2rem;
  padding: 0 1rem;
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
}
.page-home .aside-block {
  flex: 1;
  min-width: 220px;
}

/* ── 减少动效（用户偏好）── */
@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
    opacity: 1;
  }
  html { scroll-behavior: auto; }
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .art-main,
  .about-main,
  .priv-main {
    grid-template-columns: 1fr;
  }
  .global-aside {
    position: static;
  }
  main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .main-nav {
    order: 3;
    width: 100%;
  }
  .main-nav p {
    gap: 0.15rem 0.4rem;
  }
  .main-nav p a {
    font-size: 0.75rem;
    padding: 0.35rem 0.4rem;
  }
  .nav-cta {
    order: 2;
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }
  .hero-content {
    padding: 2rem 1rem 5rem;
  }
  .hero-h1 {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .art-h1, .about-h1, .priv-h1 {
    font-size: 1.6rem;
  }
  .sticky-anchor {
    top: 0;
  }
  .page-home .global-aside {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .hero-section {
    min-height: 100svh;
  }
  .section-heading, .cards-heading {
    font-size: 1.25rem;
  }
}
