:root {
  --blue: #0A84FF;
  --blue-soft: rgba(10, 132, 255, 0.12);
  --bg: #EEF1F4;
  --bg-2: #E6EAEF;
  --card: #FFFFFF;
  --text: #111318;
  --muted: #6B7280;
  --danger: #FF3B30;
  --border: rgba(17, 19, 24, 0.08);
  --radius-card: 18px;
  --radius-ctl: 12px;
  --shadow: 0 1px 2px rgba(17, 19, 24, 0.04), 0 10px 28px rgba(17, 19, 24, 0.06);
  --marquee-h: 34px;
  --max-w: 720px;
  --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --margin: clamp(1rem, 3.2vw, 1.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(10, 132, 255, 0.08), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(17, 19, 24, 0.04), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 16px; }

.marquee-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--marquee-h);
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 58s linear infinite;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.page-offset {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: calc(var(--marquee-h) + 8px);
  box-sizing: border-box;
}

.shell {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: 0 var(--margin) 28px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--marquee-h) - 8px);
  box-sizing: border-box;
}

main {
  flex: 1 0 auto;
  width: 100%;
  animation: page-fade 0.4s ease both;
}

@keyframes page-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 10px 0 6px;
}

.site-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
  line-height: 1.15;
  grid-column: 1 / -1;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.campus-select {
  min-height: 40px;
  min-width: 118px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  padding: 0 28px 0 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 8px 0 14px;
  padding: 4px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-item {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  position: relative;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.tab-item:active { transform: scale(0.97); }

.tab-item.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 2px rgba(17,19,24,0.06);
  font-weight: 650;
}

.tab-item.active::after { display: none; }

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

/* 双列网格：左右成对排满再换行，封面统一比例 */
.xhs-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.xhs-feed .xhs-card {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.xhs-feed .xhs-col {
  display: contents;
}

@media (min-width: 900px) {
  .xhs-feed {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
  }
}

.xhs-cover-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #F3F4F6;
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
}

.xhs-cover-wrap .xhs-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xhs-cover-wrap .text-cover {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.text-cover {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: #FAF7F1;
  color: #4A433A;
  text-align: center;
}

.text-cover span {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

@media (prefers-color-scheme: dark) {
  .text-cover {
    background: #F7F1E8;
    color: #3F392F;
  }
}

.xhs-body {
  padding: 10px 10px 12px;
}

.xhs-body .post-title {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xhs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.xhs-foot .xhs-user {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.xhs-foot .post-actions {
  border: none;
  padding: 0;
  gap: 2px;
}

.xhs-foot .action-btn {
  min-height: 32px;
  padding: 0 6px;
  font-size: 12px;
}

.card-delete-float {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background: rgba(17,19,24,0.55);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.card-delete-float:hover {
  background: rgba(220, 38, 38, 0.85);
}

.xhs-top {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  cursor: pointer;
  border: 1px solid transparent;
  animation: card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  box-shadow: 0 2px 4px rgba(17,19,24,0.04), 0 14px 32px rgba(17,19,24,0.08);
}

.post-card:active { transform: scale(0.992); border-color: var(--border); }

.detail-card {
  cursor: default;
}

.detail-card:active { transform: none; }

.section-heading {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}

.section-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.delete-comment-btn {
  border: none;
  background: transparent;
  color: #C0392B;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.delete-comment-btn:hover { text-decoration: underline; }

.action-btn.delete-post-btn {
  color: #C0392B;
  margin-left: auto;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.post-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}

.post-content {
  font-size: 15px;
  color: #2A2E35;
  margin: 0 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-content.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.img-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.img-scroll img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
  background: #F3F4F6;
}

.post-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  border-radius: 10px;
}

.action-btn:hover { background: rgba(17,19,24,0.04); }
.action-btn.liked { color: var(--blue); background: var(--blue-soft); }
.action-btn svg { width: 18px; height: 18px; }

.top-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
}

.area-tag {
  display: inline-block;
  font-size: 11px;
  color: #334155;
  background: #EEF2F7;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
}

.anon-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  background: #F3F4F6;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: middle;
}

.post-extra-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.anon-check {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: auto !important;
  min-height: 40px;
  padding: 0 2px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

.anon-check input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 0 0 14px;
  accent-color: var(--text);
}

.load-more, .list-end, .list-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
}

.fab-post {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px));
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--text);
  border: none;
  box-shadow: 0 12px 28px rgba(17,19,24,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.2s ease;
  animation: fab-in 0.5s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fab-in {
  from { opacity: 0; transform: translateY(16px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fab-post:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(17,19,24,0.28); }
.fab-post:active { transform: scale(0.94); }
.fab-post svg { width: 22px; height: 22px; fill: #fff; }

.site-footer {
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
  animation: page-fade 0.5s 0.08s ease both;
}

.disclaimer-toggle {
  width: 100%;
  min-height: 44px;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  padding: 8px 0;
  cursor: pointer;
}

.disclaimer-body {
  display: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  padding-bottom: 12px;
}
.disclaimer-body.open { display: block; }

.icp-line, .powered {
  text-align: center;
  margin: 8px 0;
}
.icp-line {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.powered { margin-bottom: 0; }
.powered a {
  color: var(--muted);
  transition: color 0.18s ease;
}
.powered a:hover { color: var(--text); }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 19, 24, 0);
  z-index: 1100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(0);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.modal-mask.open {
  display: flex;
  background: rgba(17, 19, 24, 0.42);
  backdrop-filter: blur(4px);
  animation: mask-in 0.25s ease both;
}

@keyframes mask-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-panel {
  width: 100%;
  max-width: var(--max-w);
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 16px 28px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: sheet-up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sheet-up {
  from { transform: translateY(28px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
  .modal-mask { align-items: center; }
  .modal-panel { border-radius: 18px; margin: 16px; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.modal-close {
  min-width: 40px;
  min-height: 40px;
  border: none;
  background: #F3F4F6;
  border-radius: 12px;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  padding: 11px 13px;
  background: #FBFBFC;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-group textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(10,132,255,0.55);
  background: #fff;
}

.btn-primary {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: var(--radius-ctl);
  background: var(--text);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn-ghost:active { transform: scale(0.97); }

.form-tip { font-size: 13px; color: var(--danger); margin: 8px 0 0; min-height: 18px; }
.form-tip.ok { color: var(--blue); }

.preview-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.preview-item { position: relative; width: 72px; height: 72px; }
.preview-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.preview-item .rm {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--danger); color: #fff;
  font-size: 12px; cursor: pointer; line-height: 22px; padding: 0;
}

.upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px dashed rgba(17,19,24,0.18);
  border-radius: var(--radius-ctl);
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  background: #F8FAFC;
}
.upload-trigger input { display: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  margin: 2px 0 10px;
}

.detail-card { cursor: default; }

.comment-section {
  margin-top: 14px;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 16px;
}

.comment-section h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.comment-user { color: var(--text); font-weight: 650; font-size: 13px; }
.comment-body { font-size: 15px; white-space: pre-wrap; word-break: break-word; }

.comment-replies {
  margin-top: 8px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 2px solid #E7EAF0;
}

.reply-btn {
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  min-height: 36px;
  padding: 0 4px;
  cursor: pointer;
  font-weight: 600;
}

.reply-box { display: none; margin-top: 8px; }
.reply-box.open { display: block; }
.comment-composer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.banned-tip { color: var(--danger); font-size: 13px; margin: 8px 0; }

.user-chip {
  font-size: 13px;
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--text);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.login-trigger {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  min-height: 40px;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 999px;
}

a.login-trigger {
  display: inline-flex;
  align-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: rgba(17, 19, 24, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  max-width: 80%;
  text-align: center;
}
.toast.show { opacity: 1; }

.user-title {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 18px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-channel-row {
  display: flex;
  gap: 16px;
  min-height: 44px;
  align-items: center;
}

.pay-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text);
}

.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }

.donate-board { list-style: none; margin: 0; padding: 0; }
.donate-board li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.donate-board li:last-child { border-bottom: none; }
.donate-board .rank { width: 28px; color: var(--muted); font-weight: 700; font-size: 14px; }
.donate-board .name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600;
}
.donate-board .amt { color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }

.muted { color: var(--muted); }

/* 搜一搜 */
.search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
  color: var(--text);
}

.search-bar .search-submit,
.search-bar button[type="submit"] {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 64px;
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-bar-page {
  margin-bottom: 12px;
}

.search-type-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
}

.search-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 4px 0 10px;
}

.search-user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.search-user-item {
  display: block;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.search-user-item:hover { background: #fff; }
.search-user-name { font-weight: 700; font-size: 15px; }
.search-user-bio {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 个人主页 / 我的 */
.profile-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
  margin-bottom: 8px;
}

.profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-name {
  margin: 0;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.profile-bio {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #2A2E35;
  white-space: pre-wrap;
  word-break: break-word;
}

.wechat-card-box {
  margin: 0 0 14px;
}

.wechat-card-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 650;
}

.wechat-card-img {
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  background: #F3F4F6;
}

.btn-secondary-link {
  display: inline-block;
  margin-top: 10px;
  margin-left: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.mine-profile .btn-primary {
  width: auto;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 18px;
  vertical-align: middle;
}

.user-link {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}

.user-link:hover { color: var(--blue); }

.auth-switch {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.link-btn {
  border: none;
  background: none;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}
