/* ==========================================================================
   我们的空间 · 样式表
   设计基调：暖米白纸面 + 锈红点缀 + 大量留白
   ========================================================================== */

:root {
  --bg: #faf7f1;
  --bg-deep: #f3ece1;
  --surface: #ffffff;
  --surface-soft: #fdfaf5;
  --ink: #2b2621;
  --ink-2: #574f47;
  --ink-3: #958a7d;
  --line: #e9e0d2;
  --line-strong: #dccfbc;
  --accent: #b2543a;
  --accent-deep: #8c3e2a;
  --accent-soft: #f6e4dc;
  --sage: #6c8064;
  --sage-soft: #e8f0e4;
  --gold: #b08529;
  --gold-soft: #f8efd9;
  --danger: #a63a2e;
  --danger-soft: #f9e4e0;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-1: 0 1px 2px rgba(70, 45, 20, 0.05);
  --shadow-2: 0 6px 22px rgba(70, 45, 20, 0.07);
  --shadow-3: 0 18px 50px rgba(70, 45, 20, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-num: "SF Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

/* hidden 属性必须能压过 flex / grid 布局 */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(178, 84, 58, 0.07), transparent 62%),
    radial-gradient(800px 460px at 92% 4%, rgba(108, 128, 100, 0.07), transparent 60%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

h1 {
  font-size: 28px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ------------------------------ 滚动条 ------------------------------ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #ddd2c1;
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #cbbca6;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ==========================================================================
   通用组件
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  user-select: none;
  background: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(178, 84, 58, 0.24);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-deep);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-2);
  background: var(--surface);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.btn-soft:hover:not(:disabled) {
  background: #efd6ca;
}

.btn-sage {
  background: var(--sage-soft);
  color: #4a5c44;
}
.btn-sage:hover:not(:disabled) {
  background: #dbe7d4;
}

.btn-ghost-danger {
  border-color: transparent;
  color: var(--danger);
}
.btn-ghost-danger:hover:not(:disabled) {
  background: var(--danger-soft);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.input,
.textarea,
.select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  line-height: 1.6;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(178, 84, 58, 0.1);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-3);
}

.textarea {
  resize: vertical;
  min-height: 92px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 7px;
  font-weight: 500;
}

.field .hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.55;
}

.row {
  display: flex;
  gap: 12px;
}

.row > * {
  flex: 1 1 0;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--ink-2);
  line-height: 1.6;
  white-space: nowrap;
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.badge-sage {
  background: var(--sage-soft);
  color: #4a5c44;
}
.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex: none;
  letter-spacing: 0;
}
.avatar-me {
  background: linear-gradient(150deg, #c4603f, #8c3e2a);
}
.avatar-her {
  background: linear-gradient(150deg, #85976f, #566b4d);
}
.avatar-sm {
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.avatar-lg {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 22px 0;
}

.empty {
  text-align: center;
  padding: 54px 20px;
  color: var(--ink-3);
  font-size: 14px;
}
.empty .empty-icon {
  font-size: 34px;
  margin-bottom: 10px;
  opacity: 0.55;
  line-height: 1;
}
.empty .empty-title {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 4px;
}

.muted {
  color: var(--ink-3);
}
.small {
  font-size: 12.5px;
}
.mono-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   布局骨架
   ========================================================================== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 241, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(233, 224, 210, 0.8);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
  flex: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #7d3624);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 3px 9px rgba(178, 84, 58, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 999px;
}

.nav-item {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  font-weight: 500;
}

.nav-item:hover {
  color: var(--accent);
}

.nav-item.active {
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: 0 1px 4px rgba(70, 45, 20, 0.1);
}

.nav-item .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 5px;
  vertical-align: 2px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.topbar-user .who {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 16px;
  transition: background 0.18s, color 0.18s;
}
.icon-btn:hover {
  background: var(--bg-deep);
  color: var(--accent);
}

.main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 22px 92px;
}

.page {
  animation: pageIn 0.36s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.page-head .titles h2 {
  font-size: 23px;
  letter-spacing: 0.01em;
}

.page-head .titles p {
  color: var(--ink-3);
  font-size: 13.5px;
  margin-top: 5px;
}

.page-head .actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

/* 移动端底部导航 */
.tabbar {
  display: none;
}

/* ==========================================================================
   登录 / 初始化
   ========================================================================== */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  padding: 40px 36px 36px;
  position: relative;
  overflow: hidden;
  animation: authIn 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes authIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 84, 58, 0.12), transparent 70%);
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.auth-title {
  font-size: 26px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.auth-sub {
  color: var(--ink-3);
  font-size: 13.5px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.auth-error {
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  display: none;
}

.auth-error.show {
  display: block;
}

.who-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.who-card {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  border-radius: var(--r-md);
  padding: 18px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.who-card:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-2px);
}

.who-card.selected {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(178, 84, 58, 0.1);
}

.who-card .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-form {
  display: none;
}

.login-form.show {
  display: block;
  animation: pageIn 0.3s ease both;
}

.pw-wrap {
  position: relative;
}

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 8px;
}
.pw-toggle:hover {
  background: var(--bg-deep);
}

/* ==========================================================================
   首页
   ========================================================================== */

.hero {
  text-align: center;
  padding: 26px 0 8px;
}

.home-sign {
  text-align: center;
  margin: 50px 0 6px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  opacity: 0.8;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-eyebrow b {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-num);
  font-size: 15px;
}

.clock {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.clock-unit {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.clock-unit .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 7vw, 54px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.clock-unit .num.is-day {
  font-weight: 400;
  color: var(--accent-deep);
}

.clock-unit .unit {
  font-size: 12.5px;
  color: var(--ink-3);
  font-style: normal;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
}

.clock-sep {
  color: var(--line-strong);
  font-size: 26px;
  line-height: 1;
  padding-bottom: 4px;
  font-weight: 300;
}

.hero-quote {
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.9;
  text-wrap: balance;
}

.hero-quote .hl {
  color: var(--accent);
  font-weight: 500;
}

/* 里程碑 */
.milestone {
  max-width: 620px;
  margin: 0 auto 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-1);
}

.milestone-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.milestone-top .label {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}

.milestone-top .count {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 7px;
  border-radius: 99px;
  background: var(--bg-deep);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #c9704f, var(--accent-deep));
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.milestone-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 首页卡片网格 */
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 148px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.home-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-card .head .title {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.home-card .head .arrow {
  color: var(--ink-3);
  font-size: 14px;
  transition: transform 0.2s, color 0.2s;
}

.home-card:hover .head .arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.home-card .figure {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.home-card .figure small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  font-family: var(--font);
}

.home-card .desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: auto;
}

.mini-thumbs {
  display: flex;
  gap: 7px;
}
.mini-thumbs img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.mini-thumbs .ph {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 17px;
}

.home-note-preview {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ==========================================================================
   照片墙
   ========================================================================== */

.masonry {
  column-count: 4;
  column-gap: 16px;
}

.photo-card {
  break-inside: avoid;
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  position: relative;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-deep);
}

.photo-card .cap {
  padding: 11px 13px 13px;
}

.photo-card .cap .text {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo-card .cap .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

.photo-card .cap .meta .sep {
  color: var(--line-strong);
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 24, 20, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  animation: fadeIn 0.24s ease both;
}

.lightbox.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-inner {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lightbox img {
  max-height: 74vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  text-align: center;
  color: #efe6d8;
  max-width: 620px;
}

.lightbox-caption .text {
  font-size: 15px;
  line-height: 1.7;
}

.lightbox-caption .meta {
  font-size: 12.5px;
  color: rgba(239, 230, 216, 0.55);
  margin-top: 7px;
}

.lightbox-tools {
  display: flex;
  gap: 10px;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lightbox-nav.prev {
  left: 18px;
}
.lightbox-nav.next {
  right: 18px;
}

/* 上传弹层里的拖拽区 */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-soft);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone .dz-icon {
  font-size: 30px;
  opacity: 0.6;
  margin-bottom: 8px;
}
.dropzone .dz-text {
  font-size: 13.5px;
  color: var(--ink-2);
}
.dropzone .dz-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

.preview-box {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  background: var(--bg-deep);
}
.preview-box img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

/* ==========================================================================
   许愿墙
   ========================================================================== */

.wish-tabs {
  display: inline-flex;
  background: var(--bg-deep);
  padding: 4px;
  border-radius: 999px;
  gap: 3px;
  margin-bottom: 22px;
}

.wish-tab {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.wish-tab.active {
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: 0 1px 4px rgba(70, 45, 20, 0.1);
}

.wish-tab .cnt {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.07);
  color: var(--ink-2);
  padding: 1px 6px;
  border-radius: 99px;
  font-family: var(--font-num);
}

.wish-tab.active .cnt {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}

.wish-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wish-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.wish-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line-strong);
}

.wish-card.s-pending::before {
  background: var(--gold);
}
.wish-card.s-accepted::before {
  background: var(--accent);
}
.wish-card.s-redeemed::before {
  background: var(--accent-deep);
}
.wish-card.s-done::before {
  background: var(--sage);
}
.wish-card.s-rejected::before {
  background: var(--ink-3);
}

.wish-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wish-title {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
}

.wish-content {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.wish-reply {
  background: var(--bg-deep);
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.wish-reply .lab {
  color: var(--ink-3);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 3px;
}

.wish-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}

.wish-cost {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-num);
  font-weight: 500;
  color: var(--gold);
  font-size: 14px;
}

.wish-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.progress-hint {
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 采纳弹窗里的积分选择 */
.point-picker {
  display: flex;
  gap: 7px;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}

.point-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  font-family: var(--font-num);
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.point-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.point-chip.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(178, 84, 58, 0.25);
}

/* ==========================================================================
   积分 / 打卡
   ========================================================================== */

.points-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.balance-card {
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #b2543a, #7f3524);
  color: #fff;
  box-shadow: 0 16px 36px rgba(140, 62, 42, 0.24);
}

.balance-card.partner {
  background: linear-gradient(140deg, #748464, #4e6146);
  box-shadow: 0 16px 36px rgba(80, 96, 72, 0.2);
}

.balance-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.balance-card .who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  opacity: 0.78;
  margin-bottom: 16px;
}

.balance-card .amount {
  font-family: var(--font-num);
  font-size: 46px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.balance-card .amount small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.72;
  font-family: var(--font);
  letter-spacing: 0.04em;
}

.balance-card .foot {
  margin-top: 18px;
  font-size: 12px;
  opacity: 0.72;
  line-height: 1.6;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.task-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-1);
}

.task-card:hover:not(.done) {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.task-card.done {
  opacity: 0.55;
  cursor: default;
  background: var(--surface-soft);
}

.task-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}

.task-body {
  flex: 1;
  min-width: 0;
}

.task-name {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-pts {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.task-pts b {
  color: var(--gold);
  font-family: var(--font-num);
}

.task-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: none;
  transition: all 0.18s ease;
}

.task-card:hover:not(.done) .task-plus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.task-card.done .task-plus {
  background: var(--sage-soft);
  border-color: transparent;
  color: #4a5c44;
  font-size: 13px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 积分流水 */
.ledger-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.ledger-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row .reason {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-row .who-tag {
  font-size: 11.5px;
  color: var(--ink-3);
  flex: none;
}

.ledger-row .delta {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 14px;
  flex: none;
  min-width: 46px;
  text-align: right;
}

.ledger-row .delta.plus {
  color: var(--sage);
}
.ledger-row .delta.minus {
  color: var(--accent);
}

.ledger-row .time {
  font-size: 11.5px;
  color: var(--ink-3);
  flex: none;
  width: 74px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   悄悄话
   ========================================================================== */

.note-composer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-1);
}

.note-composer .mood-row {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mood-chip {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.16s ease;
}

.mood-chip.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.note-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.note-item.mine {
  flex-direction: row-reverse;
}

.note-bubble {
  max-width: min(560px, 76%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  padding: 13px 17px;
  box-shadow: var(--shadow-1);
  position: relative;
}

.note-item.mine .note-bubble {
  background: var(--accent-soft);
  border-color: #eccfbf;
  border-radius: 18px 18px 6px 18px;
}

.note-bubble .content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.note-bubble .foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.note-bubble .foot .del {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.16s;
}
.note-bubble:hover .foot .del {
  opacity: 1;
}
.note-bubble .foot .del:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--danger);
}

.note-author {
  font-size: 11.5px;
  color: var(--ink-3);
  flex: none;
  padding-top: 3px;
  max-width: 62px;
}

/* ==========================================================================
   纪念日
   ========================================================================== */

.ann-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ann-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 17px 20px;
  box-shadow: var(--shadow-1);
  transition: all 0.18s ease;
}

.ann-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

.ann-date {
  width: 62px;
  flex: none;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.ann-date .d {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.ann-date .m {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.ann-body {
  flex: 1;
  min-width: 0;
}

.ann-body .t {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ann-body .n {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ann-count {
  flex: none;
  text-align: right;
}

.ann-count .v {
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.15;
}

.ann-count .l {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.ann-count .v.past {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   弹层
   ========================================================================== */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(38, 30, 24, 0.42);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease both;
}

.modal {
  width: 100%;
  max-width: 470px;
  max-height: calc(100vh - 40px);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.28s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal.modal-wide {
  max-width: 620px;
}

.modal-head {
  padding: 23px 26px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 {
  font-size: 18px;
}

.modal-head .sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.6;
}

.modal-body {
  padding: 8px 26px 6px;
  overflow-y: auto;
}

.modal-foot {
  padding: 16px 26px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.modal-close {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 17px;
  display: grid;
  place-items: center;
  flex: none;
}
.modal-close:hover {
  background: var(--bg-deep);
  color: var(--ink);
}

/* 提示条 */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: rgba(43, 38, 33, 0.94);
  color: #fbf6ee;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  animation: toastIn 0.28s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  max-width: 82vw;
  text-align: center;
  line-height: 1.5;
  backdrop-filter: blur(8px);
}

.toast.err {
  background: rgba(150, 48, 36, 0.95);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1040px) {
  .masonry {
    column-count: 3;
  }
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .topbar-inner {
    height: 58px;
    padding: 0 16px;
  }
  .topbar-user {
    margin-left: auto;
  }
  .main {
    padding: 24px 16px 96px;
  }
  .points-hero {
    grid-template-columns: 1fr;
  }
  .masonry {
    column-count: 2;
  }
  .wish-grid {
    grid-template-columns: 1fr;
  }

  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(253, 250, 245, 0.94);
    backdrop-filter: blur(16px) saturate(150%);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }

  .tab {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 7px 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    color: var(--ink-3);
    cursor: pointer;
    border-radius: 12px;
    transition: color 0.16s ease, background 0.16s ease;
  }

  .tab .ic {
    font-size: 18px;
    line-height: 1;
    filter: grayscale(0.35);
    transition: filter 0.16s ease;
  }

  .tab.active {
    color: var(--accent-deep);
  }
  .tab.active .ic {
    filter: none;
  }

  .modal {
    max-width: 100%;
    border-radius: 22px;
  }

  .lightbox {
    padding: 24px 12px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .lightbox-nav.prev {
    left: 6px;
  }
  .lightbox-nav.next {
    right: 6px;
  }

  .auth-card {
    padding: 32px 24px 28px;
    border-radius: 24px;
  }

  .ann-row {
    padding: 15px 16px;
    gap: 12px;
  }
  .ann-date {
    width: 50px;
    padding-right: 12px;
  }
  .ann-date .d {
    font-size: 20px;
  }

  .ledger-row {
    padding: 12px 15px;
    gap: 9px;
  }
  .ledger-row .time {
    display: none;
  }
  .ledger-row .who-tag {
    display: none;
  }

  .clock {
    gap: 3px;
  }
  .clock-sep {
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .masonry {
    column-count: 2;
    column-gap: 10px;
  }
  .photo-card {
    margin-bottom: 10px;
  }
  .home-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .home-card {
    padding: 15px;
    min-height: 128px;
  }
  .home-card .figure {
    font-size: 24px;
  }
  .hero-quote {
    font-size: 13.5px;
  }
  .clock-unit .num {
    font-size: 34px;
  }
  .who-picker {
    gap: 9px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .balance-card {
    padding: 22px;
  }
  .balance-card .amount {
    font-size: 38px;
  }
  .page-head {
    margin-bottom: 20px;
  }
  .page-head .titles h2 {
    font-size: 20px;
  }
  .modal-head,
  .modal-body,
  .modal-foot {
    padding-left: 19px;
    padding-right: 19px;
  }
  .note-bubble {
    max-width: 84%;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   邀请 / 分类 / 待确认 / 提醒
   ========================================================================== */

/* 登录页的次要入口 */
.link-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: color 0.18s;
}
.link-btn:hover {
  color: var(--accent);
}

/* 顶栏未读小红点 */
.topbar-user {
  position: relative;
}
.notif-dot {
  position: absolute;
  top: 2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.72;
  }
}

/* 照片分类条 */
.photo-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}
.cat-chip i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-num);
}
.cat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cat-chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cat-chip.on i {
  color: rgba(255, 255, 255, 0.72);
}

/* 照片卡片上的分类角标 */
.photo-card .cap .meta .cat {
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
}

/* 小标题后面的说明 */
.section-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}

/* 待确认区 */
.review-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-1);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.review-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.review-row:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.review-row .ri {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--bg-deep);
  border-radius: 50%;
}
.review-row .rb {
  flex: 1;
  min-width: 0;
}
.review-row .rt {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.review-row .rm {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.review-row .ra {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* 任务卡：待确认 / 被驳回 / 删除按钮 */
.task-card {
  position: relative;
}
.task-card.waiting {
  border-color: var(--gold);
  background: var(--gold-soft);
  cursor: default;
}
.task-card.waiting .task-plus {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  font-size: 13px;
}
.task-card.rejected {
  opacity: 0.6;
  border-color: var(--danger);
  background: var(--danger-soft);
}
.task-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: all 0.16s;
}
.task-card:hover .task-del {
  opacity: 1;
}
.task-del:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* 提醒列表 */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notif-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.notif-item .t {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.notif-item .b {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.65;
}
.notif-item .m {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 6px;
  font-family: var(--font-num);
}

/* 邀请码 */
.invite-box {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 20px;
  text-align: center;
}
.invite-code {
  font-family: var(--font-num);
  font-size: 30px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  font-weight: 700;
  color: var(--accent-deep);
}
.invite-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}

@media (max-width: 640px) {
  .review-row {
    flex-wrap: wrap;
  }
  .review-row .ra {
    width: 100%;
    justify-content: flex-end;
  }
  .section-title {
    flex-wrap: wrap;
    row-gap: 3px;
  }
  .section-title::after {
    display: none;
  }
  .section-note {
    display: block;
    flex: 0 0 100%;
    margin-top: 2px;
  }
  .task-del {
    opacity: 1;
  }
  .invite-code {
    font-size: 26px;
  }
}

/* ==========================================================================
   更多：100 件小事 / 地图足迹 / 歌单 / 年度回顾
   ========================================================================== */

/* 更多页卡片 */
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.more-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.more-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.more-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 9px;
}

.more-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.more-num {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent-deep);
  margin-top: 8px;
}

.more-num small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 4px;
}

.more-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* 100 件小事 */
.bucket-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bucket-progress .bar {
  flex: 1;
  height: 8px;
  background: var(--bg-deep);
  border-radius: 99px;
  overflow: hidden;
}

.bucket-num {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  white-space: nowrap;
}

.bucket-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bucket-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.18s, background 0.18s;
}

.bucket-row:hover {
  border-color: var(--line-strong);
}

.bucket-row.done {
  background: var(--surface-soft);
  border-color: #e4eadd;
}

.bucket-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--accent-deep);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.bucket-row.done .bucket-check {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.bucket-text {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.bucket-text .t {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
}

.bucket-row.done .bucket-text .t {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.bucket-text .n {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 3px;
}

.bucket-text .m {
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-num);
  margin-top: 4px;
}

.bucket-edit,
.bucket-del {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.18s;
}

.bucket-row:hover .bucket-edit,
.bucket-row:hover .bucket-del {
  opacity: 1;
}

.bucket-edit:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.bucket-del:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

/* 地图足迹 */
.map-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 10px 2px;
  margin-bottom: 20px;
  background: linear-gradient(165deg, #fbf7f0, #f2ece1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-land {
  fill: #efe6d7;
  stroke: var(--line-strong);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.map-dot {
  fill: #d6c9b4;
}

.map-dot-on {
  fill: var(--accent);
}

.map-halo {
  fill: rgba(178, 84, 58, 0.16);
}

.map-label {
  fill: var(--accent-deep);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
}

.map-legend {
  display: flex;
  gap: 16px;
  padding: 4px 8px 10px;
  font-size: 12px;
  color: var(--ink-3);
}

.map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 2px 8px 8px;
}

.map-owned {
  font-size: 12px;
  color: var(--ink-2);
  padding-bottom: 10px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6c9b4;
}

.map-legend .lg-on i {
  background: var(--accent);
}

.place-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.place-card {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.place-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.place-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.place-del {
  margin-left: auto;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
}

.place-del:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.place-note {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 6px;
}

.place-meta {
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-num);
  margin-top: 8px;
}

/* 我们的歌单 */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.18s, background 0.18s;
}

.song-row.playing {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.song-play {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-deep);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.song-row.playing .song-play {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.song-meta {
  flex: 1;
  min-width: 0;
}

.song-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-sub {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-note {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
}

.song-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.song-fav,
.song-del {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.18s;
}

.song-fav.on {
  color: var(--gold);
  opacity: 1;
}

.song-row:hover .song-fav,
.song-row:hover .song-del {
  opacity: 1;
}

.song-fav:hover {
  color: var(--gold);
  background: var(--gold-soft);
}

.song-del:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

/* 播放条弹出时，页面底部多留一段，别让最后一行被盖住 */
body.has-player .main {
  padding-bottom: 152px;
}

/* 底部播放条 */
.player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(880px, calc(100% - 32px));
  padding: 10px 14px;
  background: rgba(43, 38, 33, 0.94);
  backdrop-filter: blur(8px);
  color: #f7f1e7;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(30, 20, 10, 0.28);
}

.pl-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #f7f1e7;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.pl-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.pl-main {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-color: var(--accent);
}

.pl-main:hover {
  background: var(--accent-deep);
}

.pl-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 200px;
}

.pl-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-artist {
  font-size: 11.5px;
  color: rgba(247, 241, 231, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-bar-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pl-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.pl-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #f7f1e7;
  cursor: pointer;
}

.pl-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #f7f1e7;
  cursor: pointer;
}

.pl-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-num);
  font-size: 10.5px;
  color: rgba(247, 241, 231, 0.62);
}

.pl-time i {
  font-style: normal;
}

.pl-close {
  flex: 0 0 auto;
  padding: 4px;
  border: 0;
  background: transparent;
  color: rgba(247, 241, 231, 0.6);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.18s;
}

.pl-close:hover {
  color: #fff;
}

/* 纪念日提醒横幅 */
.ann-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  background: linear-gradient(100deg, var(--accent-soft), #fdf6ea);
  border: 1px solid #eed9cb;
  border-radius: var(--r-md);
}

.ann-icon {
  font-size: 18px;
  line-height: 1;
}

.ann-text {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-2);
}

.ann-text b {
  color: var(--accent-deep);
  font-weight: 600;
}

.ann-go {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}

.ann-go:hover {
  background: rgba(178, 84, 58, 0.1);
}

.ann-modal b {
  display: block;
  font-size: 16px;
  color: var(--accent-deep);
}

.ann-modal p {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 6px;
}

/* 年度回顾 */
.review-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.review-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 4px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.review-stat .v {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-deep);
}

.review-stat .u {
  font-size: 12px;
  color: var(--ink-3);
}

.review-stat .k {
  flex: 0 0 100%;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 4px;
}

.review-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  padding: 18px 16px 12px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.rm-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.rm-bar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 110px;
}

.rm-bar {
  width: 62%;
  min-height: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #c9704f, var(--accent-deep));
  transition: height 0.6s;
}

.rm-n {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--ink-3);
}

.rm-m {
  font-size: 10.5px;
  color: var(--ink-3);
}

.review-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}

.review-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.rv-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.rv-chip {
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.input-sm {
  width: auto;
  height: auto;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: var(--r-sm);
}

@media (max-width: 640px) {
  .more-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .more-card {
    padding: 16px 14px;
  }
  .more-num {
    font-size: 22px;
  }
  .map-wrap {
    padding: 6px 6px 0;
  }
  .map-label {
    font-size: 10px;
  }
  .place-list {
    grid-template-columns: 1fr;
  }
  .bucket-row {
    gap: 8px;
    padding: 10px 12px;
  }
  .bucket-edit,
  .bucket-del {
    opacity: 1;
  }
  .song-row {
    gap: 8px;
    padding: 10px 12px;
  }
  .song-badge {
    display: none;
  }
  .player {
    bottom: 68px;
    width: calc(100% - 20px);
    padding: 8px 10px;
    gap: 8px;
    border-radius: var(--r-md);
  }
  body.has-player .main {
    padding-bottom: 210px;
  }
  .pl-meta {
    max-width: 84px;
  }
  .pl-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .pl-main {
    width: 34px;
    height: 34px;
  }
  .ann-banner {
    padding: 10px 14px;
  }
  .review-stats {
    grid-template-columns: 1fr 1fr;
  }
  .review-months {
    gap: 3px;
    padding: 14px 8px 10px;
  }
  .rm-bar-wrap {
    height: 78px;
  }
  .rm-m {
    font-size: 9.5px;
  }
}
