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

/* ===== CSS 变量 ===== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffe066;
  --border: 3px solid #000;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --radius: 0px;
  --card-radius: 0px;
  --font-title: 'Righteous', 'Impact', sans-serif;
  --font-body: 'Poppins', 'Microsoft YaHei', system-ui, sans-serif;
  --max-w: 1200px;
  --announce-h: 36px;
  --header-h: 120px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  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);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  line-height: 1.2;
}

hr {
  border: none;
  border-top: 3px solid var(--black);
  margin: 12px 0 20px;
}

time {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

/* ===== 公告条 ===== */
.site-announce {
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 8px 16px;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Header ===== */
.site-header {
  background: var(--blue);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: var(--border);
}

.brand-logo {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 var(--red);
}

.brand-logo:hover {
  color: var(--white);
  text-shadow: 3px 3px 0 var(--black);
}

/* ===== 汉堡按钮 ===== */
.hamburger {
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--black);
}

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

/* ===== Header Nav ===== */
.header-nav {
  padding: 10px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.header-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.header-nav p a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  min-height: 40px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}

.header-nav p a:hover {
  background: var(--yellow);
  box-shadow: none;
  transform: translate(3px, 3px);
  color: var(--black);
}

/* ===== 全屏遮罩菜单 ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--blue);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  border-left: var(--border);
}

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

.fullscreen-menu nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.fullscreen-menu nav ul li a {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--black);
  border: var(--border);
  background: var(--white);
  padding: 12px 32px;
  display: block;
  box-shadow: var(--shadow);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-menu nav ul li a:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: none;
  transform: translate(5px, 5px);
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 1.4rem;
  font-weight: 900;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close:hover {
  box-shadow: none;
  transform: translate(3px, 3px);
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 52px;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: none;
  transform: translate(5px, 5px);
  color: var(--white);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--black);
  border: var(--border);
  box-shadow: var(--shadow);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 52px;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  box-shadow: none;
  transform: translate(5px, 5px);
  color: var(--black);
}

/* ===== Aside 块 ===== */
.aside-block {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}

.aside-block h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.aside-block ul li {
  margin-bottom: 8px;
}

.aside-block ul li a {
  font-size: 0.9rem;
  color: var(--black);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.aside-block ul li a:hover {
  border-bottom-color: var(--red);
  color: var(--red);
}

.aside-tip {
  background: var(--yellow);
}

/* ===== Section Title ===== */
.section-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 4px;
}

/* ===== Page Content (正文) ===== */
.page-content {
  font-size: 1rem;
  line-height: 1.8;
}

.page-content h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin: 28px 0 8px;
  border-left: 6px solid var(--red);
  padding-left: 12px;
}

.page-content h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin: 20px 0 6px;
}

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

.page-content ul, .page-content ol {
  margin: 12px 0 16px 20px;
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

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

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

.page-content strong {
  font-weight: 700;
  background: var(--yellow);
  padding: 0 3px;
}

.page-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}

.page-content table th,
.page-content table td {
  border: 2px solid var(--black);
  padding: 8px 12px;
  text-align: left;
}

.page-content table th {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-title);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
}

.footer-address a {
  color: var(--yellow);
  font-weight: 700;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}

.footer-links li a {
  color: var(--white);
  font-size: 0.82rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.footer-links li a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.footer-copy {
  font-size: 0.78rem;
  color: #888;
}

/* ==============================
   HOME
   ============================== */

.home-main {
  min-height: 60vh;
}

/* Hero */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  border-bottom: var(--border);
  overflow: hidden;
}

.hero-aside {
  background: var(--blue);
  border-right: var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-title);
  font-size: clamp(80px, 18vw, 200px);
  color: rgba(0,0,0,0.08);
  font-weight: 900;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.hero-media {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.hero-img {
  border: var(--border);
  box-shadow: var(--shadow);
  max-height: 220px;
  object-fit: cover;
  width: 100%;
}

.hero-img-1 {
  transform: rotate(-2deg);
}

.hero-img-2 {
  transform: rotate(2deg);
  align-self: flex-end;
  max-width: 80%;
}

.hero-content {
  background: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border: none;
}

.hero-h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--black);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  color: #333;
}

.hero-content .btn-primary,
.hero-content .btn-secondary {
  width: fit-content;
}

/* Content Section */
.content-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border-bottom: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
}

.content-aside {
  padding-right: 32px;
}

.content-body {
  padding-left: 32px;
  border-left: var(--border);
}

/* Articles Section */
.articles-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.articles-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.articles-table tbody tr {
  border: var(--border);
  background: var(--white);
  transition: transform 0.15s, box-shadow 0.15s;
}

.articles-table tbody tr:hover {
  box-shadow: var(--shadow);
  transform: translate(-3px, -3px);
}

.articles-table tbody tr + tr {
  border-top: none;
}

.card-num {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--blue);
  padding: 20px 16px;
  width: 70px;
  text-align: center;
  border-right: var(--border);
  background: var(--black);
  color: var(--white);
  vertical-align: top;
}

.card-body {
  padding: 18px 24px;
  vertical-align: top;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 6px;
  color: var(--black);
  text-decoration: none;
}

.card-title:hover {
  color: var(--red);
}

.card-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 4px;
}

.card-date {
  font-size: 0.8rem;
  color: #888;
}

/* ==============================
   ARTICLE
   ============================== */

.article-main {
  max-width: var(--max-w);
  margin: 0 auto;
}

.article-hero-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border-bottom: var(--border);
  padding: 0;
  overflow: hidden;
}

.article-hero-figure {
  border: none;
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  max-height: 320px;
}

.article-eyebrow {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.9rem;
  padding: 6px 16px;
  border-top: var(--border);
  border-right: var(--border);
}

.article-aside-top {
  background: var(--yellow);
  border-left: var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-meta time {
  font-size: 0.85rem;
  color: #333;
  display: block;
}

.breadcrumb-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  border: var(--border);
  padding: 6px 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.breadcrumb-link:hover {
  background: var(--black);
  color: var(--white);
}

.article-body-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  padding: 40px 24px;
}

.article-sidebar {
  padding-right: 32px;
}

.article-content-wrap {
  padding-left: 32px;
  border-left: var(--border);
}

.article-h1 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 4px;
}

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

.article-content h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin: 28px 0 8px;
  border-left: 6px solid var(--red);
  padding-left: 12px;
}

.article-content h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin: 20px 0 6px;
}

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

.article-content ul, .article-content ol {
  margin: 12px 0 16px 20px;
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

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

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

.article-content strong {
  font-weight: 700;
  background: var(--yellow);
  padding: 0 3px;
}

.article-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}

.article-content table th,
.article-content table td {
  border: 2px solid var(--black);
  padding: 8px 12px;
  text-align: left;
}

.article-content table th {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-title);
}

/* ==============================
   ABOUT
   ============================== */

.about-main {
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-hero-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border-bottom: var(--border);
  min-height: 280px;
}

.about-hero-figure {
  background: var(--blue);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.about-num-deco {
  font-family: var(--font-title);
  font-size: clamp(60px, 12vw, 120px);
  color: rgba(0,0,0,0.1);
  position: absolute;
  top: 0;
  right: 0;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.about-h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--black);
  position: relative;
  z-index: 1;
}

.about-sub {
  font-size: 1rem;
  color: #222;
  max-width: 500px;
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
}

.about-date {
  font-size: 0.85rem;
  color: #333;
  position: relative;
  z-index: 1;
}

.about-hero-aside {
  background: var(--yellow);
  border-left: var(--border);
  padding: 24px 20px;
}

.about-content-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  padding: 40px 24px 60px;
}

.about-sidebar {
  padding-right: 32px;
}

.about-content-body {
  padding-left: 32px;
  border-left: var(--border);
}

/* ==============================
   PRIVACY
   ============================== */

.privacy-main {
  max-width: var(--max-w);
  margin: 0 auto;
}

.privacy-header-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border-bottom: var(--border);
  min-height: 240px;
}

.privacy-header-figure {
  background: var(--black);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border: none;
}

.privacy-num-deco {
  font-family: var(--font-title);
  font-size: clamp(60px, 12vw, 120px);
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: 0;
  right: 0;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.privacy-h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  position: relative;
  z-index: 1;
}

.privacy-date {
  font-size: 0.85rem;
  color: #aaa;
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
}

.privacy-header-aside {
  background: var(--red);
  border-left: var(--border);
  padding: 24px 20px;
}

.privacy-header-aside .aside-block {
  background: var(--white);
}

.privacy-content-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  padding: 40px 24px 60px;
}

.privacy-sidebar {
  padding-right: 32px;
}

.privacy-content-body {
  padding-left: 32px;
  border-left: var(--border);
}

/* ==============================
   DEFAULT
   ============================== */

.default-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
}

.default-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}

.default-aside {
  padding-right: 32px;
}

.default-figure {
  padding-left: 32px;
  border-left: var(--border);
  border: none;
}

.default-figure h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 4px;
}

/* ==============================
   Stagger animation
   ============================== */

@media (prefers-reduced-motion: no-preference) {
  .articles-table tbody tr {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.4s forwards;
  }

  .articles-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
  .articles-table tbody tr:nth-child(2) { animation-delay: 0.10s; }
  .articles-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
  .articles-table tbody tr:nth-child(4) { animation-delay: 0.20s; }
  .articles-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
  .articles-table tbody tr:nth-child(6) { animation-delay: 0.30s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-aside {
    min-height: 240px;
    border-right: none;
    border-bottom: var(--border);
  }

  .hero-content {
    padding: 32px 24px;
  }

  .content-section,
  .article-body-section,
  .about-content-section,
  .privacy-content-section,
  .default-section {
    grid-template-columns: 1fr;
  }

  .content-aside,
  .article-sidebar,
  .about-sidebar,
  .privacy-sidebar,
  .default-aside {
    padding-right: 0;
    margin-bottom: 32px;
  }

  .content-body,
  .article-content-wrap,
  .about-content-body,
  .privacy-content-body,
  .default-figure {
    padding-left: 0;
    border-left: none;
  }

  .article-hero-section {
    grid-template-columns: 1fr;
  }

  .article-aside-top {
    border-left: none;
    border-top: var(--border);
  }

  .about-hero-section,
  .privacy-header-section {
    grid-template-columns: 1fr;
  }

  .about-hero-aside,
  .privacy-header-aside {
    border-left: none;
    border-top: var(--border);
    padding: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 100px;
  }

  .brand-logo {
    font-size: 1.5rem;
  }

  .header-nav p {
    gap: 6px;
  }

  .header-nav p a {
    font-size: 0.76rem;
    padding: 5px 10px;
  }

  .hero-h1 {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 24px 16px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.95rem;
    padding: 12px 20px;
  }

  .articles-section,
  .content-section,
  .article-body-section,
  .about-content-section,
  .privacy-content-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card-num {
    font-size: 1.4rem;
    width: 50px;
    padding: 16px 8px;
  }

  .card-body {
    padding: 14px 12px;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .about-hero-figure,
  .privacy-header-figure {
    padding: 32px 20px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .article-h1 {
    font-size: 1.4rem;
  }

  .fullscreen-menu nav ul li a {
    font-size: 1.1rem;
    padding: 10px 24px;
  }

  .footer-links {
    gap: 6px 10px;
  }
}

/* ==============================
   Utility
   ============================== */

.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;
}
