@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-ink: #000000;
  --c-gray-100: #f4f4f4;
  --c-gray-200: #e8e8e8;
  --c-gray-400: #999999;
  --c-gray-600: #555555;
  --c-glass-bg: rgba(255, 255, 255, 0.08);
  --c-glass-border: rgba(255, 255, 255, 0.18);
  --radius-card: 18px;
  --header-h: 60px;
  --anchor-h: 44px;
  --max-w: 1200px;
  --font-main: 'Roboto', system-ui, -apple-system, sans-serif;
  --transition-base: 220ms ease;
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--c-black);
  color: var(--c-white);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

ol, ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--c-gray-600);
  margin: 1rem 0 1.5rem;
}

/* ===== 全局排版 ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 500; line-height: 1.3; }
h4 { font-size: 0.95rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
p { line-height: 1.7; }

/* ===== 全屏遮罩导航 ===== */
.overlay-nav {
  position: fixed;
  inset: 0;
  background: var(--c-black);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.overlay-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-nav nav ol {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.overlay-nav nav ol li a {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.5rem 1rem;
  display: block;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.overlay-nav nav ol li a:hover {
  border-bottom-color: var(--c-white);
  color: var(--c-white);
}

.overlay-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--c-white);
  font-size: 1.8rem;
  padding: 0.6rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-base);
}

.overlay-close:hover {
  opacity: 0.6;
}

/* ===== 顶部 Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--c-black);
  border-bottom: 1px solid var(--c-gray-600);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
  z-index: 500;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
}

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

.brand-text-icon {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--c-white);
  color: var(--c-black);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.header-nav {
  flex: 1;
  display: none;
}

.header-nav ol {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.header-nav ol li a {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-base);
}

.header-nav ol li a:hover,
.header-nav ol li a[aria-current="page"] {
  border-bottom-color: var(--c-white);
}

.hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ===== 粘性锚点条 ===== */
.sticky-anchor-bar {
  position: sticky;
  top: var(--header-h);
  background: var(--c-black);
  border-bottom: 1px solid var(--c-gray-600);
  z-index: 400;
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-anchor-bar::-webkit-scrollbar { display: none; }

.sticky-anchor-bar ol {
  display: flex;
  gap: 0;
  padding: 0 1rem;
  min-height: var(--anchor-h);
  align-items: center;
}

.sticky-anchor-bar ol li a {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--c-gray-400);
  transition: color var(--transition-base);
}

.sticky-anchor-bar ol li a:hover {
  color: var(--c-white);
}

/* ===== 布局间距 ===== */
.page-home main,
.channel-layout,
.article-layout,
.about-layout,
.privacy-layout {
  padding-top: var(--header-h);
}

/* ===== HERO（首页） ===== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 2rem 3rem;
  position: relative;
  z-index: 2;
  background: var(--c-black);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  min-height: 55vh;
}

.hero-text h1 {
  max-width: 800px;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--c-gray-400);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-media {
  position: relative;
  min-height: 45vh;
  background: var(--c-gray-100);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, transparent 60%);
  z-index: 1;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--c-white);
  color: var(--c-black);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: 2px solid var(--c-white);
  min-height: 44px;
  transition: background var(--transition-base), color var(--transition-base);
}

.btn-primary:hover {
  background: transparent;
  color: var(--c-white);
}

/* ===== 通用区块 ===== */
.content-section,
.channels-section,
.articles-section,
.children-section,
.about-body-section,
.article-body-section,
.privacy-body-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-gray-200);
}

.section-inner p { margin-bottom: 1rem; }
.section-inner h2, .section-inner h3 { color: var(--c-white); margin: 1.5rem 0 0.75rem; }

/* ===== 玻璃拟态卡片 ===== */
.glass-card {
  background: var(--c-glass-bg);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.4);
}

.glass-card a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  height: 100%;
}

.glass-card strong {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-white);
}

.glass-card small {
  font-size: 0.85rem;
  color: var(--c-gray-400);
  line-height: 1.5;
}

.glass-card time {
  font-size: 0.78rem;
  color: var(--c-gray-400);
  margin-top: auto;
}

.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  border: 1px solid var(--c-gray-600);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
}

/* ===== 频道网格 ===== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.empty-card {
  padding: 2rem;
  text-align: center;
  color: var(--c-gray-400);
}

/* ===== 频道页布局 ===== */
.channel-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 2rem;
  padding-top: calc(var(--header-h) + var(--anchor-h));
}

.channel-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--c-gray-600);
  margin-bottom: 2rem;
}

.channel-hero h1 {
  margin-bottom: 0.75rem;
}

.channel-desc {
  color: var(--c-gray-400);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ===== 文章页布局 ===== */
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 1.5rem 0;
  gap: 2rem;
}

.article-header-section {
  padding: 2rem 0 1.5rem;
}

.article-header-section h1 {
  margin: 0.75rem 0 1rem;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-top: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-date {
  font-size: 0.82rem;
  color: var(--c-gray-400);
}

.article-body-section {
  padding: 0;
}

.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-gray-200);
  max-width: 720px;
}

.article-body p { margin-bottom: 1.1rem; }
.article-body h2, .article-body h3 { color: var(--c-white); margin: 2rem 0 0.75rem; }
.article-body h2 + hr { margin-top: 0; }
.article-body a { text-decoration: underline; color: var(--c-white); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { list-style: disc; line-height: 1.7; }

.article-footer-section {
  padding: 2rem 0 3rem;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.related-list li a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem;
  border: 1px solid var(--c-gray-600);
  border-radius: 8px;
  transition: border-color var(--transition-base);
}

.related-list li a:hover {
  border-color: var(--c-white);
}

.related-list li a strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.related-list li a small {
  font-size: 0.8rem;
  color: var(--c-gray-400);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--c-gray-400);
  list-style: none;
  padding: 0;
  margin-bottom: 0.75rem;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 0.4rem;
}

.breadcrumb li a {
  color: var(--c-gray-400);
  text-decoration: underline;
  transition: color var(--transition-base);
}

.breadcrumb li a:hover {
  color: var(--c-white);
}

/* ===== About/Privacy 布局 ===== */
.about-layout,
.privacy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 1.5rem 0;
  gap: 2rem;
}

.about-header-section,
.privacy-header-section {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--c-gray-600);
}

.eyebrow-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  display: block;
  margin-bottom: 0.75rem;
}

.about-body,
.privacy-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-gray-200);
  max-width: 720px;
  padding: 2rem 0;
}

.about-body p, .privacy-body p { margin-bottom: 1.1rem; }
.about-body h2, .about-body h3,
.privacy-body h2, .privacy-body h3 { color: var(--c-white); margin: 2rem 0 0.75rem; }
.about-body a, .privacy-body a { text-decoration: underline; color: var(--c-white); }

.about-links-section,
.privacy-nav-section {
  padding: 1rem 0 3rem;
}

.about-nav-list,
.privacy-nav-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.about-nav-list li a,
.privacy-nav-list li a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-gray-600);
  border-radius: 8px;
  transition: border-color var(--transition-base);
}

.about-nav-list li a:hover,
.privacy-nav-list li a:hover {
  border-color: var(--c-white);
}

.about-nav-list li a strong,
.privacy-nav-list li a strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.about-nav-list li a small,
.privacy-nav-list li a small {
  font-size: 0.82rem;
  color: var(--c-gray-400);
}

/* ===== 侧边栏 Aside ===== */
.site-aside {
  padding-top: 2rem;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.aside-links li a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--c-gray-400);
  border-bottom: 1px solid var(--c-gray-600);
  transition: color var(--transition-base);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-links li a:hover {
  color: var(--c-white);
}

.aside-child-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.aside-child-list li {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-gray-600);
}

.aside-child-list li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-white);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition-base);
}

.aside-child-list li a:hover {
  color: var(--c-gray-400);
}

.aside-child-list li small {
  font-size: 0.78rem;
  color: var(--c-gray-400);
}

.site-aside h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-gray-600);
}

/* 首页 aside：右侧独立浮动栏 */
.home-aside {
  position: fixed;
  right: 1.5rem;
  top: calc(var(--header-h) + 2rem);
  width: 180px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--c-gray-600);
  border-radius: var(--radius-card);
  padding: 1rem;
  z-index: 300;
  display: none;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-black);
  border-top: 1px solid var(--c-gray-600);
  margin-top: 4rem;
}

.footer-brand-block {
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--c-gray-600);
  overflow: hidden;
}

.footer-brand-big {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-white);
  display: block;
  word-break: break-all;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--c-gray-400);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--c-gray-400);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition-base);
}

.footer-col ul li a:hover {
  color: var(--c-white);
}

.footer-bottom {
  border-top: 1px solid var(--c-gray-600);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--c-gray-400);
}

/* ===== 正文区内 content article 样式 ===== */
.content-section p,
.about-body p,
.privacy-body p,
.article-body p {
  margin-bottom: 1rem;
}

/* ===== Parallax 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .glass-card {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  }

  .hero-media {
    will-change: transform;
  }

  .site-header {
    transition: background 220ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 响应式断点 ===== */
@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .home-aside {
    display: block;
  }
}

@media (max-width: 1023px) {
  .channel-layout,
  .article-layout,
  .about-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .channel-aside,
  .article-aside,
  .about-aside,
  .privacy-aside {
    order: 2;
    border-top: 1px solid var(--c-gray-600);
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .site-aside h3 {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .channel-layout,
  .article-layout,
  .about-layout,
  .privacy-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .channel-aside,
  .article-aside,
  .about-aside,
  .privacy-aside {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .channel-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .related-list,
  .about-nav-list,
  .privacy-nav-list {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: calc(var(--header-h) + 2rem) 1rem 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  }

  .sticky-anchor-bar ol li a {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }

  .footer-brand-big {
    font-size: clamp(1.5rem, 8vw, 3rem);
  }

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

  .content-section,
  .channels-section,
  .articles-section,
  .children-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 375px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    padding: 0 1rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .glass-card a {
    padding: 1.25rem;
  }
}
