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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
}

h4 {
  font-size: 18px;
}

/* ===== CSS Variables ===== */
:root {
  --strawberry: #FF4D6D;
  --peach: #FFB5C2;
  --sakura: #FFE0E8;
  --matcha: #A8C686;
  --cream: #FFF9F0;
  --ink: #1F1A1C;
  --dark-berry: #6D2233;
  --honey: #FFD166;
  --sky: #7EC8E3;
  --shiso: #9068C3;

  --bg-body: #FFE0E8;
  --bg-paper: #FFF9F0;
  --bg-header: rgba(255, 249, 240, 0.94);
  --text-primary: #1F1A1C;
  --text-secondary: #6D2233;
  --text-inverse: #FFF9F0;
  --accent: #FF4D6D;
  --accent-soft: #FFB5C2;
  --border-color: rgba(31, 26, 28, 0.12);
  --border-strong: rgba(31, 26, 28, 0.24);

  --font-display: "站酷快乐体", "ZCOOL KuaiLe", "Arial Rounded MT Bold", sans-serif;
  --font-body: "思源黑体", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  --container-max: 1280px;
  --header-height: 72px;
  --header-height-mobile: 60px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(31, 26, 28, 0.08);
  --shadow-md: 0 4px 12px rgba(31, 26, 28, 0.08);
  --shadow-lg: 0 12px 32px rgba(31, 26, 28, 0.12);
}

/* ===== 容器与布局 ===== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

#main-content {
  padding-top: var(--header-height);
  min-height: 60vh;
}

.section {
  padding: 48px 0;
}

.section-heading {
  margin-bottom: 32px;
}

.section-title {
  margin-bottom: 8px;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: -10px;
  top: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  z-index: -1;
  opacity: 0.6;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 77, 109, 0.3);
}

.btn--primary:hover {
  background: #e63e5e;
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.4);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--border-strong);
  color: var(--text-primary);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== 徽章 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--s {
  background: var(--accent);
  color: #fff;
}

.badge--matcha {
  background: var(--matcha);
  color: var(--ink);
}

.badge--honey {
  background: var(--honey);
  color: var(--dark-berry);
}

.badge--sky {
  background: var(--sky);
  color: var(--ink);
}

.badge--shiso {
  background: var(--shiso);
  color: #fff;
}

.badge--stamp {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  transform: rotate(-6deg);
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: 0.08em;
}

/* ===== 标签 ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== 卡片叠层 ===== */
.card-stack {
  position: relative;
  padding: 24px;
  background: var(--bg-paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 0;
}

.card-stack::before,
.card-stack::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: var(--bg-paper);
  box-shadow: var(--shadow-sm);
  z-index: -1;
}

.card-stack::before {
  transform: rotate(-2deg);
  border: 1px solid var(--border-color);
  opacity: 0.85;
}

.card-stack::after {
  transform: rotate(1.5deg);
  border: 1px solid var(--border-color);
  border-top: 0;
  opacity: 0.6;
}

.card-stack:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: var(--shadow-lg);
}

.card-stack:hover::before {
  transform: rotate(-1.2deg);
}

.card-stack:hover::after {
  transform: rotate(0.8deg);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  margin: 0 0 24px;
  font-size: 14px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb__link {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: var(--accent);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

.breadcrumb__separator {
  color: var(--border-strong);
  user-select: none;
}

/* ===== 正文容器 ===== */
.prose {
  max-width: 66ch;
  color: var(--text-primary);
}

.prose p {
  margin-bottom: 16px;
}

.prose ul {
  margin: 16px 0;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
  list-style: disc;
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== 显现动画 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 图片容器 ===== */
.image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sakura), var(--peach) 50%, var(--matcha));
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.image-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-frame:hover > img {
  transform: scale(1.03);
}

.image-frame[data-caption]::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 14px;
  background: rgba(31, 26, 28, 0.72);
  color: var(--cream);
  font-size: 12px;
  line-height: 1.6;
}

.image-frame[data-label]::before {
  content: attr(data-label);
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ===== 胶片孔 ===== */
.film-strip {
  position: relative;
  padding: 16px 32px;
}

.film-strip::before,
.film-strip::after {
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  height: 8px;
  background-image: radial-gradient(circle, transparent 3px, var(--ink) 4px);
  background-size: 8px 8px;
  background-repeat: repeat-x;
}

.film-strip::before {
  top: 0;
}

.film-strip::after {
  bottom: 0;
}

/* ===== 筛选按钮 ===== */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.filter-btn[data-active="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(255, 77, 109, 0.28);
}

/* ===== 时间轴 ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--peach), var(--matcha));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-bottom: 24px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-body);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

/* ===== 头部 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled="true"] {
  background: var(--bg-header);
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
  flex-shrink: 0;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--peach) 60%, #ff9156);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ===== 导航 ===== */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background-color 0.2s, color 0.2s;
}

.site-nav__link:hover {
  background: rgba(255, 77, 109, 0.08);
  color: var(--accent);
}

.site-nav__link[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 77, 109, 0.28);
}

/* ===== 移动导航按钮 ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  transition: background-color 0.2s;
}

.nav-toggle:hover {
  background: var(--accent);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: background-color 0.2s, transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--accent);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: #fff;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark-berry);
  color: var(--cream);
  margin-top: 80px;
  padding: 64px 0 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--peach), var(--honey));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--peach);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 233, 232, 0.82);
  margin-bottom: 0;
  max-width: 40ch;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--peach);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--honey));
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a {
  color: rgba(255, 233, 232, 0.82);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--peach);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 233, 232, 0.18);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(255, 233, 232, 0.68);
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-trust {
  max-width: 56ch;
  line-height: 1.6;
}

/* ===== Skip Link ===== */
.skip-link {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 24px;
  border-radius: 0 0 12px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:hover {
  color: var(--cream);
}

.skip-link:focus-visible {
  top: 0;
}

/* ===== 焦点可见性 ===== */
:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  #main-content {
    padding-top: var(--header-height-mobile);
  }

  .site-header {
    height: var(--header-height-mobile);
  }

  .brand-logo {
    font-size: 20px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-header);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav__link {
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

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

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 32px 0;
  }

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

/* ===== 减弱动效 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
