/* ==========================================================================
   Two of Us — ins 风视觉系统
   浅色 · 大留白 · 柔和渐变 · 圆角卡片 · 衬线标题
   ========================================================================== */

:root {
  --paper: #fbf8f6;
  --card: #ffffff;
  --ink: #191721;
  --ink-2: #4b4653;
  --muted: #9c9591;
  --line: #f1ebe6;
  --line-2: #e9e1db;

  --blush: #ff7f92;
  --blush-soft: #ffe4e8;
  --lilac: #ab8cff;
  --lilac-soft: #efe8ff;
  --cream: #fff6ef;
  --mint: #7fd8c4;

  --grad-warm: linear-gradient(135deg, #ffc8a8 0%, #ff8fa3 48%, #b49bff 100%);
  --grad-text: linear-gradient(100deg, #ff8fa3, #b49bff);
  --grad-soft: linear-gradient(135deg, #fff4f1 0%, #f7f1ff 100%);

  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;

  --sd-soft: 0 10px 30px -12px rgba(88, 62, 78, 0.18);
  --sd-card: 0 1px 2px rgba(28, 20, 30, 0.03), 0 12px 34px -18px rgba(88, 62, 78, 0.28);
  --sd-float: 0 18px 50px -20px rgba(88, 62, 78, 0.34);

  --sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Playfair Display", "Songti SC", "Times New Roman", Georgia, serif;
  --hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --tab-h: 78px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 背景光斑 —— ins 的高级感来源 */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 460px; height: 460px;
  top: -180px; left: -140px;
  background: radial-gradient(circle at 30% 30%, #ffd9c9, rgba(255, 217, 201, 0));
}
body::after {
  width: 520px; height: 520px;
  bottom: -240px; right: -200px;
  background: radial-gradient(circle at 60% 40%, #e6dcff, rgba(230, 220, 255, 0));
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
input[type="checkbox"] { accent-color: var(--blush); width: 17px; height: 17px; }
img { display: block; max-width: 100%; }
::selection { background: var(--blush-soft); }

/* 图标默认尺寸，避免行内 svg 撑满容器 */
button > svg, .btn-ping svg, .btn-ghost svg, .pick svg, .code-pill svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- 布局 ---- */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  /* 上下都要躲开手机的安全区：顶部状态栏 + 底部固定 tabbar */
  padding: env(safe-area-inset-top) 20px calc(var(--tab-h) + 44px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

.topbar {
  position: sticky;
  /* 避开手机状态栏/刘海，否则时间和电池会压在 logo 上 */
  top: env(safe-area-inset-top);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 14px;
  margin-bottom: 4px;
  background: linear-gradient(180deg, var(--paper) 62%, rgba(251, 248, 246, 0));
  backdrop-filter: blur(6px);
}

.brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1;
}
.brand em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
  letter-spacing: 1.6px;
  color: var(--ink-2);
  font-weight: 600;
  transition: 0.2s;
}
.code-pill:active { transform: scale(0.96); }
.code-pill svg { opacity: 0.45; }

/* ---------------------------------------------------------------- 卡片 ---- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sd-card);
  padding: 22px;
}

.sect {
  margin-top: 30px;
}
.sect-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}
.sect-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.sect-sub {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- 首页 ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 24px 26px;
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--sd-float);
  text-align: center;
  margin-top: 10px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  background: var(--grad-warm);
  opacity: 0.16;
}
.hero::after {
  content: "";
  position: absolute;
  top: -60px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 163, 0.3), transparent 68%);
}
.hero > * { position: relative; }

.pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 22px;
}
.avatar {
  position: relative;
  width: 78px; height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: #fff;
  box-shadow: 0 6px 20px -8px rgba(88, 62, 78, 0.4);
}
.avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #ffb199, #ff8fa3, #b49bff, #ffb199);
  z-index: 0;
}
.avatar > span,
.avatar > img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 3px solid #fff;
  font-family: var(--serif);
  font-size: 27px;
  color: var(--blush);
}
.avatar.b > span, .avatar.b > img { color: var(--lilac); }

.pair .heart {
  width: 30px; height: 30px;
  margin: 0 -9px;
  z-index: 2;
  color: var(--blush);
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 4px 14px -4px rgba(255, 127, 146, 0.6);
  animation: beat 1.9s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.16); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  56% { transform: scale(1); }
}

.counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}
.counter .num {
  font-family: var(--serif);
  font-size: 66px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -3px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.counter .unit {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 2px;
}
.hero-cap {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-since {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.4px;
}
.hero-slogan {
  font-family: var(--hand);
  font-size: 21px;
  color: var(--ink-2);
  margin: 16px 0 4px;
}

.ping-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.btn-ping {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 999px;
  background: var(--grad-warm);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 12px 26px -12px rgba(255, 127, 146, 0.85);
  transition: transform 0.16s ease, box-shadow 0.2s;
}
.btn-ping:active { transform: scale(0.97); box-shadow: 0 6px 16px -10px rgba(255, 127, 146, 0.9); }
.btn-ghost {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: #fff;
  transition: 0.2s;
}
.btn-ghost:active { transform: scale(0.95); background: var(--cream); }

/* 情话卡 */
.quote {
  margin-top: 14px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--grad-soft);
  border: 1px solid #fff;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.quote .qmark {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 0.7;
  color: var(--blush);
  opacity: 0.7;
}
.quote p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  letter-spacing: 0.2px;
}
.quote .qfrom { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); letter-spacing: 1px; }

/* ------------------------------------------------------------ 距离卡 ---- */
.dist-card {
  margin-top: 14px;
  padding: 18px 20px 17px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sd-card);
}
.dist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.dist-lb { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); }
.dist-src {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #b3aba7;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f8f4f1;
  white-space: nowrap;
}
.dist-names {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.dist-names > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.dist-names .r { justify-content: flex-end; }
.dist-names b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  max-width: 128px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dist-names span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

.dist-track { display: flex; align-items: center; gap: 8px; }
.dist-track .end {
  width: 7px; height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--grad-warm);
}
.dist-track .rail {
  flex: 1;
  height: 0;
  border-top: 1.5px dashed #f2dbe0;
}
.dist-track .km {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dist-track .km em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 1.2px;
  margin-left: 4px;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--muted);
  color: var(--muted);
}
.dist-empty {
  text-align: center;
  padding: 4px 0 2px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}
.dist-empty .hand {
  display: block;
  font-family: var(--hand);
  font-size: 18px;
  color: #c3bcb8;
  margin-top: 5px;
}

/* 「我们」页的归属地行 */
.geo-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.geo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.geo-row .nm { color: var(--ink); font-weight: 600; flex: 0 0 auto; }
.geo-row .pl {
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
  min-width: 0;
}
.geo-row .pl b { color: var(--ink-2); font-weight: 600; }
.geo-row .pl i { font-style: normal; color: #c3bcb8; }

/* 纪念日环形 */
.story-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.story-row::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 auto;
  width: 66px;
  text-align: center;
}
.story .ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 180deg, #ffc8a8, #ff8fa3, #b49bff, #ffc8a8);
  margin-bottom: 7px;
  transition: transform 0.2s;
}
.story:active .ring { transform: scale(0.94); }
.story .ring > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #fff;
  font-size: 24px;
}
.story .ring .d {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--blush);
  font-weight: 600;
  letter-spacing: -0.5px;
}
.story .nm {
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story.add .ring { background: #fff; border: 1.5px dashed var(--line-2); }
.story.add .ring > span { color: var(--muted); font-size: 22px; border: 0; background: transparent; }

/* ------------------------------------------------------------- 悄悄话 ---- */
.chat-list { display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 20px 20px 20px 6px;
  background: #fff;
  box-shadow: var(--sd-card);
  font-size: 14px;
  align-self: flex-start;
}
.bubble.mine {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: linear-gradient(135deg, #fff0f2, #f4eeff);
  box-shadow: 0 8px 22px -14px rgba(180, 155, 255, 0.9);
}
.bubble .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}
.bubble .meta b { font-weight: 600; color: var(--ink-2); }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.composer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--sd-card);
  align-items: center;
}
.composer input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  padding: 8px 0;
}
.composer input::placeholder { color: #c3bcb8; }
.composer button {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -10px rgba(255, 127, 146, 0.9);
}
.composer button:disabled { opacity: 0.4; box-shadow: none; }

/* --------------------------------------------------------------- 动态 ---- */
.masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.post {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sd-card);
  display: flex;
  flex-direction: column;
}
.post .ph {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--grad-soft);
  overflow: hidden;
}
.post .ph img { width: 100%; height: 100%; object-fit: cover; }
.post .ph .txt {
  padding: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  height: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, #fff6f4, #f6f0ff);
}
.post .ph .txt::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40px;
  background: linear-gradient(180deg, transparent, #f8f2fd);
}
.post .body { padding: 11px 13px 13px; }
.post .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 7px;
}
.post .who .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.post .acts { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.post .acts button { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.post .acts button.liked { color: var(--blush); font-weight: 600; }
.post .acts svg { width: 15px; height: 15px; }
.post .del { margin-left: auto; opacity: 0.4; }

.post.new {
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 1.5px dashed var(--line-2);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  color: var(--muted);
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.5px;
}
.post.new .plus { font-size: 26px; color: var(--blush); opacity: 0.8; font-weight: 300; }

/* --------------------------------------------------------------- 清单 ---- */
.wishes { display: flex; flex-direction: column; }
.wish {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.wish:last-child { border-bottom: 0; }
.tick {
  width: 23px; height: 23px;
  flex: 0 0 23px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  color: #fff;
}
.tick.on {
  background: var(--grad-warm);
  border-color: transparent;
  box-shadow: 0 6px 14px -8px rgba(255, 127, 146, 0.9);
}
.tick svg { width: 12px; height: 12px; opacity: 0; transition: 0.2s; }
.tick.on svg { opacity: 1; }
.wish .t { flex: 1; font-size: 14px; color: var(--ink); transition: 0.2s; }
.wish.done .t { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--blush); }
.wish .rm { color: #cfc7c2; font-size: 17px; padding: 0 4px; }

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 4px 0 18px;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-warm);
  transition: width 0.5s cubic-bezier(0.3, 0.9, 0.2, 1);
}

/* ------------------------------------------------------------- 纪念日 ---- */
.day-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.day-item:last-child { border-bottom: 0; }
.day-item .em {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}
.day-item .info { flex: 1; min-width: 0; }
.day-item .info h4 { margin: 0; font-size: 14px; font-weight: 600; }
.day-item .info p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); letter-spacing: 0.4px; }
.day-item .cd { text-align: right; }
.day-item .cd b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -1px;
  display: block;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.day-item .cd span { font-size: 10.5px; color: var(--muted); letter-spacing: 1px; }

/* -------------------------------------------------------------- 我们 ---- */
.profile {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.field:last-of-type { border-bottom: 0; }
.field label { font-size: 13.5px; color: var(--ink-2); flex: 0 0 auto; }
.field input, .field select {
  flex: 1;
  border: 0;
  outline: 0;
  text-align: right;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink);
  padding: 4px 0;
  min-width: 0;
}
.field input:focus { color: var(--blush); }

.invite {
  margin-top: 8px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #fff4f2, #f5efff);
  text-align: center;
}
.invite .lb { font-size: 11px; letter-spacing: 2.6px; color: var(--muted); text-transform: uppercase; }
.invite .code {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 7px;
  margin: 8px 0 4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.invite .tip { font-size: 12px; color: var(--muted); }

.btn-line {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-2);
  letter-spacing: 0.6px;
  margin-top: 12px;
  transition: 0.2s;
}
.btn-line:active { background: var(--cream); }
.btn-line.warn { color: #d9756f; border-color: #f6dedb; }

.style-row { display: flex; gap: 10px; }
.swatch {
  flex: 1;
  height: 54px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: 0.2s;
}
.swatch.on { border-color: var(--ink); }

/* ----------------------------------------------------------- 底部导航 ---- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom);
}
.tabbar .inner {
  width: 100%;
  max-width: 540px;
  display: flex;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 246, 0.84);
  backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid rgba(233, 225, 219, 0.7);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: #b6aeaa;
  font-size: 10px;
  letter-spacing: 0.6px;
  transition: 0.2s;
}
.tab svg { width: 22px; height: 22px; stroke-width: 1.6; }
.tab.on { color: var(--ink); }
.tab.on svg { color: var(--blush); }
.tab.on::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blush);
  margin-top: -1px;
}

/* ------------------------------------------------------------ 空状态 ---- */
.empty {
  text-align: center;
  padding: 30px 10px 26px;
  color: var(--muted);
}
.empty .ic { font-size: 30px; opacity: 0.5; margin-bottom: 8px; }
.empty p { margin: 0; font-size: 13px; }
.empty .hand { font-family: var(--hand); font-size: 19px; color: #b9b0ac; margin-top: 6px; }

/* ---------------------------------------------------------- 登录/进入 ---- */
.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(40px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  gap: 0;
}
.gate .logo {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.gate .logo em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gate .sub {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 38px;
}
.gate-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sd-float);
  padding: 26px 24px 24px;
  text-align: left;
}
.gate-card .ttl { font-size: 13px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; }

.inp {
  width: 100%;
  height: 50px;
  border-radius: 15px;
  border: 1px solid var(--line-2);
  background: #fdfbfa;
  padding: 0 16px;
  font-size: 14.5px;
  outline: 0;
  transition: 0.2s;
  margin-bottom: 12px;
}
.inp:focus { border-color: #ffc3cb; background: #fff; box-shadow: 0 0 0 4px rgba(255, 143, 163, 0.1); }
.inp::placeholder { color: #c8c1bd; }
.inp.code-inp { letter-spacing: 5px; text-align: center; font-family: var(--serif); font-size: 19px; text-transform: uppercase; }

.btn-main {
  width: 100%;
  height: 52px;
  border-radius: 15px;
  background: var(--grad-warm);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.6px;
  box-shadow: 0 14px 30px -14px rgba(255, 127, 146, 0.9);
  transition: 0.18s;
  margin-top: 4px;
}
.btn-main:active { transform: scale(0.985); }
.btn-main:disabled { opacity: 0.6; }

.switch {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 13px;
  background: #f6f1ee;
}
.switch button {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: 0.2s;
}
.switch button.on {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(88, 62, 78, 0.08);
}
.gate .foot { margin-top: 22px; font-size: 11.5px; color: #c3bcb8; letter-spacing: 1.2px; }

.err {
  font-size: 12.5px;
  color: #d9756f;
  margin: -2px 0 10px;
  min-height: 17px;
}

/* ------------------------------------------------------------- sheet ---- */
.sheet-mask[hidden] { display: none; }
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(28, 22, 30, 0.34);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.22s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%;
  max-width: 540px;
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  padding: 10px 22px calc(26px + env(safe-area-inset-bottom));
  animation: up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 88vh;
  overflow-y: auto;
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet .grab {
  width: 38px; height: 4px;
  border-radius: 999px;
  background: var(--line-2);
  margin: 0 auto 16px;
}
.sheet h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 16px;
}
.sheet textarea {
  width: 100%;
  min-height: 96px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 14px 16px;
  outline: 0;
  resize: none;
  font-size: 14px;
  line-height: 1.7;
}
.sheet textarea:focus { border-color: #ffc3cb; }
.pick-row { display: flex; gap: 10px; margin: 12px 0 4px; align-items: center; }
.pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
}
.preview {
  width: 100%;
  border-radius: var(--r-md);
  margin-top: 12px;
  max-height: 260px;
  object-fit: cover;
}

/* ------------------------------------------------------------- toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 26px);
  transform: translate(-50%, 12px);
  z-index: 90;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(25, 23, 33, 0.9);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.4px;
  opacity: 0;
  pointer-events: none;
  transition: 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------- 心跳特效 ---- */
.hearts { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.hearts i {
  position: absolute;
  font-style: normal;
  font-size: 20px;
  color: var(--blush);
  animation: floatUp 1.8s ease-out forwards;
  opacity: 0;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.6) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-160px) scale(1.35) rotate(18deg); }
}

/* ---------------------------------------------------------- 桌面端 ---- */
@media (min-width: 720px) {
  body { font-size: 15px; }
  .app { padding-top: 8px; }
  .tabbar .inner { border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   多情侣平台新增：性别、广场、AI、同意弹窗
   ========================================================================== */

/* ---------------------------------------------------------- 性别体系 ---- */
.avatar.male::before { background: conic-gradient(from 200deg, #b8d4ff, #6f9fe8, #a9b8ff, #b8d4ff); }
.avatar.male > span { color: #6f9fe8; }
.avatar.female::before { background: conic-gradient(from 200deg, #ffc8a8, #ff8fa3, #b49bff, #ffc8a8); }
.avatar.female > span { color: var(--blush); }

.g-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  vertical-align: 2px;
  margin-left: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.g-chip.female { color: #e2687f; background: #ffeef1; }
.g-chip.male { color: #4f7fc9; background: #eef4ff; }

/* 性别选择器 */
.gpick { display: flex; gap: 10px; margin-bottom: 14px; }
.gp {
  flex: 1;
  height: 62px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-2);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: 0.18s;
  color: var(--muted);
}
.gp .gface { font-size: 19px; line-height: 1; color: #e2687f; }
.gp.male .gface { color: #4f7fc9; }
.gp b { font-size: 12.5px; font-weight: 600; letter-spacing: 0.5px; }
.gp.on {
  border-color: transparent;
  background: linear-gradient(135deg, #fff0f3, #f4eeff);
  box-shadow: 0 10px 24px -16px rgba(226, 104, 127, 0.9);
  color: var(--ink);
}
.gp.male.on {
  background: linear-gradient(135deg, #eef4ff, #f2eeff);
  box-shadow: 0 10px 24px -16px rgba(79, 127, 201, 0.9);
}
.hintline { font-size: 11px; color: var(--muted); letter-spacing: 0.6px; margin: -6px 0 10px; }

/* ------------------------------------------------------------- 子页面 ---- */
.subbar { display: flex; align-items: center; justify-content: space-between; }
.backbtn {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sd-card);
  color: var(--ink-2);
}
.sub-title { font-family: var(--serif); font-size: 17px; font-weight: 600; }

/* --------------------------------------------------------------- 广场 ---- */
.plaza-list { display: flex; flex-direction: column; gap: 14px; }
.pz {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sd-card);
  padding: 16px 18px 12px;
}
.pz-ai { background: linear-gradient(180deg, #fffdfb, #fff 42%); border: 1px solid #f7e9ea; }
.pz-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; flex-wrap: wrap; }
.pz-head b { font-size: 13.5px; }
.pz-room { font-size: 10.5px; color: var(--muted); letter-spacing: 0.4px; }
.pz-tag {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fff0f3;
  color: #e2687f;
  letter-spacing: 0.6px;
}
.pz-tag.small { margin-left: 4px; font-size: 9px; }
.pz-img { width: 100%; border-radius: var(--r-md); margin-bottom: 10px; max-height: 420px; object-fit: cover; }
.pz-text { margin: 0 0 10px; font-size: 14px; line-height: 1.78; color: var(--ink-2); white-space: pre-wrap; }
.pz-analysis {
  background: #fdf7f7;
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.pz-acts {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.pz-acts button { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.pz-acts button svg { width: 15px; height: 15px; }
.pz-acts button.liked { color: var(--blush); font-weight: 600; }
.pz-acts .del { margin-left: auto; font-size: 11.5px; color: #c9a5a0; }
.pz-time { margin-left: auto; font-size: 11px; color: #c3bcb8; }
.pz-cm { padding-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.pz-c { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.pz-c b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.pz-det { margin-top: 4px; }
.pz-det summary {
  font-size: 11.5px;
  color: var(--blush);
  cursor: pointer;
  list-style: none;
  padding: 6px 0 2px;
}
.pz-det summary::-webkit-details-marker { display: none; }
.pz-det summary::before { content: '▸ '; }
.pz-det[open] summary::before { content: '▾ '; }

/* ----------------------------------------------------------------- AI ---- */
.ai-form textarea {
  width: 100%;
  min-height: 108px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: #fdfbfa;
  padding: 14px 16px;
  outline: 0;
  resize: none;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.ai-form textarea:focus { border-color: #ffc3cb; background: #fff; }
.ai-tip { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.ai-privacy { font-size: 10.5px; color: #bdb5b1; margin-top: 10px; line-height: 1.6; text-align: center; }
/* 今日提问额度 */
.ai-quota {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
  margin: -2px 0 10px;
  letter-spacing: 0.2px;
}
/* 数字跟正文用同一套字体、同一字号，只靠字重和颜色区分，避免两个 5 长得不一样 */
.ai-quota b {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ai-quota.out { color: #d9756f; }
.ai-quota.out b { color: #d9756f; }

.scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.scene {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: 0.18s;
}
.scene.on {
  background: linear-gradient(135deg, #ffeef1, #f3edff);
  border-color: transparent;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 8px 20px -14px rgba(226, 104, 127, 0.9);
}

.ai-card { padding: 20px 20px 18px; }
.ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ai-badge {
  font-size: 10.5px;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--grad-warm);
  color: #fff;
  font-weight: 600;
}
.ai-mode { font-size: 10.5px; color: var(--muted); letter-spacing: 0.5px; }
.ai-temp { margin-bottom: 14px; }
.ai-mini-t {
  height: 6px;
  border-radius: 999px;
  background: #f3edea;
  overflow: hidden;
  margin-bottom: 7px;
}
.ai-mini-t > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a9c9ff, #ffb199 55%, #ff6f7d);
  transition: width 0.6s cubic-bezier(0.3, 0.9, 0.2, 1);
}
.ai-mini-m { font-size: 11.5px; color: var(--muted); letter-spacing: 0.3px; }
.ai-mini-m b { color: var(--ink); font-size: 13px; }
.ai-summary {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.ai-focus { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ai-focus span {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #f8f4f1;
  color: #8d837e;
}

.adv { border-radius: var(--r-md); padding: 13px 15px; margin-bottom: 10px; }
.adv.male { background: #f2f6ff; }
.adv.female { background: #fff2f5; }
.adv h5 {
  margin: 0 0 7px;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.adv.male h5 { color: #4f7fc9; }
.adv.female h5 { color: #d95f78; }
.adv ul { margin: 0; padding-left: 16px; }
.adv li { font-size: 13px; line-height: 1.8; color: var(--ink-2); margin-bottom: 4px; }
.adv li:last-child { margin-bottom: 0; }

.ai-draft {
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #fff7f3, #f7f2ff);
}
.ai-draft .lb { font-size: 11px; letter-spacing: 0.8px; color: #8d837e; margin-bottom: 9px; }
.ai-draft p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
  /* 中文不要用衬线斜体：字重太细、屏幕上有重影，很难看清 */
  font-family: inherit;
  font-style: normal;
  letter-spacing: 0.3px;
}
.ai-draft .btn-line { margin: 0; height: 40px; font-size: 12.5px; }
.ai-note { text-align: center; font-size: 10.5px; color: #c3bcb8; margin-top: 12px; letter-spacing: 0.5px; }

.ai-log { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ai-log:last-child { border-bottom: 0; }
.ai-log-h { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ai-log-h b { color: var(--ink-2); font-size: 12px; }
.ai-log-t { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.ai-log-r { font-size: 10.5px; color: #c3bcb8; margin-top: 3px; }

/* 留言板里的 AI 气泡 */
.bubble.ai { max-width: 92%; background: #fffdfb; border: 1px solid #f7e9ea; }
.bubble.ai.mine { background: linear-gradient(135deg, #fff7f4, #f7f2ff); }
.ai-tag {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--grad-warm);
  color: #fff;
  letter-spacing: 0.5px;
}
.ai-mini p { margin: 6px 0 0; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.ai-mini-d {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f9f5f2;
  font-family: inherit;
  font-style: normal;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
  letter-spacing: 0.2px;
}

/* --------------------------------------------------------- 同意弹窗 ---- */
.consent-list {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.consent-list li { margin-bottom: 4px; }
.consent-list b { color: var(--ink); }
.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: #fdfaf8;
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 12px;
  cursor: pointer;
}
.switch-row input[type='checkbox'] {
  margin-top: 2px;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--blush);
}
.switch-row b { color: var(--ink); }
.row2 { display: flex; gap: 10px; margin-top: 6px; }
.row2 .btn-line, .row2 .btn-main { margin: 0; flex: 1; }

/* ------------------------------------------------------- 首页小部件 ---- */
.mini-wish { padding: 16px 18px; }
.mw-list { display: flex; flex-direction: column; gap: 8px; }
.mw { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.mw .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blush); opacity: 0.6; flex: 0 0 5px; }
.mw.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--blush); }
.mw.muted { color: var(--muted); font-size: 12.5px; }

/* [hidden] 必须压过 display:flex，否则隐藏不生效 */
.switch-row[hidden] { display: none; }

.linkbtn {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--blush);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  background: none;
}

/* --------------------------------------------------------- 站长留言 ---- */
.notice-card {
  margin-top: 12px;
  padding: 15px 17px 13px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #fff6f8, #f7f2ff);
  border: 1px solid #f6e2e7;
  box-shadow: 0 10px 26px -20px rgba(226, 104, 127, 0.6);
}
.nc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.nc-badge {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--grad-warm);
  color: #fff;
  font-weight: 600;
}
.nc-time { font-size: 10.5px; color: var(--muted); }
.notice-card p {
  margin: 0 0 11px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-wrap;
}
.nc-ok {
  font-size: 11.5px;
  color: var(--blush);
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f7dde2;
}

/* 邀请码兜底弹窗：放大 + 可长按选中 */
.code-big {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 6px;
  text-align: center;
  padding: 18px 12px;
  margin: 6px 0 10px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px dashed #f0d3d9;
  color: var(--ink);
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}

/* ==========================================================================
   登录 / 注册 / 绑定页
   ========================================================================== */
.switch.three button { flex: 1; font-size: 12px; padding: 0 4px; }
.switch.small { margin: 0 0 12px; }
.switch.small button { font-size: 12px; height: 36px; }

.avpick { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 16px; cursor: pointer; }
.avbtn {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 2px dashed #e8dcd8;
  background: #fdfaf8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: #c9b4ae;
  font-size: 26px;
  transition: 0.2s;
}
.avbtn.female { border-color: #ffd3dc; background: linear-gradient(135deg, #fff4f1, #f7f1ff); color: var(--blush); }
.avbtn.male { border-color: #cfdcf5; background: linear-gradient(135deg, #eef4ff, #f2eeff); color: #6f9fe8; }
.avbtn img { width: 100%; height: 100%; object-fit: cover; }
.avtip { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

.who-line {
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-2);
  margin: -4px 0 16px;
  letter-spacing: 0.5px;
}

/* 已登录但暂未绑定小站：安静的一页，不再每次弹表单 */
.guest-tip {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 18px;
  letter-spacing: 0.3px;
}
.guest-tip b { color: var(--ink-2); font-weight: 600; }
.gate-links { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 10px; }
.gate-links .linkbtn { margin-top: 0; }
.gate-links .weak { color: #b3aba7; }

/* 未绑定状态的主界面：首页引导卡 / 敲门申请卡 */
.guest-hero { padding: 30px 20px 18px; text-align: center; }
.guest-hi { font-family: var(--serif); font-size: 23px; color: var(--ink); letter-spacing: 1px; }
.guest-cap { font-size: 11.5px; color: var(--muted); letter-spacing: 1.2px; margin-top: 10px; }

.gcard { padding: 18px 18px 16px; margin-bottom: 12px; }
.gcard-t { font-size: 14px; color: var(--ink); letter-spacing: 0.3px; line-height: 1.6; margin-bottom: 7px; }
.gcard-t .g-chip { vertical-align: 1px; margin-left: 3px; }
.gcard-s { font-size: 12px; color: var(--muted); line-height: 1.85; }
.gcard-ops { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.gcard-ops .btn-main,
.gcard-ops .btn-line { flex: 1 1 130px; margin: 0; height: 46px; font-size: 13px; white-space: nowrap; padding: 0 8px; }
.gcard-ops .btn-main:disabled { opacity: 0.45; box-shadow: none; }
.gcard.wait { border-color: #f6e2c8; background: linear-gradient(135deg, #fffaf2, #fff6ea); }
.gcard.in { border-color: #ffd6dd; background: #fffafb; }

.acc-card { padding: 16px 18px; }
.acc-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; font-size: 13px; }
.acc-row span { color: var(--muted); font-size: 11.5px; letter-spacing: 0.5px; }
.acc-row b { font-family: var(--serif); font-size: 15px; letter-spacing: 0.5px; }

.recheck { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ------------------------------------------------------------ 我的资料 ---- */
.profile-card { padding: 18px; }
.pf-top { display: flex; align-items: center; gap: 14px; }
.pf-av { display: block; line-height: 0; }
.pf-info { flex: 1; }
.pf-name { font-family: var(--serif); font-size: 18px; display: flex; align-items: center; gap: 8px; }
.pf-tip { font-size: 11px; color: var(--muted); margin-top: 6px; letter-spacing: 0.4px; }
.pf-field { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.pf-field .inp { flex: 1 1 auto; min-width: 0; }
/* .btn-line 默认是整行宽按钮，这里要缩成右侧的小按钮，否则会把输入框挤没 */
.pf-field .btn-line {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 18px;
  height: 46px;
  white-space: nowrap;
}

/* --------------------------------------------------- 设置表单对齐修正 ----
   问题：<input type="date"> 是原生控件，自带内边距和不同的行高，
   导致「2026年10月26日」比其他行的文字高一截；iOS Safari 上小日历图标
   还会把文字挤得离右边缘更远。
   做法：所有字段统一高度/行高，日期控件单独再压一次内边距，并把原生
   图标缩成和文字等高的一个小按钮。 */
.field label,
.field input,
.field select {
  line-height: 22px;
}
.field input,
.field select {
  height: 22px;
  padding: 0;
}
.field input[type='date'] {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  min-height: 22px;
  padding: 0;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 22px;
  color: var(--ink);
  text-align: right;
}
.field input[type='date']::-webkit-date-and-time-value {
  text-align: right;
  line-height: 22px;
  margin: 0;
}
.field input[type='date']::-webkit-datetime-edit {
  padding: 0;
  line-height: 22px;
}
.field input[type='date']::-webkit-calendar-picker-indicator {
  width: 16px;
  height: 16px;
  margin: 0 0 0 6px;
  padding: 0;
  opacity: 0.4;
}
