@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3: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;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f5f5f5;
  color: #1f1f1f;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===== CSS 变量 ===== */
:root {
  --white: #ffffff;
  --bg: #f5f5f5;
  --ink: #1f1f1f;
  --ink-light: #3a3a3a;
  --ink-muted: #777;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --nav-width: 72px;
  --top-bar-h: 36px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 顶部公告条 ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: var(--nav-width);
  right: 0;
  height: var(--top-bar-h);
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.top-bar-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.9;
  text-align: center;
  padding: 0 12px;
}

/* ===== 左侧固定导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--ink);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.side-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  height: 100%;
  overflow: hidden;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-text-icon {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  word-break: break-all;
  width: 44px;
  display: block;
}

/* 侧边导航中隐藏的 nav > p > a 结构（视觉上不显示，满足结构契约） */
.side-nav-links {
  display: none;
}

.hamburger {
  margin-top: auto;
  margin-bottom: 16px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  min-height: 48px;
  min-width: 48px;
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(255,255,255,0.1);
}

.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== 全屏遮罩菜单 ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.fullscreen-menu:not([hidden]) {
  opacity: 1;
  pointer-events: all;
}

.fullscreen-menu[hidden] {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 12px;
  line-height: 1;
  min-height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-close:hover {
  background: rgba(255,255,255,0.12);
}

.menu-nav {
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}

.menu-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 10vw, 96px);
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  line-height: 1;
}

/* 全屏菜单 nav > p > a 结构 */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
  min-height: 48px;
  line-height: 1.3;
  width: 100%;
  max-width: 360px;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.menu-slogan {
  position: absolute;
  bottom: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0 24px;
}

/* ===== 主体布局 ===== */
.site-wrapper {
  min-height: 100vh;
}

.main-content {
  margin-left: var(--nav-width);
  padding-top: var(--top-bar-h);
  min-height: 100vh;
}

.content-article {
  width: 100%;
}

/* ===== Hero ===== */
.hero-section {
  scroll-margin-top: calc(var(--top-bar-h) + 8px);
  min-height: 45vh;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

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

.hero-bg-text {
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(120px, 25vw, 280px);
  color: rgba(255,255,255,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.1em;
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 1;
}

.hero-img {
  object-fit: cover;
  height: 100%;
  flex: 1;
  opacity: 0.35;
}

.hero-img-1 {
  transform: skewX(-3deg) translateX(-20px);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.hero-img-2 {
  transform: skewX(-3deg) translateX(20px);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 32px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 10vw, 112px);
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ===== 正文内容区 Bento ===== */
.content-section {
  padding: 40px 32px 60px;
  scroll-margin-top: calc(var(--top-bar-h) + 8px);
}

.bento-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* ===== page.content 内的 section 样式（7个栏目）===== */
.bento-main > section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--top-bar-h) + 8px);
  transition: box-shadow var(--transition), transform var(--transition);
}

.bento-main > section:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.005);
}

.bento-main > section:nth-child(odd) {
  border-left: 4px solid var(--ink);
}

.bento-main > section:nth-child(even) {
  border-left: 4px solid #c0c0c0;
}

.bento-main > section h2,
.bento-main > section h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.bento-main > section h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  color: var(--ink);
}

.bento-main > section h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 12px;
  color: var(--ink);
}

.bento-main > section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.bento-main > section p:last-child {
  margin-bottom: 0;
}

.bento-main > section ul,
.bento-main > section ol {
  padding-left: 0;
  margin-bottom: 12px;
}

.bento-main > section ul li,
.bento-main > section ol li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-light);
  padding: 4px 0 4px 20px;
  position: relative;
}

.bento-main > section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--ink);
  font-size: 12px;
  top: 6px;
}

.bento-main > section ol {
  counter-reset: item;
  list-style: none;
}

.bento-main > section ol li {
  counter-increment: item;
  padding-left: 28px;
}

.bento-main > section ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--ink);
  top: 4px;
  letter-spacing: 0.02em;
}

.bento-main > section a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bento-main > section a:hover {
  opacity: 0.7;
}

/* 首个section深色突出 */
.bento-main > section:first-child {
  background: var(--ink);
  color: var(--white);
  border-left: none;
}

.bento-main > section:first-child h2,
.bento-main > section:first-child h3 {
  color: var(--white);
}

.bento-main > section:first-child p,
.bento-main > section:first-child li {
  color: rgba(255,255,255,0.8);
}

.bento-main > section:first-child ul li::before {
  color: rgba(255,255,255,0.6);
}

.bento-main > section:first-child a {
  color: var(--white);
}

/* ===== Aside ===== */
.bento-aside {
  position: sticky;
  top: calc(var(--top-bar-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.aside-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 12px;
}

.aside-nav-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-light);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}

.aside-link:hover {
  background: var(--bg);
  color: var(--ink);
}

.bento-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.dark-card {
  background: var(--ink);
  color: var(--white);
}

.notice-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.notice-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* ===== 页脚 ===== */
.site-footer {
  margin-left: var(--nav-width);
  background: var(--ink);
  color: var(--white);
}

.footer-top {
  padding: 48px 48px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 40px 48px;
}

.footer-dl dt {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-dl dd {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.footer-link {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

.footer-legal {
  color: rgba(255,255,255,0.35) !important;
  font-size: 12px !important;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-disclaimer {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ===== Scroll Reveal 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bento-main > section {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .bento-layout {
    grid-template-columns: 1fr;
  }
  .bento-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aside-nav-list {
    flex: 1 1 200px;
  }
  .aside-notice {
    flex: 1 1 160px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-width: 56px;
    --top-bar-h: 36px;
  }

  .top-bar {
    left: var(--nav-width);
  }

  .content-section {
    padding: 24px 16px 48px;
  }

  .bento-main > section {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }

  .footer-top {
    padding: 32px 24px 16px;
  }

  .footer-bottom {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-aside {
    flex-direction: column;
  }

  .nav-link {
    font-size: 18px;
    padding: 14px 24px;
    min-height: 48px;
  }

  .menu-close {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-copy {
    padding: 32px 16px;
  }

  .top-bar-text {
    font-size: 11px;
  }

  .footer-brand-big {
    font-size: 40px;
  }

  .hamburger {
    min-height: 48px;
    min-width: 48px;
    padding: 14px 10px;
  }
}

/* ===== 无横向溢出保护 ===== */
.main-content,
.site-footer,
.top-bar {
  overflow-x: hidden;
}

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