@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ===== 变量与重置 ===== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --bg: #f5f5f0;
  --border: 3px solid #000;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 56px;
  --radius: 0;
  --max-w: 1080px;
  --article-max: 780px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--black);
  overflow-x: hidden;
}

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

a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
}

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

ul, ol {
  list-style: none;
}

/* ===== 通用辅助 ===== */
.eyebrow-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border: 2px solid var(--black);
  margin-bottom: 12px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--blue);
  color: var(--black);
  padding: 2px 7px;
  border: 2px solid var(--black);
  margin-bottom: 6px;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  padding: 12px 28px;
  border: var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  min-height: 44px;
  line-height: 1.3;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000;
  text-decoration: none;
  color: var(--white);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.btn-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-size: 1rem;
  font-weight: 800;
  padding: 12px 28px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  min-height: 44px;
  line-height: 1.3;
}

.btn-secondary:hover {
  background: var(--blue);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
  text-decoration: none;
}

/* ===== 页面骨架 ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 导航（底部固定条，桌面也用） ===== */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--blue);
  border-top: var(--border);
  box-shadow: 0 -3px 0 #000;
}

.site-nav {
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--nav-h);
  gap: 0;
}

.nav-brand {
  flex: 0 0 auto;
  margin-right: 16px;
}

.nav-brand a {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--black);
  padding: 6px 12px;
  display: inline-block;
  min-height: 40px;
  line-height: 1.4;
  white-space: nowrap;
}

.nav-brand a:hover {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  padding: 8px 10px;
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-left: 2px solid transparent;
  transition: background 0.1s;
}

.nav-links a:hover {
  background: var(--white);
  border-color: var(--black);
  text-decoration: none;
  color: var(--black);
}

.nav-contact {
  flex: 0 0 auto;
  margin-left: 8px;
}

.nav-contact a {
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--black);
  color: var(--white);
  padding: 8px 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--black);
}

.nav-contact a:hover {
  background: var(--red);
  text-decoration: none;
  color: var(--white);
}

/* 底部导航留出空间 */
main, .about-main, .privacy-main, .article-main {
  padding-bottom: calc(var(--nav-h) + 24px);
}

/* ===== Hero（首页）===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background-color: var(--black);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
  z-index: 1;
}

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

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

.hero-grid-bg {
  background-color: var(--black);
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 48px 32px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--blue);
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border: 2px solid var(--white);
  margin-bottom: 16px;
}

.hero-h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 4px 4px 0 var(--red);
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  line-height: 1.7;
}

.hero .btn-primary {
  font-size: 1.1rem;
  padding: 14px 36px;
}

/* ===== 通用 section ===== */
.content-section,
.channels-section,
.recent-section,
.channel-list-section,
.related-section,
.article-body-section,
.about-content-section,
.about-nav-section,
.privacy-content-section,
.privacy-back-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 16px 0;
}

.home-content {
  border-left: 6px solid var(--blue);
  padding-left: 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: var(--border);
  padding-bottom: 10px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.section-tag {
  background: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border: 2px solid var(--black);
}

.section-more {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
}

.empty-tip {
  font-size: 1rem;
  color: #555;
  padding: 24px 0;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 0;
}

.card-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  border: var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
}

.card-sm {
  border: var(--border);
  background: var(--white);
}

.card-sm:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: var(--border);
  display: block;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-body h3 a:hover {
  color: var(--red);
}

.card-body p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
  flex: 1;
}

.card-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  display: block;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red);
  align-self: flex-start;
}

/* ===== 栏目 Hero ===== */
.channel-hero {
  background: var(--blue);
  border-bottom: var(--border);
  padding: 56px 16px 40px;
}

.channel-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.channel-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 12px 0 16px;
  line-height: 1.15;
}

.channel-desc {
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.channel-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.channel-count {
  background: var(--black);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border: 2px solid var(--black);
}

/* ===== 栏目子页列表 ===== */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.channel-card {
  flex-direction: row;
  align-items: stretch;
}

.channel-card .card-thumb {
  width: 180px;
  height: auto;
  min-height: 120px;
  flex: 0 0 180px;
  border-bottom: none;
  border-right: var(--border);
}

.card-num {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 8px;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  z-index: 2;
  font-variant-numeric: tabular-nums;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.breadcrumb a {
  color: var(--black);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--red);
}

/* ===== 文章页 ===== */
.article-main {
  max-width: 100%;
}

.article-wrap {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 16px;
}

.article-header-section {
  padding-top: 40px;
  padding-bottom: 24px;
  border-bottom: var(--border);
  margin-bottom: 32px;
}

.article-h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 10px 0 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.article-date {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--blue);
  padding: 3px 8px;
  border: 2px solid var(--black);
  display: inline-block;
}

.article-modified {
  background: var(--bg);
}

.article-hero-media {
  margin-top: 24px;
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

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

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #111;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 4px solid var(--blue);
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  list-style: disc;
  margin: 0 0 18px 24px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content a {
  color: var(--red);
  text-decoration: underline;
  font-weight: 700;
}

.article-content blockquote {
  border-left: 5px solid var(--red);
  padding: 12px 20px;
  background: #fff;
  margin: 24px 0;
  font-style: italic;
}

.article-content strong {
  font-weight: 800;
}

.article-content time {
  background: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 7px;
  border: 2px solid var(--black);
}

/* ===== 相关文章 ===== */
.related-section {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 40px 16px 0;
  border-top: var(--border);
  margin-top: 48px;
}

.related-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
}

/* ===== 关于页 ===== */
.about-hero-section {
  background: var(--black);
  color: var(--white);
  padding: 64px 16px 48px;
  position: relative;
  overflow: hidden;
}

.about-hero-section::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  background: var(--red);
  opacity: 0.15;
  transform: rotate(45deg);
  pointer-events: none;
}

.about-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 12px 0 16px;
  line-height: 1.15;
}

.about-lead {
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.about-content {
  max-width: var(--article-max);
  font-size: 1rem;
  line-height: 1.8;
}

.about-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 32px 0 12px;
  border-left: 5px solid var(--blue);
  padding-left: 12px;
}

.about-content p {
  margin-bottom: 16px;
}

.about-content a {
  color: var(--red);
  text-decoration: underline;
  font-weight: 700;
}

.about-nav-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: var(--border);
  padding-bottom: 8px;
}

.about-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-nav-item {
  display: inline-block;
  padding: 10px 18px;
  border: var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  line-height: 1.4;
  transition: transform 0.1s, box-shadow 0.1s;
}

.about-nav-item:hover {
  background: var(--blue);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
  text-decoration: none;
}

/* ===== 隐私政策页 ===== */
.privacy-main {
  max-width: 100%;
}

.privacy-header-section {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 48px 16px 24px;
  border-bottom: var(--border);
  margin-bottom: 32px;
}

.privacy-h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin: 10px 0 12px;
}

.privacy-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
}

.privacy-date time {
  background: var(--blue);
  padding: 2px 7px;
  border: 2px solid var(--black);
}

.privacy-content {
  max-width: var(--article-max);
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

.privacy-content h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 32px 0 12px;
  border-bottom: 3px solid var(--black);
  padding-bottom: 4px;
}

.privacy-content p {
  margin-bottom: 14px;
}

.privacy-content a {
  color: var(--red);
  text-decoration: underline;
  font-weight: 700;
}

.privacy-back-section {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 40px 16px 0;
  border-top: var(--border);
  margin-top: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.privacy-back-section p {
  font-size: 0.95rem;
}

.privacy-back-section a:not(.btn-secondary) {
  color: var(--red);
  text-decoration: underline;
  font-weight: 700;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
  margin-bottom: var(--nav-h);
}

.footer-cta {
  background: var(--red);
  border-bottom: var(--border);
  padding: 36px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 100%;
}

.footer-cta-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  flex: 1 1 200px;
}

.footer-cta .btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  flex: 0 0 auto;
}

.footer-cta .btn-primary:hover {
  background: var(--blue);
}

.footer-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 16px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}

.footer-col {
  padding: 0 12px;
}

.footer-col + .footer-col {
  border-left: 2px solid rgba(255,255,255,0.15);
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.footer-links-heading {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 12px;
}

.footer-link-list {
  font-size: 0.85rem;
  line-height: 2;
}

.footer-link-list a {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  display: inline-block;
}

.footer-link-list a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ===== 滚动揭示动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* ===== 断点：移动端 ===== */
@media (max-width: 680px) {
  .nav-links a {
    font-size: 0.75rem;
    padding: 8px 7px;
  }

  .hero-text {
    padding: 32px 16px 48px;
  }

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

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

  .channel-card {
    flex-direction: column;
  }

  .channel-card .card-thumb {
    width: 100%;
    height: 160px;
    flex: none;
    border-right: none;
    border-bottom: var(--border);
  }

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

  .footer-col + .footer-col {
    border-left: none;
    border-top: 2px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    margin-top: 20px;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .about-nav-list {
    flex-direction: column;
  }

  .privacy-back-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .card-grid-sm {
    grid-template-columns: 1fr;
  }

  .nav-brand a {
    font-size: 0.95rem;
    padding: 6px 8px;
  }
}
