:root { --lzhh-green: #198754; }
body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; padding-bottom: 120px; }
.flower-card img { height: 180px; object-fit: cover; }
.page-header { margin-bottom: 1rem; }
.page-title { font-weight: 600; }
.toast-container { z-index: 1100; }
.navbar-sticky { position: sticky; top: 0; z-index: 1020; }
.footer-fixed { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1020; }
.navbar-search-input { width: 220px; }
.footer-brand { font-size: 0.95rem; }
.category-pill { cursor: pointer; user-select: none; }
.category-pill.active { background-color: var(--lzhh-green); color: #fff; border-color: var(--lzhh-green); }
.home-slide { height: 320px; }
.home-slide-a { background: linear-gradient(120deg, #198754, #2fb380); }
.home-slide-b { background: linear-gradient(120deg, #0d6efd, #4d9fff); }
.home-slide-c { background: linear-gradient(120deg, #6f42c1, #9b7bd6); }

/* 登录/注册页的方式切换（密码登录 / 邮箱验证码登录），与移动端两种模式对齐 */
.auth-tabs { background: #f1f7f2; border-radius: 10px; padding: 4px; }
.auth-tabs .nav-link {
  color: #2c4733; font-size: 14px; border-radius: 8px; padding: 7px 10px;
  border: none; background: transparent;
}
.auth-tabs .nav-link:hover { background: #e4efe6; }
.auth-tabs .nav-link.active { background: var(--lzhh-green); color: #fff; }

/* ── 个人中心 ──
   版面为「左侧人物卡 + 右侧分区手风琴」。手风琴一次只展开一段，把原本一列
   8 段的长页面压到首屏内；桌面端左侧人物卡 sticky 常驻。 */
.pf-side { position: sticky; top: 84px; }
.pf-avatar-wrap { position: relative; display: inline-block; }
.pf-avatar { object-fit: cover; border-radius: 50%; }
.pf-avatar-edit {
  position: absolute; right: 2px; bottom: 2px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--lzhh-green); color: #fff;
  cursor: pointer; border: 2px solid #fff;
}
.pf-avatar-edit:hover { background: #146c43; }
.pf-radio-group { display: flex; align-items: center; gap: 12px; min-height: 38px; }
.pf-radio-group .form-check { margin: 0; }

.pf-accordion .accordion-button { font-size: 15px; font-weight: 600; padding: 14px 16px; }
.pf-accordion .accordion-button:not(.collapsed) { color: #2c4733; background: #f1f7f2; }
.pf-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.pf-accordion .accordion-body { padding: 16px; }
/* 分区副标题只在展开时占位不必要，收起时也显示更有信息量 */
.pf-sec-hint { font-size: 12px; font-weight: 400; color: #9aaca0; }

/* 账号安全里的「标题 + 说明 + 右侧按钮」行 */
.pf-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 12px 0; flex-wrap: wrap;
}
.pf-row + .pf-row, .pf-row + .pf-inline-form, .pf-inline-form + .pf-row { border-top: 1px solid #f1f5f2; }
.pf-row-main { min-width: 0; flex: 1 1 240px; }
.pf-row-title { font-weight: 600; font-size: 14px; color: #2c4733; }
.pf-row-sub { font-size: 13px; color: #7d9183; margin-top: 2px; word-break: break-all; }
.pf-row-note { font-size: 12px; color: #b8860b; margin-top: 4px; }
.pf-inline-form { padding: 4px 0 14px; }

/* 保存条：独立于折叠面板，收起任何一段都能找到保存 */
.pf-savebar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 16px; padding: 12px 16px;
  background: #f6faf6; border: 1px solid #e8f0e8; border-radius: 12px;
}
.pf-savebar-hint { font-size: 12px; color: #7d9183; flex: 1 1 260px; }

/* 身份证照片：固定比例的方框，无图时留白而不是塌陷 */
.pf-imgbox { margin: 0; }
.pf-imgbox-img {
  width: 100%; height: 140px; object-fit: contain;
  background: #f8faf9; border: 1px dashed #d8e4da; border-radius: 10px;
}
.pf-imgbox figcaption { font-size: 12px; color: #9aaca0; text-align: center; margin-top: 6px; }

/* 点图看大图：可点的图片给个放大镜光标；遮罩全屏居中，点击任意处/ESC 关闭 */
.pf-zoomable { cursor: zoom-in; }
.bigimg-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 3000;
  background: rgba(0, 0, 0, .85);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.bigimg-overlay img {
  max-width: 92vw; max-height: 92vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

/* 内容页「需强调」的条目（隐私政策的敏感信息）：行首 `*` 标记，渲染时去掉 */
#legal-body li.em { color: var(--lzhh-green); font-weight: 600; }

/* 注销：默认收起，避免误触 */
.pf-danger { margin-top: 20px; border: 1px solid #f5c2c7; border-radius: 12px; overflow: hidden; }
.pf-danger-toggle {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #fff8f8; border: none;
  color: #d9534f; font-size: 14px; font-weight: 600; text-align: left;
}
.pf-danger-toggle:hover { background: #fdf0f0; }
.pf-danger-chevron { margin-left: auto; transition: transform .2s; }
.pf-danger-toggle[aria-expanded="true"] .pf-danger-chevron { transform: rotate(180deg); }
.pf-danger-body { padding: 4px 16px 16px; background: #fff8f8; }

@media (max-width: 991.98px) {
  /* 窄屏取消 sticky，否则人物卡会盖住下面的内容 */
  .pf-side { position: static; }
}