/* ==========================================================================
   鸭脖专栏 · 全站样式（原生 CSS，无框架）
   主色 #E64A19 / 辅色 #5C6B85 / 背景 #FAF8F6 / 圆角 14px / 容器 1080px
   ========================================================================== */

:root {
  --brand: #e64a19;
  --brand-dark: #c93e12;
  --brand-soft: #fff1ec;
  --accent: #5c6b85;
  --bg: #faf8f6;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #8a8480;
  --line: #eee6e2;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(43, 43, 43, 0.05);
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #faf8f6;
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.35; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- 布局 ---------- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.main { padding: 24px 16px 64px; min-height: 60vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.brand-text { font-size: 17px; letter-spacing: .02em; }

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

.nav-link {
  position: relative;
  padding: 6px 10px;
  color: #5c6b85;
  font-size: 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.nav-link.active { color: var(--brand); font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth form { margin: 0; }

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

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footer p { margin: 0; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--accent); border-color: #dfd8d4; }
.btn-ghost:hover { background: #fff; border-color: var(--brand); color: var(--brand); }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--brand);
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- 表单 ---------- */

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 720px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label { font-size: 13px; color: var(--accent); font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #e2dad6;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 74, 25, .12);
}
.field textarea { resize: vertical; line-height: 1.7; }

.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 220px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.error {
  background: #fdecea;
  border: 1px solid #f6c9c3;
  color: #b3261e;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.notice {
  background: #eef7ee;
  border: 1px solid #cfe6cf;
  color: #2f6b32;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
}

/* ---------- 卡片与列表 ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.item-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease;
}
.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(230, 74, 25, .14);
  text-decoration: none;
}

.item-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: #f2eeec;
}

.item-thumb.noimg,
.thumb-ph {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #f4f0ee, #f4f0ee 10px, #ece6e3 10px, #ece6e3 20px);
  color: #a29690;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.item-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }

.item-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

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

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.badge.gray { background: #f1efee; color: var(--accent); }
.badge.ok { background: #eaf6ea; color: #2f6b32; }
.badge.bad { background: #fdecea; color: #b3261e; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f0ee;
  color: #6d6560;
  font-size: 12px;
}

.price { color: var(--brand); font-weight: 700; font-size: 15px; }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }

.muted { color: var(--muted); font-size: 13px; }

.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #e6ded9;
  border-radius: var(--radius);
}
.empty h2 { color: var(--text); }

.divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---------- 悬挂牌（sticky Top3） ---------- */

.pinned {
  position: sticky;
  top: 60px;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  padding: 14px 0 16px;
  margin-bottom: 22px;
}

.pinned-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pin-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.pin-card:hover { border-color: var(--brand); text-decoration: none; }
.pin-card .pin-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 高低差领奖台 ---------- */

.podium {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 20px 12px 0;
  background: linear-gradient(#fff7f5, #ffffff);
  border-radius: 18px;
  border: 1px solid #f0e6e2;
}
.podium .slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px;
  border-radius: 16px 16px 6px 6px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.podium .slot:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(230, 74, 25, .18); }
.podium .rank-1 { height: 288px; background: linear-gradient(160deg, #ff7a45, #e64a19); }
.podium .rank-2 { height: 216px; background: linear-gradient(160deg, #8d9bb5, #5c6b85); }
.podium .rank-3 { height: 168px; background: linear-gradient(160deg, #c69a6d, #a87a4c); }
.podium .slot-empty { background: repeating-linear-gradient(45deg, #f2eeec, #f2eeec 10px, #eae4e1 10px, #eae4e1 20px) !important; color: #9a8f8a; }
.podium .rank-num { font-size: 12px; letter-spacing: .1em; opacity: .9; }
.podium .slot-name { font-size: 16px; line-height: 1.3; word-break: break-all; }
.podium .slot-meta { font-size: 12px; opacity: .92; }

@media (max-width: 720px) {
  .podium { gap: 6px; padding: 14px 8px 0; }
  .podium .slot { padding: 10px; }
  .podium .rank-1 { height: 208px; }
  .podium .rank-2 { height: 168px; }
  .podium .rank-3 { height: 136px; }
  .podium .slot-name { font-size: 13px; }
}

/* ---------- 评论树 ---------- */

.comment-list { list-style: none; padding-left: 0; margin: 0; }
.comment {
  list-style: none;
  border-left: 2px solid #f0e6e2;
  padding-left: 12px;
  margin: 10px 0;
}
.comment[data-depth="0"] { border-left-color: var(--brand); }
.comment-children { list-style: none; padding-left: 0; margin: 8px 0 0; }
.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.comment-head strong { font-size: 13px; }
.comment-body {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 6px;
  font-size: 14px;
}
.comment-actions { display: flex; gap: 12px; margin-bottom: 6px; }
.reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.reply-form textarea {
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #e2dad6;
  border-radius: 10px;
  padding: 8px 10px;
  resize: vertical;
  outline: none;
}
.reply-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(230, 74, 25, .12); }
.reply-form .btn { align-self: flex-start; }
.floor {
  font-size: 11px;
  color: #a29690;
  background: #f3f0ee;
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------- 评分 ---------- */

.stars { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.star {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 2px 4px;
  color: #d9d2ce;
  transition: color .15s ease, transform .15s ease;
}
.star:hover { transform: translateY(-2px); }
.star.on { color: var(--brand); }

.score-big {
  font-size: 48px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.score-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
}

.score-grid { display: flex; gap: 6px; flex-wrap: wrap; }
.score-grid .star {
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f6f3f1;
  font-size: 14px;
  font-weight: 600;
  color: #8a8480;
}
.score-grid .star.on { background: var(--brand); color: #fff; }

/* ---------- 详情页 ---------- */

.detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.detail-title { font-size: 24px; margin: 0 0 10px; word-break: break-word; }

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

.prose {
  white-space: pre-wrap;
  line-height: 1.8;
  word-break: break-word;
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f2eeec;
}

/* ---------- 免责声明 ---------- */

.disclaimer {
  background: #fff8e1;
  border-left: 3px solid #f0b400;
  font-size: 13px;
  color: #7a5c00;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 16px 0;
  line-height: 1.6;
}

/* ---------- 首页 / 通用区块 ---------- */

.hero {
  background: linear-gradient(135deg, #fff3ee, #ffffff 60%);
  border: 1px solid #f3e6e0;
  border-radius: 20px;
  padding: 32px 24px;
  margin-bottom: 24px;
}
.hero h1 { font-size: 28px; margin-bottom: 8px; }
.hero .lead { color: var(--accent); font-size: 15px; margin-bottom: 18px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.section { margin: 28px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; }
.section-head .more { font-size: 13px; }

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(230, 74, 25, .12);
  text-decoration: none;
}
.entry-card .entry-icon { font-size: 22px; }
.entry-card h3 { margin: 0; }
.entry-card p { margin: 0; color: var(--muted); font-size: 13px; }

.top3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.top3-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
}
.top3-card:hover { border-color: var(--brand); text-decoration: none; }
.top3-card .t { font-weight: 600; line-height: 1.4; word-break: break-word; }

/* ---------- 分类 tab / 工具栏 ---------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tabbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e4dcd8;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}
.tab:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 上传区 ---------- */

.uploader {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px dashed #e2dad6;
  border-radius: 12px;
  background: #fdfbfa;
}

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }

.thumb {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f2eeec;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  cursor: pointer;
  padding: 0;
}

/* ---------- 约见记录 ---------- */

.deal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.deal {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.deal-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 工具类 ---------- */

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.right { margin-left: auto; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }

/* ==========================================================================
   移动端适配
   ========================================================================== */

@media (max-width: 720px) {
  body { font-size: 14px; }

  .topbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px 12px;
  }

  .brand-text { font-size: 15px; }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 6px 8px; font-size: 13px; }

  .main { padding: 16px 12px 48px; }
  .container { padding: 0 12px; }

  .hero { padding: 22px 16px; border-radius: 16px; }
  .hero h1 { font-size: 22px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .top3 { grid-template-columns: 1fr; }
  .pinned-grid { grid-template-columns: 1fr; }
  .pinned { top: 92px; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .detail { padding: 16px; }
  .detail-title { font-size: 20px; }
  .score-big { font-size: 38px; }
  .form { padding: 16px; }
}
