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

/* ===== 基础变量 ===== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffe566;
  --bg: #f5f5f0;
  --card-bg: #ffffff;
  --shadow: 5px 5px 0 var(--black);
  --shadow-lg: 8px 8px 0 var(--black);
  --border: 3px solid var(--black);
  --radius: 18px;
  --radius-sm: 8px;
  --font-head: 'Cormorant', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --nav-h: 64px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--black);
  padding-bottom: var(--nav-h);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, menu { list-style: none; }

/* ===== 导航 ===== */
.site-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--black);
  border-top: var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-details {
  width: 100%;
  max-width: 1100px;
  padding: 0 1rem;
}

.nav-details summary {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  height: var(--nav-h);
}
.nav-details summary::-webkit-details-marker { display: none; }

.brand-link {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  padding: 0.5rem 1.2rem;
  background: var(--red);
  border: 2px solid var(--white);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--blue);
  transition: box-shadow 0.15s, transform 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.brand-link:hover {
  box-shadow: 5px 5px 0 var(--blue);
  transform: translate(-1px, -1px);
}

.nav-details[open] .nav-brand {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 101;
  background: var(--black);
  border-top: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  position: fixed;
  bottom: var(--nav-h);
  left: 0; right: 0;
  background: var(--black);
  border-top: var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
  z-index: 99;
  max-height: 60vh;
  overflow-y: auto;
}

.nav-menu li a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  min-height: 40px;
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
}
.nav-menu li a:hover,
.nav-menu li a[aria-current="page"] {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 3px 3px 0 var(--white);
  transform: translate(-1px, -1px);
}

/* ===== 布局通用 ===== */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  min-height: 60vh;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--red); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Hero 通用 ===== */
.hero-section,
.cat-hero,
.tag-hero,
.about-hero,
.privacy-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: var(--blue);
  border-bottom: var(--border);
  overflow: hidden;
  padding: 3rem 0 2rem;
}

.hero-inner,
.cat-hero-inner,
.tag-hero-inner,
.about-hero-inner,
.privacy-hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-bg-text {
  position: absolute;
  bottom: -0.2em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: clamp(4rem, 18vw, 14rem);
  font-weight: 700;
  color: rgba(0,0,0,0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  line-height: 1;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1rem;
  position: relative;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0.3rem 0.9rem;
  border: 2px solid var(--black);
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 var(--black);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--black);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  border: 3px solid var(--black);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--black);
}
.btn-primary:hover {
  box-shadow: 6px 6px 0 var(--black);
  transform: translate(-2px, -2px);
}
.btn-outline {
  background: var(--white);
  color: var(--black);
  box-shadow: 4px 4px 0 var(--black);
}
.btn-outline:hover {
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--black);
  transform: translate(-2px, -2px);
}

/* ===== 副标题 ===== */
.subtitle {
  font-size: 1rem;
  color: #333;
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
h3 a:hover { text-decoration: underline; color: var(--red); }

/* ===== 日期 ===== */
.page-date {
  font-size: 0.8rem;
  color: #555;
  display: inline-block;
  margin-right: 0.75rem;
  background: var(--yellow);
  border: 2px solid var(--black);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-weight: 600;
}

/* ===== 正文内容 ===== */
.page-content {
  line-height: 1.8;
  font-size: 1.02rem;
  color: #1a1a1a;
}
.page-content h2 { margin-top: 2rem; }
.page-content h3 { margin-top: 1.5rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
}
.page-content li { margin-bottom: 0.35rem; }
.page-content a { color: var(--red); font-weight: 600; text-decoration: underline; }
.page-content a:hover { color: var(--blue); }
.page-content img { border: var(--border); border-radius: var(--radius-sm); margin: 1.25rem 0; box-shadow: var(--shadow); }
.page-content strong { font-weight: 700; }
.page-content code {
  background: var(--black);
  color: var(--yellow);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===== 侧边栏（aside） ===== */
.page-aside,
.home-aside {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 10;
  display: none;
}

.aside-inner {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.aside-title {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--red);
  border-bottom: 2px solid var(--black);
  padding-bottom: 0.4rem;
}

.page-aside ul li a,
.home-aside ul li a {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0;
  color: var(--black);
  border-bottom: 1px solid #eee;
  transition: color 0.12s, padding-left 0.12s;
}
.page-aside ul li a:hover,
.home-aside ul li a:hover {
  color: var(--red);
  padding-left: 0.4rem;
}

@media (min-width: 1300px) {
  .page-aside, .home-aside { display: block; }
}

/* ===== 分类卡片列表（ul > li > article 结构） ===== */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.cat-card {
  background: var(--blue);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.cat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -2px);
}
.cat-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cat-card h3 a { color: var(--black); }
.cat-card p { font-size: 0.88rem; color: #111; line-height: 1.5; }

/* ===== 子页列表（children-list, ul > li > article） ===== */
.children-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.child-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.child-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -2px);
}
.child-card h3 { font-size: 1rem; }
.child-card h3 a { color: var(--black); }
.child-card p { font-size: 0.85rem; color: #333; margin-top: 0.35rem; line-height: 1.55; }
.child-card time { font-size: 0.75rem; color: #777; margin-top: 0.5rem; display: block; }

/* ===== 首页: 精选入口网格 ===== */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  transition: box-shadow 0.15s, transform 0.15s;
  color: var(--black);
}
.entry-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -2px);
}
.entry-card .entry-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.entry-card strong { font-size: 1rem; font-family: var(--font-head); font-weight: 700; }
.entry-card .entry-desc { font-size: 0.82rem; color: #333; line-height: 1.45; }

/* ===== 关联文章列表 ===== */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.related-card {
  background: var(--blue);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.related-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -2px);
}
.related-card h3 { font-size: 0.95rem; }
.related-card h3 a { color: var(--black); }
.related-card p { font-size: 0.82rem; color: #111; margin-top: 0.3rem; }

/* ===== 标签云 ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  min-height: 40px;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
  transition: box-shadow 0.15s, transform 0.15s, background 0.15s;
}
.tag-pill:hover, .tag-pill.active {
  background: var(--red);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--black);
  transform: translate(-2px, -2px);
}

/* ===== 栏目页 Body ===== */
.cat-body, .entry-body, .tag-content-section, .privacy-body, .about-body {
  padding: 2.5rem 0;
}

.home-content-section {
  padding: 2rem 0 1rem;
  border-bottom: 2px dashed #ccc;
  margin-bottom: 1rem;
}

.cat-section, .entry-section {
  padding: 2rem 0;
}

.entry-header {
  background: var(--red);
  border-bottom: var(--border);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.entry-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.entry-header h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.entry-header .subtitle {
  color: rgba(255,255,255,0.85);
}

.entry-header .breadcrumb,
.entry-header .breadcrumb a {
  color: rgba(255,255,255,0.75);
}
.entry-header .breadcrumb a:hover { color: var(--white); }

.entry-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.entry-hero-wrap {
  margin-top: 1.25rem;
  border: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 560px;
}

.entry-article {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  margin-top: 0.5rem;
}

.about-hero { background: var(--yellow); }
.tag-hero { background: var(--red); }
.tag-hero h1, .tag-hero .subtitle, .tag-hero .breadcrumb a { color: var(--white); }
.tag-hero .breadcrumb { color: rgba(255,255,255,0.75); }
.tag-hero .breadcrumb a:hover { color: var(--white); }
.tag-hero .hero-bg-text { color: rgba(255,255,255,0.1); }

.privacy-hero { background: var(--black); }
.privacy-hero h1 { color: var(--white); }
.privacy-hero .subtitle { color: rgba(255,255,255,0.7); }
.privacy-hero .breadcrumb { color: rgba(255,255,255,0.5); }
.privacy-hero .breadcrumb a { color: var(--blue); }
.privacy-hero .hero-bg-text { color: rgba(255,255,255,0.05); }
.privacy-hero .page-date { background: var(--blue); color: var(--black); border-color: var(--blue); }

.privacy-content, .about-content {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
}

.about-date {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

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

.footer-cta {
  background: var(--red);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-cta-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  min-height: 44px;
  background: var(--white);
  color: var(--black);
  border: 3px solid var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 4px 4px 0 var(--black);
  transition: box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
}
.footer-cta-btn:hover {
  box-shadow: 6px 6px 0 var(--black);
  transform: translate(-2px, -2px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 2rem 1.5rem;
}

.footer-col-title {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}

.footer-col-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  transition: color 0.12s;
}
.footer-col ul li a:hover { color: var(--blue); }

address { font-style: normal; }

.footer-bar {
  background: rgba(255,255,255,0.06);
  border-top: 2px solid rgba(255,255,255,0.1);
  padding: 0.9rem 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ===== 节间距 ===== */
.cat-section,
.entry-section,
.tag-entries,
.all-tags,
.about-nav-section,
.related-section,
.children-section {
  padding: 2rem 0;
}

/* ===== 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .cat-card,
  .child-card,
  .related-card,
  .entry-card {
    animation: fadeUp 0.4s ease both;
  }

  .children-list li:nth-child(1) .child-card,
  .cat-list li:nth-child(1) .cat-card { animation-delay: 0.05s; }
  .children-list li:nth-child(2) .child-card,
  .cat-list li:nth-child(2) .cat-card { animation-delay: 0.1s; }
  .children-list li:nth-child(3) .child-card,
  .cat-list li:nth-child(3) .cat-card { animation-delay: 0.15s; }
  .children-list li:nth-child(4) .child-card,
  .cat-list li:nth-child(4) .cat-card { animation-delay: 0.2s; }
  .children-list li:nth-child(5) .child-card { animation-delay: 0.25s; }
  .children-list li:nth-child(6) .child-card { animation-delay: 0.3s; }

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

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 1rem;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem;
  }

  .cat-list,
  .children-list,
  .entry-grid,
  .related-list {
    grid-template-columns: 1fr;
  }

  .entry-article,
  .privacy-content,
  .about-content {
    padding: 1.25rem 1rem;
  }

  h2 { margin-top: 1.75rem; }

  .hero-section,
  .cat-hero,
  .tag-hero,
  .about-hero,
  .privacy-hero,
  .entry-header {
    min-height: auto;
    padding: 2rem 0 1.5rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }

  .nav-menu {
    padding: 0.75rem;
    gap: 0.4rem;
  }

  .nav-menu li a {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
