:root {
  --paper: #f6f4ef;
  --paper-2: #fbfaf6;
  --ink: #1f1e1c;
  --muted: #817d76;
  --line: #ded8cd;
  --wine: #542f35;
  --plum: #42343d;
  --olive: #545a46;
  --terracotta: #9f725f;
  --copper: #b8906e;
  --soft: #eee8df;
  --shadow: 0 24px 70px rgba(39, 32, 27, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Noto Sans SC", Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(159, 114, 95, .16), transparent 34%),
    linear-gradient(135deg, #ede5dc, #f9f7f1 46%, #e5dfd4);
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}
button:active { transform: scale(.98); }
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 28px;
}
.phone {
  width: 390px;
  height: 844px;
  background: var(--paper);
  border: 10px solid #171615;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.statusbar {
  height: 34px;
  padding: 8px 22px 0;
  display: flex;
  justify-content: space-between;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: rgba(250, 249, 246, .86);
}
.app {
  height: calc(100% - 98px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--paper);
}
.app::-webkit-scrollbar { width: 0; }
.page {
  min-height: 100%;
  padding: 18px 18px 92px;
  animation: rise .28s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(127, 118, 104, .22);
  background: rgba(250, 249, 246, .94);
  backdrop-filter: blur(18px);
}
.tab {
  background: transparent;
  color: #8a857e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
}
.tab .ico { font-size: 18px; line-height: 1; }
.tab.active { color: var(--wine); font-weight: 700; }
.hero {
  min-height: 265px;
  margin: -18px -18px 20px;
  padding: 42px 24px 22px;
  background: linear-gradient(rgba(250,249,246,.2), rgba(246,244,239,.52)), url("./assets/hero-texture.png") center/cover;
  position: relative;
}
.brand-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}
.brand-mark {
  font-family: "Noto Serif SC", serif;
  font-size: 33px;
  letter-spacing: 0;
  font-weight: 700;
}
.seal {
  color: var(--wine);
  border: 1px solid rgba(84,47,53,.26);
  padding: 5px 9px;
  font-size: 11px;
  background: rgba(250,249,246,.52);
}
h1, h2, h3 { margin: 0; font-family: "Noto Serif SC", serif; letter-spacing: 0; }
.hero h1 {
  max-width: 295px;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 700;
}
.sub {
  margin: 11px 0 0;
  color: #57514b;
  font-size: 13px;
  line-height: 1.7;
}
.search-large, .searchbar {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(84, 47, 53, .18);
  background: rgba(255,255,255,.68);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: 0 12px 26px rgba(58, 44, 36, .06);
}
.search-large {
  margin-top: 26px;
  font-size: 15px;
  color: #6f6960;
}
.magnify {
  width: 28px; height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
}
.section { margin: 22px 0; }
.section-head, .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.section h2, .topbar h2 { font-size: 21px; }
.section small, .meta { color: var(--muted); font-size: 11px; line-height: 1.5; }
.subject-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.subject-card {
  min-height: 98px;
  padding: 13px 11px;
  background: #fffdf8;
  border: 1px solid var(--line);
  text-align: left;
}
.subject-card strong { display:block; font-size: 16px; margin-bottom: 14px; }
.subject-card span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.feature-list {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px;
}
.feature {
  min-height: 106px;
  padding: 15px;
  background: #eee8df;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  border: 1px solid rgba(112, 91, 74, .13);
}
.feature:nth-child(2) { background: #e9e8e0; }
.feature:nth-child(3) { background: #f8f5ee; }
.feature:nth-child(4) { background: #ebe1dc; }
.feature b { font-family: "Noto Serif SC", serif; font-size: 18px; }
.feature span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.file-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 15px;
  margin-bottom: 10px;
  text-align: left;
}
.file-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.index {
  font-family: Inter, sans-serif;
  color: var(--copper);
  font-size: 11px;
  font-weight: 700;
}
.type {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background: #f0ebe4;
  color: var(--wine);
  font-size: 11px;
}
.file-card h3 { font-size: 19px; margin: 4px 0; }
.data-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.pill, .tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  background: #efebe3;
  color: #62584f;
  border: 1px solid rgba(132, 119, 101, .14);
  font-size: 11px;
}
.tag.selected { background: var(--wine); color: #fff; border-color: var(--wine); }
.note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px 0;
  background: linear-gradient(var(--paper) 75%, rgba(246,244,239,0));
}
.back, .icon-btn, .ghost, .primary, .secondary {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #fffdf8;
}
.icon-btn {
  width: 40px;
  padding: 0;
}
.primary {
  width: 100%;
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
  font-weight: 700;
}
.secondary {
  width: 100%;
  color: var(--wine);
}
.ghost {
  background: transparent;
  color: var(--wine);
}
.full { width: 100%; }
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  background: #fffdf8;
  border: 1px solid var(--line);
  color: #62584f;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.searchbar {
  min-height: 50px;
  margin-bottom: 12px;
}
.searchbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}
.empty {
  padding: 28px 18px;
  text-align: center;
  background: #fffdf8;
  border: 1px dashed var(--line);
}
.profile-head {
  margin: -18px -18px 0;
  padding: 22px 18px 18px;
  background: #fbfaf6;
  border-bottom: 1px solid var(--line);
}
.profile-name {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.profile-name h1 { font-size: 29px; line-height: 1.22; }
.badge {
  white-space: nowrap;
  padding: 5px 9px;
  background: #efe6df;
  color: var(--wine);
  font-size: 11px;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr 42px;
  gap: 8px;
  margin-top: 15px;
}
.segment {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 14px 0 4px;
  position: sticky;
  top: 50px;
  z-index: 4;
  background: var(--paper);
}
.segment button {
  flex: 0 0 auto;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 8px 2px;
  color: var(--muted);
}
.segment button.active {
  color: var(--wine);
  border-color: var(--wine);
  font-weight: 700;
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
}
.metric {
  padding: 15px;
  border-left: 2px solid var(--copper);
  background: #fffdf8;
}
.metric b {
  display: block;
  font: 700 25px Inter, sans-serif;
  margin-bottom: 3px;
}
.locked {
  position: relative;
  overflow: hidden;
  max-height: 180px;
}
.locked:after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(7px);
  background: linear-gradient(rgba(246,244,239,.45), rgba(246,244,239,.95));
}
.lock-panel {
  position: relative;
  z-index: 2;
  margin-top: -118px;
  padding: 18px;
  background: rgba(251,250,246,.92);
  border: 1px solid var(--line);
  text-align: center;
}
.timeline {
  border-left: 1px solid var(--line);
  margin-left: 9px;
  padding-left: 18px;
}
.time-item {
  position: relative;
  padding: 0 0 18px;
}
.time-item:before {
  content: "";
  width: 9px; height: 9px;
  position: absolute;
  left: -23px; top: 5px;
  border-radius: 50%;
  background: var(--copper);
}
.time-item h3 { font-size: 17px; }
.source {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.experience-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.photo {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(84,47,53,.1), rgba(184,144,110,.12)),
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(255,255,255,.45) 9px 10px);
  border: 1px solid var(--line);
}
.response-box {
  padding: 15px;
  background: #ebe6dd;
  border-left: 2px solid var(--olive);
}
.plans {
  display: grid;
  gap: 10px;
}
.plan-card {
  padding: 18px;
  background: #fffdf8;
  border: 1px solid var(--line);
  text-align: left;
}
.plan-card.active {
  border-color: var(--wine);
  box-shadow: 0 12px 28px rgba(84,47,53,.1);
}
.price {
  font: 700 31px Inter, sans-serif;
  color: var(--wine);
}
.stepper {
  display: flex;
  gap: 6px;
  margin: 14px 0;
}
.dot {
  height: 4px;
  flex: 1;
  background: #dfd7cc;
}
.dot.active { background: var(--wine); }
.field {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 0 12px;
  outline: none;
  margin: 7px 0;
}
textarea.field {
  min-height: 86px;
  padding-top: 12px;
  resize: none;
}
.upload {
  min-height: 118px;
  border: 1px dashed #b7aa9a;
  background: #fffdf8;
  display: grid;
  place-items: center;
  text-align: center;
  margin: 10px 0;
}
.choice {
  display: grid;
  gap: 10px;
}
.choice button {
  background: #fffdf8;
  border: 1px solid var(--line);
  text-align: left;
  padding: 14px;
}
.choice button.active { border-color: var(--wine); background: #f2ece5; }
.daily-hero {
  padding: 24px 18px;
  background: #e8e4db;
  margin: 0 -2px 18px;
}
.daily-hero h1 { font-size: 30px; }
.calendar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.day {
  flex: 0 0 64px;
  min-height: 76px;
  background: #fffdf8;
  border: 1px solid var(--line);
}
.day.active { background: var(--wine); color: #fff; }
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.compare .photo { aspect-ratio: 3 / 4; }
.list-button {
  width: 100%;
  min-height: 54px;
  background: #fffdf8;
  border: 1px solid var(--line);
  margin-bottom: 9px;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d7c9bc, #7b5057);
}
.mine-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0 22px;
}
.service-flow {
  display: grid;
  gap: 9px;
}
.flow-step {
  padding: 14px;
  background: #fffdf8;
  border-left: 2px solid var(--copper);
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(26,24,22,.35);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}
.modal.hidden { display: none; }
.modal-card {
  width: min(348px, 100%);
  background: var(--paper-2);
  padding: 22px;
  box-shadow: var(--shadow);
  animation: pop .2s ease both;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.success-mark {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 28px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f1e1c;
  color: #fff;
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transition: .24s ease;
  z-index: 30;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 820px) {
  .stage { padding: 0; min-height: 100vh; }
  .phone { width: 100vw; height: 100vh; border: 0; border-radius: 0; }
}

/* WeChat mini-program refinement */
:root {
  --paper: #f7f6f2;
  --paper-2: #ffffff;
  --ink: #171615;
  --muted: #8a8780;
  --line: #ebe6dc;
  --wine: #513038;
  --olive: #59604d;
  --copper: #a98668;
  --shadow: 0 12px 34px rgba(42, 34, 28, .09);
}

body {
  font-family: "PingFang SC", "Noto Sans SC", Inter, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 20% 12%, rgba(120, 82, 64, .12), transparent 30%),
    linear-gradient(135deg, #e9e2d8, #f9f8f4 52%, #e7e0d4);
  font-size: 14px;
}

.stage { gap: 28px; }

.phone {
  border: 1px solid rgba(23, 22, 21, .14);
  border-radius: 28px;
  background: #f3f2ee;
  box-shadow: 0 18px 48px rgba(31, 30, 28, .18);
}

.statusbar {
  height: 30px;
  padding: 7px 21px 0;
  background: rgba(247,246,242,.96);
  font-size: 11px;
}

.wx-nav {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(247,246,242,.96);
  border-bottom: 1px solid rgba(222, 216, 205, .58);
}

.wx-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.wx-capsule {
  position: absolute;
  right: 12px;
  top: 8px;
  width: 86px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(36, 34, 31, .16);
  background: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.wx-capsule i,
.wx-capsule b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #201f1d;
  box-shadow: 8px 0 0 #201f1d, -8px 0 0 #201f1d;
}

.wx-capsule b {
  width: 15px;
  height: 15px;
  box-shadow: none;
  background: transparent;
  border: 1.6px solid #201f1d;
}

.app {
  height: calc(100% - 138px);
  background: #f3f2ee;
}

.page {
  padding: 12px 14px 78px;
}

h1, h2, h3 {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 650;
}

.mini-hero {
  min-height: 112px;
  padding: 17px 16px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.55)),
    url("./assets/hero-texture.png") center 42% / cover;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid rgba(222,216,205,.66);
}

.brand-mark {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 1px;
}

.mini-hero p {
  margin: 9px 0 0;
  max-width: 210px;
  color: #5f5a52;
  font-size: 12px;
  line-height: 1.65;
}

.vip-mini {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.hint-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: #757168;
  font-size: 11px;
  line-height: 1.65;
}

.search-large, .searchbar {
  min-height: 44px;
  border-radius: 999px;
  border-color: #e1dbd0;
  background: #fff;
  padding: 0 13px;
  box-shadow: none;
  font-size: 12px;
}

.search-large {
  margin-top: 10px;
  color: #8d887f;
}

.magnify {
  width: 22px;
  height: 22px;
  background: #eee8df;
  color: var(--wine);
  font-size: 12px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px 4px;
  padding: 15px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.mini-grid button {
  min-width: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #36332f;
  font-size: 11px;
  line-height: 1.25;
}

.mini-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #e4ded3;
  background: linear-gradient(180deg, #fff, #f5f1eb);
  color: var(--wine);
  font-weight: 700;
  font-size: 14px;
}

.section { margin: 14px 0; }

.section-head {
  margin-bottom: 8px;
  padding: 0 2px;
}

.section h2, .topbar h2 {
  font-size: 15px;
  font-weight: 650;
}

.section small, .meta { font-size: 10px; }

.feed {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.feed-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid #f0ece5;
  background: #fff;
  text-align: left;
}

.feed-item:first-child { border-top: 0; }
.feed-item span {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1ece4;
  color: var(--wine);
  font-size: 10px;
}
.feed-item b {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.feed-item em {
  font-style: normal;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.file-card {
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 8px;
  background: #fff;
  box-shadow: none;
}

.index {
  font-size: 9px;
  color: #a4876d;
}

.file-card h3 {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 15px;
  margin: 3px 0 2px;
}

.note {
  font-size: 11px;
  line-height: 1.65;
}

.type, .pill, .tag, .badge {
  border-radius: 999px;
  font-size: 10px;
}

.data-line { gap: 6px; margin-top: 8px; }
.pill, .tag { min-height: 22px; padding: 3px 8px; }

.topbar {
  min-height: 42px;
  margin: -2px -2px 8px;
  padding: 0 2px;
  top: 0;
  background: #f3f2ee;
}

.back, .icon-btn, .ghost, .primary, .secondary {
  min-height: 36px;
  border-radius: 8px;
  font-size: 12px;
}

.primary {
  background: #332326;
  border-color: #332326;
}

.secondary {
  background: #fff;
  color: var(--wine);
}

.profile-head {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.profile-name h1 {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 19px;
  line-height: 1.35;
}

.actions {
  grid-template-columns: 1fr 1fr 36px;
  gap: 7px;
  margin-top: 12px;
}

.segment {
  gap: 6px;
  padding: 10px 0 2px;
  top: 0;
  background: #f3f2ee;
}

.segment button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #716b62;
  font-size: 11px;
}

.segment button.active {
  color: #fff;
  background: #332326;
  border-color: #332326;
}

.summary {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.metric {
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  text-align: center;
}

.metric b {
  font-size: 18px;
  margin-bottom: 2px;
}

.metric span { font-size: 10px; color: var(--muted); }

.timeline { padding-left: 14px; }
.time-item h3 { font-size: 13px; }
.source { font-size: 10px; }

.lock-panel {
  margin-top: -112px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -10px 28px rgba(36,32,28,.08);
}

.plan-card,
.choice button,
.upload,
.field,
.list-button,
.flow-step,
.response-box {
  border-radius: 10px;
}

.plan-card { padding: 14px; }
.price { font-size: 24px; }
.field { min-height: 42px; font-size: 12px; }
.upload { min-height: 104px; }

.daily-hero {
  margin: 0 0 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f9f7f2, #e8e0d5);
  border: 1px solid var(--line);
  padding: 18px 15px;
}

.daily-hero h1 {
  font-size: 20px;
}

.day {
  flex-basis: 58px;
  min-height: 66px;
  border-radius: 10px;
  font-size: 11px;
}

.list-button {
  min-height: 48px;
  font-size: 13px;
  background: #fff;
}

.service-strip {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.service-strip span {
  color: #7c756d;
  font-size: 11px;
}

.service-strip b {
  font-size: 12px;
  font-weight: 600;
  color: #332326;
}

.tabs {
  height: 72px;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 6px 10px 8px;
  border-top: 1px solid rgba(58,48,39,.07);
  background:
    linear-gradient(180deg, rgba(255,253,248,.78), rgba(255,253,248,.98));
  box-shadow: 0 -12px 28px rgba(58,48,39,.05);
}

.tab {
  height: 54px;
  color: #a19a90;
  font-size: 10px;
}

.tab.active {
  color: var(--wine);
}

.mark-fab {
  align-self: start;
  justify-self: center;
  width: 70px;
  height: 62px;
  margin-top: -18px;
  border-radius: 24px 8px 24px 8px;
  background:
    linear-gradient(145deg, #4d2b32, #332326);
  color: #fff;
  box-shadow: 0 14px 30px rgba(77,43,50,.24);
  border: 1px solid rgba(194,164,127,.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.mark-fab b {
  font-size: 10px;
  font-weight: 600;
}

.fab-ico {
  width: 20px;
  height: 20px;
  position: relative;
  display: block;
}

.fab-ico:before {
  content: "";
  position: absolute;
  width: 13px;
  height: 17px;
  left: 4px;
  top: 1px;
  border: 1.5px solid #ead8bd;
  border-radius: 3px 8px 3px 3px;
  transform: rotate(-10deg);
}

.fab-ico:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  right: 4px;
  top: 4px;
  border-radius: 50%;
  background: #ead8bd;
}

.phone.subflow .tabs {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.phone.subflow .app {
  height: calc(100% - 74px);
}

@media (max-width: 820px) {
  .phone { border-radius: 0; border: 0; }
}

/* Premium redesign layer */
:root {
  --ivory: #f8f5ed;
  --bone: #fffdf8;
  --limewash: #ece6da;
  --ink: #1d1b18;
  --soft-ink: #4c4741;
  --muted: #8b857b;
  --hairline: rgba(58, 48, 39, .11);
  --wine: #4d2b32;
  --aubergine: #403740;
  --olive: #575c48;
  --clay: #a06f5d;
  --champagne: #c2a47f;
}

body {
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(77, 43, 50, .06), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(194, 164, 127, .22), transparent 28%),
    linear-gradient(135deg, #ded5c8, #f8f5ee 48%, #e9e1d5);
}

.phone {
  background: var(--ivory);
  border: 1px solid rgba(29, 27, 24, .12);
  box-shadow: 0 28px 80px rgba(29, 24, 20, .2);
}

.statusbar,
.wx-nav {
  background: rgba(248, 245, 237, .96);
}

.wx-nav {
  justify-content: space-between;
  padding: 0 14px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.nav-brand i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0;
  color: var(--wine);
  border: 1px solid rgba(77, 43, 50, .25);
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(236,230,218,.65));
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.nav-brand b {
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  letter-spacing: 1px;
}

.nav-user {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px 0 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--hairline);
}

.nav-user span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9c5b5, #5a353b);
}

.nav-user b {
  font-size: 10px;
  color: var(--wine);
}

.app {
  background:
    linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px),
    var(--ivory);
  background-size: 28px 28px;
}

.page {
  padding: 14px 16px 82px;
}

.home-shell {
  padding-bottom: 6px;
}

.home-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.micro,
.archive-no,
.sheet-title span,
.lock-panel span {
  font-family: Inter, sans-serif;
  font-size: 9px;
  letter-spacing: .8px;
  color: var(--champagne);
  font-weight: 700;
}

.home-top h2 {
  margin-top: 3px;
  font-size: 15px;
  color: var(--soft-ink);
}

.member-chip {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #2f2225;
  color: #fff;
  font-size: 11px;
}

.archive-hero {
  min-height: 224px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(120deg, rgba(248,245,237,.98), rgba(248,245,237,.62) 56%, rgba(77,43,50,.08)),
    url("./assets/hero-texture.png") center 37% / cover;
  border-radius: 4px 22px 4px 22px;
}

.archive-hero:before {
  content: "";
  position: absolute;
  right: -28px;
  top: 22px;
  width: 150px;
  height: 164px;
  border: 1px solid rgba(77,43,50,.16);
  background: rgba(255,255,255,.24);
  transform: skewX(-10deg);
  backdrop-filter: blur(2px);
}

.archive-hero:after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 80px;
  height: 1px;
  background: var(--champagne);
  box-shadow: 0 -18px 0 rgba(194,164,127,.32), 0 -36px 0 rgba(194,164,127,.18);
}

.hero-lines {
  position: absolute;
  inset: 12px;
  border-top: 1px solid rgba(29,27,24,.08);
  border-left: 1px solid rgba(29,27,24,.08);
  pointer-events: none;
}

.mirror-mark {
  position: absolute;
  right: 20px;
  top: 24px;
  display: flex;
  gap: 2px;
  opacity: .72;
}

.mirror-mark span {
  width: 28px;
  height: 74px;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  color: var(--wine);
  border: 1px solid rgba(77,43,50,.22);
  background: rgba(255,255,255,.36);
  transform: skewX(-9deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 250px;
  margin-top: 56px;
}

.hero-copy h1 {
  margin-top: 8px;
  font-family: "Noto Serif SC", serif;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 12px 0 0;
  color: #615b53;
  font-size: 12px;
  line-height: 1.75;
}

.search-prime {
  width: calc(100% - 20px);
  margin: -22px 10px 0;
  min-height: 58px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  text-align: left;
  background: rgba(255,253,248,.94);
  border: 1px solid rgba(77,43,50,.14);
  box-shadow: 0 16px 34px rgba(65, 48, 38, .1);
  border-radius: 12px;
}

.search-prime span:not(.line-ico) {
  color: #4f4942;
  font-size: 14px;
  font-weight: 600;
}

.search-prime b {
  color: var(--wine);
  font-size: 11px;
}

.hot-tags {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 2px;
}

.hot-tags button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  border: 1px solid var(--hairline);
  color: #716a60;
  font-size: 11px;
}

.editorial {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(58,48,39,.08);
  padding-bottom: 7px;
}

.editorial h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
}

.editorial small {
  margin-left: auto;
  color: #9a9388;
}

.subject-stack {
  display: grid;
  gap: 9px;
}

.subject-entry {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(255,253,248,.92), rgba(255,253,248,.58)),
    linear-gradient(135deg, rgba(87,92,72,.08), transparent);
  border: 1px solid var(--hairline);
  border-radius: 16px 4px 16px 4px;
}

.subject-entry.large {
  min-height: 102px;
  background:
    linear-gradient(110deg, rgba(255,253,248,.92), rgba(236,230,218,.72)),
    linear-gradient(135deg, rgba(77,43,50,.1), transparent);
}

.subject-entry b,
.decision-card b,
.service-list b {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
}

.subject-entry p,
.decision-card p,
.service-list p {
  margin: 5px 0 0;
  color: #787166;
  font-size: 11px;
  line-height: 1.55;
}

.subject-entry em {
  writing-mode: vertical-rl;
  font-style: normal;
  color: var(--champagne);
  font: 700 9px Inter, sans-serif;
  letter-spacing: .6px;
}

.decision-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.decision-card {
  flex: 0 0 138px;
  min-height: 128px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  background: rgba(255,253,248,.75);
  border: 1px solid var(--hairline);
  border-radius: 4px 16px 4px 16px;
}

.decision-card.accent {
  background: #3a292d;
  color: #fff;
}

.decision-card.accent p { color: rgba(255,255,255,.68); }
.decision-card.accent .line-ico { border-color: rgba(255,255,255,.32); }
.decision-card.accent .line-ico:before,
.decision-card.accent .line-ico:after,
.decision-card.accent .line-ico i,
.decision-card.accent .line-ico i:before,
.decision-card.accent .line-ico i:after { border-color: #e9d4bd; background: #e9d4bd; }

.service-list {
  display: grid;
  gap: 8px;
}

.service-list button {
  min-height: 70px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 2px;
  background: transparent;
  text-align: left;
  border-bottom: 1px solid rgba(58,48,39,.08);
}

.archive-feed {
  position: relative;
  padding-left: 13px;
  border-left: 1px solid rgba(77,43,50,.2);
}

.archive-feed button {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 0 0 16px;
  text-align: left;
  background: transparent;
}

.archive-feed button:before {
  content: "";
  position: absolute;
  left: -17px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine);
}

.archive-feed span {
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(77,43,50,.14);
  color: var(--wine);
  background: rgba(255,253,248,.5);
  font-size: 10px;
}

.archive-feed b {
  font-size: 13px;
  font-weight: 650;
}

.archive-feed p {
  margin: 4px 0 2px;
  color: #625b52;
  font-size: 12px;
}

.archive-feed small {
  color: #9c9488;
  font-size: 10px;
}

.archive-card {
  border-radius: 4px 14px 4px 14px;
  background: rgba(255,253,248,.78);
}

.file-top {
  align-items: center;
}

.line-ico {
  width: 36px;
  height: 36px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(77,43,50,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(236,230,218,.38));
  border-radius: 10px 3px 10px 3px;
}

.line-ico:before,
.line-ico:after,
.line-ico i,
.line-ico i:before,
.line-ico i:after {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.icon-building:before {
  width: 18px; height: 20px; border: 1.6px solid var(--wine); bottom: 8px; left: 9px;
}
.icon-building:after {
  width: 3px; height: 3px; background: var(--wine); left: 14px; top: 13px; box-shadow: 7px 0 0 var(--wine), 0 7px 0 var(--wine), 7px 7px 0 var(--wine);
}
.icon-building i { width: 8px; height: 1.6px; background: var(--wine); left: 14px; bottom: 12px; }

.icon-person:before {
  width: 10px; height: 10px; border: 1.6px solid var(--wine); border-radius: 50%; top: 8px; left: 13px;
}
.icon-person:after {
  width: 20px; height: 12px; border: 1.6px solid var(--wine); border-radius: 12px 12px 4px 4px; left: 8px; bottom: 7px;
}

.icon-link:before {
  width: 14px; height: 9px; border: 1.6px solid var(--wine); border-radius: 9px; left: 7px; top: 13px; transform: rotate(-18deg);
}
.icon-link:after {
  width: 14px; height: 9px; border: 1.6px solid var(--wine); border-radius: 9px; right: 7px; top: 15px; transform: rotate(-18deg);
}

.icon-broadcast:before {
  width: 6px; height: 6px; border-radius: 50%; background: var(--wine); left: 15px; top: 15px;
}
.icon-broadcast:after {
  width: 22px; height: 22px; border: 1.6px solid var(--wine); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; left: 6px; top: 6px; transform: rotate(45deg);
}

.icon-seal:before {
  width: 18px; height: 18px; border: 1.6px solid var(--wine); border-radius: 50%; left: 9px; top: 7px;
}
.icon-seal:after {
  width: 15px; height: 8px; border-left: 1.6px solid var(--wine); border-right: 1.6px solid var(--wine); bottom: 6px; left: 10px;
}

.icon-tag:before {
  width: 18px; height: 18px; border: 1.6px solid var(--wine); border-radius: 4px 9px 4px 4px; left: 9px; top: 9px; transform: rotate(-12deg);
}
.icon-tag:after {
  width: 4px; height: 4px; border-radius: 50%; background: var(--wine); right: 11px; top: 12px;
}

.icon-photo:before {
  width: 20px; height: 16px; border: 1.6px solid var(--wine); left: 8px; top: 10px;
}
.icon-photo:after {
  width: 9px; height: 9px; border-left: 1.6px solid var(--wine); border-top: 1.6px solid var(--wine); left: 14px; bottom: 9px; transform: rotate(45deg);
}

.icon-dialog:before {
  width: 21px; height: 15px; border: 1.6px solid var(--wine); border-radius: 8px 8px 8px 2px; left: 8px; top: 9px;
}
.icon-dialog:after {
  width: 12px; height: 1.6px; background: var(--wine); left: 12px; top: 15px; box-shadow: 0 5px 0 var(--wine);
}

.icon-folder:before {
  width: 22px; height: 16px; border: 1.6px solid var(--wine); left: 7px; top: 12px;
}
.icon-folder:after {
  width: 10px; height: 5px; border: 1.6px solid var(--wine); border-bottom: 0; left: 9px; top: 8px;
}

.icon-search:before {
  width: 14px; height: 14px; border: 1.7px solid var(--wine); border-radius: 50%; left: 8px; top: 8px;
}
.icon-search:after {
  width: 10px; height: 1.7px; background: var(--wine); left: 20px; top: 23px; transform: rotate(45deg);
}

.dossier-cover {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(135deg, rgba(255,253,248,.95), rgba(236,230,218,.72)),
    url("./assets/hero-texture.png") center/cover;
  border-radius: 4px 22px 4px 22px;
}

.dossier-cover:after {
  content: "";
  position: absolute;
  right: -28px;
  top: 18px;
  width: 112px;
  height: 142px;
  border: 1px solid rgba(77,43,50,.16);
  transform: skewX(-10deg);
  background: rgba(255,255,255,.24);
}

.dossier-cover > * {
  position: relative;
  z-index: 1;
}

.dossier-grid {
  position: absolute;
  inset: 12px;
  border-top: 1px solid rgba(77,43,50,.08);
  border-left: 1px solid rgba(77,43,50,.08);
  z-index: 0;
}

.dossier-cover .profile-name {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: start;
}

.dossier-cover .profile-name h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
}

.dossier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.dossier-meta span {
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,253,248,.58);
  border: 1px solid rgba(77,43,50,.12);
  color: #655d54;
  font-size: 10px;
}

.archive-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 6px;
}

.archive-summary .metric {
  min-height: 66px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  border-radius: 12px 3px 12px 3px;
  background: rgba(255,253,248,.68);
}

.archive-summary .metric.lead {
  background: #38282c;
  color: #fff;
}

.archive-summary .metric.lead span { color: rgba(255,255,255,.65); }

.info-sheet,
.experience-card {
  margin-top: 10px;
  padding: 14px;
  background: rgba(255,253,248,.66);
  border: 1px solid var(--hairline);
  border-radius: 3px 16px 3px 16px;
}

.sheet-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.sheet-title b {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
}

.kv-list {
  display: grid;
  gap: 9px;
}

.kv-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(58,48,39,.07);
}

.kv-list span {
  color: #9b9288;
  font-size: 11px;
}

.kv-list b {
  color: #504941;
  font-size: 12px;
  font-weight: 500;
}

.dossier-timeline {
  margin: 0 0 10px 8px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-cloud .tag {
  border-radius: 4px 999px 999px 4px;
  background: rgba(87,92,72,.08);
}

.tag-cloud em {
  margin-left: 6px;
  font-style: normal;
  color: var(--wine);
  font-family: Inter, sans-serif;
  font-weight: 700;
}

.response-box {
  margin-top: 10px;
  background: rgba(87,92,72,.1);
  color: #46483c;
  border: 0;
  border-left: 2px solid var(--olive);
}

.tabs {
  border-top: 1px solid rgba(58,48,39,.08);
  box-shadow: 0 -10px 24px rgba(58,48,39,.04);
}

.nav-ico {
  width: 20px;
  height: 20px;
  position: relative;
  display: block;
}

.nav-ico:before,
.nav-ico:after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  border-color: currentColor;
}

.home-i:before { width: 16px; height: 12px; border: 1.5px solid currentColor; left: 2px; bottom: 2px; }
.home-i:after { width: 13px; height: 13px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); left: 3px; top: 1px; }
.search-i:before, .archive-i:before { width: 15px; height: 13px; border: 1.5px solid currentColor; left: 2px; top: 4px; border-radius: 2px 7px 2px 2px; }
.search-i:after, .archive-i:after { width: 9px; height: 1.5px; background: currentColor; right: 2px; bottom: 4px; transform: rotate(45deg); }
.service-i:before { width: 16px; height: 14px; border: 1.5px solid currentColor; left: 2px; top: 4px; border-radius: 4px; }
.service-i:after { width: 8px; height: 4px; border: 1.5px solid currentColor; border-bottom: 0; left: 6px; top: 1px; border-radius: 4px 4px 0 0; }
.mine-i:before { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; left: 6px; top: 2px; }
.mine-i:after { width: 16px; height: 8px; border: 1.5px solid currentColor; border-radius: 9px 9px 2px 2px; left: 2px; bottom: 1px; }

.search-intro {
  padding: 6px 2px 12px;
}

.search-intro h1,
.member-hero h1 {
  margin-top: 5px;
  font-family: "Noto Serif SC", serif;
  font-size: 23px;
  line-height: 1.25;
}

.refined-search {
  border-radius: 12px;
  min-height: 54px;
  box-shadow: 0 12px 28px rgba(65, 48, 38, .07);
}

.refined-search .line-ico {
  width: 32px;
  height: 32px;
}

.refined-search input {
  font-size: 13px;
}

.chip {
  border-radius: 999px;
  border-color: var(--hairline);
  background: rgba(255,253,248,.65);
}

.chip.active {
  background: #332326;
  color: #fff;
}

.member-hero {
  min-height: 150px;
  padding: 18px;
  margin-bottom: 12px;
  border-radius: 20px 4px 20px 4px;
  background:
    linear-gradient(135deg, rgba(53,38,42,.94), rgba(77,43,50,.82)),
    url("./assets/hero-texture.png") center/cover;
  color: #fff;
}

.member-hero .micro {
  color: #d8b995;
}

.member-hero p {
  max-width: 260px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.75;
}

.premium-plans {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.premium-plans .plan-card {
  flex: 0 0 156px;
  min-height: 162px;
  border-radius: 4px 18px 4px 18px;
  background: rgba(255,253,248,.72);
  border-color: var(--hairline);
}

.premium-plans .plan-card span {
  color: var(--champagne);
  font-size: 10px;
}

.premium-plans .plan-card.active {
  background: #fffdf8;
  border-color: rgba(77,43,50,.34);
  box-shadow: 0 16px 36px rgba(65, 48, 38, .1);
}

.premium-plans h3 {
  margin-top: 8px;
  font-family: "Noto Serif SC", serif;
}

.private-daily {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,253,248,.9), rgba(236,230,218,.62)),
    url("./assets/hero-texture.png") center 58% / cover;
  border-radius: 4px 20px 4px 20px;
}

.private-daily:after {
  content: "";
  position: absolute;
  right: 14px;
  top: 22px;
  width: 76px;
  height: 106px;
  border: 1px solid rgba(77,43,50,.12);
  transform: skewX(-9deg);
}

.private-daily h1 {
  margin-top: 6px;
  font-family: "Noto Serif SC", serif;
  position: relative;
  z-index: 1;
}

.private-daily .note,
.private-daily .micro {
  position: relative;
  z-index: 1;
}

.calendar {
  padding-bottom: 2px;
}

.day {
  background: rgba(255,253,248,.68);
  border-color: var(--hairline);
}

.day.active {
  background: #332326;
  color: #fff;
}

.photo {
  border: 0;
  border-radius: 3px 13px 3px 13px;
  background:
    linear-gradient(135deg, rgba(77,43,50,.12), rgba(194,164,127,.15)),
    repeating-linear-gradient(135deg, rgba(255,253,248,.72) 0 8px, rgba(236,230,218,.65) 8px 9px);
}

.premium-mine {
  padding: 18px 2px 20px;
  border-bottom: 1px solid rgba(58,48,39,.08);
}

.premium-mine h2 {
  margin-top: 2px;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
}

.list-button {
  border: 0;
  border-bottom: 1px solid rgba(58,48,39,.08);
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
}

.list-button b {
  color: var(--wine);
  font-size: 11px;
}

.modal-card {
  border-radius: 4px 20px 4px 20px;
  background: #fffdf8;
}

.success-mark {
  border-radius: 16px 4px 16px 4px;
  background: #332326;
}

.service-hero {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 4px 20px 4px 20px;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(120deg, rgba(255,253,248,.94), rgba(236,230,218,.66)),
    url("./assets/hero-texture.png") center 50% / cover;
}

.service-hero:after {
  content: "";
  position: absolute;
  right: 16px;
  top: 18px;
  width: 70px;
  height: 92px;
  border: 1px solid rgba(77,43,50,.12);
  transform: skewX(-9deg);
}

.service-hero h1 {
  margin: 6px 0 8px;
  font-family: "Noto Serif SC", serif;
  font-size: 27px;
}

.service-hero p {
  max-width: 248px;
  margin: 0;
  color: #655d54;
  font-size: 12px;
  line-height: 1.7;
}

.service-catalog {
  display: grid;
  gap: 10px;
}

.service-catalog button {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--hairline);
  background: rgba(255,253,248,.66);
  border-radius: 16px 4px 16px 4px;
}

.service-catalog .catalog-primary {
  min-height: 122px;
  background:
    linear-gradient(120deg, rgba(58,41,45,.93), rgba(77,43,50,.78)),
    url("./assets/hero-texture.png") center/cover;
  color: #fff;
  border-color: rgba(194,164,127,.22);
}

.service-catalog span {
  color: var(--champagne);
  font: 700 10px Inter, sans-serif;
}

.service-catalog b {
  display: block;
  margin: 4px 0 5px;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
}

.service-catalog p {
  margin: 0;
  color: #777067;
  font-size: 11px;
  line-height: 1.6;
}

.service-catalog .catalog-primary p {
  color: rgba(255,255,255,.7);
}

.service-catalog .catalog-primary .line-ico {
  border-color: rgba(255,255,255,.28);
}

.service-catalog .catalog-primary .line-ico:before,
.service-catalog .catalog-primary .line-ico:after,
.service-catalog .catalog-primary .line-ico i,
.service-catalog .catalog-primary .line-ico i:before,
.service-catalog .catalog-primary .line-ico i:after {
  border-color: #ead8bd;
  background: #ead8bd;
}

/* Clean product IA pass */
:root {
  --ivory: #f8f6f1;
  --bone: #fffefb;
  --line: #e8e3da;
  --hairline: #e5dfd5;
  --ink: #1f1d1a;
  --soft-ink: #47423d;
  --muted: #878178;
  --wine: #4f302b;
  --champagne: #9f7b61;
}

body {
  background: #ede8df;
}

.phone {
  background: var(--ivory);
  border: 1px solid rgba(31,29,26,.12);
  box-shadow: 0 18px 46px rgba(31,29,26,.14);
}

.statusbar,
.wx-nav {
  background: var(--ivory);
  border-bottom: 0;
}

.wx-nav {
  height: 46px;
  padding: 0 20px;
}

.nav-brand i {
  width: 22px;
  height: 22px;
  font-size: 8px;
  background: var(--bone);
  border-color: var(--line);
  clip-path: none;
  border-radius: 6px;
}

.nav-brand b {
  font-size: 18px;
  letter-spacing: .5px;
}

.nav-user {
  height: 30px;
  background: var(--bone);
  border-color: var(--line);
}

.nav-user span {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #dbc8ba, #6c4a43);
}

.app {
  height: calc(100% - 148px);
  background: var(--ivory);
  background-image: none;
}

.page {
  padding: 14px 20px 88px;
}

.home-intro {
  padding: 8px 0 14px;
}

.home-intro h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
}

.home-intro p {
  margin: 8px 0 0;
  color: #666058;
  font-size: 14px;
  line-height: 1.55;
}

.search-prime {
  width: 100%;
  margin: 0;
  min-height: 56px;
  grid-template-columns: 34px 1fr auto;
  border-radius: 12px;
  background: var(--bone);
  border: 1px solid var(--line);
  box-shadow: none;
}

.search-prime span:not(.line-ico) {
  font-size: 14px;
  font-weight: 500;
}

.search-prime b {
  font-size: 12px;
}

.hot-tags {
  margin-top: 10px;
  gap: 8px;
}

.hot-tags button {
  background: transparent;
  border: 1px solid var(--line);
  color: #706960;
}

.section {
  margin: 22px 0;
}

.clean-head {
  padding: 0;
  margin-bottom: 10px;
  border-bottom: 0;
}

.clean-head h2 {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 16px;
}

.clean-head small {
  color: var(--muted);
  font-size: 11px;
}

.core-list {
  display: grid;
  gap: 10px;
}

.subject-entry,
.subject-entry.large {
  min-height: 82px;
  grid-template-columns: 38px 1fr 18px;
  padding: 14px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.subject-entry b {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 15px;
}

.subject-entry p {
  margin-top: 4px;
  color: #756e65;
  font-size: 12px;
  line-height: 1.5;
}

.subject-entry em {
  writing-mode: horizontal-tb;
  color: #b4ada3;
  font: 400 22px Inter, sans-serif;
  letter-spacing: 0;
}

.line-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border-color: var(--line);
  background: #faf8f3;
}

.assist-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.assist-list button {
  min-height: 54px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}

.assist-list .line-ico {
  width: 28px;
  height: 28px;
  transform: scale(.82);
  transform-origin: left center;
}

.assist-list span {
  font-size: 12px;
  color: var(--soft-ink);
}

.assist-list b {
  color: #aaa399;
  font-size: 16px;
}

.recent-simple .archive-card:nth-child(n+3) {
  display: none;
}

.archive-card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.file-card h3 {
  font-size: 14px;
}

.index,
.micro,
.archive-no,
.sheet-title span,
.lock-panel span {
  color: #9c7960;
  letter-spacing: .3px;
}

.tabs {
  height: 74px;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 10px max(8px, env(safe-area-inset-bottom));
  background: rgba(255,254,251,.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 18px rgba(31,29,26,.04);
}

.tab,
.tab-mark {
  height: 58px;
  min-width: 0;
  color: #9b958c;
  border-radius: 12px;
  gap: 4px;
  background: transparent;
  font-size: 11px;
}

.tab.active {
  color: var(--wine);
  font-weight: 600;
}

.tab-mark {
  color: var(--wine);
}

.tab-mark.active {
  background: #4f302b;
  color: #fff;
}

.tab-mark.active .nav-ico:before,
.tab-mark.active .nav-ico:after {
  border-color: currentColor;
  background: transparent;
}

.mark-fab,
.fab-ico,
.service-i {
  display: none;
}

.nav-ico {
  width: 20px;
  height: 20px;
}

.mark-i:before {
  width: 14px;
  height: 17px;
  left: 3px;
  top: 1px;
  border: 1.5px solid currentColor;
  border-radius: 3px 8px 3px 3px;
  transform: rotate(-8deg);
}

.mark-i:after {
  width: 4px;
  height: 4px;
  right: 4px;
  top: 4px;
  border-radius: 50%;
  background: currentColor;
  border: 0;
}

.phone.subflow .tabs {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.phone.subflow .app {
  height: calc(100% - 76px);
}

.archive-hero,
.hero-lines,
.mirror-mark,
.home-top,
.decision-row,
.service-list,
.archive-feed,
.service-hero,
.service-catalog {
  display: none;
}

/* Homepage reference-layout refinement */
body {
  background: #ece8e0;
}

.phone {
  background: #f9f7f2;
}

.app {
  height: calc(100% - 146px);
  background: #f9f7f2;
}

.page {
  padding: 12px 20px 90px;
}

.home-intro {
  padding: 12px 0 12px;
}

.home-intro h1 {
  font-size: 22px;
  line-height: 1.25;
}

.home-intro p {
  margin-top: 7px;
  font-size: 14px;
  color: #534d46;
}

.intro-note {
  display: block;
  margin-top: 8px;
  color: #908980;
  font-size: 12px;
}

.search-prime {
  min-height: 52px;
  border-radius: 12px;
  background: #fffefb;
  border: 1px solid #e6e0d7;
}

.search-prime .line-ico {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f3eee7;
}

.hot-tags {
  margin-top: 9px;
}

.hot-tags button {
  min-height: 26px;
  border-radius: 999px;
  background: #fffefb;
  border-color: #e8e2d9;
  font-size: 11px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.feature-grid button {
  min-height: 104px;
  padding: 10px 7px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-align: center;
  background: #fffefb;
  border: 1px solid #e6e0d7;
  border-radius: 12px;
}

.feature-grid .line-ico {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f4efe8;
  transform: scale(.86);
}

.feature-grid b {
  font-size: 12px;
  color: #27231f;
  font-weight: 650;
}

.feature-grid p {
  margin: 0;
  color: #7d756c;
  font-size: 10px;
  line-height: 1.35;
}

.activity-list {
  background: #fffefb;
  border: 1px solid #e6e0d7;
  border-radius: 12px;
  overflow: hidden;
}

.activity-list button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid #eee8df;
}

.activity-list button:last-child {
  border-bottom: 0;
}

.activity-list span {
  color: #5b3b35;
  font-size: 10px;
  padding: 3px 5px;
  border: 1px solid #e5ddd3;
  border-radius: 5px;
  text-align: center;
}

.activity-list b {
  color: #3d3832;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.activity-list em {
  color: #9b948b;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.text-more {
  background: transparent;
  color: #8a8177;
  font-size: 11px;
  padding: 0;
}

.tabs {
  height: 72px;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 12px max(8px, env(safe-area-inset-bottom));
  background: rgba(255,254,251,.98);
  border-top: 1px solid #e6e0d7;
  box-shadow: none;
}

.tab {
  height: 56px;
  border-radius: 10px;
  color: #9b948b;
  font-size: 11px;
}

.tab.active {
  color: #4f302b;
  font-weight: 650;
}

.tab-mark {
  color: #4f302b;
  background: #f2ece5;
}

.tab-mark.active {
  background: #4f302b;
  color: #fff;
}

.phone.subflow .tabs {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.phone.subflow .app {
  height: calc(100% - 146px);
}

.dossier-cover,
.member-hero,
.private-daily {
  background: #fffefb;
}

.phone.login-mode .wx-nav,
.phone.login-mode .tabs {
  display: none;
}

.phone.login-mode .app {
  height: calc(100% - 30px);
}

.login-page {
  min-height: 100%;
  padding: 64px 24px 28px;
  background: #f9f7f2;
}

.login-brand {
  text-align: center;
  margin-bottom: 34px;
}

.login-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid #e2dace;
  background: #fffefb;
  color: #4f302b;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
}

.login-brand h1 {
  margin: 14px 0 8px;
  font-family: "Noto Serif SC", serif;
  font-size: 32px;
  letter-spacing: 1px;
}

.login-brand p {
  margin: 0;
  color: #766f66;
  font-size: 13px;
}

.login-card {
  padding: 22px 18px;
  border-radius: 14px;
  background: #fffefb;
  border: 1px solid #e6e0d7;
}

.login-card h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1.35;
}

.login-card p {
  margin: 10px 0 20px;
  color: #746d64;
  font-size: 12px;
  line-height: 1.65;
}

.wechat-login,
.phone-login,
.text-login {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.wechat-login {
  background: #4f302b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wechat-login span {
  width: 18px;
  height: 15px;
  position: relative;
  border: 1.5px solid currentColor;
  border-radius: 10px 10px 10px 3px;
}

.wechat-login span:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 5px;
  right: -4px;
  bottom: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(18deg);
}

.phone-login {
  background: #f8f4ee;
  color: #4f302b;
  border: 1px solid #e5ddd3;
}

.text-login {
  min-height: 38px;
  background: transparent;
  color: #7f776e;
  font-size: 12px;
  font-weight: 500;
}

.login-links {
  margin-top: 22px;
  text-align: center;
}

.login-links button {
  background: transparent;
  color: #4f302b;
  font-size: 13px;
  font-weight: 600;
}

.login-links p {
  margin: 12px 0 0;
  color: #9a938a;
  font-size: 11px;
  line-height: 1.65;
}
