:root {
  --primary: #4f8ef7;
  --primary-dark: #3a6fd8;
  --accent: #ff7c5c;
  --bg: #f0f4ff;
  --card-bg: #ffffff;
  --text: #2d3a4a;
  --text-light: #7a8a9a;
  --border: #dde4f0;
  --success: #34c977;
  --danger: #ff4f4f;
  --shadow: 0 4px 24px rgba(79,142,247,0.10);
  --radius: 16px;
  --nav-h: 60px;
  --bottom-nav-h: 64px;
}

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

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* ===== 顶部导航 ===== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.top-nav .nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.top-nav .logo {
  font-size: 20px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}

.top-nav .logo span { font-size: 22px; }

.top-nav .nav-right { display: flex; align-items: center; gap: 12px; }

.announcement-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7df 0%, #fff0dc 100%);
  border: 1px solid #ffd7a8;
  color: #9a5b11;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 162, 77, .14);
  transition: transform .2s, box-shadow .2s, background .2s;
  flex-shrink: 0;
}

.announcement-entry:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 162, 77, .2);
  background: linear-gradient(135deg, #fff4d3 0%, #ffeacb 100%);
}

.announcement-entry-icon {
  font-size: 15px;
}

.announcement-entry-dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4f4f;
  box-shadow: 0 0 0 2px rgba(255,255,255,.92);
}

.btn-ghost {
  background: none; border: 1.5px solid var(--primary);
  color: var(--primary); border-radius: 20px;
  padding: 6px 16px; font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost:disabled:hover { background: none; color: var(--primary); }

.btn-swap-exit {
  position: relative;
  overflow: hidden;
  background-color: #0e6d43;
  background-image: linear-gradient(rgba(10, 46, 28, 0.22), rgba(10, 46, 28, 0.22)), url('/紧急出口.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
  border: 1px solid #0f6b42;
  border-radius: 14px;
  padding: 10px 18px;
  min-width: 150px;
  min-height: 58px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  box-shadow: 0 6px 18px rgba(31, 170, 95, 0.24), inset 0 0 0 1px rgba(255,255,255,.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.btn-swap-exit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 170, 95, 0.3), inset 0 0 0 1px rgba(255,255,255,.22);
}

.btn-swap-exit:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-swap-exit:disabled:hover {
  transform: none;
}

.btn-swap-exit .swap-exit-title {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #ffe66d;
  background: rgba(8, 34, 21, 0.72);
  border: 1px solid rgba(255, 230, 109, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.btn-swap-exit #swap-remain {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff4c2;
  background: rgba(8, 34, 21, 0.66);
  border: 1px solid rgba(255, 244, 194, 0.34);
  border-radius: 999px;
  padding: 3px 10px;
}

.btn-primary {
  background: var(--primary); color: #fff; border-radius: 20px;
  padding: 8px 20px; font-size: 14px; font-weight: 600;
  transition: all .2s; box-shadow: 0 2px 8px rgba(79,142,247,.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-accent {
  background: var(--accent); color: #fff; border-radius: 20px;
  padding: 8px 20px; font-size: 14px; font-weight: 600;
  transition: all .2s; box-shadow: 0 2px 8px rgba(255,124,92,.3);
}
.btn-accent:hover { opacity: .9; transform: translateY(-1px); }

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--bottom-nav-h);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.bottom-nav .nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 8px 0;
  color: var(--text-light); font-size: 11px; position: relative;
  transition: color .2s; cursor: pointer;
}
.bottom-nav .nav-item.active { color: var(--primary); }
.bottom-nav .nav-item .icon { font-size: 22px; }

.nav-feature-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  min-width: 156px;
  max-width: min(220px, 70vw);
  padding: 10px 12px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8f6b 0%, #ff5d9f 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 12px 24px rgba(255, 93, 159, .26);
  z-index: 3;
  white-space: normal;
}

.nav-feature-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  background: #ff6997;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

.nav-feature-tip:hover {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 16px 30px rgba(255, 93, 159, .3);
}

.nav-feature-tip-title {
  display: block;
  font-size: 11px;
  opacity: .88;
  margin-bottom: 2px;
}

.nav-feature-tip-text {
  display: block;
}

.bottom-nav .nav-publish {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.bottom-nav .nav-publish .pub-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(79,142,247,.4);
  transition: transform .2s;
}
.bottom-nav .nav-publish .pub-btn:hover { transform: scale(1.1); }

.badge {
  position: absolute; top: 4px; right: 50%; transform: translateX(60%);
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 1px 5px; min-width: 16px; text-align: center;
}

.tab-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tab-switcher-slot {
  flex: 1;
  position: relative;
}

.tab-switch-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
}

.tab-switch-btn.active {
  border-color: rgba(79,142,247,.28);
  background: linear-gradient(135deg, rgba(79,142,247,.12), rgba(138,111,223,.1));
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(79,142,247,.12);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.tip-bubble {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 93, 159, .24);
  background: linear-gradient(135deg, #fff7fb, #fff0f7);
  color: #d64888;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(255, 93, 159, .18);
}

.bottom-nav .nav-item .tip-bubble {
  bottom: calc(100% + 14px);
  z-index: 4;
}

#my-bottles-replies-tip {
  width: max-content;
  min-width: 168px;
  max-width: min(240px, calc(100vw - 32px));
  padding: 12px 40px 12px 14px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  line-height: 1.5;
  white-space: normal;
}

#my-bottles-replies-tip > span {
  display: block;
}

#my-bottles-replies-tip .tip-bubble-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
}

.bottom-nav .nav-item .nav-feature-tip + .tip-bubble,
.bottom-nav .nav-item .tip-bubble + .nav-feature-tip {
  margin-bottom: 0;
}

.tip-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: #fff2f8;
  border-right: 1px solid rgba(255, 93, 159, .24);
  border-bottom: 1px solid rgba(255, 93, 159, .24);
  transform: translate(-50%, -5px) rotate(45deg);
}

.tip-bubble-close {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(214, 72, 136, .12);
  color: inherit;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.tip-bubble-close:hover {
  background: rgba(214, 72, 136, .2);
}

.tab-panel[hidden] {
  display: none !important;
}

/* ===== 页面容器 ===== */
.page {
  padding-top: calc(var(--nav-h) + 16px);
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
  min-height: 100vh;
}

/* ===== 卡片 ===== */
.card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
  border: 1px solid var(--border);
}

/* ===== 漂流瓶卡片（首页） ===== */
.home-search-wrap {
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
}
.home-search-box {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 18px rgba(79,142,247,.08);
}
.home-search-box input {
  flex: 1 1 220px;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 9px 8px;
}
.home-search-box input::placeholder {
  color: #a8b1bd;
}
.home-search-btn,
.home-search-clear,
.home-search-exit {
  flex: 0 0 auto;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}
.home-search-btn {
  background: var(--primary);
  color: #fff;
}
.home-search-clear {
  background: #f4f6fb;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.home-search-exit {
  background: #fff6f6;
  color: var(--danger);
  border: 1px solid rgba(255,79,79,.24);
}
.home-search-results {
  width: 100%;
  max-width: 720px;
}
.home-search-summary {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.home-search-result-item .item-meta {
  flex-wrap: wrap;
}
.home-search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 4px;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
}
.home-search-pagination button {
  min-width: 82px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.home-search-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
  color: var(--text-light);
  background: #f6f8fb;
}
.home-search-free-tag {
  color: var(--primary);
  background: rgba(79,142,247,.08);
  border: 1px solid rgba(79,142,247,.18);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.bottle-card-wrap {
  max-width: 800px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.bottle-card {
  width: 100%;
  background: linear-gradient(135deg, #fff 60%, #eef3ff 100%);
  border-radius: 24px; box-shadow: 0 8px 40px rgba(79,142,247,.13);
  border: 1px solid var(--border); padding: 28px 24px;
  position: relative; overflow: hidden;
  animation: floatIn .4s ease;
  min-height: 260px;
}

.bottle-card::before {
  content: '🍾';
  position: absolute; right: -10px; bottom: -10px;
  font-size: 80px; opacity: .07;
}

.bottle-block-menu {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}
.bottle-block-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255,79,79,.22);
  background: rgba(255,255,255,.86);
  color: var(--danger);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  user-select: none;
}
.bottle-block-menu summary::-webkit-details-marker {
  display: none;
}
.bottle-block-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 28, 45, .14);
  overflow: hidden;
}
.bottle-block-options button {
  width: 100%;
  display: block;
  padding: 9px 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}
.bottle-block-options button:hover {
  background: #fff6f6;
  color: var(--danger);
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.bottle-card .bottle-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; line-height: 1.4;
}

.bottle-card .bottle-preview {
  font-size: 15px; color: #4a5a6a; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 6;
  -webkit-box-orient: vertical; overflow: hidden;
}

.bottle-card .bottle-preview br { display: none; }

.bottle-card .bottle-meta {
  margin-top: 18px; display: flex; align-items: center;
  justify-content: space-between; font-size: 12px; color: var(--text-light);
}

.bottle-card .bottle-meta .author-link {
  color: var(--primary); font-weight: 600; cursor: pointer;
}
.bottle-card .bottle-meta .author-link:hover { text-decoration: underline; }

.bottle-report-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bottle-report-trigger {
  align-self: flex-start;
}

.bottle-report-status {
  background: #f7f9ff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
}

.bottle-report-status strong {
  color: var(--text);
}

.report-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.report-option {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--bg);
  cursor: pointer;
  transition: all .2s;
}

.report-option:hover,
.report-option.active {
  border-color: var(--primary);
  background: #f7faff;
  box-shadow: 0 4px 14px rgba(79,142,247,0.08);
}

.report-option-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.report-option-title input {
  accent-color: var(--primary);
}

.report-option-desc {
  margin-top: 6px;
  margin-left: 24px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-light);
}

/* ===== 跳过计数器 ===== */
.skip-counter {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #3f4f63;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%); border-radius: 20px; padding: 8px 16px;
  border: 1px solid #d5e2ff; box-shadow: 0 8px 20px rgba(79,142,247,.08);
}
.skip-counter .count { color: #ff7c5c; font-weight: 800; font-size: 17px; }

/* ===== 操作按钮栏 ===== */
.bottle-actions {
  display: flex; gap: 12px; width: 100%; max-width: 800px; padding: 0 20px;
}
.bottle-actions button { flex: 1; padding: 14px; font-size: 16px; border-radius: 14px; font-weight: 600; }

.btn-skip {
  background: #fff; color: var(--text-light);
  border: 1.5px solid var(--border) !important;
  transition: all .2s;
}
.btn-skip:hover:not(:disabled) { border-color: var(--primary) !important; color: var(--primary); }
.btn-skip:disabled { opacity: .5; cursor: not-allowed; }

.btn-pick {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 16px rgba(79,142,247,.35);
  transition: all .2s;
}
.btn-pick:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,142,247,.45); }

/* ===== 详情页 ===== */
.detail-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}

.btn-back {
  background: none; font-size: 20px; color: var(--text);
  padding: 8px; border-radius: 10px; transition: background .2s;
}
.btn-back:hover { background: var(--bg); }

.btn-fav {
  background: none; font-size: 22px; padding: 6px 10px;
  border-radius: 10px; transition: all .2s;
}
.btn-fav.active { color: #ff4f8a; }
.btn-fav:hover { background: var(--bg); }

.detail-content {
  max-width: 1000px; margin: 0 auto; padding: 80px 32px 120px;
}

.detail-bottle-body {
  background: #fff; border-radius: 24px; padding: 32px 30px;
  border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 32px;
}
.detail-bottle-body h1 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.detail-bottle-body .meta { font-size: 12px; color: var(--text-light); margin-bottom: 20px; display: flex; gap: 12px; }
.detail-bottle-body .meta .author-link { color: var(--primary); cursor: pointer; font-weight: 600; }
.detail-bottle-body .body-text {
  font-size: 16px; line-height: 1.9; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}
.detail-bottle-body .body-text.rich-text-content {
  white-space: normal;
}
.detail-bottle-body .body-text.rich-text-content > *:first-child { margin-top: 0; }
.detail-bottle-body .body-text.rich-text-content > *:last-child { margin-bottom: 0; }
.detail-bottle-body .body-text.rich-text-content p,
.detail-bottle-body .body-text.rich-text-content div,
.detail-bottle-body .body-text.rich-text-content blockquote,
.detail-bottle-body .body-text.rich-text-content ul,
.detail-bottle-body .body-text.rich-text-content ol,
.detail-bottle-body .body-text.rich-text-content h1,
.detail-bottle-body .body-text.rich-text-content h2,
.detail-bottle-body .body-text.rich-text-content h3,
.detail-bottle-body .body-text.rich-text-content h4 {
  margin: 0 0 14px;
}
.detail-bottle-body .body-text.rich-text-content ul,
.detail-bottle-body .body-text.rich-text-content ol {
  padding-left: 24px;
}
.detail-bottle-body .body-text.rich-text-content blockquote {
  border-left: 4px solid #d8dfff;
  background: #f7f8ff;
  border-radius: 0 14px 14px 0;
  padding: 10px 14px;
  color: #5a6482;
}
.detail-bottle-body .body-text.rich-text-content h1,
.detail-bottle-body .body-text.rich-text-content h2,
.detail-bottle-body .body-text.rich-text-content h3,
.detail-bottle-body .body-text.rich-text-content h4 {
  line-height: 1.5;
  color: var(--text);
}
.body-fav-wrap {
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px;
}

.btn-fav-body {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); color: var(--text-light);
  padding: 8px 16px; border-radius: 20px; font-size: 14px;
  font-weight: 600; transition: all .2s; border: 1px solid var(--border);
}

.btn-fav-body.active {
  background: #fff0f5; color: #ff4f8a; border-color: #ffc0d5;
}

.btn-fav-body:hover {
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-fav-body .icon {
  font-size: 18px;
}

.no-copy {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ===== 评论区 ===== */
.comment-section { background: #fff; border-radius: 20px; padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.comment-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.preset-btns { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; }
.preset-btns::-webkit-scrollbar { display: none; }
.preset-btn {
  white-space: nowrap; background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--text);
  transition: all .2s; flex-shrink: 0;
}
.preset-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.reply-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(79,142,247,0.18);
  border-radius: 12px;
  background: rgba(79,142,247,0.08);
}

.reply-hint-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.reply-hint-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.reply-hint-cancel {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.2;
  transition: all .2s;
}

.reply-hint-cancel:hover {
  color: var(--danger);
  border-color: rgba(255,107,107,0.35);
  background: rgba(255,107,107,0.08);
}

.comment-input-wrap { 
  display: flex; 
  gap: 16px; 
  margin-bottom: 24px; 
  align-items: flex-end; 
  width: 100%;
}
.comment-input {
  flex: 1; 
  min-width: 0; 
  resize: vertical; 
  border: 1.5px solid var(--border); 
  border-radius: 12px;
  padding: 14px 18px; 
  font-size: 15px; 
  font-family: inherit; 
  line-height: 1.6;
  min-height: 100px; 
  outline: none; 
  transition: all .2s;
  background: var(--bg);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.comment-input:focus { border-color: var(--primary); background: #fff; }

.btn-comment {
  background: var(--primary); 
  color: #fff; 
  border-radius: 12px;
  padding: 14px 28px; 
  font-size: 15px; 
  font-weight: 700;
  transition: all .2s; 
  white-space: nowrap; 
  flex-shrink: 0;
  height: 48px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79,142,247,0.2);
}
.btn-comment:hover { background: var(--primary-dark); }

.comment-list { display: flex; flex-direction: column; gap: 16px; }

.comment-item { border-bottom: 1px solid var(--bg); padding-bottom: 14px; }
.comment-item.comment-highlight {
  border-radius: 8px;
  background: rgba(79, 142, 247, 0.08);
  box-shadow: 0 0 0 2px rgba(79, 142, 247, 0.18);
  transition: background .2s ease, box-shadow .2s ease;
}
.comment-item:last-child { border-bottom: none; padding-bottom: 0; }

.comment-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.comment-header .author { font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; }
.comment-header .time { margin-left: auto; font-size: 11px; color: var(--text-light); }
.comment-body { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.comment-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.btn-reply-small { background: none; color: var(--text-light); font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); transition: all .2s; }
.btn-reply-small:hover { color: var(--primary); border-color: var(--primary); }
.btn-delete-small { background: none; color: var(--text-light); font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); transition: all .2s; }
.btn-delete-small:hover { color: var(--danger); border-color: var(--danger); }
.user-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 150px;
  min-height: 18px;
  padding: 1px 6px;
  border: 1px solid rgba(107, 78, 255, .16);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: middle;
}
.user-title-badge img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
}
.user-title-badge span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-list { margin-top: 10px; margin-left: 16px; border-left: 2px solid var(--border); padding-left: 14px; display: flex; flex-direction: column; gap: 10px; }
.reply-item .comment-header .author { color: #8a70d6; }

@media (max-width: 640px) {
  .reply-hint-cancel {
    margin-left: 0;
  }
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-light);
}
.empty-state .emoji { font-size: 56px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; }

/* ===== 列表页 ===== */
.list-page { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.bottle-list-item {
  background: #fff; border-radius: 16px; padding: 18px 20px;
  border: 1px solid var(--border); margin-bottom: 12px;
  cursor: pointer; transition: all .2s; position: relative;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.bottle-list-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bottle-list-item .item-title { font-size: 16px; font-weight: 700; color: var(--text); }
.bottle-list-item .item-preview { font-size: 13px; color: var(--text-light); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bottle-list-item .item-preview br { display: none; }
.bottle-list-item .item-meta { font-size: 11px; color: #aab; display: flex; gap: 12px; align-items: center; }

.red-dot {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 1px 6px; min-width: 18px; margin-left: 6px;
}

/* ===== 发布页 ===== */
.publish-page { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.form-group { margin-bottom: 18px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: block; }
.form-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .2s; background: #fff;
}
.form-input:focus { border-color: var(--primary); }
.form-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 14px 16px; font-size: 15px; font-family: inherit; outline: none;
  resize: vertical; min-height: 200px; line-height: 1.7;
  transition: border-color .2s; background: #fff;
}
.form-textarea:focus { border-color: var(--primary); }
.rich-editor-wrap {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.rich-editor-wrap.focused,
.rich-editor-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,142,247,.08);
}
.rich-editor-wrap #content-toolbar.ql-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: #f8faff;
}
.rich-editor-wrap #content-toolbar .ql-formats {
  margin-right: 0;
}
.rich-editor-wrap #content-toolbar button,
.rich-editor-wrap #content-toolbar .ql-picker-label {
  border-radius: 10px;
}
.rich-editor-wrap #content-toolbar button:hover,
.rich-editor-wrap #content-toolbar button.ql-active,
.rich-editor-wrap #content-toolbar .ql-picker-label:hover,
.rich-editor-wrap #content-toolbar .ql-picker-label.ql-active {
  color: var(--primary);
}
.rich-editor-wrap #content-toolbar .ql-stroke {
  stroke: currentColor;
}
.rich-editor-wrap #content-toolbar .ql-fill {
  fill: currentColor;
}
.rich-editor-wrap .ql-container {
  border: none;
  font-family: inherit;
  font-size: 15px;
}
.rich-editor-wrap .ql-editor {
  min-height: 240px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  word-break: break-word;
}
.rich-editor-wrap .ql-editor.ql-blank::before {
  left: 16px;
  right: 16px;
  color: #aab4c6;
  font-style: normal;
}
.rich-editor-wrap .ql-editor p,
.rich-editor-wrap .ql-editor blockquote,
.rich-editor-wrap .ql-editor ul,
.rich-editor-wrap .ql-editor ol,
.rich-editor-wrap .ql-editor h1,
.rich-editor-wrap .ql-editor h2,
.rich-editor-wrap .ql-editor h3,
.rich-editor-wrap .ql-editor h4 {
  margin: 0 0 12px;
}
.rich-editor-wrap .ql-editor > *:last-child {
  margin-bottom: 0;
}
.rich-editor-wrap .ql-editor ul,
.rich-editor-wrap .ql-editor ol {
  padding-left: 24px;
}
.rich-editor-wrap .ql-editor blockquote {
  border-left: 4px solid #d8dfff;
  background: #f7f8ff;
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  color: #5a6482;
}
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: #f8faff;
}
.rich-editor-btn {
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--text-light);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
}
.rich-editor-btn:hover,
.rich-editor-btn.active {
  color: var(--primary);
  border-color: rgba(79,142,247,.35);
  background: #f3f7ff;
}
.rich-editor-surface {
  min-height: 240px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  outline: none;
  word-break: break-word;
}
.rich-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: #aab4c6;
}
.rich-editor-surface p,
.rich-editor-surface div,
.rich-editor-surface blockquote,
.rich-editor-surface ul,
.rich-editor-surface ol,
.rich-editor-surface h1,
.rich-editor-surface h2,
.rich-editor-surface h3,
.rich-editor-surface h4 {
  margin: 0 0 12px;
}
.rich-editor-surface > *:last-child {
  margin-bottom: 0;
}
.rich-editor-surface ul,
.rich-editor-surface ol {
  padding-left: 24px;
}
.rich-editor-surface blockquote {
  border-left: 4px solid #d8dfff;
  background: #f7f8ff;
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  color: #5a6482;
}
.rich-editor-hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-light);
}
.char-count { text-align: right; font-size: 12px; color: var(--text-light); margin-top: 4px; }
.char-count.warning { color: var(--danger); }

.preview-card {
  background: linear-gradient(135deg, #fff 60%, #eef3ff 100%);
  border-radius: 20px; padding: 22px 20px; margin-top: 6px;
  border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.preview-card::before { content: '🍾'; position: absolute; right: -8px; bottom: -8px; font-size: 60px; opacity: .08; }
.preview-card .preview-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.preview-card .preview-body { font-size: 13px; line-height: 1.7; color: #4a5a6a;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 认证页 ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f0ff 0%, #f5e8ff 100%);
  padding: 20px;
}
.auth-card {
  background: #fff; border-radius: 24px; padding: 36px 32px;
  width: 100%; max-width: 400px; box-shadow: 0 12px 48px rgba(79,142,247,.18);
}
.auth-card .auth-logo { text-align: center; font-size: 36px; margin-bottom: 8px; }
.auth-card h2 { text-align: center; font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 28px; }

.tab-switch { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.tab-btn { flex: 1; padding: 9px; border-radius: 9px; background: none; font-size: 14px; font-weight: 600; color: var(--text-light); transition: all .2s; }
.tab-btn.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.form-row { margin-bottom: 16px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }
.form-row input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 14px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s;
}
.form-row input:focus { border-color: var(--primary); }

.anon-check { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; cursor: pointer; }
.anon-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.anon-check span { font-size: 14px; color: var(--text-light); }

.btn-submit {
  width: 100%; padding: 13px; background: var(--primary); color: #fff;
  border-radius: 12px; font-size: 16px; font-weight: 700;
  transition: all .2s; box-shadow: 0 4px 16px rgba(79,142,247,.3);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== 用户资料 ===== */
.profile-page { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, #8a6fdf 100%);
  border-radius: 20px; padding: 28px 24px; color: #fff; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.profile-header .avatar { font-size: 48px; }
.profile-header .pname { font-size: 22px; font-weight: 700; }
.profile-header .pbio { font-size: 14px; opacity: .85; }
.profile-header .pstats { display: flex; gap: 20px; font-size: 13px; opacity: .9; }

body.profile-shell {
  background: #fff;
}
.profile-header-more {
  width: 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.profile-card {
  background: #fff;
  margin: -1px -16px 22px;
  overflow: hidden;
}
.profile-cover {
  min-height: 112px;
  padding: 28px 16px 0;
  background: linear-gradient(135deg, #6d78ef 0%, #8051b8 100%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  transform: translateY(26px);
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  box-shadow: 0 10px 24px rgba(55, 64, 160, .22);
  overflow: hidden;
}
.profile-avatar img,
.edit-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-mark {
  position: absolute;
  right: 0;
  bottom: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #6781f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.profile-cover-info {
  min-width: 0;
  padding-bottom: 12px;
}
.profile-cover-info .pname {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  word-break: break-word;
}
.profile-cover-info .pbio {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255,255,255,.86);
  line-height: 1.4;
  word-break: break-word;
}
.profile-card .pstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  padding: 10px 16px 12px;
}
.profile-card .pstats span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  border-right: 1px solid #edf0f6;
}
.profile-card .pstats span:last-child {
  border-right: none;
}
.profile-card .pstats strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.profile-card .pstats em {
  font-style: normal;
  font-size: 13px;
  color: #a5afbd;
  font-weight: 600;
}
.profile-actions {
  padding: 0 16px 14px;
}
.profile-checkin {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  background: #f8faff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profile-checkin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-checkin-main strong {
  font-size: 14px;
  color: var(--text);
}
.profile-checkin-main span {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}
.profile-points-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
}
.profile-points-line strong {
  color: var(--primary);
  font-size: 13px;
}
.profile-reward-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.profile-checkin-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.profile-checkin-btn:disabled {
  background: #d8deea;
  color: #fff;
  cursor: not-allowed;
}
.profile-exchange-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7e0f0;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.profile-exchange-btn:disabled {
  background: #f2f5fa;
  color: #a5afbd;
  cursor: not-allowed;
}
.profile-title-panel {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  background: #fff;
}
.profile-title-panel.loading {
  opacity: .72;
  pointer-events: none;
}
.profile-title-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.profile-title-panel-head strong {
  font-size: 14px;
  color: var(--text);
}
.profile-title-panel-head span {
  font-size: 12px;
  color: var(--text-light);
}
.profile-title-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-title-option {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #e2e8f3;
  border-radius: 999px;
  background: #f8faff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.profile-title-option.active {
  border-color: rgba(107, 78, 255, .38);
  background: #f2f0ff;
  color: var(--primary);
}
.profile-title-empty {
  width: 100%;
  color: var(--text-light);
  font-size: 12px;
}
.profile-action-btn {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e6ebf3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, border-color .2s, color .2s;
}
.profile-action-btn:hover {
  background: #f7f9fc;
  border-color: var(--primary);
  color: var(--primary);
}
.edit-avatar-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8faff;
}
.edit-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(79,142,247,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  overflow: hidden;
  flex: 0 0 auto;
}
.edit-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.edit-avatar-btn,
.edit-avatar-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.edit-avatar-btn {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
.edit-avatar-btn input {
  display: none;
}
.edit-avatar-clear {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-light);
}

@media (max-width: 480px) {
  .profile-cover {
    min-height: 110px;
    gap: 14px;
  }
  .profile-avatar {
    width: 84px;
    height: 84px;
    font-size: 40px;
  }
  .profile-cover-info .pname {
    font-size: 22px;
  }
  .profile-cover-info .pbio {
    font-size: 13px;
  }
  .profile-checkin {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-reward-actions {
    flex-direction: row;
  }
  .profile-reward-actions button {
    flex: 1;
  }
}

/* ===== 吐司提示 ===== */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: #2d3a4a; color: #fff; border-radius: 12px; padding: 12px 24px;
  font-size: 14px; font-weight: 500; z-index: 9999; opacity: 0;
  transition: all .3s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1010;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff; border-radius: 20px; padding: 28px 24px;
  max-width: 340px; width: 100%; box-shadow: 0 16px 48px rgba(0,0,0,.18);
  transform: scale(.95); transition: transform .2s;
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.modal-box p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; white-space: pre-wrap; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-modal-ok { background: var(--primary); color: #fff; border-radius: 10px; padding: 9px 20px; font-size: 14px; font-weight: 600; }
.btn-modal-cancel { background: var(--bg); color: var(--text); border-radius: 10px; padding: 9px 20px; font-size: 14px; }

.collection-modal-box {
  max-width: 760px;
  max-height: min(82vh, 820px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.collection-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.collection-modal-subtitle {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 6px;
}

.collection-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.collection-modal-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
}

.collection-modal-section {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fbff;
  padding: 14px;
}

.collection-modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.collection-bottle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 42vh;
  overflow: auto;
  padding-right: 4px;
}

.collection-bottle-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all .2s;
}

.collection-bottle-option:hover {
  border-color: rgba(79,142,247,.4);
  box-shadow: 0 8px 18px rgba(79,142,247,.08);
  transform: translateY(-1px);
}

.collection-bottle-option input {
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.collection-bottle-option-main {
  min-width: 0;
  flex: 1;
}

.collection-bottle-option-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.collection-bottle-option-preview {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-bottle-option-meta {
  font-size: 11px;
  color: #a0aabc;
  margin-top: 8px;
}

.announcement-modal-box {
  max-width: 620px;
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.announcement-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.announcement-modal-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fdf1d6;
  color: #a56a14;
  font-size: 12px;
  font-weight: 700;
}

.announcement-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f6f8fc;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.announcement-modal-content {
  overflow-y: auto;
  padding-right: 4px;
}

.announcement-modal-content p,
.announcement-modal-content li {
  font-size: 14px;
  line-height: 1.9;
  color: #4c5b6d;
}

.announcement-modal-content p + p,
.announcement-modal-content p + .announcement-section,
.announcement-section + .announcement-section {
  margin-top: 12px;
}

.announcement-section {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}

.announcement-section h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.announcement-section ol,
.announcement-section ul {
  margin: 0;
  padding-left: 20px;
}

.announcement-section li + li {
  margin-top: 6px;
}

.donate-fab {
  position: fixed; right: 20px; bottom: 86px; z-index: 999;
  background: linear-gradient(135deg, #ff7c5c, #ff4f8a); color: #fff;
  border-radius: 999px; padding: 12px 16px; font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(255,79,138,.28); transition: transform .2s, box-shadow .2s;
}
.donate-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255,79,138,.34); }
.donate-modal-box { max-width: 380px; text-align: center; }
.donate-qr {
  display: block; width: 100%; max-width: 240px; margin: 0 auto 16px;
  border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.donate-copy { margin-bottom: 12px !important; }

.hidden-board-fab {
  position: fixed;
  right: 20px;
  bottom: 148px;
  z-index: 998;
  background: linear-gradient(135deg, #6d5dfc, #8a6fdf);
  color: #fff;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(109, 93, 252, .24);
  transition: transform .2s, box-shadow .2s;
}

.hidden-board-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(109, 93, 252, .3);
}

.hidden-board-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(22, 28, 45, .52);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.hidden-board-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.hidden-board-panel {
  width: min(520px, 100%);
  height: 100%;
  background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 22%);
  border-left: 1px solid rgba(138, 111, 223, .15);
  box-shadow: -18px 0 40px rgba(28, 33, 56, .12);
  padding: 22px 18px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .24s ease;
}

.hidden-board-overlay.show .hidden-board-panel {
  transform: translateX(0);
}

.hidden-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.hidden-board-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.hidden-board-head p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
}

.hidden-board-close {
  background: #fff;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  font-size: 18px;
  flex-shrink: 0;
}

.hidden-board-summary {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(109, 93, 252, .08);
  border: 1px solid rgba(109, 93, 252, .14);
  font-size: 13px;
  line-height: 1.8;
  color: #5a55aa;
}

.hidden-board-summary strong {
  color: #4a4296;
}

.hidden-board-question {
  background: #fff;
  border: 1px solid #ebe7ff;
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 8px 22px rgba(95, 91, 180, .08);
}

.hidden-board-question + .hidden-board-question {
  margin-top: 16px;
}

.hidden-board-question-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.hidden-board-question-title strong {
  font-size: 16px;
  color: var(--text);
}

.hidden-board-question-title span {
  font-size: 12px;
  color: #7b6fe0;
  background: rgba(123, 111, 224, .1);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.hidden-board-question-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 14px;
}

.hidden-board-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.hidden-board-textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1.5px solid #ddd6ff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: #faf9ff;
  outline: none;
  transition: all .2s;
}

.hidden-board-textarea:focus {
  border-color: #8a6fdf;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(138, 111, 223, .08);
}

.hidden-board-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hidden-board-char {
  font-size: 12px;
  color: var(--text-light);
}

.hidden-board-char.warning {
  color: var(--danger);
}

.hidden-board-submit {
  border-radius: 12px;
  padding: 10px 18px;
}

.hidden-board-answer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hidden-board-answer-item {
  border: 1px solid #eee9ff;
  border-radius: 16px;
  padding: 12px 13px;
  background: #fcfbff;
}

.hidden-board-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hidden-board-answer-head .author {
  color: #6d5dfc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hidden-board-answer-head .time {
  font-size: 11px;
  color: var(--text-light);
}

.hidden-board-answer-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
}

.hidden-board-answer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hidden-board-answer-meta {
  font-size: 12px;
  color: var(--text-light);
}

.hidden-board-answer-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-like-small {
  background: #fff;
  color: var(--text-light);
  border: 1px solid #e5ddff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  transition: all .2s;
}

.btn-like-small.active {
  color: #ff4f8a;
  border-color: #ffc0d5;
  background: #fff1f7;
}

.btn-like-small:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.hidden-board-delete {
  background: none;
  color: var(--danger);
  border: 1px solid rgba(255,79,79,.26);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.hidden-board-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  padding: 18px 12px;
  border: 1px dashed #ddd6ff;
  border-radius: 16px;
  background: #faf9ff;
}

.hidden-board-reward-tip {
  font-size: 12px;
  color: #7b6fe0;
}

/* ===== 加载中 ===== */
.loading-wrap { display: flex; justify-content: center; padding: 40px 0; }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 板块标题 ===== */
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--text); display: flex; align-items: center; gap: 8px; }

/* ===== 响应式适配 ===== */
@media (max-width: 480px) {
  .top-nav {
    padding: 0 12px;
  }
  .top-nav .nav-left {
    gap: 8px;
  }
  .top-nav .logo {
    font-size: 17px;
  }
  .announcement-entry {
    padding: 8px 10px;
    font-size: 12px;
  }
  .nav-feature-tip {
    min-width: 132px;
    max-width: 180px;
    padding: 9px 10px;
    font-size: 11px;
    bottom: calc(100% + 10px);
  }
  .tab-switcher {
    gap: 8px;
  }
  .tab-switch-btn {
    padding: 11px 12px;
    font-size: 13px;
  }
  .tip-bubble {
    right: -4px;
    max-width: 180px;
    padding: 9px 10px;
    font-size: 11px;
  }
  .announcement-entry span:not(.announcement-entry-icon):not(.announcement-entry-dot) {
    display: none;
  }
  .announcement-modal-box {
    max-height: min(84vh, 760px);
    padding: 20px 16px;
  }
  .collection-modal-box {
    max-height: min(86vh, 820px);
    padding: 20px 16px;
  }
  .collection-modal-fields {
    grid-template-columns: 1fr;
  }
  .collection-bottle-grid {
    grid-template-columns: 1fr;
  }
  .announcement-modal-head {
    gap: 10px;
  }
  .collection-modal-head {
    gap: 10px;
  }
  .announcement-modal-content p,
  .announcement-modal-content li {
    font-size: 13px;
  }
  .auth-card { padding: 28px 20px; }
  .detail-bottle-body { padding: 20px 16px; }
  .donate-fab { right: 16px; bottom: 76px; }
  .donate-modal-box { max-width: 320px; }
  .hidden-board-fab { right: 16px; bottom: 138px; }
  .hidden-board-panel { width: 100%; padding: 18px 14px 22px; }
}
