/* Our Times V7 — 克制、通透的设计语言。所有规则都叠加在现有功能样式上。 */
:root {
  --text: #f7f9fb;
  --text2: #abb8c5;
  --pink: #b1cee0;
  --purple: #b1cee0;
  --blue: #b1cee0;
  --cyan: #b1cee0;
  --accent: #b1cee0;
  --accent-soft: rgba(177,206,224,.15);
  --accent-ink: #10202d;
  --bg-0: #090e15;
  --bg-1: #111b25;
  --bg-2: #182532;
  --bg-3: #20303e;
  --surface: var(--bg-1);
  --surface2: var(--bg-2);
  --border: rgba(226,239,247,.12);
  --border-strong: rgba(226,239,247,.22);
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-md: 0 18px 58px rgba(0,0,0,.3);
}
html, body { background: #090e15; letter-spacing: -.01em; }
button, input, select, textarea { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { filter: none !important; }

/* 全站结构：通透导航、分组面板、柔和点击反馈。 */
#top-nav {
  padding: calc(12px + env(safe-area-inset-top)) max(18px, 3vw) 12px;
  background: linear-gradient(180deg, rgba(9,16,24,.9), rgba(9,16,24,.24));
  border-bottom: 1px solid rgba(255,255,255,.045);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}
.nav-brand { gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.brand-icon { color: #d3e6f0; }
#user-name, .nav-notify-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
}
.nav-notify-btn { transition: background .22s ease, border-color .22s ease; }
.nav-notify-btn:hover { transform: none; background: rgba(255,255,255,.13); }
.drawer {
  background: linear-gradient(165deg, rgba(29,43,55,.98), rgba(10,16,24,.98));
  border-right-color: rgba(255,255,255,.11);
  backdrop-filter: blur(40px);
  box-shadow: 18px 0 70px rgba(0,0,0,.28);
}
.drawer-header { padding-top: 30px; padding-bottom: 20px; }
.drawer-logo { font-size: 27px; font-weight: 700; letter-spacing: -.05em; }
.drawer-sub { line-height: 1.6; }
.drawer-menu { gap: 6px; }
.drawer-item { border-radius: 16px; min-height: 52px; transition: background .2s ease, color .2s ease; }
.drawer-item.active { color: #f5fbff; background: rgba(174,210,230,.15); }
.drawer-item:hover { background: rgba(255,255,255,.085); }
#filter-bar {
  bottom: calc(16px + env(safe-area-inset-bottom));
  padding: 5px 7px;
  background: rgba(20,32,44,.85);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 18px 60px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(28px) saturate(155%);
}
.filter-slider { background: rgba(205,229,243,.16); border-color: rgba(205,229,243,.12); box-shadow: inset 0 1px rgba(255,255,255,.12); }
.filter-btn.active { color: #f7fbff; }
.timeline-item, .countdown-card, .letter-card, .letter-item, .modal-content {
  border: 1px solid rgba(227,240,250,.13);
  background: linear-gradient(155deg, rgba(35,50,64,.97), rgba(18,29,41,.95));
  box-shadow: 0 12px 34px rgba(0,0,0,.17), inset 0 1px rgba(255,255,255,.07);
}
.timeline-item, .countdown-card, .letter-card, .letter-item { border-radius: 22px; }
.timeline-item:hover, .countdown-card:hover, .letter-card:hover {
  border-color: rgba(210,233,245,.28);
  box-shadow: 0 18px 46px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.11);
}
.modal-content { border-radius: 28px; backdrop-filter: blur(36px) saturate(125%); }
.modal-header h2 { font-size: clamp(19px, 4vw, 24px); font-weight: 650; letter-spacing: -.035em; }
:is(.form-input, .comment-input input, .upload-form input, .upload-form textarea, .upload-form select) {
  border-radius: 14px;
  border-color: rgba(218,233,242,.15);
  background: rgba(255,255,255,.055);
}
:is(.form-input, .comment-input input, .upload-form input, .upload-form textarea, .upload-form select):focus {
  border-color: rgba(195,224,242,.66);
  box-shadow: 0 0 0 3px rgba(152,196,223,.16);
}
.upload-submit:not(.danger) {
  background: linear-gradient(145deg, #e0ebf2, #a9c7d9);
  color: #132330; border-radius: 14px;
  box-shadow: 0 9px 24px rgba(113,159,190,.16);
}
.upload-submit.secondary { background: rgba(255,255,255,.1); color: #f4f9fd; border: 1px solid rgba(255,255,255,.17); box-shadow: none; }
.notify-toast { background: rgba(32,44,56,.94); border-color: rgba(227,240,250,.18); }
#dashboard-modal .upload-submit.secondary.is-on {
  background: linear-gradient(145deg, #b5d2e4, #7da7c1);
  color: #102431; border-color: rgba(197,228,245,.48); font-weight: 700;
}
#dashboard-modal .upload-submit.secondary:disabled { opacity:.5; }
.dashboard-admin-link {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  text-decoration:none; color:#eff8ff; font-size:14px; font-weight:650;
  background:rgba(181,211,230,.11); border:1px solid rgba(181,211,230,.27);
  border-radius:14px; padding:14px 16px; margin-top:10px;
}
.dashboard-admin-link:hover { background:rgba(181,211,230,.18); }
.dashboard-admin-hint { color:#b4c4d0; font-size:11px; line-height:1.6; margin-top:9px; }
#login-modal .universe { background: radial-gradient(ellipse 85% 65% at 50% 25%, #253a4d, #0b1621 62%, #060b10 100%); }
#login-modal .login-card {
  max-width: 355px; border-radius: 34px;
  background: linear-gradient(145deg, rgba(36,51,66,.83), rgba(12,21,32,.92));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 32px 110px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.14);
}
#login-modal .header h1 { letter-spacing: -.035em; font-size: 27px; font-weight: 700; text-shadow: none; }
#login-modal .role-selector { background: rgba(0,0,0,.22); box-shadow: none; }
#login-modal .role-slider { background: #b2d0e1; box-shadow: 0 3px 12px rgba(0,0,0,.15); }
#login-modal .role-btn.active { color: #12212e; }
#login-modal .input-field { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.16); box-shadow: none; }
#login-modal .input-field:focus { background: rgba(255,255,255,.09); border-color: #c0dbeb; box-shadow: 0 0 0 4px rgba(190,220,239,.15); }
#login-modal .submit-btn { border-radius: 16px; background: linear-gradient(135deg,#e1edf4,#a9c9dd); color: #112533; }

/* 年报：对比鲜明的大字号、纯净的黑蓝灰和有呼吸感的留白。 */
.annual-report {
  color: #f7fbff;
  background:
    radial-gradient(ellipse 70% 50% at 75% 21%, rgba(108,153,184,.29), transparent 74%),
    radial-gradient(ellipse 85% 68% at 8% 90%, rgba(35,73,100,.3), transparent 74%),
    linear-gradient(145deg, #142331, #080e16 72%);
}
.annual-report::before, .annual-report::after, .annual-report .vline, .report-card::before { display: none; }
.annual-report .report-card { animation: reportIn .6s cubic-bezier(.2,.75,.2,1) both; }
@keyframes reportIn { from { opacity: 0; transform: scale(1.012); } to { opacity: 1; transform: none; } }
.annual-report .report-slide { padding-top: 142px; padding-bottom: 125px; gap: 0; }
.annual-report .report-slide.active > :is(.report-kicker, .report-big, .report-sub, .report-num, .report-label, .report-stat-divider, .report-helper, .report-events-scroll, .report-places, .report-keepsake, .report-final-actions) {
  animation: reportReveal .68s cubic-bezier(.18,.8,.2,1) both;
}
.annual-report .report-kicker { color: #aacde1; font-size: 11px; letter-spacing: .27em; font-weight: 650; margin-bottom: 21px; }
.annual-report .report-big {
  font-size: clamp(46px, 8vw, 92px); font-weight: 690; line-height: 1.12; letter-spacing: -.066em;
  background: none; -webkit-text-fill-color: #f7fbff; color: #f7fbff;
  text-wrap: balance;
}
.annual-report .report-big .accent { color: #b5d7e9; -webkit-text-fill-color: #b5d7e9; }
.annual-report .report-heading { font-size: clamp(38px, 6.2vw, 70px); }
.annual-report .report-sub { color: #aabecb; font-size: clamp(13px, 2vw, 17px); letter-spacing: .01em; line-height: 1.65; max-width: 600px; }
.annual-report .report-num { background: none; -webkit-text-fill-color: #e5f3fc; color: #e5f3fc; font-size: clamp(67px, 11vw, 120px); letter-spacing: -.075em; font-weight: 700; }
.annual-report .report-num-small { font-size: clamp(44px, 8vw, 68px); }
.annual-report .report-label { color: #b8cbd7; letter-spacing: .035em; font-size: 14px; }
.annual-report .report-helper { color: #a8bccb; font-size: 12px; }
.annual-report .report-event-card, .annual-report .report-place {
  border: 1px solid rgba(220,236,246,.15);
  background: rgba(255,255,255,.055);
  border-radius: 18px; box-shadow: inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
}
.annual-report .report-event-card { padding: 22px; flex-basis: 232px; text-align: left; }
.annual-report .report-event-date { color: #a6cfe7; font-size: 12px; }
.annual-report .report-event-title { color: #f5f9fc; font-size: 17px; letter-spacing: -.025em; }
.annual-report .report-place { padding: 16px 18px; }
.annual-report .report-place-name { font-size: 17px; letter-spacing: -.025em; }
.annual-report .report-place-sub { color: #b0c1cf; font-size: 12px; }
.annual-report .report-place-thumb { border-radius: 9px; }
.annual-report .report-progress {
  top: calc(24px + env(safe-area-inset-top)); color: #b0c4d1; font-size: 12px;
  letter-spacing: .15em; font-weight: 600;
}
.annual-report .report-experience {
  position: absolute; z-index: 12; top: calc(65px + env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%); display: flex; align-items: center;
  justify-content: center; gap: 9px; white-space: nowrap;
}
.annual-report .report-experience-btn, .annual-report .report-fullscreen-btn,
.annual-report .report-close-btn, .annual-report .report-prev, .annual-report .report-photo-controls button,
.annual-report .report-photo-mode-btn, .annual-report .report-letter-btn {
  background: rgba(255,255,255,.075); color: #e5eff5;
  border: 1px solid rgba(255,255,255,.19); border-radius: 999px;
  backdrop-filter: blur(20px); box-shadow: inset 0 1px rgba(255,255,255,.055);
  transition: background .2s ease, border-color .2s ease;
}
.annual-report .report-experience-btn {
  min-height: 35px; padding: 6px 16px; font-size: 12px; cursor: pointer;
}
.annual-report .report-experience-btn[aria-pressed="true"] {
  background: rgba(170,208,233,.2); border-color: rgba(192,225,244,.5); color: #f5fbff;
}
.annual-report .report-experience-btn:hover, .annual-report .report-photo-mode-btn:hover,
.annual-report .report-photo-controls button:hover { background: rgba(255,255,255,.17); }
.annual-report .report-close-btn { padding-inline: 15px; min-height: 38px; }
.annual-report .report-fullscreen-btn { min-height: 38px; height: auto; }
.annual-report .report-nav { left: max(25px, env(safe-area-inset-left)); right: max(25px, env(safe-area-inset-right)); }
.annual-report .report-nav button { min-width: 112px; min-height: 48px; font-size: 13px; font-weight: 650; }
.annual-report .report-next, .annual-report .report-save-btn {
  background: #e7f0f5; color: #132431; border: none; border-radius: 100px;
  box-shadow: 0 10px 34px rgba(4,13,20,.22);
}
.annual-report .report-next:hover, .annual-report .report-save-btn:hover { background: #fff; }
.annual-report :is(button, a):focus-visible { outline: 2px solid #c6e8fa; outline-offset: 3px; }
.annual-report .report-photo-kicker { top: calc(139px + env(safe-area-inset-top)); color: #d5e9f5; }
.annual-report .report-photo-mode-btn { top: calc(128px + env(safe-area-inset-top)); }
.annual-report .report-photo-gallery {
  top: calc(193px + env(safe-area-inset-top));
  background: rgba(13,23,33,.95); border-color: rgba(255,255,255,.17);
  border-radius: 24px; box-shadow: 0 35px 75px rgba(0,0,0,.34);
}
.annual-report .report-photo-thumb { border-radius: 13px; }
.annual-report .report-photo-caption { color: #fff; }

/* 结尾纪念卡片：与导出的深蓝色卡片保持同一视觉语言。 */
.annual-report .report-keepsake {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  width: min(360px, 80vw); min-height: 284px; padding: 27px 30px;
  margin-top: 22px; border-radius: 20px;
  background: radial-gradient(circle at 85% 18%, rgba(155,198,222,.27), transparent 44%),
    linear-gradient(145deg, #253d50, #111c27 70%);
  border: 1px solid rgba(237,247,255,.22); text-align: left;
  box-shadow: 0 22px 60px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.1);
}
.annual-report .report-keepsake-orbit {
  position: absolute; width: 255px; height: 255px; border-radius: 50%;
  border: 1px solid rgba(214,235,245,.2); top: -62px; right: -98px; z-index: -1;
  box-shadow: 0 0 0 23px rgba(214,235,245,.045), 0 0 0 53px rgba(214,235,245,.035);
}
.annual-report .report-keepsake-eyebrow { color: #b9d4e2; font-size: 9px; letter-spacing: .23em; }
.annual-report .report-keepsake-year { color: #f6fbff; font-size: 73px; font-weight: 720; line-height: 1.3; letter-spacing: -.075em; }
.annual-report .report-keepsake-note { color: #e3edf3; font-weight: 600; font-size: 12px; margin-top: 4px; }
.annual-report .report-keepsake-stats { color: #b9cad5; font-size: 10px; margin-top: 17px; }
.annual-report .report-keepsake-sign { color: #deeef5; font-size: 10px; letter-spacing: .16em; margin-top: 25px; }
.annual-report .report-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.annual-report .report-final-actions button { min-height: 43px; padding: 10px 20px; font-size: 12px; font-weight: 650; cursor: pointer; }
.annual-report .report-final-note { font-size: 12px; margin-top: 13px; }

@media (max-width: 650px) {
  #top-nav { padding-left: 14px; padding-right: 14px; }
  .nav-brand .brand-name { font-size: 15px; }
  .modal-content { border-radius: 24px 24px 0 0; }
  .annual-report .report-slide { padding: calc(120px + env(safe-area-inset-top)) 18px calc(112px + env(safe-area-inset-bottom)); }
  .annual-report .report-big { font-size: clamp(40px, 10vw, 60px); }
  .annual-report .report-heading { font-size: clamp(34px, 8.2vw, 50px); }
  .annual-report .report-progress { top: calc(23px + env(safe-area-inset-top)); }
  .annual-report .report-experience { top: calc(66px + env(safe-area-inset-top)); }
  .annual-report .report-experience-btn { padding-inline: 11px; min-height: 33px; font-size: 11px; }
  .annual-report .report-fullscreen-btn { left: 12px; }
  .annual-report .report-close-btn { right: 12px; }
  .annual-report .report-nav { left: 14px; right: 14px; }
  .annual-report .report-nav button { flex: 1; min-width: 0; }
  .annual-report .report-photo-kicker { top: calc(126px + env(safe-area-inset-top)); left: 14px; }
  .annual-report .report-photo-mode-btn { top: calc(114px + env(safe-area-inset-top)); right: 14px; }
  .annual-report .report-photo-gallery { top: calc(174px + env(safe-area-inset-top)); }
  .annual-report .report-event-card { flex-basis: 215px; }
  .annual-report .report-keepsake { width: min(330px, 87vw); min-height: 252px; padding: 23px; margin-top: 15px; }
  .annual-report .report-keepsake-year { font-size: 63px; }
}
@media (max-height: 735px) {
  .annual-report .report-slide { justify-content: flex-start; }
  .annual-report .report-keepsake { min-height: 225px; }
  .annual-report .report-keepsake-year { font-size: 56px; }
  .annual-report .report-final-note { display: none; }
}
@media (max-height: 530px) {
  .annual-report .report-experience { top: calc(51px + env(safe-area-inset-top)); }
  .annual-report .report-slide { padding-top: calc(100px + env(safe-area-inset-top)); padding-bottom: 86px; }
  .annual-report .report-photo-kicker { top: calc(102px + env(safe-area-inset-top)); }
  .annual-report .report-photo-mode-btn { top: calc(95px + env(safe-area-inset-top)); }
  .annual-report .report-photo-gallery { top: calc(151px + env(safe-area-inset-top)); bottom: 93px; }
}
@media (prefers-reduced-motion: reduce) {
  .annual-report .report-card,
  .annual-report .report-slide.active > :is(.report-keepsake, .report-final-actions) { animation: none !important; }
}


/* ===== 2026-11-22 统一留白与顶栏修复 ===== */
#top-nav {
  padding: calc(16px + env(safe-area-inset-top)) max(18px, 3.6vw) 14px;
}
.nav-brand, .nav-user { min-height: 42px; }
.nav-user { gap: 10px; }
#user-name, .nav-notify-btn { min-height: 40px; }
#filter-bar {
  padding: 6px 8px;
  bottom: calc(16px + env(safe-area-inset-bottom));
}
.timeline-container, .countdown-container, .letters-container {
  padding-left: max(20px, 4vw);
  padding-right: max(20px, 4vw);
}
