/* =========================================================
   ANclub — Apple Minimalism UI
   色调：暖白 / 黑 / 暖灰
   ========================================================= */

:root {
  --bg: #FAF9F6;
  --bg-soft: #F5F5F0;
  --surface: #FFFFFF;
  --surface-2: #F2F2F0;
  --text: #1D1D1F;
  --text-2: #86868B;
  --text-3: #BDBDBD;
  --border: rgba(0, 0, 0, 0.06);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.06);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tabbar-height: 84px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  /* html 必须有显式 height:100%，否则 body / #app / .viewport 等使用 height:100% 的子元素
     在 CSS 规范中 % 高度解析失败（父只有 min-height 不算"确定高度"），会塌陷为 0 出现整页空白。 */
  height: 100%;
  /* body 默认允许原生滚动（非 SPA / 非特殊布局页面通过 body 自己滚动）。
     对独立页面使用 min-height:100dvh 作为内容最少高度，保证短内容时也铺满视口。 */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.01em;
}

/* 非"固定高度布局"的 body：允许内容超过一屏时随 body 滚动，
   并且最小高度不小于视口（使用 dvh 以兼容移动端动态地址栏）。 */
body:not(.spa-root):not(.msg-body):not(.admin-body):not(#msg-body) {
  height: auto;
  min-height: 100%;
  min-height: 100dvh;
}

/* ----------------------------------------------------------------
   index.html（SPA）：html + body 都必须锁为视口高度 + 禁止原生滚动，
   改由内部 .page 容器滚动（切换动画依赖内部容器的 overflow 裁剪）。
   由 <body class="spa-root"> 触发，并在脚本中同步给 <html> 加 .spa-root
   （避免使用 html:has() 的兼容性问题）。
----------------------------------------------------------------- */
html.spa-root,
body.spa-root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: auto;
}

/* ----------------------------------------------------------------
   特殊布局页面：消息页 / 管理后台（固定高度 + 内部滚动容器）
   也把 html 同步锁高度以避免子元素 % 高度失效；
   由于 body 已有 class，这里同样在 DOMContentLoaded 中给 html 加类。
----------------------------------------------------------------- */
html.msg-body,
body.msg-body,
body#msg-body {
  height: 100%;
  overflow: hidden;
}
html.admin-body,
body.admin-body {
  height: 100%;
  overflow: hidden;
}
#admin-app {
  height: 100%;
  overflow: hidden;
}
.admin-main {
  min-height: 0;          /* 让 flex 子项允许收缩，触发 admin-content 的内部滚动 */
  overflow: visible;
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 56px 22px calc(var(--tabbar-height) + 24px);
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  pointer-events: none;
  transition: transform 0.55s var(--ease), opacity 0.45s var(--ease);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.page.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 1;
}

.page.prev {
  transform: translateX(-40px) scale(0.98);
  opacity: 0;
}

.page.next {
  transform: translateX(40px) scale(0.98);
  opacity: 0;
}

/* =========================================================
   Typography
   ========================================================= */
.hero {
  padding: 32px 6px 44px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(44px, 11vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  color: var(--text);
  background: linear-gradient(135deg, #1D1D1F 0%, #4A4A4C 50%, #1D1D1F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 6px;
  margin: 34px 0 16px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--text);
}

.home-header {
  padding: 18px 6px 22px;
}

.home-title {
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

.home-greeting {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.page-header {
  padding: 18px 6px 26px;
}

.page-title {
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.page-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
  margin-top: 8px;
}

/* =========================================================
   Buttons
   ========================================================= */
.apple-btn {
  appearance: none;
  border: none;
  outline: none;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.apple-btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 10px 30px rgba(29, 29, 31, 0.2);
}

.btn-primary:hover {
  background: #000;
  box-shadow: 0 14px 36px rgba(29, 29, 31, 0.26);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-soft);
}

.btn-danger {
  background: rgba(217, 48, 37, 0.08);
  color: #D93025;
  border: 1px solid rgba(217, 48, 37, 0.28);
  transition: background 0.2s;
}

.btn-danger:hover {
  background: rgba(217, 48, 37, 0.16);
}

/* =========================================================
   Cards & Strips
   ========================================================= */
.product-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 6px 18px;
  scrollbar-width: none;
}

.product-strip::-webkit-scrollbar {
  display: none;
}

.product-card,
.playmate-card,
.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.product-card:hover,
.playmate-card:hover,
.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.1);
}

.product-card {
  width: 160px;
}

.product-card .media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #F5F5F7 0%, #E8E8ED 100%);
  display: block;
}

.product-card .info {
  padding: 14px;
}

.product-card .name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .price {
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text);
}

.playmate-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 6px 18px;
  scrollbar-width: none;
}

.playmate-strip::-webkit-scrollbar {
  display: none;
}

.playmate-card {
  width: 130px;
  text-align: center;
  padding: 20px 14px 18px;
}

.playmate-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #F5F5F7, #E8E8ED);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.playmate-card .name {
  font-size: 15px;
  font-weight: 700;
}

.playmate-card .meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

.playmate-card .price {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 10px 6px 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F5F5F7, #E8E8ED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
}

/* =========================================================
   Categories
   ========================================================= */
.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border-radius: 100px;
  padding: 14px 20px;
  margin: 0 6px 22px;
  border: 1px solid var(--border);
}

.search-pill i {
  color: var(--text-3);
  font-size: 16px;
}

.search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text);
}

.search-pill input::placeholder {
  color: var(--text-3);
}

.category-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 6px 18px;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.chip.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 6px;
}

.product-grid .product-card {
  width: 100%;
}

.category-card {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

.category-card i {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--text-2);
}

.category-card span {
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
   Playmates
   ========================================================= */
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 0 6px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.playmate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 6px;
}

.playmate-grid .playmate-card {
  width: 100%;
}

.playmate-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #34C759;
  margin-top: 8px;
}

.playmate-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.playmate-status.offline {
  color: var(--text-3);
}

/* =========================================================
   Messages
   ========================================================= */
.cs-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 6px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s;
}

.cs-entry:active {
  transform: scale(0.98);
}

.cs-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5F5F7, #E8E8ED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
}

.cs-info {
  flex: 1;
}

.cs-info h3 {
  font-size: 15px;
  font-weight: 700;
}

.cs-info p {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
}

.cs-entry > i:last-child {
  color: var(--text-3);
  font-size: 13px;
}

.conversation-list {
  padding: 0 6px;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s;
}

.conv-item:active {
  transform: scale(0.98);
}

.conv-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--surface);
  background: var(--text);
  flex-shrink: 0;
}

.conv-body {
  flex: 1;
  min-width: 0;
}

.conv-name {
  font-size: 15px;
  font-weight: 700;
}

.conv-last {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-meta {
  text-align: right;
  flex-shrink: 0;
}

.conv-time {
  font-size: 11px;
  color: var(--text-3);
}

.conv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--text);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
  padding: 0 5px;
}

.empty-conversations {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}

.empty-conversations i {
  font-size: 44px;
  margin-bottom: 14px;
  color: var(--text-3);
}

.empty-conversations p {
  font-size: 14px;
  font-weight: 300;
}

/* =========================================================
   Chat Overlay
   ========================================================= */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s var(--ease-spring), opacity 0.35s;
}

.chat-overlay.open {
  transform: translateY(0);
  opacity: 1;
}

.chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  padding-top: calc(env(safe-area-inset-top) + 14px);
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.chat-toolbar h3 {
  font-size: 17px;
  font-weight: 700;
}

.chat-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.chat-back:active {
  transform: scale(0.92);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 76%;
  padding: 12px 16px;
  border-radius: 22px;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
  animation: messageIn 0.35s var(--ease-spring);
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg.me {
  align-self: flex-end;
  background: var(--text);
  color: var(--surface);
  border-bottom-right-radius: 6px;
}

.chat-msg.other {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-soft);
}

.chat-inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.chat-inputbar input {
  flex: 1;
  border: none;
  background: var(--surface-2);
  border-radius: 100px;
  padding: 12px 18px;
  font-size: 15px;
  outline: none;
  color: var(--text);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--text);
  color: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.chat-send:active {
  transform: scale(0.92);
}

/* =========================================================
   Profile
   ========================================================= */
.profile-hero {
  text-align: center;
  padding: 18px 0 26px;
}

.profile-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #E8E8ED, #D1D1D6);
  margin: 0 auto 18px;
  box-shadow: var(--shadow-soft);
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  background: var(--surface);
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-meta {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-2);
  margin-top: 4px;
}

.stat-row {
  display: flex;
  justify-content: space-around;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 10px;
  margin: 0 6px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
}

.stat-label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.menu-list {
  background: var(--surface);
  border-radius: var(--radius);
  margin: 0 6px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: var(--bg-soft);
}

.menu-item i:first-child {
  width: 22px;
  font-size: 18px;
  color: var(--text-2);
}

.menu-item span {
  flex: 1;
}

.menu-item i:last-child {
  font-size: 13px;
  color: var(--text-3);
}

.profile-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 0 6px 24px;
}

/* =========================================================
   Tabbar
   ========================================================= */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tabbar-height);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(250, 249, 246, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 50;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.25s, transform 0.2s var(--ease-spring);
}

.tab-item i {
  font-size: 22px;
  transition: transform 0.25s var(--ease-spring);
}

.tab-item span {
  font-size: 10px;
  font-weight: 500;
}

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

.tab-item.active i {
  transform: translateY(-2px);
}

.tab-item:active {
  transform: scale(0.92);
}

/* =========================================================
   Sheets (Modal)
   ========================================================= */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 12px 24px 28px;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-spring);
  overflow-y: auto;
}

.sheet-overlay.active .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto 22px;
}

.sheet-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-row input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 15px;
  outline: none;
  color: var(--text);
  transition: border-color 0.2s;
}

.form-row input:focus {
  border-color: var(--text-2);
}

.sheet .apple-btn {
  width: 100%;
  margin-top: 8px;
}

.sheet-tip {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 16px;
}

.sheet-tip a {
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.recharge-desc {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.recharge-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.recharge-option {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.recharge-option:hover {
  background: var(--text);
  color: var(--surface);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}

.order-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.order-item p {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.order-item .order-price {
  font-weight: 700;
  color: var(--text);
}

/* =========================================================
   Utilities & States
   ========================================================= */
.skeleton {
  background: linear-gradient(90deg, #F2F2F0 25%, #E8E8E5 50%, #F2F2F0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.2s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-3);
}

.empty-state p {
  font-size: 14px;
  font-weight: 300;
}

/* 桌面端优化 */
@media (min-width: 768px) {
  #app {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--border), var(--shadow);
  }

  body {
    background: #EDECE8;
  }
}
