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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #0D0D0D;
  color: #FFFFFF;
}

body {
  font-family: 'Be Vietnam Pro', 'Noto Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #0D0D0D;
  color: #FFFFFF;
  overflow-x: hidden;
  padding-bottom: 72px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== 滚动边距（底部导航高度补偿）===== */
section[id] { scroll-margin-top: 16px; }

/* ===== 品牌顶栏 ===== */
.brand-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,255,0,0.15);
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 52px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo { height: 32px; width: auto; }

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #E8FF00;
  text-transform: uppercase;
}

/* ===== 主体 ===== */
main {
  padding-top: 52px;
}

.wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "content"
    "aside";
  gap: 0;
}

/* ===== Hero 区 ===== */
.hero-section {
  grid-area: hero;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-article {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* 点阵底纹 */
.hero-dot-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(232,255,0,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 1;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 40px 100px;
  max-width: 860px;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0D0D0D;
  background: #E8FF00;
  padding: 4px 12px;
  border-radius: 2px;
}

.hero-h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-h1-line {
  display: block;
  overflow: hidden;
  color: #FFFFFF;
}

.hero-h1-line--1 {
  background: linear-gradient(90deg, #E8FF00 0%, #FFFFFF 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 打字动效容器（JS填充） */
.hero-h1-line::after {
  content: '';
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn--primary {
  background: #E8FF00;
  color: #0D0D0D;
  border-color: #E8FF00;
}
.btn--primary:hover { background: #d4e800; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,255,0,0.3); }

.btn--outline {
  background: transparent;
  color: #E8FF00;
  border-color: #E8FF00;
}
.btn--outline:hover { background: rgba(232,255,0,0.08); transform: translateY(-2px); }

/* ===== 侧边栏 ===== */
.global-aside {
  grid-area: aside;
  padding: 40px 0 20px;
}

.aside-inner {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(232,255,0,0.12);
  border-radius: 4px;
  padding: 28px 24px;
}

.aside-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E8FF00;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232,255,0,0.18);
}

.aside-title span { display: inline; }

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.aside-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.aside-link:hover {
  color: #E8FF00;
  border-left-color: #E8FF00;
  background: rgba(232,255,0,0.06);
}

.aside-tip {
  background: rgba(232,255,0,0.05);
  border-radius: 4px;
  padding: 14px 16px;
}

.aside-tip-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #E8FF00;
  margin-bottom: 8px;
}
.aside-tip-title span { display: inline; }

.aside-tip p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
}

/* ===== 内容区 ===== */
.content-sections {
  grid-area: content;
  padding: 60px 0;
}

.main-content {
  width: 100%;
}

/* 正文内部 section 样式 */
.main-content section {
  margin-bottom: 72px;
  padding: 48px 40px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.main-content section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #E8FF00 0%, transparent 70%);
}

.main-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.25;
}

.main-content h2 span {
  display: inline;
  background: linear-gradient(90deg, #E8FF00, #FFFFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #E8FF00;
  margin-bottom: 14px;
  margin-top: 28px;
}

.main-content h3 span { display: inline; }

.main-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin-bottom: 16px;
}

.main-content ul, .main-content ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.main-content ul { list-style: disc; }
.main-content ol { list-style: decimal; }

.main-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin-bottom: 6px;
}

.main-content a {
  color: #E8FF00;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.main-content a:hover { color: #FFFFFF; }

.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.main-content th {
  background: rgba(232,255,0,0.1);
  color: #E8FF00;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(232,255,0,0.15);
}
.main-content td {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.main-content blockquote {
  border-left: 3px solid #E8FF00;
  padding: 14px 20px;
  margin: 20px 0;
  background: rgba(232,255,0,0.04);
  font-style: italic;
  color: rgba(255,255,255,0.72);
  border-radius: 0 4px 4px 0;
}

/* ===== 页脚 ===== */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 28px 24px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.footer-copy small { font-size: inherit; }

.footer-disclaimer {
  display: block;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== 底部固定导航条 ===== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(232,255,0,0.2);
  height: 68px;
  display: flex;
  align-items: center;
}

.bottom-nav {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bottom-nav::-webkit-scrollbar { display: none; }

.bottom-nav-dl {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: max-content;
  min-width: 100%;
  padding: 0 12px;
  justify-content: space-around;
}

.nav-item-dt {
  flex: 1;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item-dd {
  display: contents;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 56px;
  padding: 8px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  text-align: center;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link--active {
  color: #E8FF00;
  background: rgba(232,255,0,0.08);
}

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

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 打字光标 ===== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: #E8FF00;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}

/* ===== 打字动效关键帧 ===== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-eyebrow { animation: fadeIn 0.6s ease 0.2s both; }
.hero-sub     { animation: slideUp 0.7s ease 0.8s both; }
.hero-cta     { animation: slideUp 0.7s ease 1s both; }

/* ===== 桌面布局 ===== */
@media (min-width: 900px) {
  .wrap {
    grid-template-columns: 1fr 280px;
    grid-template-areas:
      "hero    hero"
      "content aside";
    gap: 0 36px;
    padding: 0 40px;
  }

  .hero-content {
    padding: 100px 60px 120px;
  }

  .global-aside {
    padding: 60px 0 20px;
    position: sticky;
    top: 68px;
    align-self: start;
  }

  .content-sections {
    padding: 60px 0;
  }

  .bottom-nav-dl {
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 0 24px;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 8px 14px;
  }
}

@media (min-width: 1200px) {
  .wrap { padding: 0 60px; }
}

/* ===== 移动端 ===== */
@media (max-width: 600px) {
  .hero-content {
    padding: 60px 24px 80px;
  }

  .hero-h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .main-content section {
    padding: 32px 20px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

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

  .bottom-nav-dl {
    justify-content: flex-start;
    gap: 0;
  }
}

/* ===== 无障碍：减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-eyebrow,
  .hero-sub,
  .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .typing-cursor { animation: none; }

  .btn { transition: none; }
  .nav-link { transition: none; }
  .aside-link { transition: none; }
}
