:root {
  /* 默认米黄：背景色优先锚定整套 */
  --bg: #F3E9D8;
  --card: #FFFCFA;
  --primary: #A67C52;
  --primary-dark: #8B6540;
  --primary-light: #EFE2D0;
  --primary-mid: #C4A079;
  --accent: #C4785A;
  --accent-soft: #F5E0D6;
  --gold: #D4B483;
  --text: #3D3429;
  --text-2: #6E6356;
  --text-3: #9A8F82;
  --line: #E6D9C8;
  --hero-grad: linear-gradient(145deg, #C4A079, #A67C52);
  --accent-grad: linear-gradient(145deg, #D49278, #C4785A);
  --btn-grad: linear-gradient(135deg, #C4A079, #A67C52);
  --fab-grad: linear-gradient(145deg, #C4A079, #A67C52);
  --mine-top: linear-gradient(180deg, #E8D9C4 0%, #F3E9D8 100%);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #0f1412;
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.35);
  color: var(--text);
}

.phone-shell {
  min-height: 100vh;
  padding-bottom: calc(64px + var(--safe-bottom));
}

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: calc(56px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 50;
}

.tabbar button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #99A09D;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.tabbar button.active { color: var(--primary); font-weight: 600; }
.tabbar .ico { font-size: 18px; line-height: 1; }

.page { padding: 12px; }
.page.full { padding: 0 0 20px; }

.hero {
  margin: 8px 12px 0;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--primary);
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-mask {
  position: absolute; inset: auto 0 0 0;
  padding: 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(20,60,55,.72));
  color: #fff;
}
.hero-kicker { font-size: 11px; letter-spacing: 2px; opacity: .9; }
.hero-title { font-size: 20px; font-weight: 700; margin-top: 4px; }
.hero-sub { font-size: 12px; margin-top: 4px; opacity: .85; }

.marquee {
  margin: 10px 12px 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-2);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.news {
  margin: 10px 12px 0;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.news img { width: 100%; height: 100%; object-fit: cover; }
.news-copy {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #fff; display: flex; flex-direction: column; gap: 4px;
}
.news-title { font-size: 15px; font-weight: 700; }
.news-sub { font-size: 11px; opacity: .9; }

.entry-row { display: flex; gap: 10px; margin: 12px; }
.entry {
  flex: 1; height: 100px; border-radius: 16px; padding: 14px;
  color: #fff; position: relative; cursor: pointer; overflow: hidden;
}
.entry-teal { background: var(--hero-grad); }
.entry-coral { background: var(--accent-grad); }
.entry-title { font-size: 18px; font-weight: 700; }
.entry-btn {
  margin-top: 10px; display: inline-block;
  background: rgba(255,255,255,.28); padding: 4px 10px;
  border-radius: 999px; font-size: 11px;
}
.entry-emoji { position: absolute; right: 8px; bottom: 4px; font-size: 32px; }

.icon-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 0;
  scrollbar-width: none;
}
.icon-scroll::-webkit-scrollbar { display: none; }
.icon-item {
  width: 64px; flex: 0 0 auto; text-align: center;
  font-size: 11px; color: var(--text-2); cursor: pointer;
}
.icon-circle {
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px; font-size: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,.04);
}

.section-head {
  margin: 18px 12px 8px; display: flex; justify-content: space-between; align-items: center;
}
.section-title { font-size: 17px; font-weight: 700; }
.section-more { font-size: 12px; color: var(--text-3); cursor: pointer; }

.feat-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 0 12px 4px;
  scrollbar-width: none;
}
.feat-item { width: 70px; flex: 0 0 auto; text-align: center; cursor: pointer; position: relative; }
.feat-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.08);
}
.feat-badge {
  position: absolute; left: 50%; top: 42px; transform: translateX(-50%);
  padding: 1px 6px; border-radius: 999px; font-size: 9px; color: #fff; font-weight: 700;
}
.feat-name { display: block; margin-top: 12px; font-size: 12px; }

.waterfall { display: flex; gap: 8px; padding: 12px; }
.col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.w-card {
  background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer;
  position: relative;
}
.w-cover { width: 100%; height: 110px; object-fit: cover; display: block; }
.w-cover.tall { height: 180px; }
.w-body { padding: 10px; }
.w-title { font-size: 14px; font-weight: 700; display: block; }
.w-desc { font-size: 11px; color: var(--text-3); margin-top: 4px; display: block; }
.w-text {
  font-size: 12px; color: #3A3F3D; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.w-meta { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.w-meta .date { margin-left: auto; color: var(--text-3); }
.mini-av { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.w-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: #fff; font-size: 13px; font-weight: 600;
}
.look-btn {
  margin-top: 8px; display: inline-block; background: rgba(42,157,143,.95);
  padding: 5px 14px; border-radius: 999px; font-size: 12px;
}

.rotate-wrap { position: relative; height: 210px; border-radius: 12px; overflow: hidden; }
.rotate-track { position: relative; height: 100%; }
.rotate-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.rotate-slide.on { opacity: 1; pointer-events: auto; }
.rotate-slide .w-cover.tall { height: 210px; }
.rotate-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px; z-index: 5; pointer-events: none;
}
.dot-item {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45);
}
.dot-item.on { background: #fff; width: 12px; border-radius: 999px; }

.names-hint .name-hint { pointer-events: none; }
.k9-swipe { overflow: hidden; padding: 8px 0 0; touch-action: pan-y; }
.k9-track { display: flex; transition: transform .28s ease; }
.k9-slide { flex: 0 0 100%; padding: 0 24px; box-sizing: border-box; }
.k9-card {
  position: relative; border-radius: 18px; overflow: hidden; height: 460px; cursor: pointer;
}
.k9-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k9-mask { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 35%,rgba(20,70,65,.82)); }
.k9-copy {
  position: absolute; right: 18px; top: 60px; bottom: 30px; width: 56px; color: #fff;
  display: flex; flex-direction: column; align-items: center; writing-mode: vertical-rl; z-index: 2;
}
.k9-copy .role { font-size: 11px; letter-spacing: 2px; }
.k9-copy .vname { font-size: 28px; margin-top: 14px; letter-spacing: 6px; }
.k9-copy .slogan { margin-top: auto; font-size: 11px; line-height: 1.5; letter-spacing: 2px; max-height: 200px; overflow: hidden; }

.fab {
  position: fixed; right: calc(50% - 198px); bottom: calc(76px + var(--safe-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--hero-grad); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; box-shadow: 0 6px 16px rgba(42,157,143,.35); cursor: pointer; z-index: 40;
  border: 0;
}
@media (max-width: 430px) { .fab { right: 14px; } }

.search-bar { padding: 8px 12px; background: #fff; }
.search-box {
  background: #F0F2F1; border-radius: 999px; padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
}
.search-box input {
  border: 0; background: transparent; outline: none; flex: 1; font-size: 13px;
}

.promo { margin: 10px 12px 0; display: flex; gap: 8px; height: 110px; }
.promo-main {
  flex: 1.3; border-radius: 14px; padding: 14px; color: #fff; cursor: pointer;
  background: var(--hero-grad); position: relative;
}
.promo-title { font-size: 17px; font-weight: 700; display: block; }
.promo-sub { font-size: 11px; margin-top: 6px; opacity: .9; }
.promo-side { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.promo-small {
  flex: 1; border-radius: 12px; padding: 10px; color: #fff; font-size: 13px;
  font-weight: 600; cursor: pointer;
  background: var(--accent-grad);
}
.promo-small.teal { background: linear-gradient(145deg, #7BB8D4, #4A90B8); }

.cat-row { margin-top: 10px; padding-left: 12px; display: flex; align-items: center; gap: 8px; }
.cats { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: 12px;
  color: var(--text-2); background: #fff; border: 1px solid transparent; cursor: pointer;
}
.cat.on { color: var(--primary); border-color: var(--primary); background: var(--primary-light); font-weight: 600; }
.filter-btn {
  margin-right: 12px; background: var(--btn-grad);
  color: #fff; font-size: 11px; padding: 8px 12px; border-radius: 999px; border: 0; white-space: nowrap; cursor: pointer;
}

.list { padding: 10px 12px; }
.o-card {
  background: #fff; border-radius: 14px; margin-bottom: 12px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.04); cursor: pointer;
}
.status { background: var(--primary-light); color: var(--primary-dark); font-size: 11px; padding: 8px 12px; }
.o-main { padding: 12px; display: flex; position: relative; }
.ribbon {
  position: absolute; left: 0; top: 20px; writing-mode: vertical-rl;
  background: var(--accent); color: #fff; font-size: 10px; padding: 6px 3px;
  border-radius: 0 6px 6px 0; letter-spacing: 1px;
}
.avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  margin-left: 14px; flex-shrink: 0;
}
.info { flex: 1; margin-left: 10px; min-width: 0; }
.name-row { display: flex; align-items: center; gap: 6px; }
.name { font-size: 16px; font-weight: 700; }
.level { color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.meta { margin-top: 4px; font-size: 11px; color: var(--text-3); }
.exp { color: var(--accent); }
.tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  background: var(--primary-light); color: var(--primary-dark);
}
.bio {
  margin-top: 6px; font-size: 12px; color: var(--text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.works { margin-top: 8px; display: flex; gap: 6px; }
.works img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; }
.clients { margin-top: 8px; display: flex; }
.clients img {
  width: 20px; height: 20px; border-radius: 50%; margin-right: -6px;
  border: 1px solid #fff; object-fit: cover;
}

.nav-top {
  display: flex; align-items: center; gap: 8px; padding: 12px;
  background: #fff; position: sticky; top: 0; z-index: 10;
}
.back {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: #F0F2F1;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.nav-title { font-size: 16px; font-weight: 700; }

.detail-hero { height: 240px; position: relative; background: var(--primary); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.detail-sheet {
  margin-top: -24px; background: #fff; border-radius: 20px 20px 0 0;
  position: relative; z-index: 2; padding: 18px 14px 100px;
}
.profile { display: flex; }
.av-wrap { position: relative; margin-top: -40px; }
.av-wrap img {
  width: 70px; height: 70px; border-radius: 50%; border: 3px solid #fff; object-fit: cover;
}
.lv {
  position: absolute; right: -2px; top: 4px; color: #fff; font-size: 10px;
  padding: 1px 6px; border-radius: 999px; font-weight: 700;
}
.p-info { flex: 1; margin-left: 12px; }
.p-name { font-size: 18px; font-weight: 700; }
.p-meta { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.stats { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.st { font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.st.blue { background: #E3F2FD; color: #4A90B8; }
.st.yellow { background: #FFF6E0; color: #C49A2A; }
.st.pink { background: var(--accent-soft); color: var(--accent); }
.verify { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.v-tag {
  font-size: 11px; color: var(--primary-dark); background: var(--primary-light);
  padding: 4px 8px; border-radius: 6px;
}
.block { margin-top: 18px; }
.block-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.grid { display: flex; flex-wrap: wrap; }
.g-item { width: 33.33%; margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.g-label { font-size: 11px; color: var(--text-3); }
.g-val { font-size: 14px; font-weight: 600; }
.bottom-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 430px; background: #fff;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  box-shadow: 0 -4px 12px rgba(0,0,0,.06); z-index: 60;
}
.side-btn {
  width: 48px; border: 0; background: transparent; color: var(--text-2);
  font-size: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
}
.side-btn .ico { color: var(--primary); font-size: 16px; }
.book-btn {
  flex: 1; height: 44px; border: 0; border-radius: 999px;
  background: var(--btn-grad); color: #fff;
  font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.book-btn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.banner {
  margin: 8px 12px 0; height: 120px; border-radius: 14px; overflow: hidden; position: relative;
}
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-text {
  position: absolute; left: 14px; bottom: 14px; color: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.bt { font-size: 17px; font-weight: 700; }
.bs { font-size: 11px; opacity: .9; }
.publish {
  margin-right: 12px; background: var(--btn-grad);
  color: #fff; font-size: 12px; padding: 8px 12px; border-radius: 10px; border: 0; white-space: nowrap; cursor: pointer;
}
.hot { margin: 10px 12px; background: #fff; border-radius: 12px; padding: 4px 12px; }
.hot-item { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 12px; }
.rank { width: 16px; font-weight: 700; color: var(--accent); }
.rank.r1 { color: var(--primary); }
.hot-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pin { background: var(--accent-soft); color: var(--accent); font-size: 10px; padding: 1px 4px; border-radius: 4px; }
.views { color: var(--text-3); font-size: 11px; }
.feed { padding: 0 12px 20px; }
.post { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.imgs img { width: calc(25% - 5px); height: 72px; border-radius: 8px; object-fit: cover; }
.imgs img.one { width: 100%; height: 160px; }
.user-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.u-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.u-name { font-size: 13px; font-weight: 600; }
.badge { background: var(--accent-soft); color: var(--accent); font-size: 10px; padding: 1px 6px; border-radius: 999px; }
.htag { background: var(--primary-light); color: var(--primary-dark); font-size: 10px; padding: 2px 6px; border-radius: 999px; }
.post-text { margin-top: 8px; font-size: 13px; color: #3A3F3D; line-height: 1.6; }
.actions {
  margin-top: 10px; background: var(--bg); border-radius: 8px; padding: 8px 10px;
  display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2);
}
.support { flex: 1; background: #fff; border-radius: 999px; padding: 6px 10px; color: var(--text-3); }

.mine-top {
  background: var(--mine-top);
  padding: 16px 12px 8px;
}
.user-card {
  background: rgba(255,255,255,.85); border-radius: 14px; padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.user-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.u-info { flex: 1; }
.role { font-size: 10px; color: var(--text-2); background: #EEF1F0; padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.edit { margin-top: 4px; font-size: 11px; color: var(--text-3); }
.switch {
  background: var(--primary); color: #fff; font-size: 11px; padding: 6px 10px;
  border-radius: 999px; border: 0; cursor: pointer;
}
.progress-card {
  margin-top: 10px; background: #fff; border-radius: 14px; padding: 14px;
  position: relative; min-height: 90px; cursor: pointer;
}
.p-title { font-size: 15px; font-weight: 700; }
.p-sub { margin-top: 6px; font-size: 12px; color: var(--primary); display: block; }
.ring {
  position: absolute; right: 16px; top: 14px; width: 70px; height: 70px;
  border-radius: 50%; border: 5px solid var(--primary-light); border-top-color: var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pct { font-size: 16px; font-weight: 700; color: var(--primary); }
.pct-label { font-size: 9px; color: var(--text-3); }
.section {
  margin: 10px 12px 0; background: #fff; border-radius: 14px; padding: 14px 10px;
}
.sec-title {
  font-size: 15px; font-weight: 700; padding-left: 8px;
  border-left: 3px solid var(--primary); margin-bottom: 12px; line-height: 1;
}
.mine-grid { display: flex; flex-wrap: wrap; }
.mine-grid .item {
  width: 25%; display: flex; flex-direction: column; align-items: center;
  margin-bottom: 12px; font-size: 11px; color: #3A3F3D; cursor: pointer;
}
.mine-grid .g-ico { font-size: 22px; margin-bottom: 4px; }
.empty { display: flex; flex-direction: column; align-items: center; padding: 20px 0 10px; color: var(--text-3); font-size: 12px; }
.empty-btn {
  margin-top: 12px; border: 1px solid var(--primary); color: var(--primary);
  padding: 8px 24px; border-radius: 999px; background: transparent; cursor: pointer;
}

.form-page { padding: 16px 16px 100px; background: #fff; min-height: 100vh; }
.label {
  font-size: 15px; font-weight: 700; display: inline-block;
  background: linear-gradient(180deg, transparent 60%, var(--primary-light) 60%);
  margin-bottom: 12px;
}
.svc-row { display: flex; gap: 10px; }
.svc {
  flex: 1; border-radius: 12px; padding: 14px 12px; background: var(--bg);
  color: var(--text-3); min-height: 90px; cursor: pointer; border: 0; text-align: left;
}
.svc.on { background: var(--hero-grad); color: #fff; }
.svc-name { font-size: 17px; font-weight: 700; display: block; }
.svc-desc { margin-top: 6px; font-size: 11px; line-height: 1.4; opacity: .9; }
.field {
  background: var(--bg); border-radius: 10px; padding: 14px 12px; margin: 10px 0;
  display: flex; align-items: center; gap: 8px; font-size: 14px;
}
.field input { border: 0; background: transparent; outline: none; flex: 1; font-size: 14px; }
.submit {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px;
  width: calc(100% - 32px); max-width: 398px; height: 46px; border: 0; border-radius: 999px;
  background: var(--btn-grad); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
}

.toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 13px; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .2s;
}
.toast.show { opacity: 1; }

.hidden-tab .phone-shell { padding-bottom: 20px; }
.hidden-tab .tabbar { display: none; }

.theme-hint { font-size: 11px; color: var(--text-3); margin: -4px 0 12px; padding-left: 8px; }
.theme-row { display: flex; gap: 8px; }
.theme-chip {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 6px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
}
.theme-chip.on { border-color: var(--primary); background: var(--primary-light); }
.theme-swatch {
  width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px;
}
.theme-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.theme-name { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--text); }
