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

/* ===== CSS 变量 ===== */
:root {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --gray-dark: #111111;
  --gray-mid: #222222;
  --gray-light: #333333;
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
  --border: 2px solid #00ff80;
  --border-blue: 2px solid #0000ff;
  --border-white: 1px solid rgba(255,255,255,0.15);
  --glass-bg: rgba(0,255,128,0.04);
  --glass-border: rgba(0,255,128,0.25);
  --announce-h: 36px;
  --header-h: 56px;
  --font: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --mono: 'Noto Sans KR', monospace;
}

/* ===== 重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  background: var(--black);
  color: var(--text-main);
}

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  background: var(--black);
  color: var(--text-main);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--white);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ===== 公告条 ===== */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--announce-h);
  background: var(--blue);
  border-bottom: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.announce-bar span {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0 16px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 190;
  height: var(--header-h);
  background: var(--black);
  border-bottom: var(--border);
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 40px;
  min-height: 40px;
  padding: 4px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
  border: 2px solid var(--black);
}

/* ===== 汉堡按钮 ===== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: transparent;
  border: var(--border);
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green);
  width: 100%;
}

.nav-toggle:hover {
  background: var(--green);
}

.nav-toggle:hover span {
  background: var(--black);
}

/* ===== 全屏遮罩菜单 ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--black);
  border: 4px solid var(--green);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 40px;
  transform: translateX(-100%);
  opacity: 0;
}

.fullscreen-menu.is-open {
  transform: translateX(0);
  opacity: 1;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 24px;
  font-weight: 700;
  background: transparent;
  color: var(--green);
  border: var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close:hover {
  background: var(--green);
  color: var(--black);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 700px;
}

.menu-nav a {
  display: block;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.menu-nav a:hover {
  color: var(--green);
  padding-left: 16px;
  border-bottom-color: var(--green);
  text-decoration: none;
}

/* ===== 页体 (偏移固定头) ===== */
.page-body {
  margin-top: calc(var(--announce-h) + var(--header-h));
  min-height: calc(100vh - var(--announce-h) - var(--header-h) - 200px);
}

/* ===== 站点包裹 ===== */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== 首页: Hero ===== */
.home-main {
  width: 100%;
}

.home-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 45vh;
  border-bottom: var(--border);
  margin-bottom: 64px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px 48px 0;
  border-right: var(--border);
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  border: 1px solid var(--green);
  padding: 3px 8px;
  margin-bottom: 16px;
  width: fit-content;
}

.hero-h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--green);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.btn-primary:hover {
  background: var(--black);
  color: var(--green);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 0;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border: 1px solid var(--green);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gray-mid);
  border-left: var(--border);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder span {
  font-size: 48px;
  font-weight: 700;
  color: var(--green);
  opacity: 0.3;
}

/* ===== 正文区域 ===== */
.content-zone {
  padding: 0 0 48px;
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 64px;
}

.content-zone h2,
.article-content h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--white);
  border-left: 4px solid var(--green);
  padding-left: 16px;
}

.content-zone h3,
.article-content h3 {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--green);
}

.content-zone p,
.article-content p {
  font-size: 16px;
  line-height: 1.75;
  color: #dddddd;
  margin-bottom: 20px;
  max-width: 780px;
}

.content-zone ul,
.content-zone ol,
.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.content-zone li,
.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: #dddddd;
  margin-bottom: 8px;
}

.content-zone a,
.article-content a {
  color: var(--green);
  text-decoration: underline;
}

.content-zone table,
.article-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
  font-size: 15px;
}

.content-zone th,
.article-content th {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 10px 14px;
  border: 1px solid var(--gray-light);
  text-align: left;
}

.content-zone td,
.article-content td {
  padding: 10px 14px;
  border: 1px solid var(--gray-light);
  color: #dddddd;
}

.content-zone tr:nth-child(even) td,
.article-content tr:nth-child(even) td {
  background: var(--gray-mid);
}

/* ===== 卡片网格 ===== */
.featured-section {
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 3px 8px;
  margin-bottom: 12px;
  width: fit-content;
}

.section-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  counter-reset: card-counter;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  counter-increment: card-counter;
  overflow: hidden;
}

.glass-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.glass-card a:hover {
  text-decoration: none;
}

.glass-card:hover {
  border-color: var(--green);
  background: rgba(0,255,128,0.08);
}

.card-media {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--gray-mid);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 8px;
}

.card-eyebrow::before {
  content: counter(card-counter, decimal-leading-zero) "  ";
  color: var(--blue);
  font-size: 11px;
}

.card-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-desc {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.card-date {
  display: block;
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
}

/* ===== 眉题 h2 装饰 ===== */
.article-content small.section-eyebrow,
.featured-section small.section-eyebrow,
.about-links small.section-eyebrow,
.child-pages small.section-eyebrow {
  display: block;
  margin-bottom: 8px;
}

/* ===== 文章布局 ===== */
.article-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-main {
  width: 100%;
}

.article-body {
  padding: 40px 0 80px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb-home {
  color: var(--green);
}

.breadcrumb-sep {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--white);
  font-weight: 500;
}

.article-hero-media {
  margin-bottom: 32px;
  border: var(--border);
  overflow: hidden;
  max-height: 420px;
}

.article-hero-img {
  width: 100%;
  object-fit: cover;
}

.article-header {
  margin-bottom: 40px;
  border-left: 4px solid var(--green);
  padding-left: 20px;
}

.article-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 3px 8px;
  margin-bottom: 14px;
}

.article-h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-dates {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-dates time {
  color: var(--green);
}

.article-content {
  margin-bottom: 48px;
}

.child-pages {
  margin-bottom: 48px;
  border-top: var(--border);
  padding-top: 32px;
}

.child-pages h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  border-left: 4px solid var(--blue);
  padding-left: 12px;
}

.child-list {
  list-style: none;
  counter-reset: child-counter;
}

.child-list li {
  counter-increment: child-counter;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.child-list li::before {
  content: counter(child-counter, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  min-width: 24px;
}

.child-list a {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.child-list a:hover {
  color: var(--green);
}

.child-list small {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  width: 100%;
  padding-left: 36px;
  margin-top: -4px;
}

.article-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.article-nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  min-height: 40px;
  display: flex;
  align-items: center;
}

/* ===== About 布局 ===== */
.about-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-article {
  padding: 40px 0 80px;
}

.about-header {
  margin-bottom: 48px;
  border-bottom: var(--border);
  padding-bottom: 32px;
}

.about-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 3px 8px;
  margin-bottom: 14px;
}

.about-h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.about-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-content {
  margin-bottom: 48px;
}

.about-links {
  border-top: var(--border);
  padding-top: 32px;
}

.about-links h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  border-left: 4px solid var(--blue);
  padding-left: 12px;
}

.about-link-list {
  list-style: none;
  counter-reset: about-counter;
}

.about-link-list li {
  counter-increment: about-counter;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.about-link-list li::before {
  content: counter(about-counter, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  min-width: 24px;
}

.about-link-list a {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.about-link-list a:hover {
  color: var(--green);
}

.about-link-list small {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  width: 100%;
  padding-left: 36px;
  margin-top: -4px;
}

/* ===== Privacy 布局 ===== */
.privacy-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-article {
  padding: 40px 0 80px;
}

.privacy-header {
  margin-bottom: 40px;
  border-left: 4px solid var(--blue);
  padding-left: 20px;
}

.privacy-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 3px 8px;
  margin-bottom: 14px;
}

.privacy-h1 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}

.privacy-updated {
  font-size: 13px;
  color: var(--text-muted);
}

.privacy-updated time {
  color: var(--green);
}

.privacy-content {
  margin-bottom: 48px;
}

.privacy-footer-links {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.privacy-footer-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  min-height: 40px;
  display: flex;
  align-items: center;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--gray-mid);
  border-top: var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: block;
}

.footer-col dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--green);
  padding-bottom: 8px;
}

.footer-brand {
  font-size: 15px !important;
  color: var(--white) !important;
}

.footer-col dd {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.55;
}

.footer-col dd a {
  color: var(--text-muted);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.footer-col dd a:hover {
  color: var(--green);
}

.footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--gray-light);
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 动效: Stagger List ===== */
@media (prefers-reduced-motion: no-preference) {
  .card-grid .glass-card {
    opacity: 0;
    transform: translateY(20px);
  }

  .card-grid .glass-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .child-list li {
    opacity: 0;
    transform: translateX(-12px);
  }

  .child-list li.is-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-block {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 32px 0 40px;
    border-right: none;
    border-bottom: var(--border);
  }

  .hero-media {
    min-height: 220px;
    border-left: none;
    border-top: var(--border);
  }

  .hero-badge {
    position: static;
    margin-top: 20px;
    display: inline-block;
    width: fit-content;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  :root {
    --announce-h: 32px;
    --header-h: 52px;
  }

  .hero-h1 {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .article-nav-links {
    flex-direction: column;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .menu-nav a {
    font-size: 18px;
  }

  .fullscreen-menu {
    padding: 48px 24px;
  }

  .announce-bar span {
    font-size: 11px;
  }
}

/* ===== 工具 ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
