/* ==========================================================
   屿泽款库 · 小程序风格 UI 设计系统
   移动端优先，桌面端自动居中为「手机画布」
   ========================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --main: #5b8cff;
  --sub: #7ec8ff;
  --ink: #1b2437;
  --ink-2: #4a5568;
  --muted: #8b97ad;
  --price: #2f6bff;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(130, 160, 205, 0.13);
  --radius: 20px;
  --shadow: 0 10px 30px rgba(135, 165, 210, 0.12);
  --grad: linear-gradient(104deg, var(--main), var(--sub));
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f2f7ff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

/* 背景柔光 */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sky i {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.6;
}
.sky i:nth-child(1) { width: 340px; height: 340px; background: var(--main); top: -130px; left: -110px; }
.sky i:nth-child(2) { width: 320px; height: 320px; background: var(--sub); top: 120px; right: -130px; }
.sky i:nth-child(3) { width: 380px; height: 380px; background: #a9d4ff; bottom: -170px; left: 10%; opacity: .45; }

/* 手机画布 */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 14px calc(96px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

@media (min-width: 520px) {
  .app {
    box-shadow: 0 0 0 1px rgba(140, 165, 210, 0.12), 0 24px 70px rgba(140, 165, 210, 0.18);
    background: rgba(255, 255, 255, 0.55);
  }
}

/* ============ 顶部导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  margin: 0 -14px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(242, 247, 255, 0.96), rgba(242, 247, 255, 0.78) 70%, rgba(242, 247, 255, 0));
}
.nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap;
}
.nav-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
}
.nav-btn:active { background: rgba(255, 255, 255, 0.6); }
.nav-capsule {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(135, 165, 210, 0.1);
}
.nav-capsule svg { width: 17px; height: 17px; }

/* ============ 卡片 ============ */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.card-tight { padding: 14px; }

.hero {
  padding: 22px 20px 24px;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: 2px;
  font-weight: 700;
  background: linear-gradient(96deg, #2f6bff, #4fa8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 0; color: var(--muted); font-size: 13px; }

.sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}
.sec-head .dot {
  width: 22px; height: 22px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #e6efff, #dff2ff);
  color: #4f8cff;
  flex: none;
}
.sec-head .dot svg { width: 14px; height: 14px; }
.sec-head .more {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: transform .15s ease, opacity .15s;
}
.btn:active { transform: scale(.96); }
.btn-grad {
  background: var(--grad);
  color: #fff;
  border: 0;
  box-shadow: 0 6px 16px rgba(91, 140, 255, 0.4);
}
.btn-ghost { background: rgba(255, 255, 255, 0.7); }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.btn svg { width: 16px; height: 16px; }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  background: linear-gradient(100deg, rgba(91, 140, 255, .22), rgba(126, 200, 255, .3));
  color: #2f6be0;
  white-space: nowrap;
}
.tag-blue { background: rgba(150, 195, 255, .28); color: #4f8acb; }
.tag-pink { background: rgba(120, 200, 255, .3); color: #1d4ed8; }
.tag-solid { background: var(--grad); color: #fff; }

/* ============ 搜索框 ============ */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 7px 7px 7px 16px;
  box-shadow: var(--shadow);
}
.search .field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.search .field svg { width: 17px; height: 17px; flex: none; }
.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  height: 30px;
}
.search input::placeholder { color: #a6b3c8; }
.search .go {
  flex: none;
  height: 36px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 6px 16px rgba(91, 140, 255, .4);
}

/* ============ 首页 · 最近浏览 ============ */
.browse-item + .browse-item { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.browse-top { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(140deg, #e6efff, #dff2ff);
  display: grid; place-items: center;
  font-size: 13px;
  color: #2f6be0;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(140, 165, 210, .2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-wrap { position: relative; flex: none; }
.avatar-wrap .online {
  position: absolute; right: 0; bottom: 2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #45d08a; border: 2px solid #fff;
}
.browse-name { font-size: 15px; font-weight: 600; }
.browse-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f1f6ff;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .price-pin {
  position: absolute; left: 4px; bottom: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  color: #fff;
  background: rgba(60, 55, 80, .55);
  backdrop-filter: blur(4px);
}
.browse-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}

/* ============ 使用说明 / 步骤 ============ */
.steps { display: flex; flex-direction: column; gap: 9px; }
.step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 247, 253, 0.9);
  border: 1px solid rgba(226, 236, 255, 1);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.step .num {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; color: #fff;
  background: linear-gradient(140deg, var(--main), var(--sub));
  box-shadow: 0 4px 10px rgba(91, 140, 255, .35);
}
.step b { color: var(--ink); font-weight: 600; }

/* ============ 店铺详情 ============ */
.shop-card { padding: 20px 16px 16px; }
.shop-head { display: flex; align-items: flex-start; gap: 12px; }
.shop-head .avatar { width: 56px; height: 56px; border: 3px solid #fff; }
.shop-name {
  font-size: 24px; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(96deg, #2f6bff, #4fa8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.2;
}
.shop-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.shop-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin: 16px 0 12px;
}
.stat {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 14px;
  padding: 9px 6px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(140, 165, 210, .08);
}
.stat .n { font-size: 21px; font-weight: 700; line-height: 1.1; }
.stat .n small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.stat .l {
  font-size: 11.5px; color: var(--muted); margin-top: 3px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.stat .l svg { width: 12px; height: 12px; opacity: .7; }
.shop-actions { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.shop-actions .btn { height: 40px; font-size: 13px; }
.shop-actions .btn-main { background: var(--grad); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(180,160,255,.4); }

/* 分类筛选条 */
.filter-bar {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 10px;
  font-size: 12.5px;
}
.filter-bar .count { color: var(--muted); }
.filter-bar .count b { color: var(--price); font-size: 14px; padding: 0 2px; }
.filter-bar .right { margin-left: auto; display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(226, 236, 255, 1);
  color: var(--ink-2); font-size: 12.5px;
}
.chip.on { background: linear-gradient(100deg, #e6efff, #dff2ff); border-color: transparent; color: #2f6be0; }
.chip svg { width: 13px; height: 13px; opacity: .7; }

/* 店铺主体：左分类 + 右网格 */
.shop-body { display: flex; gap: 10px; flex: 1; }
.cat-rail {
  width: 86px; flex: none;
  display: flex; flex-direction: column; gap: 4px;
}
.cat-rail a {
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  text-align: left;
  line-height: 1.35;
  transition: background .2s;
}
.cat-rail a.on {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(140, 165, 210, .14);
  position: relative;
}
.cat-rail a.on::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px;
  background: var(--grad);
}
.grid-col { flex: 1; min-width: 0; }

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.style-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(140, 165, 210, .12);
  display: block;
}
.style-card .pic {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #eef4ff;
  overflow: hidden;
}
.style-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.style-card .pic .flag {
  position: absolute; left: 6px; top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  color: #fff;
  background: linear-gradient(100deg, #5b8cff, #6fa8ff);
  box-shadow: 0 3px 8px rgba(91, 140, 255, .4);
  max-width: 46%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.style-card .pic .date-pin {
  position: absolute; right: 6px; top: 6px;
  max-width: 47%;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(64, 56, 84, .42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 9px; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.style-card .pic .pack {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 5px 6px;
  font-size: 10px; color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(70, 60, 90, .55));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.style-card .info { padding: 8px 9px 9px; }
.style-card .title {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.style-card .row {
  display: flex; align-items: baseline; gap: 5px; margin-top: 3px;
}
.style-card .now { color: var(--price); font-size: 17px; font-weight: 700; line-height: 1; }
.style-card .now i { font-size: 11px; font-style: normal; margin-right: 1px; }
.style-card .was { color: #a6b3c8; font-size: 11px; text-decoration: line-through; }
.style-card .views {
  margin-left: auto; color: var(--muted); font-size: 11px;
  display: flex; align-items: center; gap: 3px;
}
.style-card .views svg { width: 13px; height: 13px; }

/* ============ 款式详情 ============ */
.detail-pic {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #eef4ff;
  box-shadow: 0 14px 34px rgba(140, 165, 210, .22);
  margin-bottom: 12px;
}
.detail-pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.detail-pic .flag {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; color: #fff; background: linear-gradient(100deg, #5b8cff, #6fa8ff);
  box-shadow: 0 4px 10px rgba(91, 140, 255, .4);
}
.detail-pic .restore {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  font-size: 11px; color: #1d4ed8; white-space: nowrap;
}
.detail-pic .no {
  position: absolute; right: 12px; top: 50px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(64, 56, 84, .42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 10px; color: #fff; white-space: nowrap;
}
.detail-pic .dl {
  position: absolute; right: 10px; top: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(60, 55, 80, .5); color: #fff;
  backdrop-filter: blur(6px);
}
.detail-pic .dl svg { width: 16px; height: 16px; }
.detail-banner {
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  font-size: 15px; font-weight: 600; color: #1d4ed8;
  background: linear-gradient(100deg, #dfeeff, #e6efff);
  margin-bottom: 12px;
}

.price-block .price-row { display: flex; align-items: center; gap: 10px; }
.price-block .now { color: var(--price); font-size: 30px; font-weight: 700; line-height: 1; }
.price-block .now i { font-size: 16px; font-style: normal; margin-right: 1px; }
.price-block .was { color: #a6b3c8; text-decoration: line-through; font-size: 13px; }
.price-block .right { margin-left: auto; display: flex; gap: 6px; }
.price-block h3 { margin: 12px 0 6px; font-size: 17px; font-weight: 600; }
.price-block .desc {
  font-size: 13px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.7;
}
.time-bar {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 8px 12px; border-radius: 999px;
  background: rgba(248, 247, 253, .95);
  border: 1px solid rgba(226, 236, 255, 1);
  font-size: 12px; color: var(--ink-2);
}
.time-bar svg { width: 14px; height: 14px; color: #4f8cff; }

.shop-row { display: flex; align-items: center; gap: 10px; }
.shop-row .avatar { width: 44px; height: 44px; }
.shop-row .go {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #e6efff, #dff2ff); color: #2f6be0;
}
.shop-row .go svg { width: 14px; height: 14px; }

/* 底部操作条 */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .97);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 24px rgba(140, 165, 210, .16);
}
.sheet .ico {
  width: 52px; flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: var(--ink-2);
}
.sheet .ico svg { width: 21px; height: 21px; color: #7d8aa5; }
.sheet .ico.on svg { color: var(--price); }
.sheet .main {
  flex: 1; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(100deg, #a9d8ff, #7ec8ff, #c9e2ff);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(126, 200, 255, .35);
}
.sheet .main svg { width: 18px; height: 18px; }

/* ============ 我的 ============ */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 20px 16px; }
.profile-card .avatar { width: 60px; height: 60px; font-size: 16px; }
.profile-name { font-size: 20px; font-weight: 700; }
.profile-uid { font-size: 11.5px; color: var(--muted); word-break: break-all; margin-top: 2px; }
.profile-hello { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }

.menu { display: flex; flex-direction: column; gap: 2px; }
.menu-item {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 4px;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .ico {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #e6efff, #dff2ff);
  color: #4f8cff;
}
.menu-item .ico svg { width: 17px; height: 17px; }
.menu-item .txt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.menu-item .arr { margin-left: auto; color: #a6b3c8; }
.menu-item .arr svg { width: 15px; height: 15px; }
.menu-item .val { margin-left: auto; font-size: 12px; color: var(--muted); }

.theme-row { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-dot {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(140, 165, 210, .25);
  position: relative;
}
.theme-dot.on::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--main);
}

/* ============ 底部 tabbar ============ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 30px rgba(140, 165, 210, .18);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0 5px;
  font-size: 11.5px; color: #8b97ad;
  border-radius: 18px;
  transition: color .2s;
}
.tab svg { width: 22px; height: 22px; }
.tab.on {
  color: #2f6be0;
  background: linear-gradient(140deg, rgba(150, 195, 255, .55), rgba(126, 200, 255, .55));
  font-weight: 600;
}
.tab.on svg { color: #2f6be0; }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .emoji { margin-bottom: 10px; opacity: .55; display: flex; justify-content: center; }
.empty .emoji svg { width: 40px; height: 40px; }
.empty p { margin: 0 0 14px; font-size: 13px; }

/* ============ 手机端细节适配 ============ */
@media (max-width: 899px) {
  /* 16px 避免 iOS 聚焦输入框时整页放大 */
  .input, textarea.input { font-size: 16px; }
  .form-row label { font-size: 12px; }
  .search { padding: 6px 6px 6px 14px; gap: 8px; }
  .search input { font-size: 16px; height: 34px; }
  .search .go { height: 34px; padding: 0 16px; font-size: 13px; }
  .sheet { padding-left: 10px; padding-right: 10px; }
  .tabbar { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 380px) {
  .app { padding-left: 12px; padding-right: 12px; }
  .nav { margin: 0 -12px; padding: 0 12px; }
  .nav-title { font-size: 16px; }
  .cat-rail { width: 76px; }
  .style-grid { gap: 8px; }
  .hero h1 { font-size: 26px; letter-spacing: 1px; }
  .hero p { font-size: 13px; }
}

/* ============ PC 端适配（全宽桌面布局，不再是小程序画框） ============ */
@media (min-width: 900px) {
  body {
    background:
      radial-gradient(ellipse 55% 45% at 0% 0%, rgba(91, 140, 255, .3), transparent 60%),
      radial-gradient(ellipse 50% 40% at 100% 100%, rgba(126, 200, 255, .28), transparent 60%),
      #f1f6ff;
  }
  .sky { display: none; }
  .app {
    max-width: 1120px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 26px calc(96px + env(safe-area-inset-bottom));
    background: transparent;
    box-shadow: none;
  }
  /* 表单 / 授权等窄栏页：PC 下也保持合适阅读宽度，不做手机小画框 */
  .app.narrow { max-width: 840px; }
  .nav {
    margin: 0 -26px;
    padding: 0 26px;
    height: 66px;
    background: rgba(242, 247, 255, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .9);
    border-radius: 0;
  }
  .nav-title { font-size: 19px; }
  .nav-capsule { display: none; }
  .nav-btn { width: 38px; height: 38px; }
  .card { padding: 22px; border-radius: 22px; margin-bottom: 16px; }
  .card-tight { padding: 16px; }
  .hero { padding: 30px 30px 32px; }
  .hero h1 { font-size: 26px; letter-spacing: 1px; }
  .hero p { font-size: 14px; }
  .style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .shop-body { gap: 20px; align-items: flex-start; }
  .cat-rail { width: 168px; position: sticky; top: 86px; }
  .cat-rail a { font-size: 13.5px; padding: 11px 12px; border-radius: 12px; }
  .shop-head .shop-name { font-size: 19px; }
  .search input { font-size: 15px; }
  .tabbar {
    bottom: 18px;
    max-width: 460px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .95);
    padding: 6px 10px;
    box-shadow: 0 14px 36px rgba(140, 165, 210, .25);
  }
  .tab { font-size: 12px; padding: 7px 0 6px; }
  .detail-pic { max-width: 460px; margin-left: auto; margin-right: auto; }
  .gallery { justify-content: center; }
  .empty { padding: 70px 24px; }
  .empty .emoji svg { width: 46px; height: 46px; }
  .form-row label { font-size: 13px; }
  .input { font-size: 14px; padding: 12px 14px; }
  .btn { height: 40px; font-size: 14px; }
  .btn-sm { height: 32px; font-size: 12.5px; }

  /* 我的：PC 双栏 */
  .mine-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
  .mine-grid > div { min-width: 0; }
  .mine-grid .card { margin-bottom: 16px; }
}

/* ============ 动效 ============ */
@keyframes f-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes f-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.app { animation: f-in .3s ease both; }
.app > * { animation: f-up .5s cubic-bezier(.22, .8, .3, 1) both; }
.app > *:nth-child(1) { animation-delay: .02s; }
.app > *:nth-child(2) { animation-delay: .06s; }
.app > *:nth-child(3) { animation-delay: .1s; }
.app > *:nth-child(4) { animation-delay: .14s; }
.app > *:nth-child(5) { animation-delay: .18s; }
.app > *:nth-child(6) { animation-delay: .22s; }
.app > *:nth-child(n+7) { animation-delay: .26s; }

.card { transition: box-shadow .25s, transform .25s; }
.style-card { transition: transform .24s cubic-bezier(.22, .8, .3, 1), box-shadow .24s; }
.style-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(140, 165, 210, .22); }
.style-card:active { transform: scale(.98); }
.menu-item { transition: background .18s, transform .18s; }
.menu-item:hover { transform: translateX(2px); }
.tab { transition: color .2s, background .2s, transform .2s; }
.tab:hover { color: #2f6be0; }
.btn, .chip, .theme-dot { transition: transform .16s, background .2s, opacity .2s, box-shadow .2s; }
.btn:active { transform: scale(.96); }
.chip:hover { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============ 登录页 ============ */
.auth-wrap { padding-top: 26px; }
.auth-logo {
  width: 74px; height: 74px; margin: 0 auto 14px;
  border-radius: 26px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(91, 140, 255, .4);
}
.auth-logo svg { width: 34px; height: 34px; }
.auth-title { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.auth-sub { text-align: center; font-size: 12.5px; color: var(--muted); margin: 6px 0 22px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px 4px; }
.input {
  width: 100%; height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(226, 236, 255, 1);
  background: #f8fbff;
  outline: none;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--main); box-shadow: 0 0 0 3px rgba(91, 140, 255, .16); }
textarea.input { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.6; }
.auth-switch { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.auth-switch a { color: #2f6be0; font-weight: 600; }

.alert {
  padding: 11px 14px; border-radius: 12px; font-size: 13px;
  margin-bottom: 12px;
}
.alert-ok { background: #effbf3; color: #1f8b4c; }
.alert-err { background: #fff1f4; color: #c9304a; }

/* toast */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
  z-index: 99;
  padding: 11px 20px; border-radius: 14px;
  background: rgba(45, 42, 60, .88); color: #fff; font-size: 13px;
  opacity: 0; pointer-events: none; transition: all .25s;
  backdrop-filter: blur(6px);
  max-width: 70vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 详情图片轮播 */
.gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 4px; }
.gallery a { flex: none; width: 74px; border-radius: 10px; overflow: hidden; }
.gallery img { width: 74px; height: 92px; object-fit: cover; }
.gallery::-webkit-scrollbar { display: none; }

/* 通用小工具 */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.gap8 { display: flex; gap: 8px; }
.hrline { height: 1px; background: var(--line); border: 0; margin: 12px 0; }
