/* ============================================================
   电商营销日历 —— 样式
   ============================================================ */
:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #e5e9f2;
  --primary: #6366f1;
  --primary-deep: #4f46e5;
  --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #d946ef 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.16);
  --radius: 18px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

/* 关键：防止自定义 display 覆盖 hidden 属性，否则弹窗无法隐藏 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景装饰光斑 ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.b1 { width: 480px; height: 480px; background: #c7d2fe; top: -160px; left: -120px; }
.b2 { width: 420px; height: 420px; background: #fbcfe8; top: 30%; right: -140px; }
.b3 { width: 380px; height: 380px; background: #99f6e4; bottom: -140px; left: 30%; opacity: 0.35; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 233, 242, 0.9);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.55);
}
.brand-text h1 {
  font-size: 20px; font-weight: 700; letter-spacing: 0.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-text p { font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing: 1px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.view-switch {
  display: flex; background: #eef0f7; border-radius: 11px; padding: 3px;
}
.seg-btn {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: all 0.2s ease; font-family: var(--font);
}
.seg-btn.active { background: #fff; color: var(--primary-deep); box-shadow: var(--shadow-sm); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: 9px 16px; border-radius: 11px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: var(--font);
  transition: all 0.2s ease; white-space: nowrap;
}
.btn:hover { border-color: #c7cdfa; color: var(--primary-deep); transform: translateY(-1px); }
.btn.primary {
  background: var(--grad); border: 0; color: #fff;
  box-shadow: 0 6px 16px -8px rgba(99, 102, 241, 0.65);
}
.btn.primary:hover { filter: brightness(1.06); color: #fff; }
.btn.small { padding: 7px 13px; font-size: 12.5px; }
.btn.tiny { padding: 5px 11px; font-size: 12px; border-radius: 9px; }
.btn.danger { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.btn.danger:hover { background: #fecaca; color: #b91c1c; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: all 0.2s ease;
}
.icon-btn:hover { color: var(--primary-deep); border-color: #c7cdfa; transform: translateY(-1px); }

/* ---------- 容器 ---------- */
.container {
  max-width: 1240px; margin: 0 auto; padding: 26px clamp(14px, 3vw, 32px) 48px;
  display: flex; flex-direction: column; gap: 20px;
}
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(229, 233, 242, 0.8);
  box-shadow: var(--shadow); padding: 22px;
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 倒计时横幅 ---------- */
.countdown {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  background: var(--grad); border-radius: var(--radius);
  padding: 22px 30px; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(124, 58, 237, 0.55);
  animation: fadeUp 0.5s ease both;
  flex-wrap: wrap;
}
.countdown::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 160px at 85% -30%, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.cd-block { min-width: 150px; }
.cd-label { font-size: 12px; opacity: 0.85; letter-spacing: 2px; }
.cd-name { font-size: 22px; font-weight: 800; margin-top: 5px; letter-spacing: 1px; }
.cd-date { font-size: 12.5px; opacity: 0.9; margin-top: 4px; }
.cd-timer { display: flex; gap: 8px; position: relative; z-index: 1; }
.cd-unit {
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  border-radius: 12px; padding: 8px 12px; text-align: center; min-width: 62px;
}
.cd-unit b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-unit span { font-size: 11px; opacity: 0.85; }
.cd-divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, 0.25); }

/* ---------- 统计卡 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(229, 233, 242, 0.8); box-shadow: var(--shadow);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  animation: fadeUp 0.5s ease both; transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card > div:last-child { display: flex; flex-direction: column; }
.stat-card b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-card span { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stat-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  flex-shrink: 0;
}
.i-indigo { background: #eef0ff; color: #6366f1; }
.i-rose { background: #ffeef1; color: #f43f5e; }
.i-violet { background: #f5f0ff; color: #8b5cf6; }
.i-teal { background: #e7fbf7; color: #14b8a6; }

/* ---------- 筛选 ---------- */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cat-pills { display: flex; gap: 9px; flex-wrap: wrap; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; font-family: var(--font);
}
.cat-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.cat-pill .cnt { background: #f1f3f9; border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.cat-pill.active { color: #fff; border-color: transparent; }
.cat-pill.active .cnt { background: rgba(255, 255, 255, 0.25); color: #fff; }
.cat-pill:not(.active):hover { border-color: #c7cdfa; color: var(--text); transform: translateY(-1px); }

.search-box {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: #fff; border-radius: 11px;
  padding: 8px 13px; color: var(--faint); min-width: 230px;
  transition: border-color 0.2s ease;
}
.search-box:focus-within { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); }
.search-box input { border: 0; outline: 0; font-size: 13px; font-family: var(--font); flex: 1; background: transparent; color: var(--text); }

/* ---------- 主体布局 ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

/* ---------- 日历卡片 ---------- */
.calendar-card { padding: 20px; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-title { font-size: 19px; font-weight: 800; min-width: 128px; text-align: center; letter-spacing: 1px; }
.year-select select {
  border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px;
  font-size: 13.5px; font-weight: 700; color: var(--primary-deep);
  background: #f5f5ff; outline: none; cursor: pointer; font-family: var(--font);
}

.weekday-row { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.weekday-row span { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 6px 0; letter-spacing: 2px; }
.weekday-row .weekend { color: #fb7185; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-cell {
  background: #fafbfe; border: 1px solid #eef1f7; border-radius: 13px;
  min-height: 104px; padding: 8px 8px 7px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: all 0.18s ease; position: relative; overflow: hidden;
}
.cal-cell:hover { border-color: #c7cdfa; background: #fff; box-shadow: 0 8px 18px -10px rgba(99, 102, 241, 0.35); transform: translateY(-2px); }
.cal-cell.dim { opacity: 0.42; background: transparent; }
.cal-cell.dim:hover { opacity: 0.75; }
.cal-cell.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16); }
.day-num { font-size: 13.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.day-num.weekend { color: #fb7185; }
.cal-cell.today .day-num {
  background: var(--grad); color: #fff; width: 26px; height: 26px;
  border-radius: 9px; display: grid; place-items: center; margin: -4px 0 0 -4px;
  box-shadow: 0 4px 10px -3px rgba(99, 102, 241, 0.6);
}
.cal-cell.today::after {
  content: "今天"; position: absolute; top: 9px; right: 9px;
  font-size: 10px; font-weight: 700; color: var(--primary-deep);
  background: #eef0ff; padding: 2px 7px; border-radius: 999px;
}

.chip-stack { display: flex; flex-direction: column; gap: 3px; }
.chip {
  font-size: 11px; font-weight: 600; line-height: 1.35;
  padding: 2.5px 8px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; transition: filter 0.15s ease;
}
.chip:hover { filter: brightness(0.92); }
.chip.more { background: #eef0f7 !important; color: var(--muted) !important; text-align: center; }

/* ---------- 年视图 ---------- */
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mini-month {
  border: 1px solid #eef1f7; border-radius: 14px; padding: 12px;
  background: #fafbfe; transition: all 0.18s ease; cursor: pointer;
}
.mini-month:hover { border-color: #c7cdfa; background: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.mini-month h4 { font-size: 14px; font-weight: 800; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.mini-month h4 .mm-cnt { font-size: 10.5px; font-weight: 700; color: var(--primary-deep); background: #eef0ff; padding: 1px 8px; border-radius: 999px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-grid .mw { text-align: center; font-size: 9.5px; color: var(--faint); font-weight: 600; padding: 2px 0; }
.mini-day {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text); border-radius: 7px; font-weight: 500;
  position: relative; font-variant-numeric: tabular-nums;
}
.mini-day.dim { color: #d3d9e4; }
.mini-day.weekend:not(.dim) { color: #fb7185; }
.mini-day.today { background: var(--grad); color: #fff; font-weight: 800; }
.mini-day .md-dots { display: flex; gap: 2px; position: absolute; bottom: 2px; }
.mini-day .md-dots i { width: 4px; height: 4px; border-radius: 50%; }
.mini-day.has-event:not(.today) { background: #f1f3fb; font-weight: 700; }

/* ---------- 右侧面板 ---------- */
.events-panel { padding: 20px; position: sticky; top: 84px; max-height: calc(100vh - 104px); display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h3 { font-size: 16px; font-weight: 800; }
.muted-hint { font-size: 12px; color: var(--faint); }

.selected-day-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #eef0ff; color: var(--primary-deep); font-size: 12.5px; font-weight: 700;
  border-radius: 10px; padding: 7px 12px; margin-bottom: 10px;
}
.clear-sel { border: 0; background: transparent; color: var(--primary-deep); cursor: pointer; display: grid; place-items: center; padding: 2px; }

.event-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding-right: 4px; flex: 1; }
.event-list::-webkit-scrollbar { width: 6px; }
.event-list::-webkit-scrollbar-thumb { background: #dfe3ee; border-radius: 999px; }

.event-item {
  border: 1px solid #eef1f7; border-radius: 14px; padding: 12px 13px;
  cursor: pointer; transition: all 0.18s ease; background: #fff;
  display: flex; gap: 12px; animation: fadeUp 0.35s ease both;
}
.event-item:hover { border-color: #c7cdfa; transform: translateY(-2px); box-shadow: var(--shadow); }
.ev-date {
  flex-shrink: 0; width: 46px; height: 52px; border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-variant-numeric: tabular-nums;
}
.ev-date b { font-size: 19px; font-weight: 800; line-height: 1; }
.ev-date span { font-size: 10px; opacity: 0.9; margin-top: 3px; }
.ev-main { flex: 1; min-width: 0; }
.ev-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ev-title { font-size: 14px; font-weight: 700; }
.ev-tag { font-size: 10.5px; font-weight: 700; padding: 1.5px 8px; border-radius: 999px; }
.ev-range { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ev-desc {
  font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-heat { display: flex; gap: 3px; margin-top: 6px; align-items: center; }
.ev-heat i { width: 6px; height: 6px; border-radius: 50%; background: #e3e7f1; }
.ev-heat i.on { background: #fb923c; }
.ev-heat em { font-style: normal; font-size: 10.5px; color: var(--faint); margin-left: 3px; }
.ev-togo { font-size: 10.5px; font-weight: 700; color: #0d9488; background: #e7fbf7; border-radius: 999px; padding: 1px 8px; }
.ev-togo.past { color: #94a3b8; background: #f1f3f9; }

.empty { text-align: center; color: var(--faint); font-size: 13px; padding: 36px 0; }

/* ---------- 节奏图 ---------- */
.rhythm-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.rhythm-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; height: 100%; justify-content: flex-end; }
.rhythm-col .bar {
  width: 100%; max-width: 44px; border-radius: 9px 9px 5px 5px;
  background: linear-gradient(180deg, #a5b4fc 0%, #6366f1 100%);
  min-height: 6px; transition: all 0.2s ease; position: relative;
}
.rhythm-col:hover .bar { background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 100%); transform: scaleY(1.04); transform-origin: bottom; }
.rhythm-col.cur .bar { background: linear-gradient(180deg, #fda4af 0%, #f43f5e 100%); }
.rhythm-col .bar b {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; font-weight: 800; color: var(--primary-deep); font-variant-numeric: tabular-nums;
}
.rhythm-col span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ---------- API 卡片 ---------- */
.api-list { display: flex; flex-direction: column; gap: 8px; }
.api-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fafbfe; border: 1px solid #eef1f7; border-radius: 11px;
  padding: 9px 14px; font-size: 13px;
}
.method { font-size: 10.5px; font-weight: 800; padding: 2.5px 9px; border-radius: 7px; letter-spacing: 0.5px; flex-shrink: 0; }
.m-get { background: #dcfce7; color: #15803d; }
.m-post { background: #dbeafe; color: #1d4ed8; }
.m-put { background: #fef3c7; color: #b45309; }
.m-del { background: #fee2e2; color: #b91c1c; }
.api-row code { font-family: "JetBrains Mono", Consolas, monospace; font-weight: 700; color: var(--text); }
.api-row em { font-style: normal; color: var(--faint); font-size: 12px; }

.page-footer { text-align: center; font-size: 12px; color: var(--faint); padding: 8px 0 2px; letter-spacing: 1px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 18px;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 22px; width: min(560px, 100%);
  max-height: 88vh; overflow-y: auto; padding: 28px; position: relative;
  animation: popIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.4);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.94) translateY(12px); } to { opacity: 1; transform: none; } }
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-thumb { background: #dfe3ee; border-radius: 999px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 10px; border: 1px solid var(--border); background: #fff;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: all 0.15s ease;
}
.modal-close:hover { color: #dc2626; border-color: #fecaca; }

/* 详情弹窗 */
.d-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; padding-right: 40px; }
.d-head h3 { font-size: 21px; font-weight: 800; }
.d-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 14px; font-size: 12.5px; color: var(--muted); }
.d-meta b { color: var(--text); }
.d-desc { font-size: 13.5px; line-height: 1.7; color: #475569; background: #f8f9fd; border-radius: 12px; padding: 13px 15px; }
.d-tips { margin-top: 14px; }
.d-tips h4 { font-size: 13px; font-weight: 800; margin-bottom: 9px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.d-tips ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.d-tips li { font-size: 12.5px; color: #475569; display: flex; gap: 8px; align-items: flex-start; line-height: 1.55; }
.d-tips li::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: #e7fbf7 center/9px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.d-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.d-countdown { font-size: 12px; font-weight: 700; color: #0d9488; background: #e7fbf7; border-radius: 999px; padding: 3px 11px; }

/* 表单弹窗 */
.form-title { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.event-form { display: flex; flex-direction: column; gap: 13px; }
.event-form label { font-size: 12.5px; font-weight: 700; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.event-form label i { color: #f43f5e; font-style: normal; }
.event-form input, .event-form select, .event-form textarea {
  border: 1px solid var(--border); border-radius: 11px; padding: 9px 12px;
  font-size: 13px; font-family: var(--font); color: var(--text); outline: none;
  background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease; width: 100%;
}
.event-form textarea { resize: vertical; line-height: 1.6; }
.event-form input:focus, .event-form select:focus, .event-form textarea:focus {
  border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.13);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: 11px 22px; border-radius: 13px;
  font-size: 13.5px; font-weight: 600; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.35);
  animation: toastIn 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast.ok { background: linear-gradient(120deg, #059669, #10b981); }
.toast.err { background: linear-gradient(120deg, #dc2626, #f43f5e); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .events-panel { position: static; max-height: none; }
  .year-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cal-cell { min-height: 66px; padding: 5px 4px; border-radius: 9px; }
  .chip { font-size: 9.5px; padding: 2px 5px; }
  .cal-cell.today .day-num { width: 22px; height: 22px; }
  .cal-cell.today::after { display: none; }
  .year-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .countdown { flex-direction: column; align-items: flex-start; }
  .cd-divider { display: none; width: 100%; height: 1px; }
  .form-row { grid-template-columns: 1fr; }
  .brand-text p { display: none; }
  .rhythm-chart { gap: 5px; }
  .rhythm-col .bar b { font-size: 10px; }
}
