/* =============================================
   亲子手工创意屋 · 日系极简设计系统
   近中性灰白 · 极致留白 · 1px 细线 · 无阴影无渐变
   ============================================= */
:root {
  --c-primary: #7f7c62;
  --c-secondary: #7e7792;
  --c-accent: #7a629d;
  --c-bg: #fbfbf8;
  --c-card: #ffffff;
  --c-text: #2c2b1b;
  --c-muted: #7a775c;
  --c-border: #e6e5db;
  --font: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--c-accent); color: #fff; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--c-border); background: var(--c-bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.brand { font-weight: 700; letter-spacing: .1em; font-size: 17px; color: var(--c-text); }
.brand .dot { color: var(--c-accent); }
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 14px; color: var(--c-muted); position: relative; padding: 4px 0;
  letter-spacing: .08em; transition: color .2s ease;
}
.nav a:hover { color: var(--c-text); }
.nav a.active { color: var(--c-text); font-weight: 600; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { padding: 116px 0 80px; text-align: center; }
.hero.small { padding: 72px 0 40px; }
.hero .eyebrow {
  font-size: 12px; letter-spacing: .34em; color: var(--c-accent);
  margin-bottom: 26px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(30px, 5.2vw, 52px); font-weight: 700;
  letter-spacing: .06em; line-height: 1.3;
}
.hero .sub {
  margin: 26px auto 0; color: var(--c-muted); font-size: 15px;
  max-width: 540px;
}
.hero-line { width: 1px; height: 54px; background: var(--c-border); margin: 42px auto 0; }
.hero-art { margin: 46px auto 0; max-width: 320px; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 76px 0 8px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--c-text); padding-bottom: 14px; margin-bottom: 42px;
  gap: 16px;
}
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.section-head .en { font-size: 11px; letter-spacing: .3em; color: var(--c-muted); margin-top: 6px; text-transform: uppercase; }
.section-head .more { font-size: 13px; color: var(--c-muted); white-space: nowrap; padding-bottom: 4px; }
.section-head .more:hover { color: var(--c-accent); }

/* ---------- Category grid (hairline separators) ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; border: 1px solid var(--c-border); background: var(--c-border);
}
.cat-card { background: var(--c-card); padding: 34px 26px 30px; position: relative; transition: background .25s ease; }
.cat-card:hover { background: #f6f5ed; }
.cat-card .num { font-size: 11px; color: var(--c-accent); letter-spacing: .24em; }
.cat-card h3 { font-size: 19px; font-weight: 700; margin-top: 16px; letter-spacing: .08em; }
.cat-card .en { font-size: 11px; color: var(--c-muted); letter-spacing: .18em; margin-top: 2px; text-transform: uppercase; }
.cat-card p { font-size: 13px; color: var(--c-muted); margin-top: 16px; line-height: 1.9; }
.cat-card .count { margin-top: 24px; font-size: 12px; color: var(--c-secondary); letter-spacing: .1em; }
.cat-card .arrow {
  position: absolute; right: 22px; top: 32px; font-size: 13px; color: var(--c-muted);
  transition: transform .25s ease, color .25s ease;
}
.cat-card:hover .arrow { transform: translateX(5px); color: var(--c-accent); }

/* ---------- Monthly theme panel ---------- */
.theme-panel {
  display: grid; grid-template-columns: 1fr 1.4fr;
  border: 1px solid var(--c-border); background: var(--c-card);
}
.theme-main { padding: 44px 42px; border-right: 1px solid var(--c-border); }
.theme-panel .tag {
  display: inline-block; font-size: 11px; letter-spacing: .22em; color: var(--c-accent);
  border: 1px solid var(--c-accent); padding: 4px 12px; border-radius: var(--radius);
}
.theme-main h3 { font-size: 26px; font-weight: 700; margin-top: 24px; letter-spacing: .06em; line-height: 1.4; }
.theme-main p { margin-top: 18px; color: var(--c-muted); font-size: 14px; line-height: 2; }
.theme-list { padding: 30px 42px; }
.theme-list .pick { border-top: 1px solid var(--c-border); }
.theme-list .pick:first-child { border-top: none; }
.theme-list .pick a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 0; }
.theme-list .t { font-size: 15px; font-weight: 600; transition: color .2s ease; }
.theme-list .m { font-size: 12px; color: var(--c-muted); margin-top: 3px; letter-spacing: .04em; }
.theme-list .pick .arrow { color: var(--c-muted); font-size: 13px; transition: transform .25s ease, color .25s ease; }
.theme-list .pick a:hover .t { color: var(--c-accent); }
.theme-list .pick a:hover .arrow { transform: translateX(5px); color: var(--c-accent); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filters button {
  font-family: inherit; font-size: 13px; color: var(--c-muted);
  background: none; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 7px 18px; cursor: pointer; letter-spacing: .06em;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.filters button:hover { border-color: var(--c-secondary); color: var(--c-text); }
.filters button.active { color: #fff; background: var(--c-text); border-color: var(--c-text); }

/* ---------- Tutorial cards ---------- */
.tut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.tut-card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .25s ease;
}
.tut-card:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.tut-card .cover { aspect-ratio: 5 / 3; overflow: hidden; background: var(--c-card); }
.tut-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tut-card:hover .cover img { transform: scale(1.035); }
.tut-card .body {
  padding: 22px 22px 24px; border-top: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.tut-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--c-muted); }
.tut-card .meta .cat { color: var(--c-accent); }
.tut-card h3 { font-size: 17px; font-weight: 700; letter-spacing: .05em; line-height: 1.55; }
.tut-card p { font-size: 13px; color: var(--c-muted); line-height: 1.9; }
.tut-card .foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--c-secondary); letter-spacing: .04em;
}
.tut-card .foot span:last-child { transition: color .2s ease; }
.tut-card:hover .foot span:last-child { color: var(--c-accent); }

/* ---------- Tutorial detail page ---------- */
.tut-hero { padding: 64px 0 44px; }
.crumbs { font-size: 12px; color: var(--c-muted); letter-spacing: .06em; margin-bottom: 30px; }
.crumbs a:hover { color: var(--c-accent); }
.tut-hero h1 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 700; line-height: 1.35; letter-spacing: .04em; max-width: 660px; }
.tut-hero .tag {
  display: inline-block; margin-top: 24px; font-size: 12px; letter-spacing: .2em;
  color: var(--c-accent); border: 1px solid var(--c-accent);
  padding: 4px 14px; border-radius: var(--radius);
}
.meta-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
}
.meta-strip .cell { padding: 20px 22px; border-right: 1px solid var(--c-border); }
.meta-strip .cell:last-child { border-right: none; }
.meta-strip .k { font-size: 11px; color: var(--c-muted); letter-spacing: .24em; }
.meta-strip .v { font-size: 15px; font-weight: 600; margin-top: 5px; letter-spacing: .02em; }
.tut-cover { margin-top: 46px; border: 1px solid var(--c-border); }
.tut-cover img { width: 100%; }
.article { max-width: 680px; margin-top: 16px; }
.article section { margin-top: 68px; }
.article h2 {
  font-size: 18px; font-weight: 700; letter-spacing: .1em;
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--c-text); margin-bottom: 28px;
}
.article h2 .no { font-size: 12px; color: var(--c-accent); letter-spacing: .22em; }
.article .intro { font-size: 15px; color: var(--c-text); line-height: 2.1; }
.materials { display: grid; grid-template-columns: repeat(2, 1fr); }
.materials li {
  padding: 15px 2px; border-bottom: 1px solid var(--c-border);
  font-size: 14px; display: flex; gap: 13px; align-items: baseline;
}
.materials li::before {
  content: ""; width: 6px; height: 6px; border: 1px solid var(--c-accent);
  flex: none; align-self: center;
}
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--c-border); }
.step:first-child { border-top: 1px solid var(--c-border); }
.step .n { font-size: 30px; font-weight: 600; color: var(--c-accent); opacity: .5; line-height: 1.1; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: .03em; }
.step p { font-size: 14px; color: var(--c-muted); line-height: 2.1; }
.tips { margin-top: 56px; border-left: 2px solid var(--c-accent); background: var(--c-card); padding: 26px 30px; }
.tips .label { font-size: 11px; letter-spacing: .26em; color: var(--c-accent); }
.tips p { margin-top: 12px; font-size: 14px; line-height: 2; }
.tut-nav {
  margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
}
.tut-nav a { padding: 24px 4px; }
.tut-nav .nav-next { text-align: right; border-left: 1px solid var(--c-border); }
.tut-nav span { display: block; font-size: 12px; color: var(--c-muted); letter-spacing: .12em; }
.tut-nav b { display: block; font-size: 14px; font-weight: 600; margin-top: 6px; transition: color .2s ease; }
.tut-nav a:hover b { color: var(--c-accent); }
.related { margin-top: 84px; }

/* ---------- Theme page ---------- */
.month-spot {
  display: grid; grid-template-columns: 250px 1fr;
  border: 1px solid var(--c-border); background: var(--c-card);
}
.month-spot .label {
  padding: 38px 30px; border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: flex-start;
}
.month-spot .cap { font-size: 11px; letter-spacing: .3em; color: var(--c-accent); }
.month-spot .big { font-size: 40px; font-weight: 700; letter-spacing: .12em; line-height: 1.1; }
.month-spot .body { padding: 40px 44px; }
.month-spot .body h3 { font-size: 23px; font-weight: 700; letter-spacing: .05em; }
.month-spot .body p { color: var(--c-muted); font-size: 14px; margin-top: 14px; line-height: 2; }
.month-spot .picks { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--c-border); padding: 7px 16px; font-size: 13px;
  border-radius: var(--radius); color: var(--c-text); background: var(--c-bg);
  transition: border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--c-accent); color: var(--c-accent); }

.season-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; border: 1px solid var(--c-border); background: var(--c-border);
}
.season-card { background: var(--c-card); padding: 36px 28px 32px; }
.season-card .s { font-size: 32px; font-weight: 700; letter-spacing: .14em; }
.season-card .en { font-size: 11px; color: var(--c-muted); letter-spacing: .22em; margin-top: 4px; text-transform: uppercase; }
.season-card p { font-size: 13px; color: var(--c-muted); margin-top: 18px; line-height: 2; }
.season-card .links { margin-top: 22px; display: flex; flex-direction: column; gap: 9px; }
.season-card .links a { font-size: 13px; font-weight: 600; transition: color .2s ease; }
.season-card .links a::before { content: "→ "; color: var(--c-accent); }
.season-card .links a:hover { color: var(--c-accent); }

.fest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.fest-card {
  display: flex; border: 1px solid var(--c-border); background: var(--c-card);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.fest-card:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.fest-card .fest-cover { width: 44%; min-height: 100%; object-fit: cover; }
.fest-card .fest-body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.fest-card .fest-body .en { font-size: 11px; letter-spacing: .24em; color: var(--c-muted); text-transform: uppercase; }
.fest-card .fest-body h3 { font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.fest-card .fest-body p { font-size: 13px; color: var(--c-muted); line-height: 1.95; }
.fest-card .fest-body .go { margin-top: auto; font-size: 12px; color: var(--c-secondary); }
.fest-card:hover .fest-body .go { color: var(--c-accent); }

.month-list { border-top: 1px solid var(--c-border); }
.month-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 22px;
  align-items: center; padding: 22px 6px; border-bottom: 1px solid var(--c-border);
}
.month-row .m { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.month-row .m small { display: block; font-weight: 400; font-size: 11px; color: var(--c-muted); letter-spacing: .24em; }
.month-row .t { font-size: 14px; color: var(--c-text); }
.month-row .tag2 { font-size: 11px; letter-spacing: .22em; color: var(--c-accent); border: 1px solid var(--c-accent); padding: 3px 10px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-border); margin-top: 110px; padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer .brand { font-size: 15px; }
.site-footer .copy { font-size: 12px; color: var(--c-muted); letter-spacing: .04em; }

/* ---------- Animation ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .6s ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tut-grid { grid-template-columns: repeat(2, 1fr); }
  .season-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-panel { grid-template-columns: 1fr; }
  .theme-main { border-right: none; border-bottom: 1px solid var(--c-border); }
  .month-spot { grid-template-columns: 1fr; }
  .month-spot .label { border-right: none; border-bottom: 1px solid var(--c-border); }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .tut-grid { grid-template-columns: 1fr; }
  .season-grid { grid-template-columns: 1fr; }
  .fest-grid { grid-template-columns: 1fr; }
  .fest-card .fest-cover { width: 38%; }
  .meta-strip { grid-template-columns: repeat(2, 1fr); }
  .meta-strip .cell:nth-child(2) { border-right: none; }
  .meta-strip .cell:nth-child(-n+2) { border-bottom: 1px solid var(--c-border); }
  .materials { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .header-inner { flex-direction: column; gap: 14px; align-items: center; }
  .nav { gap: 22px; }
  .hero { padding: 84px 0 56px; }
  .section { padding: 56px 0 8px; }
  .month-row { grid-template-columns: 1fr; gap: 6px; }
  .month-row .tag2 { justify-self: start; }
  .tut-nav { grid-template-columns: 1fr; }
  .tut-nav .nav-next { border-left: none; border-top: 1px solid var(--c-border); text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
