/* ==========================================================================
   CalendarELF — 阳光欢快视觉系统
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-02FF, U+2000-206F;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./fonts/nunito-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --cream: #FFF8EC;
  --cream-2: #FDEFDA;
  --paper: #FFFDF8;
  --ink: #2A251F;
  --muted: #7B7167;
  --line: #EFDFC4;
  --line-strong: #E4CFAF;
  --sun: #F6A81C;
  --sun-soft: #FFD98A;
  --sun-deep: #B96A12;
  --sky: #2F9BD9;
  --leaf: #3E9E63;
  --coral: #EF6A5A;
  --shadow: 0 3px 0 rgba(201, 152, 83, .22);
  --radius: 20px;
  --font: 'Nunito', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sun-deep); }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px;
}
.skip:focus { left: 12px; }

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 248, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.hd {
  display: flex; align-items: center; gap: 18px;
  min-height: 68px; padding-block: 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.18rem; letter-spacing: -0.02em;
  flex: none;
}
.brand .sun { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--sun-deep); }

.main-nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: 6px; flex-wrap: wrap;
}
.main-nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: .92rem; font-weight: 700; color: #4B443C;
  white-space: nowrap;
}
.main-nav a:hover { background: #FFEFD2; color: var(--ink); }
.main-nav a.on { background: var(--ink); color: #FFF6E6; }

.region {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted); font-weight: 700;
}
.lang-select {
  appearance: none;
  border: 2px solid var(--line-strong); background: var(--paper);
  border-radius: 999px; padding: 7px 30px 7px 14px;
  font: 700 .86rem var(--font); color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%232A251F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  cursor: pointer;
}
.lang-select:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 2px;
}
.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 12px;
  border: 2px solid var(--line-strong); background: var(--paper);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------------- 通用元素 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: var(--paper); color: var(--ink);
  font: 800 .93rem var(--font); cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(201, 152, 83, .22); color: var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(201, 152, 83, .22); }
.btn.primary { background: var(--sun); border-color: #D98A10; color: #3A2603; }
.btn.primary:hover { background: #FFB733; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.lg { padding: 13px 22px; font-size: 1rem; }
.btn.xl { padding: 15px 26px; font-size: 1.04rem; }
.btn.sm { padding: 7px 13px; font-size: .82rem; box-shadow: none; border-width: 1.5px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sec { margin-top: 58px; }
.sec-head {
  display: flex; align-items: end; justify-content: space-between; gap: 18px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.sec-head h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 900; }
.sec-head p { color: var(--muted); font-size: .95rem; margin-top: 6px; max-width: 58ch; }
.sec-head .more { font-weight: 800; color: var(--sun-deep); font-size: .92rem; }
.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sun-deep);
}
.note { color: var(--muted); font-size: .86rem; }
.muted { color: var(--muted); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: 40px; align-items: center;
  padding: 46px 0 10px;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 460px; height: 460px; right: -90px; top: -120px;
  background: radial-gradient(circle at 50% 50%, #FFE2A8 0%, #FFECBF 42%, rgba(255, 236, 191, 0) 70%);
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--paper); border: 2px solid var(--line-strong);
  font-size: .88rem; font-weight: 700; box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.hb-new {
  background: var(--coral); color: #fff; font-size: .72rem; font-weight: 900;
  letter-spacing: .08em; padding: 4px 9px; border-radius: 999px;
}
.hb-more { color: var(--muted); font-weight: 600; }
.hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.035em; line-height: 1.03;
  margin-top: 8px;
}
.hero h1 em { font-style: normal; color: var(--sun-deep); }
.lead { margin-top: 18px; font-size: 1.06rem; color: #564D43; max-width: 46ch; }

.year-pick { margin-top: 26px; }
.year-pick .label { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.year-btns { display: inline-flex; gap: 6px; background: var(--cream-2); padding: 5px; border-radius: 999px; border: 2px solid var(--line); }
.year-btns button, .year-btns a {
  border: 0; background: transparent; padding: 8px 22px; border-radius: 999px;
  font: 800 .98rem var(--font); color: #5C5347; cursor: pointer; text-decoration: none;
}
.year-btns button.on, .year-btns a.on { background: var(--ink); color: #FFF7E8; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; font-size: .88rem; }
.cta-more a { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: #5A5045; }

.hero-planners { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.hp-l { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-planners a {
  display: inline-flex; align-items: center; gap: 7px;
  border: 2px solid var(--line); background: var(--paper);
  padding: 7px 13px; border-radius: 999px; font-size: .84rem; font-weight: 700;
}
.hero-planners a:hover { background: #FFF1D8; }

.hero-sheets { position: relative; min-height: 430px; }
.sheet {
  position: absolute; display: block;
  width: min(76%, 340px);
  border-radius: 12px; overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(120, 88, 38, .18), 0 2px 0 #EBD9BC;
  transition: transform .25s ease;
}
.sheet.back { right: 2%; top: 6%; transform: rotate(5deg); opacity: .96; }
.sheet.front { left: 0; top: 0; transform: rotate(-3.5deg); }
.hero-sheets:hover .sheet.back { transform: rotate(7deg) translateY(-6px); }
.hero-sheets:hover .sheet.front { transform: rotate(-5deg) translateY(-6px); }
.thumb-paper img, .thumb-paper svg { display: block; width: 100%; height: auto; }

/* ---------------- 年份横幅 / 本月 ---------------- */
.ny-banner {
  margin-top: 44px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(115deg, #FFC65C 0%, #FFD889 55%, #FFE8B8 100%);
  border: 2px solid #F0B444;
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}
.ny-text { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; }
.ny-year {
  font-size: 2.6rem; font-weight: 900; letter-spacing: -0.04em;
  color: rgba(86, 54, 4, .28); line-height: 1;
}
.ny-banner h2 { font-size: 1.28rem; font-weight: 900; }
.ny-banner p { font-size: .9rem; color: #63481A; margin-top: 4px; }
.ny-months { display: flex; flex-wrap: wrap; gap: 5px; }
.ny-months a {
  background: rgba(255, 255, 255, .72); border-radius: 8px;
  padding: 5px 9px; font-size: .8rem; font-weight: 800;
}
.ny-months a:hover { background: #fff; }
.ny-btn { flex: none; background: var(--ink); color: #FFF4DE; border-color: var(--ink); }
.ny-btn:hover { background: #3A332B; color: #fff; }

.promo-month {
  margin-top: 22px; padding: 18px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.pm-k { font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-deep); }
.pm-main { flex: 1 1 260px; }
.pm-main h2 { font-size: 1.22rem; font-weight: 900; }
.pm-main p { font-size: .88rem; color: var(--muted); }

/* ---------------- 类型卡 ---------------- */
.types { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s ease; }
.type-card:hover { transform: translateY(-3px); }
.type-card h2 { font-size: 1.06rem; font-weight: 900; }
.type-card p { font-size: .86rem; color: var(--muted); margin-top: 4px; }
.type-card .meta { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--sun-deep); margin-top: auto; }
.blocks { display: grid; gap: 3px; }
.blocks i { display: block; aspect-ratio: 1; border-radius: 3px; opacity: .85; }

/* ---------------- 模板卡 ---------------- */
.grid-pop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tpl-card { overflow: hidden; display: flex; flex-direction: column; }
.tpl-card .thumb { display: block; background: #F7EFE1; padding: 16px 16px 0; }
.thumb-paper { box-shadow: 0 6px 16px rgba(120, 88, 38, .14); border-radius: 6px; overflow: hidden; background: #fff; }
.pop-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.pop-body h3 { font-size: .98rem; font-weight: 900; }
.pop-body span { font-size: .76rem; color: var(--muted); font-weight: 600; }

/* ---------------- 格式化链接 ---------------- */
.fmt-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fmt-links a { padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; }
.fmt-links b { font-size: 1rem; font-weight: 900; }
.fmt-links span { font-size: .86rem; color: var(--muted); }

/* ---------------- 月度总览 ---------------- */
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-pub { background: #FFE3BE; border: 1px solid #F0BE7C; }
.lg-today { background: var(--ink); }
.grid-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.glance-month { padding: 14px 14px 10px; display: block; color: inherit; text-decoration: none; transition: transform .16s, box-shadow .16s; }
.glance-month:hover { transform: translateY(-3px) rotate(-.4deg); }
.gm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gm-head h3 { font-size: 1rem; font-weight: 900; }
.gm-head span { font-size: .7rem; font-weight: 700; color: var(--sun-deep); }
.gm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.gm-grid .wd { font-size: .62rem; font-weight: 800; color: var(--muted); padding: 2px 0; }
.gm-grid .wd.we { color: var(--coral); }
.gm-grid .c { font-size: .72rem; font-weight: 600; padding: 3px 0; border-radius: 4px; }
.gm-grid .c.pub { background: #FFE9C9; color: #A0560C; font-weight: 900; }
.gm-grid .c.obs { color: #B98A4E; }
.gm-grid .c.is-today { background: var(--ink); color: #fff; font-weight: 900; }

/* ---------------- 表格 ---------------- */
.home-hol { padding: 22px 24px; }
.home-hol h2 { font-size: 1.3rem; font-weight: 900; margin-bottom: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 700; }
.tbl .cd-col, .tbl .cd { text-align: right; white-space: nowrap; }
.tbl .cd { font-weight: 800; color: var(--sun-deep); font-variant-numeric: tabular-nums; }
.tbl .cd.past { color: var(--muted); font-weight: 600; }

/* ---------------- 步骤 / 指南 ---------------- */
.how h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: s; content: counter(s);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sun); color: #3A2603; font-weight: 900; font-size: .85rem;
  margin-bottom: 10px;
}
.steps b { display: block; font-size: 1rem; margin-bottom: 4px; }
.steps span { font-size: .87rem; color: var(--muted); }
.grid-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.guide-card h3 { font-size: 1.05rem; font-weight: 900; }
.guide-card p { font-size: .88rem; color: var(--muted); }
.guide-card .more { margin-top: auto; font-size: .84rem; font-weight: 800; color: var(--sun-deep); }
.tag { align-self: flex-start; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #FFEBCB; color: #8A5510; }
.tag.k { background: #E7F4EC; color: #276341; }

/* ---------------- 内容页 ---------------- */
.page-head { padding: 26px 0 8px; }
.crumb { display: flex; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.crumb a { font-weight: 700; }
.page-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); font-weight: 900; }
.page-head .sub { color: var(--muted); margin-top: 10px; max-width: 62ch; }
.prose { margin-top: 34px; }
.prose.narrow { max-width: 760px; }
.prose h2 { font-size: 1.4rem; font-weight: 900; margin: 26px 0 10px; }
.prose h3 { font-size: 1.08rem; font-weight: 900; margin: 20px 0 8px; }
.prose p { margin: 10px 0; color: #4E463D; }
.prose ul { margin: 12px 0; display: grid; gap: 8px; }
.prose ul li { padding-left: 20px; position: relative; color: #4E463D; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 3px; background: var(--sun); }

/* ---------------- 预览 / 制作器 ---------------- */
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(320px, .9fr); gap: 24px; align-items: start; margin-top: 18px; }
.preview-pane { min-width: 0; }
.paper-wrap { margin: 0; }
.paper {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 16px 38px rgba(120, 88, 38, .18), 0 2px 0 #EBD9BC;
}
.paper svg { display: block; width: 100%; height: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.pager span { font-weight: 800; font-size: .9rem; min-width: 70px; text-align: center; }

.opts-col { position: sticky; top: 84px; min-width: 0; }
.opts { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.opt-block { display: flex; flex-direction: column; gap: 7px; }
.opt-h { font-size: .74rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.opt-l { font-size: .82rem; font-weight: 800; color: #5B5247; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .84rem; font-weight: 700; color: #5B5247; }
.opt-row .ym { display: flex; gap: 6px; }
.input, .select {
  width: 100%; border: 2px solid var(--line-strong); background: #fff;
  border-radius: 12px; padding: 9px 11px; font: 600 .9rem var(--font); color: var(--ink);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%232A251F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.opt-row .select { width: auto; min-width: 108px; }
.seg { display: inline-flex; gap: 4px; background: var(--cream-2); padding: 4px; border-radius: 999px; border: 2px solid var(--line); flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; border-radius: 999px;
  padding: 7px 13px; font: 800 .82rem var(--font); color: #5C5347; cursor: pointer;
  white-space: nowrap;
}
.seg button.on { background: var(--ink); color: #FFF6E6; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button {
  border: 2px solid var(--line-strong); background: #fff; border-radius: 999px;
  padding: 7px 13px; font: 800 .82rem var(--font); color: #4E463D; cursor: pointer;
}
.pills button.on { border-color: var(--sun); background: #FFF2D9; color: #7A4A05; }
.swatches { display: flex; gap: 8px; }
.swatches button {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--line-strong);
}
.swatches button.on { box-shadow: 0 0 0 3px var(--ink); }
.toggles { display: grid; gap: 4px; }
.tog {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: transparent; border: 0; padding: 7px 0; cursor: pointer;
  font: 700 .88rem var(--font); color: #4E463D;
}
.track { width: 42px; height: 24px; border-radius: 999px; background: #E8DCC8; position: relative; transition: background .15s; flex: none; }
.knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tog[aria-checked="true"] .track { background: var(--sun); }
.tog[aria-checked="true"] .knob { left: 21px; }
.actions { display: grid; gap: 8px; }
.actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.file-meta { font-size: .76rem; color: var(--muted); text-align: center; }
.linkbtn { background: none; border: 0; padding: 0; font: 700 .84rem var(--font); color: var(--sun-deep); text-decoration: underline; cursor: pointer; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: transparent; width: 32px; height: 32px; font-size: 1.05rem; cursor: pointer; }
.stepper b { min-width: 46px; text-align: center; font-size: .9rem; }

/* 事件面板 */
.ev-panel { margin-top: 20px; }
.ev-head { padding: 16px 18px 0; }
.ev-head h2 { font-size: 1.1rem; font-weight: 900; }
.ev-head p { font-size: .86rem; color: var(--muted); margin-top: 4px; }
.ev-form { padding: 14px 18px 18px; display: grid; gap: 10px; }
.ev-mode { font-size: .78rem; font-weight: 800; color: var(--sun-deep); }
.ev-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.range-fields { display: grid; gap: 8px; }
.range-row { display: grid; grid-template-columns: 3.4em 1fr 5.4em; gap: 8px; align-items: center; }
.range-l { font-size: .74rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ev-f { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.ev-f.grow { flex: 1 1 180px; }
.ev-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ev-chk { font-size: .84rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.ev-btns { display: flex; gap: 6px; margin-left: auto; }
.ev-del { color: #A6322C; border-color: #E9BDB9; }
.ev-status { font-size: .8rem; color: var(--leaf); min-height: 1em; }
.ev-list-h { padding: 0 18px; font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ev-list { padding: 6px 18px 0; display: grid; gap: 4px; max-height: 190px; overflow: auto; }
.ev-list li { display: flex; align-items: center; gap: 8px; font-size: .86rem; padding: 5px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.ev-list li b { width: 26px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--cream-2); font-size: .78rem; flex: none; }
.ev-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-list li i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ev-list li .ev-del {
  flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--paper); color: var(--muted); font: 900 1rem/1 var(--font); cursor: pointer;
}
.ev-list li .ev-del:hover { border-color: #C4443F; color: #C4443F; background: #FFF2F1; }
.cd-chip {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--cream-2); color: var(--sun-deep); font-style: normal;
  font-weight: 800; font-size: .7rem; white-space: nowrap;
}
.cd-chip.past { color: var(--muted); background: transparent; padding: 0; font-weight: 600; }
.range-fields + .opt-l { display: block; margin-top: 10px; }
.ev-more { padding: 8px 18px 0; font-size: .8rem; color: var(--sun-deep); }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 18px 16px; font-size: .78rem; color: var(--muted); }
.calendar-notice { font-size: .8rem; color: var(--sun-deep); font-weight: 700; }

/* ---------------- 侧栏/索引 ---------------- */
.idx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.idx-grid a { padding: 12px 14px; font-weight: 800; font-size: .92rem; display: flex; align-items: center; justify-content: space-between; }
.idx-grid a span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.tpl-box { overflow: hidden; }
.tpl-box .thumb { background: #F7EFE1; padding: 18px 18px 0; display: block; }
.tpl-box .info { padding: 14px 16px 16px; }
.tpl-box h3 { font-size: 1.04rem; font-weight: 900; }
.tpl-box p { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.tpl-box .row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* 语言/年份索引条 */
.lang-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lang-links a { font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); }
.lang-links a.on { background: var(--ink); color: #FFF6E6; border-color: var(--ink); }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.faq summary { font-weight: 900; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); font-size: .92rem; }

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 72px; border-top: 2px solid var(--line); background: #FFF4E2; }
.ft-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0 26px; }
.ft-links h2 { font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-deep); margin-bottom: 10px; }
.ft-links a { display: block; font-size: .88rem; color: #5A5045; padding: 3px 0; font-weight: 600; }
.ft-links a:hover { color: var(--ink); text-decoration: underline; }
.ft { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 0 26px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.ft-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.ft-nav a { font-weight: 700; }

/* ---------------- 打印 ---------------- */
#print-root { display: none; }
@media print {
  body { background: #fff; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .print-page { page-break-after: always; break-after: page; }
  #print-root .print-page:last-child { page-break-after: auto; }
  #print-root svg { display: block; width: 100%; height: auto; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .hero-sheets { min-height: 400px; max-width: 520px; width: 100%; margin-inline: auto; }
  .types, .grid-pop { grid-template-columns: repeat(2, 1fr); }
  .grid-glance { grid-template-columns: repeat(3, 1fr); }
  .idx-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-grid { grid-template-columns: 1fr; }
  .opts-col { position: static; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
  .main-nav {
    display: none; width: 100%; flex-wrap: wrap; gap: 4px;
    padding: 0 0 12px; margin: 0;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .region { order: 3; margin-left: 0; }
  .hd { flex-wrap: wrap; }
  .hd .region { width: 100%; justify-content: flex-end; padding-bottom: 8px; }
  .ft-links { grid-template-columns: repeat(2, 1fr); }
  .fmt-links, .steps, .grid-guides { grid-template-columns: 1fr; }
  .sec { margin-top: 44px; }
  .ny-banner { gap: 14px; }
  .ny-year { font-size: 2rem; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  body { font-size: 15px; }
  .hero h1 { font-size: clamp(1.95rem, 8.4vw, 2.5rem); }
  .lead { font-size: .98rem; }
  .hero-sheets { min-height: 330px; }
  .sheet { width: 84%; }
  .types, .grid-pop, .grid-glance, .idx-grid, .tpl-grid { grid-template-columns: 1fr; }
  .grid-glance { gap: 10px; }
  .glance-month { padding: 12px; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { width: 100%; }
  .cta-more { gap: 10px 14px; }
  .sec-head { align-items: flex-start; }
  .opts { padding: 14px; }
  .opt-row { flex-wrap: wrap; }
  .ev-btns { margin-left: 0; width: 100%; }
  .ev-btns .btn { flex: 1; }
  .ft-links { grid-template-columns: 1fr 1fr; gap: 18px; }
  .tbl { font-size: .84rem; }
  .tbl th, .tbl td { padding: 7px 6px; }
  .home-hol { padding: 16px; }
  .paper { border-radius: 6px; }
  .pager { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
