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

/* ===== 变量与重置 ===== */
:root {
  --bg: #fdfbf7;
  --bg2: #f5f5f5;
  --ink: #1a1a1a;
  --ink2: #444;
  --ink3: #888;
  --border: #d8d4cc;
  --border-dark: #1a1a1a;
  --radius: 4px;
  --font-head: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Outfit', Georgia, 'Noto Serif SC', serif;
  --nav-h: 56px;
  --max-w: 1120px;
  --content-max: 720px;
}

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

html {
  font-size: 17px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 16px);
}

/* 纸张纹理叠加 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink2);
}

ul, menu {
  list-style: none;
}

hr {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 0.6rem 0 1.2rem;
}

/* ===== 页面包裹 ===== */
.page-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 底部固定导航 ===== */
.site-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  border-top: 2px solid var(--border-dark);
}

.nav-details {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-summary::-webkit-details-marker { display: none; }

.nav-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--bg);
  text-align: center;
  flex: 1;
}

.nav-brand-link {
  text-decoration: none;
}

.nav-toggle-icon {
  font-size: 1.5rem;
  color: var(--bg);
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-menu {
  background: var(--ink);
  border-top: 1px solid #333;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.nav-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--bg);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
  transition: none;
}

.nav-menu li a:hover {
  background: #2a2a2a;
  color: var(--bg);
}

/* details 关闭时不显示菜单 */
.nav-details:not([open]) .nav-menu {
  display: none;
}

/* ===== 通用标题 ===== */
.section-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.eyebrow-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  padding: 2px 8px;
  margin-bottom: 0.8rem;
}

/* ===== 侧边栏通用 ===== */
.aside-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.aside-heading--mt {
  margin-top: 2rem;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-links li a,
.aside-links a {
  display: block;
  padding: 8px 0;
  font-size: 0.88rem;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.aside-links li a:hover,
.aside-links a:hover {
  color: var(--ink2);
  text-decoration: underline;
}

.aside-links--article li a {
  padding: 6px 0;
}

/* ===== HOME 布局 ===== */

/* Hero */
.hero-section {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  border-bottom: 2px solid var(--ink);
  margin: 0 -16px;
  overflow: hidden;
}

.hero-collage {
  position: relative;
  grid-column: 1;
}

.hero-figure {
  margin: 0;
  position: absolute;
}

.hero-figure--left {
  top: 0;
  left: 0;
  width: 65%;
  height: 75%;
  z-index: 2;
  overflow: hidden;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--bg2);
}

.hero-figure--right {
  bottom: 0;
  right: -10%;
  width: 65%;
  height: 65%;
  z-index: 3;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--bg2);
}

.hero-figure .hero-img,
.hero-placeholder span {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
}

.hero-placeholder span {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--ink3);
  letter-spacing: 0.1em;
  height: auto;
  width: auto;
}

.hero-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 10;
}

.hero-aside {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding: 40px 24px 40px 16px;
  z-index: 5;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  padding: 2px 8px;
  margin-bottom: 1rem;
}

.hero-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  max-width: 320px;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--ink2);
  max-width: 280px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  text-decoration: none;
  min-height: 44px;
  border: 2px solid var(--ink);
  transition: none;
}

.hero-cta:hover {
  background: var(--bg);
  color: var(--ink);
}

/* 内容 + 侧边栏 */
.content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.section-deco {
  display: none;
}

.content-body {
  min-width: 0;
}

.content-aside {
  min-width: 0;
  border-left: 2px solid var(--ink);
  padding-left: 24px;
}

/* 文章卡片区 */
.articles-section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 48px 0 56px;
}

.articles-aside-label {
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}

.rotated-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  padding: 8px 4px;
  color: var(--ink);
}

.articles-grid {
  min-width: 0;
}

.cards-block {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: none;
  transition: none;
}

.card-link:hover {
  background: #ece9e2;
}

.card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  display: block;
}

.card-date {
  font-size: 0.78rem;
  color: var(--ink3);
  font-family: var(--font-head);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--ink2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== ARTICLE 布局 ===== */
.main-article {
  padding-top: 32px;
}

.article-header-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
  align-items: end;
}

.article-hero-figure {
  position: relative;
  background: var(--bg2);
  min-height: 280px;
  overflow: hidden;
  border: 2px solid var(--ink);
}

.article-hero-figure--blank {
  min-height: 180px;
}

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

.article-hero-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
}

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

.article-category {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  padding: 2px 8px;
  display: inline-block;
  align-self: flex-start;
}

.article-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-date {
  font-size: 0.82rem;
  color: var(--ink3);
  font-family: var(--font-head);
}

.article-date--mod {
  color: var(--ink2);
}

/* 文章正文区 */
.article-body-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 40px 0 56px;
  align-items: start;
}

.article-content-wrap {
  min-width: 0;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.04em;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content a {
  color: var(--ink);
  font-weight: 500;
}

.article-aside {
  border-left: 2px solid var(--ink);
  padding-left: 24px;
  min-width: 0;
}

/* ===== ABOUT 布局 ===== */
.main-about {
  padding-top: 32px;
}

.about-intro-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
  align-items: center;
}

.about-deco-figure {
  background: var(--bg2);
  border: 2px solid var(--ink);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-stamp {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  padding: 8px 12px;
  color: var(--ink);
  transform: rotate(-8deg);
  display: inline-block;
}

.about-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.about-lead {
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.7;
}

.about-body-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 40px 0 56px;
  align-items: start;
}

.about-text-wrap {
  min-width: 0;
}

.about-aside {
  border-left: 2px solid var(--ink);
  padding-left: 24px;
  min-width: 0;
}

.about-article-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-article-link {
  display: block;
  padding: 8px 0;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  line-height: 1.5;
}

.about-article-link:hover {
  color: var(--ink2);
  text-decoration: underline;
}

.about-article-link strong {
  display: block;
  font-weight: 600;
}

.about-article-link span {
  font-size: 0.78rem;
  color: var(--ink3);
}

/* ===== PRIVACY 布局 ===== */
.main-privacy {
  padding-top: 32px;
}

.privacy-header-section {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
  align-items: center;
}

.privacy-header-figure {
  background: var(--bg2);
  border: 2px solid var(--ink);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-badge {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  padding: 6px 10px;
  transform: rotate(-6deg);
  display: inline-block;
}

.privacy-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 0.6rem;
  margin-top: 0.4rem;
}

.privacy-body-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 40px 0 56px;
  align-items: start;
}

.privacy-text-wrap {
  min-width: 0;
}

.privacy-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.privacy-content h2,
.privacy-content h3 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

.privacy-content p {
  margin-bottom: 1.1rem;
}

.privacy-aside {
  border-left: 2px solid var(--ink);
  padding-left: 24px;
  min-width: 0;
}

/* ===== DEFAULT 布局 ===== */
.main-default {
  padding-top: 32px;
}

.default-header-section {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  align-items: center;
}

.default-header-figure {
  background: var(--bg2);
  border: 2px solid var(--ink);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.default-badge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  padding: 4px 8px;
}

.default-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.default-body-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 40px 0 56px;
  align-items: start;
}

.default-text-wrap {
  min-width: 0;
}

.default-aside {
  border-left: 2px solid var(--ink);
  padding-left: 24px;
  min-width: 0;
}

/* ===== 页脚 ===== */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 40px 0 24px;
  text-align: center;
}

.footer-cta-block {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.footer-links-row {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.footer-links-row a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links-row a:hover {
  text-decoration: underline;
}

.footer-copy {
  display: block;
  font-size: 0.78rem;
  color: var(--ink3);
  line-height: 1.6;
}

/* ===== 正文内容通用 ===== */
.page-content {
  font-size: 1rem;
  line-height: 1.8;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.04em;
}

.page-content p {
  margin-bottom: 1.2rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content a {
  color: var(--ink);
  font-weight: 500;
}

.page-content strong {
  font-weight: 700;
}

/* ===== 无障碍辅助 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== 动效：stagger + hover（prefers-reduced-motion 关闭）===== */
@media (prefers-reduced-motion: no-preference) {
  .cards-block .card-link {
    animation: fadeInUp 0.3s both;
  }
  .cards-block .card-link:nth-child(1) { animation-delay: 0.05s; }
  .cards-block .card-link:nth-child(2) { animation-delay: 0.1s; }
  .cards-block .card-link:nth-child(3) { animation-delay: 0.15s; }
  .cards-block .card-link:nth-child(4) { animation-delay: 0.2s; }
  .cards-block .card-link:nth-child(5) { animation-delay: 0.25s; }
  .cards-block .card-link:nth-child(6) { animation-delay: 0.3s; }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .card-link:hover {
    transform: translateY(-2px);
    transition: transform 0.15s ease;
  }
}

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

/* ===== 平板断点 768px ===== */
@media (max-width: 768px) {
  :root {
    --max-w: 100%;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    margin: 0 -16px;
  }

  .hero-collage {
    height: 45vw;
    min-height: 220px;
    position: relative;
    grid-column: 1;
  }

  .hero-aside {
    grid-column: 1;
    padding: 24px 20px;
    align-items: flex-start;
    text-align: left;
    border-top: 2px solid var(--ink);
  }

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

  .content-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-aside {
    border-left: none;
    border-top: 2px solid var(--ink);
    padding-left: 0;
    padding-top: 24px;
  }

  .articles-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .articles-aside-label {
    display: none;
  }

  .cards-block {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .article-header-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-body-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-aside {
    border-left: none;
    border-top: 2px solid var(--ink);
    padding-left: 0;
    padding-top: 24px;
  }

  .about-intro-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-deco-figure {
    min-height: 80px;
  }

  .about-body-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-aside {
    border-left: none;
    border-top: 2px solid var(--ink);
    padding-left: 0;
    padding-top: 24px;
  }

  .privacy-header-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .privacy-header-figure {
    min-height: 80px;
  }

  .privacy-body-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .privacy-aside {
    border-left: none;
    border-top: 2px solid var(--ink);
    padding-left: 0;
    padding-top: 24px;
  }

  .default-header-section {
    grid-template-columns: 80px 1fr;
  }

  .default-body-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .default-aside {
    border-left: none;
    border-top: 2px solid var(--ink);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* ===== 移动端断点 375px ===== */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .page-wrapper {
    padding: 0 12px;
  }

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

  .cards-block {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    grid-template-columns: 1fr;
  }

  .nav-menu li a {
    font-size: 0.92rem;
  }

  .article-h1,
  .about-h1,
  .privacy-h1,
  .default-h1 {
    font-size: 1.3rem;
  }

  .hero-collage {
    height: 55vw;
    min-height: 200px;
  }
}
