/* ============================================================
 * 宠物比价 · 元/天 — 前端样式（零依赖，纯 CSS）
 * 设计：干净、卡片化、以「元/天」为主视觉重点
 * ============================================================ */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #1f2430;
  --ink-soft: #5b6472;
  --ink-mute: #6b7484;       /* 辅助说明文字（白底对比度 ≥4.5:1） */
  --line: #e6e9ef;
  --brand: #f0883e;          /* 暖橙：装饰 / 浅色描边 */
  --brand-strong: #c2410c;   /* 深橙：按钮 / 激活态底色（白字 ≥4.5:1） */
  --brand-ink: #b9551a;
  --accent: #2bb6a3;         /* 青：装饰 */
  --accent-ink: #14746a;     /* 深青：文字 / 按钮底色（白字 ≥4.5:1） */
  --accent-ink-dark: #0f5f56;/* 深青按下态 */
  --accent-soft: #e6f7f4;
  --ok: #1f8a4c;                /* 绿色：正常 / 高匹配 / 充足状态 */
  --warn-bg: #fff7e9;
  --warn-line: #f3d8a8;
  --warn-ink: #8a5a12;
  --ref-bg: #eef1f6;
  --ref-ink: #6b7484;
  --shadow: 0 1px 3px rgba(20, 30, 50, .06), 0 6px 18px rgba(20, 30, 50, .05);
  --radius: 14px;
}

/* 键盘焦点可见性（P0 修复：纯键盘用户能清楚看到焦点位置） */
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: 6px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .chip:focus-visible, .cat-tab:focus-visible, .link-btn:focus-visible {
  outline: 3px solid var(--brand-strong); outline-offset: 2px;
}

/* 占位符对比度（P2 修复：浏览器默认 placeholder 在白底上仅约 3:1，不达 WCAG AA）
   统一使用 --ink-mute(#6b7484)，在 #fbfcfe 输入底色上对比度≈4.6:1，达标；
   opacity:1 修正 Firefox 默认半透明导致对比度被进一步拉低的问题 */
::placeholder { color: var(--ink-mute); opacity: 1; }
::-webkit-input-placeholder { color: var(--ink-mute); opacity: 1; }
:-moz-placeholder { color: var(--ink-mute); opacity: 1; }
::-moz-placeholder { color: var(--ink-mute); opacity: 1; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.container { width: min(1180px, 100% - 28px); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, #fff 0%, #fff6ee 100%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-emoji { font-size: 34px; line-height: 1; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .3px; margin: 0; }
.brand-descriptor { font-size: 12.5px; color: var(--brand-ink); }
.header-stats { display: flex; gap: 22px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 18px; color: var(--brand-ink); }
.stat span { font-size: 11.5px; color: var(--ink-soft); }

/* ---------- Notice ---------- */
.notice {
  margin: 14px auto 0; width: min(1180px, 100% - 28px);
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink);
  border-radius: 10px; padding: 10px 14px; font-size: 13px;
}
.notice b { color: #9a5a10; }

/* ---------- Calculator ---------- */
.calculator {
  display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin: 16px 0;
}
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field.grow { flex: 1 1 240px; }
.calc-field label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.hint { font-size: 11px; color: var(--ink-mute); }

.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button {
  width: 34px; height: 38px; border: none; background: #f3f5f9; font-size: 20px;
  color: var(--ink); cursor: pointer;
}
.stepper button:hover { background: #e9edf3; }
.stepper input {
  width: 56px; height: 38px; border: none; text-align: center; font-size: 17px; font-weight: 700;
  color: var(--ink); -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

#sort-select, #search-input {
  height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  font-size: 14px; background: #fbfcfe; color: var(--ink); min-width: 200px;
}
#search-input { width: 100%; }
#sort-select:focus, #search-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.active { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; font-weight: 600; }

/* ---------- Result info ---------- */
.result-info { font-size: 13px; color: var(--ink-soft); margin: 6px 2px 12px; }
.result-info b { color: var(--accent-ink); }

/* ---------- Table ---------- */
.table-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow-x: auto; margin-bottom: 22px;
}
.rank-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 1060px; }
.rank-table thead th {
  position: sticky; top: 0; background: #fafbfd; color: var(--ink-soft);
  font-weight: 700; text-align: right; padding: 12px 12px; border-bottom: 2px solid var(--line);
  white-space: nowrap; font-size: 12.5px;
}
.rank-table thead th.col-rank, .rank-table thead th.col-name,
.rank-table thead th.col-spec, .rank-table thead th.col-params,
.rank-table thead th.col-formula { text-align: left; }
.rank-table tbody td {
  padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle;
  white-space: nowrap;
}
.rank-table tbody tr:hover { background: #fafbfe; }
.rank-table tbody tr:last-child td { border-bottom: none; }

.col-rank { width: 36px; }
.col-act { width: 132px; text-align: center; }
.row-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.row-actions .btn-primary.sm, .row-actions .btn-ghost.sm { padding: 5px 10px; font-size: 12.5px; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: #eef1f6; color: var(--ink-soft);
  font-weight: 700; font-size: 12px;
}
tr:nth-child(1) .rank-badge { background: var(--accent-ink); color: #fff; }
tr:nth-child(2) .rank-badge { background: #1f7d70; color: #fff; }
tr:nth-child(3) .rank-badge { background: var(--ink-mute); color: #fff; }

.col-name { text-align: left; min-width: 190px; }
.name-brand { font-weight: 700; color: var(--ink); }
.name-title { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.material-tag {
  display: inline-block; margin-top: 4px; font-size: 11px; padding: 1px 7px;
  border-radius: 6px; background: #f0f3f8; color: var(--ink-soft);
}
.spec { color: var(--ink-soft); font-size: 12.5px; text-align: left; }

.price { font-weight: 700; }
.src-badge {
  display: inline-block; margin-left: 6px; font-size: 10px; padding: 1px 6px; border-radius: 6px;
  vertical-align: middle;
}
.src-live { background: var(--accent-soft); color: var(--accent-ink); }
.src-ref { background: var(--ref-bg); color: var(--ref-ink); }

.col-perday { font-weight: 800; color: var(--brand-ink); font-size: 15px; }
.perday-unit { font-size: 11px; color: var(--ink-soft); font-weight: 500; }

.col-peryear { font-weight: 700; color: var(--accent-ink); }

.params { text-align: left !important; font-size: 12px; color: var(--ink-soft); }
.params .p { display: inline-block; margin-right: 6px; }
.params .flush { color: #1f6fb8; }

.formula { text-align: left !important; font-size: 11.5px; color: var(--ink-mute); max-width: 280px; white-space: normal; line-height: 1.4; }

/* ---------- Empty ---------- */
.empty-state { text-align: center; padding: 40px 0; color: var(--ink-soft); }
.empty-title { font-weight: 700; font-size: 15px; margin: 0 0 4px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 24px;
}
.disclaimer h3 { margin: 0 0 10px; font-size: 15px; }
.disclaimer ul { margin: 0; padding-left: 20px; font-size: 13px; color: var(--ink-soft); }
.disclaimer li { margin: 6px 0; }
.disclaimer code { background: #f0f3f8; padding: 1px 6px; border-radius: 5px; color: var(--brand-ink); font-size: 12px; }
.disclaimer b { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 18px 0; }
.site-footer p { margin: 0; text-align: center; font-size: 12px; color: var(--ink-soft); }
.site-footer .beian { margin-top: 6px; }
.site-footer .beian a { color: var(--brand-ink); text-decoration: none; }
.site-footer .beian a:hover { text-decoration: underline; }

/* ---------- 按钮 ---------- */
.btn-primary, .btn-ghost, .btn-danger {
  border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease; font-family: inherit;
}
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-danger { background: #fff; border-color: #f0c9c4; color: #c0392b; }
.btn-danger:hover { background: #fdecea; }
.btn-primary.sm, .btn-ghost.sm, .btn-danger.sm { padding: 6px 12px; font-size: 13px; }
.btn-ghost.sm { background: #f7f9fc; }

/* ---------- 登录态区 ---------- */
.auth-area { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip .u-name { font-weight: 700; color: var(--brand-ink); font-size: 14px; }

/* ---------- 个性化计算区 ---------- */
.profile-field {
  flex: 1 1 320px; display: flex; align-items: center;
  background: var(--accent-soft); border: 1px solid #bfe7e0; border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; color: var(--accent-ink);
}
.profile-field b { color: var(--accent-ink); }
.profile-field a { color: var(--brand-ink); font-weight: 600; }
.login-cta {
  font-size: 12.5px; color: var(--brand-ink); background: var(--warn-bg);
  border: 1px dashed var(--warn-line); border-radius: 10px; padding: 8px 12px; margin: 2px 0 14px;
}
.login-cta a { color: var(--brand-ink); font-weight: 700; text-decoration: underline; }
.profile-summary {
  font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin: 6px 2px 12px;
  box-shadow: var(--shadow);
}
.profile-summary b { color: var(--accent); }

/* ---------- 首页「选择宠物档案」+ 智能推荐（#25） ---------- */
.pet-profile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin: 16px 0 4px;
}
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pp-title { margin: 0; font-size: 15.5px; }
.pp-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-pets { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.pp-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s ease;
}
.pp-chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.pp-chip.active { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; font-weight: 600; }
.pp-sub { font-size: 11px; opacity: .75; }
.pp-hint { margin: 6px 0 0; }

.home-reco { margin: 4px 0 18px; }
.reco-head { font-size: 14px; margin: 4px 0 8px; color: var(--ink); }
.reco-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.reco-badge.high { background: #e7f7ee; color: var(--ok); }
.reco-badge.mid { background: #fff4e0; color: var(--warn); }
.reco-badge.low { background: #f1f3f5; color: var(--ink-soft); }
.reco-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 8px 0; box-shadow: var(--shadow);
}
.reco-card .rc-rank {
  font-size: 14px; font-weight: 800; color: #fff; width: 26px; height: 26px; min-width: 26px;
  border-radius: 50%; background: #9aa3b2; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.reco-card .rc-rank.top1 { background: var(--accent-ink); }
.reco-card .rc-rank.top2 { background: #1f7d70; }
.reco-card .rc-rank.top3 { background: var(--ink-mute); }
.reco-card .rc-main { flex: 1; min-width: 0; }
.reco-card .rc-name { font-weight: 700; font-size: 14.5px; }
.reco-card .rc-brand { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.reco-card .rc-price { color: var(--brand-ink); font-weight: 800; font-size: 15px; margin: 2px 0; }
.reco-card .rc-formula { font-size: 11px; color: var(--ink-mute); line-height: 1.5; }
.reco-card .rc-reason { font-size: 12px; color: #374151; background: #f8f9fb; border-radius: 7px; padding: 4px 8px; margin-top: 4px; border-left: 3px solid var(--accent); }
.reco-card .rc-buy { display: inline-block; margin-top: 8px; padding: 6px 14px; text-decoration: none; }


/* ---------- 弹窗 ---------- */
.dialog { border: none; border-radius: 16px; padding: 0; max-width: 420px; width: calc(100% - 28px); box-shadow: 0 20px 60px rgba(20,30,50,.25); }
.dialog::backdrop { background: rgba(20,30,50,.45); }
.dialog-card { position: relative; padding: 22px 22px 18px; }
.dialog-card.wide { max-width: 460px; }
.dialog-close {
  position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: none;
  background: transparent; font-size: 24px; line-height: 1; color: var(--ink-soft); cursor: pointer; border-radius: 8px;
}
.dialog-close:hover { background: #f0f2f6; }
.dialog-card h2 { margin: 0 0 12px; font-size: 19px; }
.dialog-card h3 { margin: 14px 0 8px; font-size: 15px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab { flex: 1; padding: 8px; border: 1px solid var(--line); background: #f7f9fc; color: var(--ink-soft); border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 600; }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.auth-form .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.auth-form label, .cat-form label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.auth-form input, .cat-form input {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 14px; background: #fbfcfe; color: var(--ink);
}
.auth-form input:focus, .cat-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form-msg { color: #c0392b; font-size: 12.5px; min-height: 16px; margin: 2px 0 8px; }
.dialog-foot { font-size: 11.5px; color: var(--ink-mute); margin-top: 10px; }
.divider { border: none; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------- 猫咪档案 ---------- */
.cat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.cat-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cat-info { display: flex; flex-direction: column; gap: 2px; }
.cat-info b { font-size: 14.5px; color: var(--ink); }
.cat-meta { font-size: 12px; color: var(--ink-soft); }
.cat-actions { display: flex; gap: 6px; }
.dep-badge {
  display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
}
.dep-badge.urgent { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; }
.dep-badge.soon { background: #fff4e0; color: #b9770a; border: 1px solid #f3d8a8; }
.dep-badge.ok { background: #e7f7ee; color: var(--ok); border: 1px solid #bfe7d4; }
.cat-form .field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-form .field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 120px; margin-bottom: 10px; }
.cat-form .field.small { flex: 1 1 30%; min-width: 90px; }
.cat-form .row { display: flex; gap: 10px; margin-top: 4px; }
.cat-form select {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px;
  font-size: 14px; background: #fbfcfe; color: var(--ink);
}

/* ---------- 品类切换 Tab ---------- */
.cat-tabs {
  display: flex; gap: 8px; width: min(1180px, 100% - 28px); margin: 14px auto 0;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 9px 18px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: all .15s ease; box-shadow: var(--shadow);
}
.cat-tab:hover { border-color: var(--brand); color: var(--brand-ink); }
.cat-tab.active {
  background: var(--brand-strong); border-color: var(--brand-strong); color: #fff;
  box-shadow: 0 2px 10px rgba(194,65,12,.35);
}

@media (max-width: 640px) {
  .header-stats { gap: 14px; }
  .calculator { gap: 12px; }
  .brand-name { font-size: 17px; }
  .auth-area { margin-left: 0; }
  .header-inner { gap: 10px; row-gap: 10px; }
  .header-stats { flex: 1 1 100%; justify-content: space-around; gap: 10px; }
  .btn-feedback, .auth-area { flex: 0 0 auto; }
  .cat-tabs { gap: 6px; }
  .cat-tab { padding: 8px 14px; font-size: 13px; }
}

/* 尊重用户的减少动态效果偏好（P2 增强） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 提醒横幅 ---------- */
.alert-banner { margin: 12px auto 0; width: min(1180px, 100% - 28px); display: flex; flex-direction: column; gap: 6px; }
.alert-item {
  background: linear-gradient(90deg, #fff4ec, #fff); border: 1px solid #f3c9a8; color: #9a4e12;
  border-left: 4px solid var(--brand); border-radius: 10px; padding: 9px 14px; font-size: 13.5px;
  box-shadow: var(--shadow);
}
.alert-item b { color: #b9551a; }

/* ---------- 关注 / 提醒 弹窗 ---------- */
.follow-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.follow-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; flex-wrap: wrap;
}
.follow-info { display: flex; flex-direction: column; gap: 2px; }
.follow-info b { font-size: 14.5px; color: var(--ink); }
.follow-meta { font-size: 12px; color: var(--ink-soft); }
.follow-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.f-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: #eef1f6; color: var(--ink-soft); }
.f-tag.trig { background: var(--warn-bg); color: #9a5a10; border: 1px solid var(--warn-line); font-weight: 600; }
.follow-actions { display: flex; gap: 6px; }
.follow-form .field-row { display: flex; gap: 10px; }
.follow-form .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.follow-form .field.small { flex: 0 0 48%; }
.follow-form select, .follow-form input {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  font-size: 14px; background: #fbfcfe; color: var(--ink); max-width: 100%;
}
.follow-form select:focus, .follow-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.follow-form .row { display: flex; gap: 10px; margin-top: 4px; }

/* ---------- 注册/登录强化 ---------- */
.req { color: #c0392b; }
.field-hint { font-size: 11.5px; color: var(--ink-mute); margin-top: -2px; }
.pw-strength { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pw-bar { flex: 1; height: 6px; background: #e5e9f0; border-radius: 3px; overflow: hidden; }
.pw-fill { height: 100%; width: 0%; transition: width .2s ease, background .2s ease; }
.pw-text { font-size: 11.5px; color: var(--ink-soft); min-width: 32px; }

/* 登录与注册弹窗差异化 */
.dialog-subtitle { margin: -8px 0 14px; font-size: 13px; color: var(--ink-soft); }
.login-card { border-top: 4px solid var(--accent); }
.login-card h2 { color: var(--accent-ink); }
.login-submit { background: var(--accent-ink); }
.login-submit:hover { background: var(--accent-ink-dark); }
.register-card { border-top: 4px solid var(--brand); }
.register-card h2 { color: var(--brand-strong); }
.register-submit { background: var(--brand-strong); }
.register-submit:hover { background: var(--brand-ink); }
.dialog-foot a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; }

/* 登录弹窗：微信扫码登录分区 */
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--ink-mute); font-size: 12px; margin: 14px 0 10px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line, #e3e6ee); }
.btn-wechat {
  width: 100%; padding: 10px 14px; border: 1px solid #1aad19; border-radius: 8px;
  background: #fff; color: #1aad19; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s ease;
}
.btn-wechat:hover { background: #f1fbf0; }
.btn-wechat:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
.wechat-qr { margin-top: 10px; display: flex; justify-content: center; }

/* 首页留言反馈入口 */
.btn-feedback {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--accent-ink); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .15s ease;
}
.btn-feedback:hover { background: var(--accent-soft); border-color: var(--accent-ink); color: var(--accent-ink); }

/* 伪链接按钮（替代滥用 <a href="#"> 的语义化按钮） */
.link-btn {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--brand-ink); font-weight: 700; text-decoration: underline;
  cursor: pointer; font-size: inherit; font-family: inherit;
}
.link-btn:hover { color: var(--brand-strong); }

/* ---------- 留言板 ---------- */
.gb-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-height: 320px; overflow-y: auto; }
.gb-card { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.gb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.gb-head b { font-size: 14px; color: var(--ink); }
.gb-time { font-size: 11.5px; color: var(--ink-mute); }
.gb-contact { font-size: 11.5px; color: var(--ink-soft); background: #eef1f6; padding: 1px 6px; border-radius: 4px; }
.gb-body { font-size: 13.5px; color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.auth-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px;
  background: #fbfcfe; color: var(--ink); resize: vertical; min-height: 80px;
}
.auth-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* 密码可见切换按钮（登录/注册弹窗，与智能选粮页一致） */
.pwd-wrap { position: relative; display: flex; width: 100%; }
.pwd-wrap input { width: 100%; padding-right: 38px; }
.pwd-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer; font-size: 16px; padding: 0; line-height: 1; color: var(--ink-soft);
}
.pwd-eye:hover { color: var(--brand-ink); }
.pwd-eye:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: 6px; }

/* ---------- 用户画像弹窗（#26 新增） ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 2px; }
.profile-stat {
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.profile-stat .ps-val { font-size: 17px; font-weight: 800; color: var(--brand-ink); word-break: break-word; }
.profile-stat .ps-label { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 480px) {
  .profile-grid { grid-template-columns: 1fr; }
}
