:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --surface-soft: #f8f8fa;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #8d8d92;
  --line: rgba(0, 0, 0, 0.085);
  --line-strong: rgba(0, 0, 0, 0.13);
  --blue: #0071e3;
  --blue-soft: #eaf3ff;
  --green: #147d3f;
  --green-soft: #e9f7ee;
  --red: #b83a31;
  --red-soft: #fff0ee;
  --orange: #9a5b00;
  --orange-soft: #fff4e6;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.075);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1520px) / 2));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(245, 245, 247, 0.84);
  backdrop-filter: saturate(180%) blur(24px);
}

.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--text);
  font-size: 16px;
  font-weight: 750;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28);
}
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 14px; letter-spacing: .01em; }
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.header-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.save-status { display: flex; align-items: center; gap: 8px; }
.save-status i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, .12); }

main { overflow: clip; }
.hero, .workspace, footer { width: min(1520px, calc(100% - 48px)); margin-inline: auto; }
.hero { padding: 84px 0 72px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hero h1 { max-width: 980px; margin: 0; font-size: clamp(48px, 5.9vw, 88px); line-height: 1; letter-spacing: -.055em; }
.hero-description { max-width: 780px; margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.58; letter-spacing: -.01em; }

.summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; margin-top: 48px; }
.summary-card { min-height: 150px; padding: 21px; border: 1px solid rgba(0, 0, 0, .055); border-radius: 20px; background: rgba(255, 255, 255, .72); }
.summary-card span, .summary-card small { display: block; color: var(--muted); }
.summary-card span { font-size: 12px; font-weight: 600; }
.summary-card strong { display: block; margin: 14px 0 5px; font-size: 42px; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.summary-card small { font-size: 11px; }
.summary-card--blue { background: var(--blue-soft); }
.summary-card--blue strong { color: var(--blue); }
.summary-card--green { background: var(--green-soft); }
.summary-card--green strong { color: var(--green); }

.workspace { padding: 48px 0 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.045em; }
.export-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 17px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); cursor: pointer; font-size: 13px; font-weight: 650; box-shadow: 0 8px 22px rgba(0, 113, 227, .18); }
.export-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.export-button:hover:not(:disabled) { background: #0068d1; }
.export-button:disabled { color: var(--muted-2); background: #e7e7ea; box-shadow: none; cursor: not-allowed; }

.toolbar {
  position: sticky;
  top: 84px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background: rgba(235, 235, 239, .83);
  backdrop-filter: saturate(180%) blur(25px);
  box-shadow: 0 13px 38px rgba(0, 0, 0, .055);
}

.search-box { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 13px; border: 1px solid transparent; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: rgba(0, 113, 227, .42); box-shadow: 0 0 0 4px rgba(0, 113, 227, .1); }
.search-box svg { flex: 0 0 auto; width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-box input::placeholder { color: #909095; }
.search-box kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); background: #f8f8fa; font-size: 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }

.filter-group { display: flex; align-items: center; gap: 3px; }
.filter-button { min-height: 41px; padding: 0 12px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
.filter-button:hover { color: var(--text); background: rgba(255, 255, 255, .65); }
.filter-button.is-active { color: var(--text); background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.sort-box { display: flex; align-items: center; gap: 7px; min-height: 41px; padding: 0 10px 0 12px; border-radius: 10px; color: var(--muted); background: #fff; font-size: 11px; }
.sort-box select { max-width: 105px; border: 0; outline: 0; color: var(--text); background: transparent; cursor: pointer; }

.result-row { display: flex; justify-content: space-between; gap: 24px; margin: 14px 4px 25px; color: var(--muted); font-size: 11px; }
.result-row p { margin: 0; }

.product-modules { display: grid; gap: 24px; }
.product-module { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 2px 2px rgba(0, 0, 0, .02); }
.module-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 17px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.module-index { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: #fff; background: var(--text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.module-title .eyebrow { margin: 1px 0 7px; }
.module-title h3 { margin: 0; font-size: 21px; line-height: 1.35; letter-spacing: -.025em; }
.module-actions { display: flex; align-items: center; gap: 8px; }
.module-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #fff; cursor: pointer; font-size: 11px; font-weight: 600; }
.module-button:hover { border-color: var(--line-strong); background: #f8f8fa; }

.module-meta { display: grid; grid-template-columns: 1fr 1.3fr .55fr .7fr .75fr .75fr .85fr .55fr .75fr; gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.meta-item { min-width: 0; padding: 15px 26px; background: #fafafa; }
.meta-item span, .meta-item strong { display: block; }
.meta-item span { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.meta-item strong { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.meta-item small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; font-weight: 500; }
.module-meta .op-tag { display: inline-block; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.op-tag--low { color: var(--orange); background: var(--orange-soft); }
.op-tag--stable { color: var(--green); background: var(--green-soft); }
.op-tag--static { color: var(--red); background: var(--red-soft); }
.op-tag--invalid { color: #56565b; background: #e8e8ed; }
.module-creatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; padding: 20px; }

.creative-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.creative-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 38px rgba(0, 0, 0, .075); }
.creative-visual { position: relative; overflow: hidden; aspect-ratio: 1; background: #f1f1f3; }
.creative-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.creative-card:hover .creative-visual img { transform: scale(1.015); }
.asset-label { position: absolute; top: 11px; left: 11px; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px; color: #fff; background: rgba(29, 29, 31, .74); backdrop-filter: blur(14px); font-size: 10px; font-weight: 700; }
.result-badge { position: absolute; top: 11px; right: 11px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; backdrop-filter: blur(14px); }
.result-badge--baseline { color: #404044; background: rgba(255, 255, 255, .82); }
.result-badge--improved {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .72);
  background: #ff3b30;
  box-shadow: 0 6px 18px rgba(255, 59, 48, .42);
  font-weight: 800;
}
.result-badge--watch { color: #fff; background: rgba(154, 91, 0, .88); }
.result-badge--missing { color: #56565b; background: rgba(255, 255, 255, .84); }
.best-ribbon { position: absolute; left: 11px; bottom: 11px; padding: 6px 9px; border-radius: 9px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 113, 227, .24); }

.creative-body { padding: 15px; }
.metric-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.metric-title strong { font-size: 16px; letter-spacing: -.02em; }
.metric-title span { color: var(--muted); font-size: 10px; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.data-cell { min-width: 0; padding: 10px; border-radius: 11px; background: #f6f6f8; }
.data-cell span, .data-cell strong { display: block; }
.data-cell span { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.data-cell strong { overflow: hidden; font-size: 13px; line-height: 1.15; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-cell--wide { grid-column: 1 / -1; }
.data-cell--wide strong { font-size: 13px; white-space: nowrap; overflow: visible; text-overflow: clip; }
.data-cell.is-positive { background: var(--green-soft); }
.data-cell.is-positive strong { color: var(--green); }
.data-cell.is-negative { background: var(--red-soft); }
.data-cell.is-negative strong { color: var(--red); }
.data-cell.is-missing strong { color: var(--muted-2); }

.claim-box { margin-top: 13px; padding: 12px; border: 1px solid rgba(0, 113, 227, .18); border-radius: 13px; background: #f7faff; }
.claim-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--blue); font-size: 10px; font-weight: 700; }
.claim-label span:last-child { color: var(--muted); font-weight: 500; }
.claim-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.claim-input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; color: var(--text); background: #fff; font-size: 12px; }
.claim-input:focus { border-color: rgba(0, 113, 227, .52); box-shadow: 0 0 0 3px rgba(0, 113, 227, .1); }
.claim-submit { min-width: 54px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); cursor: pointer; font-size: 11px; font-weight: 700; }
.claim-submit:hover { background: #0068d1; }
.claim-edit-cancel { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }

.claim-box.is-claimed { border-color: rgba(20, 125, 63, .18); background: var(--green-soft); }
.claimed-designer { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.designer-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--green); font-size: 13px; font-weight: 750; }
.designer-copy { min-width: 0; }
.designer-copy span, .designer-copy strong { display: block; }
.designer-copy span { margin-bottom: 2px; color: var(--green); font-size: 9px; font-weight: 650; }
.designer-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.claim-actions { display: flex; gap: 4px; }
.claim-actions button { padding: 6px 7px; border: 0; border-radius: 7px; color: var(--muted); background: rgba(255, 255, 255, .74); cursor: pointer; font-size: 9px; }
.claim-actions button:hover { color: var(--text); background: #fff; }

.empty-state { padding: 100px 24px; text-align: center; }
.empty-state span { display: block; color: #b2b2b7; font-size: 56px; }
.empty-state h3 { margin: 12px 0 5px; }
.empty-state p { margin: 0; color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 36px; padding: 25px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
footer p { margin: 0; }
footer p:last-child { max-width: 680px; text-align: right; }

.screenshot-dialog { width: min(1500px, calc(100vw - 36px)); max-width: none; max-height: calc(100vh - 36px); padding: 0; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 30px 100px rgba(0, 0, 0, .28); }
.screenshot-dialog::backdrop { background: rgba(0, 0, 0, .44); backdrop-filter: blur(14px); }
.dialog-shell { display: flex; min-height: min(860px, calc(100vh - 36px)); flex-direction: column; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 25px 18px; border-bottom: 1px solid var(--line); }
.dialog-header .eyebrow { margin-bottom: 6px; }
.dialog-header h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; color: var(--text); background: #ededf0; cursor: pointer; font-size: 24px; font-weight: 300; line-height: 1; }
.screenshot-stage { display: grid; min-height: 0; flex: 1; overflow: auto; place-items: center; padding: 20px; background: #ededf0; cursor: zoom-in; }
.screenshot-stage img { display: block; width: 100%; height: auto; border-radius: 11px; box-shadow: 0 4px 24px rgba(0, 0, 0, .08); }
.screenshot-stage.is-zoomed { place-items: start; cursor: zoom-out; }
.screenshot-stage.is-zoomed img { width: 1782px; max-width: none; }
.dialog-footer { display: flex; justify-content: space-between; gap: 20px; padding: 14px 25px; color: var(--muted); font-size: 11px; }
.dialog-footer a { color: var(--blue); text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 999px; color: #fff; background: rgba(29, 29, 31, .9); box-shadow: 0 12px 34px rgba(0, 0, 0, .22); opacity: 0; pointer-events: none; font-size: 12px; transition: opacity .2s, transform .2s; backdrop-filter: blur(18px); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
body.dialog-open { overflow: hidden; }

@media (max-width: 1160px) {
  .toolbar { grid-template-columns: 1fr auto; }
  .search-box { grid-column: 1 / -1; }
  .module-meta { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .module-creatives { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { height: 64px; padding-inline: 16px; }
  .brand-copy small, .save-status { display: none; }
  .hero, .workspace, footer { width: min(100% - 28px, 1520px); }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 44px; }
  .hero-description { font-size: 16px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 35px; }
  .summary-card { min-height: 124px; padding: 16px; border-radius: 16px; }
  .summary-card strong { font-size: 34px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 34px; }
  .export-button { padding-inline: 12px; }
  .toolbar { top: 75px; display: flex; overflow-x: auto; padding: 9px; }
  .search-box { min-width: 290px; }
  .search-box kbd { display: none; }
  .filter-group, .sort-box { flex: 0 0 auto; }
  .result-row { display: block; }
  .result-row p:last-child { margin-top: 5px; }
  .module-header { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .module-actions { grid-column: 1 / -1; }
  .module-title h3 { font-size: 18px; }
  .module-meta { grid-template-columns: 1fr 1fr; }
  .meta-item { padding: 12px 18px; }
  .module-creatives { grid-template-columns: 1fr 1fr; gap: 9px; padding: 10px; }
  .creative-card { border-radius: 16px; }
  .creative-body { padding: 10px; }
  .data-grid { grid-template-columns: 1fr; }
  .data-cell { padding: 8px; }
  .claimed-designer { grid-template-columns: 30px minmax(0, 1fr); }
  .designer-avatar { width: 30px; height: 30px; }
  .claim-actions { grid-column: 1 / -1; }
  footer { display: block; }
  footer p:last-child { margin-top: 7px; text-align: left; }
  .screenshot-dialog { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .dialog-shell { min-height: 100vh; }
}

@media (max-width: 480px) {
  .module-creatives { grid-template-columns: 1fr; }
  .creative-card { display: grid; grid-template-columns: 44% 56%; }
  .creative-visual { height: 100%; min-height: 240px; }
  .creative-body { display: flex; flex-direction: column; }
  .claim-box { margin-top: auto; }
}

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

/* === 悬浮日期选择器 === */
.date-fab {
  position: fixed;
  right: 24px;
  top: 88px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.date-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.95);
}
.date-fab:active { transform: translateY(0); }
.date-fab svg { width: 18px; height: 18px; color: #0071e3; }
.date-fab span { font-variant-numeric: tabular-nums; }

.date-picker-panel {
  position: fixed;
  right: 24px;
  top: 140px;
  z-index: 1000;
  width: 300px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  padding: 16px;
  animation: datePanelIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes datePanelIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.date-picker-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
}
.date-nav-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  font-size: 18px;
  color: #1d1d1f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.date-nav-btn:hover { background: rgba(0,0,0,0.1); }

.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.date-picker-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #86868b;
  padding: 4px 0;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.date-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 50%;
  cursor: default;
  color: #1d1d1f;
  transition: all 0.15s;
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
}
.date-cell.other-month { color: #c7c7cc; }
.date-cell.available { cursor: pointer; }
.date-cell.available:hover { background: rgba(0,113,227,0.1); }
.date-cell.selected {
  background: #0071e3;
  color: #fff;
  font-weight: 600;
}
.date-cell.selected:hover { background: #0077ed; }
.date-cell.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0071e3;
}
.date-cell.selected.today::after { background: #fff; }
.date-cell.empty { visibility: hidden; }

.date-picker-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.date-picker-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #86868b;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.legend-dot--available { background: #0071e3; opacity: 0.3; }
.legend-dot--selected { background: #0071e3; }
#datePickerHint {
  font-size: 11px;
  color: #86868b;
}

@media (max-width: 600px) {
  .date-fab { right: 16px; top: 80px; padding: 10px 14px; }
  .date-picker-panel { right: 16px; top: 130px; width: calc(100vw - 32px); max-width: 300px; }
}

/* === 日/周/月模式切换 === */
.date-mode-switch {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 3px;
}
.date-mode-btn {
  flex: 1;
  padding: 6px 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #86868b;
  cursor: pointer;
  transition: all 0.2s;
}
.date-mode-btn:hover { color: #1d1d1f; }
.date-mode-btn.is-active {
  background: #fff;
  color: #1d1d1f;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* 周模式：整周高亮 */
.date-cell.in-week-range {
  background: rgba(0,113,227,0.12);
  border-radius: 0;
}
.date-cell.in-week-range:first-child { border-radius: 50% 0 0 50%; }
.date-cell.in-week-range:last-child { border-radius: 0 50% 50% 0; }
.date-cell.week-start { border-radius: 50% 0 0 50% !important; }
.date-cell.week-end { border-radius: 0 50% 50% 0 !important; }
.date-cell.in-week-range.selected {
  background: #0071e3;
  color: #fff;
}

/* 月模式：月份选择网格 */
.date-picker-month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 0;
}
.month-cell {
  padding: 14px 0;
  border: none;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.month-cell:hover { background: rgba(0,113,227,0.1); }
.month-cell.has-data { position: relative; }
.month-cell.has-data::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0071e3;
}
.month-cell.selected {
  background: #0071e3;
  color: #fff;
  font-weight: 600;
}
.month-cell.selected::after { background: #fff; }
.month-cell.other-year { color: #c7c7cc; }

/* 周模式：所有日期可点击的hover效果 */
.date-cell.clickable { cursor: pointer; }
.date-cell.clickable:hover { background: rgba(0,113,227,0.1); }
.date-cell.in-week-range.clickable:hover { background: rgba(0,113,227,0.2); }

/* === 统计栏5列适配 + 橙色卡片 === */
.summary-card--orange { background: var(--orange-soft); }
.summary-card--orange strong { color: var(--orange); }
.summary-card--purple { background: #f0f0ff; }
.summary-card--purple strong { color: #5e5ce6; }

/* === 时间快捷标签 === */
.time-shortcuts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.time-shortcuts-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.time-tag {
  padding: 7px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s;
}
.time-tag:hover {
  background: rgba(0,113,227,0.08);
  border-color: rgba(0,113,227,0.3);
  color: #0071e3;
}
.time-tag.is-active {
  background: #0071e3;
  border-color: #0071e3;
  color: #fff;
}

/* === 返回顶部按钮 === */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.95);
  color: #0071e3;
}
.back-to-top svg { width: 24px; height: 24px; }

/* === 响应式：统计栏5列适配 === */
@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 35px; }
  .back-to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .back-to-top svg { width: 20px; height: 20px; }
  .time-shortcuts { margin-top: 14px; }
  .time-tag { padding: 6px 12px; font-size: 11px; }
}
