/* ========= 兔卜卜官网 · 全局样式（现代简约风） ========= */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --paper: #F7F8FA;      /* 页面底：冷调浅灰 */
  --card: #FFFFFF;       /* 卡片白 */
  --text: #262A2E;       /* 主文字：深灰 */
  --text-soft: #9AA1A9;  /* 次要文字：浅灰 */
  --line: #E7EAEE;       /* 分隔线：细灰 */
  --verm: #2DD4BF;       /* 主强调色：薄荷青绿 */
  --verm-deep: #0EA996;  /* 青绿深 */
  --verm-bg: #E5FAF7;    /* 青绿浅底 */
  --verm-glow: rgba(45, 212, 191, 0.25);
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 14px 28px;
}

/* ========= 顶栏 ========= */
.app-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; margin: 0 -14px; padding: 0 10px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.app-bar h1 {
  font-size: 17px; font-weight: 600; color: var(--text);
  text-align: center; flex: 1; letter-spacing: 1px;
}
.bar-btn {
  width: 40px; height: 40px; border: none; background: transparent;
  color: var(--text-soft); font-size: 22px; line-height: 1; border-radius: 8px;
}
.bar-btn:active { background: var(--line); }

/* ========= 轮播图 ========= */
.banner {
  position: relative; margin: 4px 0 16px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  cursor: grab; touch-action: pan-y;
}
.banner-track {
  display: flex; transition: transform .4s ease;
}
.banner-track.dragging { transition: none; }
.banner-item {
  flex: 0 0 100%; min-width: 100%; height: 140px; position: relative;
  display: flex; flex-direction: column; justify-content: center; padding: 0 22px;
  color: #fff; text-decoration: none;
  user-select: none; -webkit-user-drag: none;
}
.banner-item .b-tag {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 10px;
  background: rgba(255,255,255,0.25); margin-bottom: 8px; width: fit-content;
  backdrop-filter: blur(4px);
}
.banner-item .b-title { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.banner-item .b-sub { font-size: 13px; margin-top: 6px; opacity: 0.9; }
.banner-dots {
  position: absolute; bottom: 10px; left: 0; right: 0; display: flex;
  justify-content: center; gap: 6px;
}
.banner-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5);
  transition: all .3s;
}
.banner-dots span.on { width: 18px; border-radius: 3px; background: #fff; }

/* ========= 今日黄历快捷卡 ========= */
.today-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 16px; display: flex; align-items: center;
  text-decoration: none; color: var(--text); gap: 14px;
}
.today-card .tc-left { flex: 1; min-width: 0; }
.today-card .tc-date { font-size: 13px; color: var(--verm-deep); font-weight: 600; }
.today-card .tc-lunar { font-size: 15px; color: var(--text); margin-top: 4px; font-weight: 500; }
.today-card .tc-arrow { color: var(--text-soft); font-size: 18px; flex-shrink: 0; }

/* ========= 功能宫格（淡彩卡片 + 3D 图标，颜色逐卡由内联变量控制） ========= */
.grid-4 {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 11px; margin: 10px 0 0;
}
.grid-item.gi {
  background: var(--bg); border: 1.5px solid var(--bd); border-radius: 14px;
  padding: 16px 8px 17px; text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .15s;
}
.grid-item.gi:active { transform: scale(0.97); }
.gi-img {
  width: 44px; height: 44px; object-fit: contain; margin-bottom: 8px;
  display: block; -webkit-user-drag: none;
}
.gi-img.gi-wide { width: auto; height: 40px; margin-bottom: 12px; }
.gi .grid-title { font-size: 15px; font-weight: 700; color: var(--fg); line-height: 1.25; }
.gi .grid-desc { margin-top: 5px; font-size: 11px; color: var(--fg2); line-height: 1.3; white-space: nowrap; }

/* ========= 卡片 ========= */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 12px;
}
.card-t {
  font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 14px;
  padding-left: 10px; position: relative;
}
.card-t::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px;
  border-radius: 2px; background: linear-gradient(180deg, var(--verm), var(--verm-deep));
}

/* ========= 表单 ========= */
.field { margin-bottom: 16px; }
.lbl { display: block; font-size: 13px; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.ipt {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; padding: 0 14px; font-size: 15px; color: var(--text); outline: none;
}
.ipt:focus { border-color: var(--verm); box-shadow: 0 0 0 3px var(--verm-glow); }
textarea.ipt { height: auto; padding: 12px 14px; resize: vertical; }

.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg-btn {
  flex: 1; height: 42px; border: none; background: transparent; font-size: 14px; color: var(--text);
  border-right: 1px solid var(--line);
}
.seg-btn:last-child { border-right: none; }
.seg-btn.on { background: var(--verm); color: #fff; font-weight: 600; }

.btn-primary {
  width: 100%; height: 46px; border: none; border-radius: 23px; font-size: 16px;
  color: #fff; font-weight: 600; letter-spacing: 4px;
  background: linear-gradient(135deg, var(--verm), var(--verm-deep));
  box-shadow: 0 4px 12px var(--verm-glow);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; }

.btn-ghost {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 22px;
  font-size: 15px; color: var(--text); background: #fff;
}
.btn-ghost:active { background: var(--paper); }

.hint { font-size: 11px; color: var(--text-soft); margin-top: 6px; line-height: 1.6; }

/* ========= 起名结果 ========= */
.name-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 10px; position: relative;
}
/* 名字卡右上角收藏星（起名页 / 名字大全 / 收藏页共用） */
.fav-star {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; padding: 0; border: 0; cursor: pointer;
  border-radius: 50%; background: rgba(255,255,255,.72);
  display: flex; align-items: center; justify-content: center;
  color: #AEB8C4; -webkit-tap-highlight-color: transparent;
}
.fav-star svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linejoin: round; transition: transform .12s;
}
.fav-star:active svg { transform: scale(1.25); }
.fav-star.on { background: #FFF6DD; color: #F0A500; }
.fav-star.on svg { fill: #FFC531; stroke: #EFA000; }

/* ========= 内容关注爱心（视频/图文，多场景共用） ========= */
.ct-heart {
  border: 0; cursor: pointer; padding: 0; margin: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #fff; -webkit-tap-highlight-color: transparent;
}
.ct-heart[hidden] { display: none; }
.ct-heart svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linejoin: round; transition: transform .12s;
}
.ct-heart:active svg { transform: scale(1.22); }
.ct-heart.on svg { fill: #FF4D6A; stroke: #FF4D6A; }
/* 发现页视频缩略图上的爱心：半透明白圆 */
.ct-heart.heart-thumb {
  position: absolute; top: 7px; right: 7px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(80, 84, 88, .42);
}
.ct-heart.heart-thumb.on { background: rgba(255, 255, 255, .82); }
/* 浅色底上的爱心（图文行、播放页信息区） */
.ct-heart.heart-light { color: #9AA1A9; width: 30px; height: 30px; flex: 0 0 auto; }
.ct-heart.heart-light.on { color: #FF4D6A; }
/* 图文 hero 图上的悬浮爱心 */
.ct-heart.heart-hero {
  position: fixed; top: 10px; right: max(10px, calc(50% - 270px));
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.38); z-index: 30;
}
.ct-heart.heart-hero svg { width: 19px; height: 19px; }

/* ========= 我的关注 / 观看历史：通用内容列表卡 ========= */
.ct-toolbar { display: flex; align-items: center; margin: 2px 2px 12px; }
.ct-toolbar .count { font-size: 13px; color: var(--text-soft); }
.ct-toolbar .clear {
  margin-left: auto; font-size: 13px; color: var(--text-soft);
  border: 1px solid var(--line); background: var(--card); border-radius: 16px;
  padding: 5px 14px; cursor: pointer;
}
.ct-list { display: flex; flex-direction: column; gap: 10px; }
.ct-card {
  position: relative; display: flex; gap: 12px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px;
}
.ct-card:active { background: var(--paper); }
.ct-cover {
  flex: 0 0 88px; width: 88px; height: 66px; border-radius: 11px; overflow: hidden;
  background: #EEF1F4 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.ct-main { flex: 1; min-width: 0; padding-right: 30px; }
.ct-t {
  font-size: 15px; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ct-sub { margin-top: 6px; font-size: 12px; color: var(--text-soft); display: flex; align-items: center; gap: 7px; }
.ct-kind {
  font-size: 10px; padding: 1px 7px; border-radius: 7px; flex: 0 0 auto;
}
.ct-kind.video { background: #FFE9EE; color: #E03A5C; }
.ct-kind.article { background: var(--verm-bg); color: var(--verm-deep); }
.ct-card .ct-heart { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; }
.ct-card .ct-heart svg { width: 17px; height: 17px; }
.ct-empty { text-align: center; color: var(--text-soft); padding: 70px 24px 30px; font-size: 14px; line-height: 1.9; }
.ct-empty .big { font-size: 46px; display: block; margin-bottom: 12px; }
.ct-empty .btns { margin-top: 20px; display: flex; gap: 10px; justify-content: center; }
.ct-empty a {
  padding: 9px 18px; border-radius: 20px; font-size: 14px; text-decoration: none;
  border: 1px solid var(--verm); color: var(--verm-deep); background: var(--card);
}
.ct-empty a.pri { background: var(--verm); color: #fff; }
.name-title {
  font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px;
  letter-spacing: 4px;
}
.name-pinyin { font-size: 13px; color: var(--verm-deep); margin-bottom: 10px; }
.name-yiyi { font-size: 13px; color: var(--text-soft); line-height: 1.7; }
.poem-box {
  background: var(--verm-bg); border-radius: 10px; padding: 12px; margin-top: 10px;
  font-size: 13px; color: var(--text); line-height: 1.8;
}
.poem-box .poem-title { color: var(--verm-deep); font-weight: 600; margin-bottom: 4px; }

/* ========= 打分结果 ========= */
.score-circle {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  background: conic-gradient(var(--verm) var(--pct, 0%), var(--line) 0);
  display: flex; align-items: center; justify-content: center;
}
.score-inner {
  width: 96px; height: 96px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-num { font-size: 32px; font-weight: 700; color: var(--text); }
.score-label { font-size: 11px; color: var(--text-soft); }

.dim-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.dim-row:last-child { border-bottom: none; }
.dim-name { width: 70px; font-size: 13px; color: var(--text); }
.dim-bar { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.dim-bar i { display: block; height: 100%; border-radius: 4px; background: var(--verm); }
.dim-score { width: 50px; text-align: right; font-size: 13px; font-weight: 600; color: var(--verm-deep); }

.wuge-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.wuge-cell {
  text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px;
}
.wuge-cell .wc-t { font-size: 11px; color: var(--text-soft); margin-bottom: 6px; }
.wuge-cell .wc-num { font-size: 18px; font-weight: 700; color: var(--text); }
.wuge-cell .wc-fortune { font-size: 11px; margin-top: 4px; }
.wc-daji { color: #E23C30; }
.wc-ji { color: var(--verm-deep); }
.wc-banji { color: #B0791E; }
.wc-xiong { color: var(--text-soft); }

.score-comment {
  font-size: 14px; line-height: 1.8; color: var(--text);
  background: var(--verm-bg); border-radius: 10px; padding: 14px; margin-top: 12px;
}

/* ========= 筛选标签 ========= */
.filter-chip {
  padding: 6px 14px; border-radius: 16px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--text-soft);
}
.filter-chip.active { background: var(--verm); color: #fff; border-color: var(--verm); }

/* ========= 提示 ========= */
.disclaimer {
  text-align: center; font-size: 11px; color: var(--text-soft);
  line-height: 1.8; padding: 16px 0;
}
.loading { text-align: center; padding: 40px 0; color: var(--text-soft); font-size: 14px; }

/* ========= 底部导航栏 ========= */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0); z-index: 100;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 8px 0; text-decoration: none; color: var(--text-soft);
  gap: 2px;
}
.tab-item .tab-ico { font-size: 20px; line-height: 1; }
.tab-item .tab-label { font-size: 11px; }
.tab-item.on { color: var(--verm); }
.tab-item.on .tab-ico { transform: scale(1.1); }

/* ========= 首页头像行（模仿命理 App：整行可点击，无单独登录按钮） ========= */
.home-top {
  display: flex; align-items: center;
  padding: 14px 16px 10px; gap: 10px;
}
.home-top .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  background: var(--verm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1; color: #fff;
  border: 1px solid var(--verm); overflow: hidden;
}
/* 图片头像（后台头像库） */
.home-top .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 未登录：白底灰边 + 「客」字 */
.home-top .avatar.avatar-guest {
  background: var(--card);
  color: var(--text-soft);
  border: 1px solid var(--line);
  font-size: 18px; font-weight: 500;
}
.home-top .user-text { flex: 1; min-width: 0; }
.home-top .user-name {
  font-size: 16px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-top .user-sub { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

/* ========= 小知识横滑 ========= */
.tips-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; cursor: grab; touch-action: pan-y; }
.tips-row::-webkit-scrollbar { display: none; }
.tip-card {
  flex: 0 0 200px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text);
  user-select: none; -webkit-user-drag: none;
}
.tip-card .tip-cover {
  height: 100px; background: linear-gradient(135deg, var(--verm-bg), #fff);
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.tip-card .tip-body { padding: 10px 12px; }
.tip-card .tip-title { font-size: 13px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ========= 我的页面 ========= */
.profile-head {
  background: linear-gradient(135deg, var(--verm), var(--verm-deep));
  padding: 24px 20px 40px; color: #fff;
}
.profile-head .ph-row { display: flex; align-items: center; gap: 14px; }
.profile-head .ph-avatar {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff;
}
.profile-head .ph-name { font-size: 18px; font-weight: 600; }
.profile-head .ph-phone { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.profile-body { margin-top: -24px; padding: 0 16px; }
.profile-menu {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-bottom: 12px;
}
.profile-menu .pm-item {
  display: flex; align-items: center; padding: 14px 16px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.profile-menu .pm-item:last-child { border-bottom: none; }
.profile-menu .pm-ico { width: 20px; height: 20px; flex: none; margin-right: 12px; color: var(--verm); display: block; }
.profile-menu .pm-label { flex: 1; font-size: 14px; }
.profile-menu .pm-arrow { color: var(--text-soft); }
.logout-btn {
  width: 100%; padding: 14px; border: none; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); color: #E23C30; font-size: 15px; margin-top: 8px;
}

/* ========= 登录页面 ========= */
.login-page {
  min-height: 100vh; background: #fff; display: flex; flex-direction: column;
  padding: 60px 28px 28px;
}
.login-logo {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--verm), var(--verm-deep));
  color: #fff; font-size: 34px; line-height: 72px; text-align: center; font-weight: 700;
  box-shadow: 0 8px 24px var(--verm-glow);
}
.login-title { text-align: center; font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: 2px; }
.login-sub { text-align: center; font-size: 13px; color: var(--text-soft); margin-top: 6px; margin-bottom: 40px; }
.login-input-row {
  display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 14px 0;
}
.login-input-row input {
  flex: 1; border: none; outline: none; font-size: 16px; background: transparent;
}
.login-code-btn {
  border: none; background: transparent; color: var(--verm); font-size: 14px; padding: 0 0 0 12px;
  white-space: nowrap;
}
.login-code-btn:disabled { color: var(--text-soft); }
.login-btn {
  margin-top: 28px; width: 100%; padding: 14px; border: none; border-radius: 25px;
  background: linear-gradient(135deg, var(--verm), var(--verm-deep));
  color: #fff; font-size: 16px; font-weight: 600;
}
.login-btn:disabled { opacity: 0.5; }
.login-agree {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--text-soft);
}
.login-agree input { margin-top: 2px; }
.login-agree a { color: var(--verm); text-decoration: none; }

/* ========= 学习/咨询页面 ========= */
.page-head {
  padding: 16px; background: var(--card); border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-head h2 { font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.page-head h2 .head-logo { height: 24px; width: auto; display: block; }

/* ========= 起名页「起名偏好」面板 ========= */
.adv-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--verm-bg); border-radius: 10px;
  font-size: 15px; color: var(--verm-deep); font-weight: 600; cursor: pointer;
}
.adv-toggle .adv-arrow { transition: transform .2s; font-size: 13px; }
.adv-toggle.open { border-radius: 10px 10px 0 0; }
.adv-toggle.open .adv-arrow { transform: rotate(180deg); }
.adv-panel {
  border: 1px solid var(--verm-bg); border-top: none; border-radius: 0 0 10px 10px;
  padding: 14px;
}
.adv-sec { margin-bottom: 14px; }
.adv-t {
  font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px;
  display: flex; align-items: baseline; gap: 8px;
}
.adv-t em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-soft); }
.adv-intro { font-size: 12px; color: var(--text-soft); margin: 0 0 14px; line-height: 1.6; }
.adv-split {
  font-size: 12px; font-weight: 600; color: var(--verm-deep);
  margin: 18px 0 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
/* 选项卡多的组：默认收起，点标题展开 */
.adv-t.fold { cursor: pointer; justify-content: space-between; align-items: center; }
.adv-t.fold em.on { color: var(--verm-deep); font-weight: 600; }
.adv-more { font-size: 12px; color: var(--verm-deep); font-weight: 400; white-space: nowrap; }
.adv-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.adv-pick.collapsed .filter-chip:not(.active) { display: none; }
.adv-ph {
  font-size: 12px; color: var(--text-soft);
  padding: 6px 12px; border: 1px dashed var(--line); border-radius: 8px;
}
.adv-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.adv-tabs { display: flex; gap: 8px; }
.adv-tab {
  flex: 1 1 0; padding: 9px 6px; border-radius: 9px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: var(--paper); color: var(--text-soft);
  cursor: pointer; position: relative;
}
.adv-tab.on {
  background: var(--verm-bg); border-color: var(--verm); color: var(--verm-deep);
}
.adv-tab em {
  font-style: normal; font-size: 11px; margin-left: 3px;
  color: #fff; background: var(--verm); border-radius: 8px; padding: 0 5px;
}
.adv-tab em:empty { display: none; }
.adv-actions { display: flex; flex-direction: column; gap: 8px; }
/* 小输入框：只输一个字/一个数，不用占满整行 */
.adv-mini {
  width: 72px; height: 38px;
  padding: 0 6px; font-size: 14px; text-align: center;
}
.adv-stroke { display: flex; align-items: center; gap: 6px; }
.adv-stroke .ipt {
  width: 56px; height: 38px; padding: 0 4px;
  font-size: 14px; text-align: center;
}
.adv-stroke .ipt::placeholder { font-size: 13px; }
.adv-unit { font-size: 13px; color: var(--text-soft); }

/* ========= 结果翻页（起名/名字列表共用）========= */
.name-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 4px; }
.name-pager button {
  padding: 8px 16px; border-radius: 9px; font-size: 13px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer;
}
.name-pager button:disabled { opacity: .45; cursor: not-allowed; }
.name-pager .pg-info { font-size: 13px; color: var(--text-soft); min-width: 80px; text-align: center; }
/* 填了「必须用这个字」后，该字位其余条件置灰禁用 */
.adv-fixhint { font-size: 12px; color: var(--verm-deep); margin: 8px 0 0; line-height: 1.6; }
#posRest.locked { opacity: .4; pointer-events: none; }
/* TODO(清理待确认): 这里第二次定义 .btn-ghost，与文件前部「表单」区的 .btn-ghost 同名冲突，
   本处会覆盖前者的 width/height/border/border-radius/font-size/color/background 等属性。
   该覆盖可能一并影响姓氏页「返回列表」、查字页「重置」等其它页面复用 .btn-ghost 的按钮，
   是否应改为限定作用域（如 #advPanel .btn-ghost）待确认，故本次不合并。 */
.btn-ghost {
  width: 100%; padding: 9px; border-radius: 9px; font-size: 13px;
  border: 1px dashed var(--line); background: transparent;
  color: var(--text-soft); cursor: pointer;
}
#advCount { font-style: normal; font-size: 11px; color: var(--verm-deep); margin-left: 4px; }

/* 滚轮项（万年历日历弹窗在用，容器样式见 pages/calendar.html） */
.wheel-item {
  height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-soft); scroll-snap-align: center;
}
.wheel-item.sel { font-size: 16px; font-weight: 700; color: var(--verm-deep); }

/* ========= 首次运行隐私提示 ========= */
.privacy-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: flex-end; justify-content: center; z-index: 9999;
}
.privacy-dialog {
  width: 100%; max-width: 560px; background: var(--card);
  border-radius: 16px 16px 0 0;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
}
.privacy-dialog .pd-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.privacy-dialog .pd-text { font-size: 13px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.privacy-dialog .pd-text a { color: var(--verm-deep); text-decoration: none; }
.privacy-dialog .pd-actions { display: flex; gap: 10px; }
.privacy-dialog .pd-btn { flex: 1; height: 44px; border-radius: 22px; border: none; font-size: 15px; cursor: pointer; }
.privacy-dialog .pd-cancel { background: var(--paper); color: var(--text-soft); border: 1px solid var(--line); }
.privacy-dialog .pd-ok {
  background: linear-gradient(135deg, var(--verm), var(--verm-deep));
  color: #fff; font-weight: 600;
}

/* ========= 文档页（协议/隐私政策）与页脚备案信息 ========= */
.doc-body {
  background: var(--card); border-radius: 12px; margin: 12px 0;
}
.app-footer-note {
  text-align: center; font-size: 11px; color: var(--text-soft);
  line-height: 1.8; margin-top: 20px; padding-bottom: 8px;
}
.app-footer-note a { color: var(--text-soft); text-decoration: none; }
