* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 互盛 TINP：陶土红品牌色 */
  --primary: #C75B4A;
  --primary-light: #E08A7C;
  --primary-dark: #8B3A32;
  --primary-bg: #F5E1DC;
  --accent: #C75B4A;
  --accent-light: #E08A7C;
  --accent-warm: #8B3A32;
  --bg: #F7F7F7;
  --card: #FFFFFF;
  --text: #333333;
  --text-secondary: #999999;
  --border: #EEEEEE;
  --danger: #C75B4A;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-lg: 12px;
  --tab-height: 52px;
  --nav-blue: #C75B4A;
  --nav-gray: #999999;
  --nav-icon-bg: #F5E1DC;
  --brand: #C75B4A;
  --brand-dark: #8B3A32;
  --brand-light: #F5E1DC;
  --brand-gradient: linear-gradient(135deg, #D97A6C 0%, #C75B4A 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #EDEDED;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(var(--tab-height) + 8px);
}

#page-home {
  background: var(--bg);
  min-height: auto;
  position: relative;
}

#page-home::before {
  display: none;
}

#page-profile {
  background: var(--bg);
  min-height: calc(100vh - var(--tab-height));
  padding-bottom: 20px;
}

/* 页面切换 */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 页面头部 - 医院小程序风格 */
.page-header {
  background: linear-gradient(180deg, #1677ff 0%, #4096ff 60%, #69b1ff 100%);
  color: #fff;
  padding: 24px 16px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.page-header h1 {
  font-size: 20px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

.header-sub {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 6px;
  display: block;
  position: relative;
  z-index: 1;
}

/* 小程序导航栏 */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-bar-static {
  position: relative;
}

.nav-back {
  background: none;
  border: none;
  color: var(--nav-blue);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 0;
  min-width: 72px;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.nav-back-icon {
  width: 20px;
  height: 20px;
  color: var(--nav-blue);
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.nav-sub {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: right;
}

.nav-placeholder {
  min-width: 60px;
}

.page-body {
  padding: 8px;
}

.sub-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 16px;
}

.sub-page.active ~ .tab-bar,
.tab-bar.hidden {
  display: none;
}

.app.no-tabbar {
  padding-bottom: 0;
}

/* 轮播图 */
.carousel {
  position: relative;
  margin: 12px 12px 0;
  --carousel-height: 170px;
  --carousel-radius: 24px;
  border-radius: var(--carousel-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(90, 171, 255, 0.14);
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  height: var(--carousel-height);
  background: var(--slide-bg, linear-gradient(135deg, #5aabff 0%, #7ec0ff 100%));
  position: relative;
  overflow: hidden;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  top: -20px;
  right: 10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.carousel-slide::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.slide-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  margin-bottom: 8px;
  width: fit-content;
  backdrop-filter: blur(4px);
  animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.slide-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.slide-content p {
  font-size: 13px;
  opacity: 0.9;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  cursor: pointer;
}

.carousel-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* 首页商品面板 */
.products-panel {
  margin: 6px 8px 8px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.products-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.products-panel-head::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #1677ff 0%, #7ec0ff 100%);
  flex-shrink: 0;
}

.products-container {
  padding: 0;
}

.product-section {
  background: var(--card);
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.product-section:last-child {
  border-bottom: none;
}

.product-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  display: none;
}

.product-card {
  display: flex;
  padding: 14px;
  gap: 12px;
  border-bottom: 1px solid #f2f6fc;
  cursor: pointer;
  background: #fff;
}

.product-image {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(90, 171, 255, 0.15);
  background: #f0f8ff;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.detail-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.product-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.product-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.product-price {
  color: var(--danger);
  font-size: 18px;
  font-weight: 700;
}

.product-price small {
  font-size: 12px;
}

.product-price .price-free,
.detail-price .price-free {
  color: #07c160;
  font-size: 20px;
  font-weight: 700;
}

.product-badge-free {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff9f43, #ffb766);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  line-height: 1.4;
}

.product-section.is-free-kit .product-card {
  border: 1px solid rgba(7, 193, 96, 0.25);
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.1);
}

.btn-view-product {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(90, 171, 255, 0.35);
}

/* 四宫格 */
.grid-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid #f2f6fc;
}

.grid-item {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 4px 13px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.grid-item:not(:last-child)::after {
  display: none;
}

.grid-item:active {
  background: rgba(64, 150, 255, 0.04);
}

.grid-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  transition: transform 0.2s ease;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.grid-svg-icon,
.grid-svg-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.grid-item:active .grid-icon {
  transform: scale(0.96);
}

.grid-item span {
  font-size: 12px;
  color: #333;
  font-weight: 400;
}

.grid-item .grid-icon.news {
  background: linear-gradient(145deg, #eef6ff 0%, #d9ebff 100%);
}

.grid-item .grid-icon.effect {
  background: linear-gradient(145deg, #fff9e8 0%, #ffeed4 100%);
}

.grid-item .grid-icon.culture {
  background: linear-gradient(145deg, #fff4e8 0%, #ffe8d0 100%);
}

.grid-item .grid-icon.video {
  background: linear-gradient(145deg, #e8f8f0 0%, #d4f0e4 100%);
}

.grid-item .grid-icon.conclusion {
  background: linear-gradient(145deg, #fff0ee 0%, #ffd8d4 100%);
}

.grid-nav .grid-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.grid-nav .grid-svg-icon,
.grid-nav .grid-svg-icon svg {
  width: 24px;
  height: 24px;
}

.grid-nav .grid-item span {
  font-size: 11px;
}

.detail-footer-single {
  display: flex;
}

.detail-footer-single .btn-detail-buy {
  flex: 1;
  width: 100%;
}

/* 商品详情页 */
#page-detail {
  padding-bottom: 60px;
}

.detail-body {
  background: var(--bg);
}

.detail-banner {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.detail-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, rgba(255,255,255,0.6));
}

/* 用户评价 */
.detail-reviews .review-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: normal;
  margin-left: 6px;
}

.review-card {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.review-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-nickname {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

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

.review-stars {
  font-size: 12px;
  color: #faad14;
  letter-spacing: 1px;
}

.review-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 42px;
}

.no-review {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 16px;
}

.btn-more-reviews {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #f8fbff;
  border: 1px dashed var(--primary-light);
  border-radius: 20px;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.btn-more-reviews:active {
  background: var(--primary-bg);
}

.btn-more-reviews.collapsed {
  color: var(--text-secondary);
  border-color: var(--border);
}

.orders-page-body {
  padding: 12px;
  background: linear-gradient(180deg, #eef4fc 0%, #f5faff 100%);
  min-height: calc(100vh - 44px);
}

#page-orders .order-card {
  margin-bottom: 12px;
}

.order-actions .btn-review {
  min-width: 72px;
}

.detail-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #f0faff 100%);
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.08);
}

.detail-grid-item:active {
  transform: scale(0.95);
}

.detail-info {
  background: #fff;
  padding: 14px;
  margin: -12px 8px 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.detail-price {
  color: var(--danger);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-price small {
  font-size: 14px;
}

.detail-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.detail-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-section {
  background: #fff;
  padding: 14px;
  margin: 0 8px 8px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.06);
}

.detail-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  margin-bottom: 10px;
}

.detail-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.detail-grid-icon {
  font-size: 20px;
}

.detail-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  padding: 8px 12px;
  display: flex;
  gap: 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: 50;
}

.btn-detail-cart {
  flex: 1;
  padding: 10px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.btn-detail-buy {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.35);
}

/* 我的页面 - 订单四宫格 */
.profile-orders {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-head-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-head h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.order-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 2px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s;
  background: #f7faff;
  border: 2px solid transparent;
}

.order-grid-item.active {
  background: linear-gradient(135deg, #eef5ff 0%, #dceeff 100%);
  border-color: var(--nav-blue);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.12);
  transform: translateY(-2px);
}

.order-grid-item:active {
  transform: scale(0.96);
}

.order-grid-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  background: var(--nav-icon-bg);
  color: var(--nav-blue);
}

.order-grid-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.order-grid-item.active .order-grid-icon {
  transform: scale(1.06);
  background: #dceeff;
}

.order-grid-icon.all,
.order-grid-icon.pending,
.order-grid-icon.shipping,
.order-grid-icon.completed,
.order-grid-icon.aftersale {
  background: var(--nav-icon-bg);
}

.order-grid-item span:nth-child(2) {
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
}

.order-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.order-count:empty,
.order-grid-item .order-count[data-zero="true"] {
  display: none;
}

.orders-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.orders-empty .empty-icon {
  margin: 0 auto 12px;
}

.order-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.order-reviewed {
  font-size: 12px;
  color: #faad14;
  line-height: 28px;
}

/* 购物车 */
.cart-list {
  padding: 0;
}

#page-cart {
  background: var(--bg);
  min-height: calc(100vh - var(--tab-height));
}

.cart-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f8ff;
}

.cart-item-image .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
}

.cart-item-price {
  color: var(--danger);
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #f8f9fa;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.qty-btn:active {
  background: var(--border);
}

.qty-value {
  width: 36px;
  text-align: center;
  font-size: 14px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 28px;
}

.btn-remove {
  color: var(--text-secondary);
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.cart-empty.show {
  display: block;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.cart-empty p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cart-footer {
  position: fixed;
  bottom: var(--tab-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.cart-total {
  font-size: 14px;
}

.cart-total .price {
  color: var(--danger);
  font-size: 20px;
  font-weight: 700;
}

.btn-checkout {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-checkout:active {
  background: var(--primary-dark);
}

/* 我的页面 */
.profile-header {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.profile-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #E08A7C 0%, #C75B4A 100%);
  border-radius: 0 0 30px 30px;
}

.profile-header-bg::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 30px;
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 30px;
}

.profile-header-bg::after {
  content: "";
  position: absolute;
  top: 50px;
  left: 20px;
  width: 40px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
}

.profile-content {
  margin-top: -36px;
  padding: 0 12px 20px;
  position: relative;
  z-index: 2;
}

.profile-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-bottom: 12px;
}

.profile-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: transparent;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.profile-panel-divider {
  height: 1px;
  margin: 0 16px;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
}

.profile-panel .menu-item {
  border-bottom: none;
  padding: 15px 16px;
}

.profile-panel .menu-item:active {
  background: var(--primary-bg);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--nav-icon-bg);
  border: 2px solid rgba(22, 119, 255, 0.12);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-default {
  background: linear-gradient(135deg, #eef5ff 0%, #dceeff 100%);
}

.avatar-logged {
  background: linear-gradient(135deg, #eef5ff 0%, #dceeff 100%);
}

.avatar-icon {
  width: 28px;
  height: 28px;
}

.avatar-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.avatar-text {
  font-size: 20px;
  color: var(--nav-blue);
  font-weight: 600;
  line-height: 1;
}

.profile-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.profile-info h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.profile-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.btn-login {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 159, 67, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

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

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

.menu-icon {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--nav-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.menu-item span:nth-child(2) {
  flex: 1;
  font-size: 15px;
}

.menu-arrow {
  color: var(--text-secondary);
  font-size: 18px;
}

.orders-section {
  padding: 0 12px 16px;
}

.orders-section h3 {
  font-size: 15px;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  color: var(--text);
  font-weight: 600;
}

.order-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.order-id {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.order-status.pending { background: #fff7e6; color: #d48806; }
.order-status.shipping { background: #e6f4ff; color: #1677ff; }
.order-status.completed { background: #f6ffed; color: #52c41a; }
.order-status.reviewed { background: #f5f5f5; color: #8c8c8c; }
.order-status.refunding { background: #fff1f0; color: #cf1322; }
.order-status.refunded { background: #f5f5f5; color: #8c8c8c; }

.order-refund-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: #cf1322;
  line-height: 1.4;
}

.order-items {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}

.order-total {
  font-size: 14px;
  text-align: right;
  margin-bottom: 10px;
}

.order-total span {
  color: var(--danger);
  font-weight: 600;
}

.order-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.order-btn {
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--primary);
  background: var(--card);
  color: var(--primary);
}

.order-btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 底部标签栏 */
.tab-bar {
  position: fixed;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 12px);
  max-width: 418px;
  height: var(--tab-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--nav-gray);
  font-size: 11px;
  gap: 3px;
  position: relative;
  transition: color 0.2s;
}

.tab-item.active {
  color: var(--nav-blue);
  font-weight: 600;
}

.tab-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
}

.tab-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-gray);
  transition: transform 0.2s, color 0.2s;
}

.tab-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.tab-icon-filled {
  display: none;
  color: var(--nav-blue);
}

.tab-item.active .tab-icon-outline {
  display: none;
}

.tab-item.active .tab-icon-filled {
  display: flex;
  transform: scale(1.02);
}

.tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.tab-badge.show {
  display: flex;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--card);
  width: 100%;
  max-width: 430px;
  max-height: 85vh;
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-large {
  max-height: 90vh;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.modal-header h3 {
  color: var(--primary);
  font-size: 17px;
  font-weight: 600;
}


.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f3f5;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.modal-body {
  padding: 20px;
}

/* 表单 */
.form-tip {
  font-size: 13px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--primary-bg);
  border-radius: 4px;
  border-left: 3px solid var(--primary);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.required {
  color: var(--danger);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row input {
  flex: 1;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.radio-item input {
  accent-color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-primary:disabled,
.btn-primary.is-disabled {
  background: #CCCCCC;
  color: #999999;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-code {
  white-space: nowrap;
  padding: 10px 14px;
  background: var(--primary-light);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

/* 物流时间线 */
.logistics-info {
  background: var(--primary-bg);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid #bae0ff;
}

.logistics-info p {
  margin-bottom: 4px;
}

.logistics-timeline {
  position: relative;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.timeline-item.active::before {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.2);
}

.timeline-item .time {
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline-item .desc {
  font-size: 13px;
  margin-top: 2px;
}

.timeline-item.active .desc {
  color: var(--primary);
  font-weight: 500;
}

/* 星级评价 */
.star-rating {
  display: flex;
  gap: 4px;
}

.star {
  font-size: 32px;
  color: #dee2e6;
  cursor: pointer;
  transition: color 0.15s;
}

.star.active {
  color: #ffc107;
}

/* 内容详情 */
.content-page-body {
  padding: 12px;
  background: linear-gradient(180deg, #eef4fc 0%, #f5faff 100%);
  min-height: calc(100vh - 44px);
}

.content-page-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.content-page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.content-page-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.content-page-icon .grid-svg-icon,
.content-page-icon .grid-svg-icon svg {
  width: 28px;
  height: 28px;
}

.content-page-icon.news {
  background: linear-gradient(145deg, #eef6ff 0%, #d9ebff 100%);
}

.content-page-icon.effect {
  background: linear-gradient(145deg, #fff9e8 0%, #ffeed4 100%);
}

.content-page-icon.culture {
  background: linear-gradient(145deg, #fff4e8 0%, #ffe8d0 100%);
}

.content-page-icon.video {
  background: linear-gradient(145deg, #e8f8f0 0%, #d4f0e4 100%);
}

.content-page-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.content-page-head p {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.content-detail {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.content-detail h4 {
  margin-bottom: 8px;
  color: var(--primary);
}

.content-detail .video-placeholder {
  background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
  border-radius: 4px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
  margin-top: 12px;
}

/* Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 300;
  transition: transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translate(-50%, -50%) scale(1);
}

/* 微信授权登录 */
.modal-auth .modal-body {
  padding: 24px 20px 32px;
}

.auth-body {
  text-align: center;
}

.auth-brand {
  margin-bottom: 20px;
}

.auth-brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--primary-bg), #cce5ff);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 16px rgba(90, 171, 255, 0.2);
}

.auth-brand-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.auth-tip {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 0 10px;
}

.btn-wechat-auth {
  width: 100%;
  padding: 13px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.35);
}

.btn-wechat-auth:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.wechat-icon {
  font-size: 20px;
}

.auth-agreement {
  font-size: 11px;
  color: #bbb;
  margin-top: 16px;
  line-height: 1.6;
}

.btn-primary {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(199, 91, 74, 0.28);
}

.btn-checkout {
  background: var(--primary);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(199, 91, 74, 0.28);
}

.order-card {
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.cart-item {
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border: none;
}

.modal-content {
  border-radius: 20px 20px 0 0;
}

.modal-header h3 {
  color: var(--text);
}

/* 结算订单页 */
#page-checkout {
  padding-bottom: 70px;
  background: linear-gradient(180deg, #eef4fc 0%, #f5faff 100%);
  min-height: 100vh;
}

.checkout-body {
  padding: 12px;
}

.checkout-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

.checkout-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

.address-empty .empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
  margin-top: 12px;
}

.address-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0;
  transition: all 0.2s;
  background: #fafcff;
  overflow: hidden;
}

.address-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #f0f8ff 0%, #fff 100%);
  box-shadow: 0 4px 12px rgba(90, 171, 255, 0.12);
}

.address-card-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
}

.address-select {
  flex-shrink: 0;
  padding-top: 2px;
}

.address-radio {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  position: relative;
}

.address-radio.checked {
  border-color: var(--primary);
}

.address-radio.checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.address-content {
  flex: 1;
  min-width: 0;
}

.address-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.address-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.address-phone {
  font-size: 13px;
  color: var(--text-secondary);
}

.address-tag {
  font-size: 10px;
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
}

.address-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-right: 8px;
}

.address-actions {
  display: flex;
  gap: 12px;
  margin: 0 12px 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.addr-action-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.addr-action-btn:active {
  background: rgba(90, 171, 255, 0.08);
}

.addr-action-btn.danger {
  color: var(--danger);
}

.addr-action-btn.danger:active {
  background: rgba(255, 77, 79, 0.08);
}

.address-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.address-add-btn:active {
  background: #f0f8ff;
  border-color: var(--primary);
}

.address-add-btn .add-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.modal-confirm {
  max-width: 300px;
  border-radius: 16px;
}

.confirm-body {
  padding: 24px 20px 20px;
  text-align: center;
}

.confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.confirm-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 20px;
  text-align: left;
  background: #f8f9fa;
  padding: 10px 12px;
  border-radius: 8px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.btn-confirm-cancel,
.btn-confirm-ok {
  flex: 1;
  padding: 10px;
  border-radius: 22px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.btn-confirm-cancel {
  background: #f0f0f0;
  color: var(--text-secondary);
}

.btn-confirm-ok {
  background: var(--danger);
  color: #fff;
}

.checkout-product {
  display: flex;
  gap: 12px;
  padding: 4px 0;
}

.checkout-product-image {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f8ff;
}

.checkout-product-image .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.checkout-product-info {
  flex: 1;
}

.checkout-product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.checkout-product-price {
  color: var(--danger);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.checkout-product-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.checkout-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 50;
}

.checkout-total {
  font-size: 14px;
}

.checkout-total .price {
  color: var(--danger);
  font-size: 20px;
  font-weight: 700;
}

.btn-submit-order {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 159, 67, 0.4);
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.form-row-3 .form-group {
  margin-bottom: 12px;
}

.form-row-3 input {
  padding: 8px 6px;
  font-size: 13px;
}

/* SVG 图标通用 */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.svg-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.svg-icon-primary {
  color: var(--nav-blue);
}

.svg-icon-muted {
  color: #c5cdd8;
  width: 56px;
  height: 56px;
}

.svg-icon-white {
  color: #fff;
}

.empty-icon.svg-icon-muted {
  margin: 0 auto 12px;
}

/* 首页客服悬浮按钮 */
.customer-service-fab {
  position: fixed;
  right: max(12px, calc(50% - 203px));
  bottom: calc(var(--tab-height) + 10px);
  top: auto;
  left: auto;
  z-index: 90;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transform: none;
  transition: transform 0.2s, opacity 0.2s;
}

.customer-service-fab:active {
  transform: scale(0.92);
  opacity: 0.75;
}

.cs-fab-avatar {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.92;
}

/* 客服聊天页（模拟微信原生客服） */
#page-customer-service {
  display: none;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  padding-bottom: 0;
  background: #ededed;
  overflow: hidden;
}

#page-customer-service.active {
  display: flex;
}

.cs-nav-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 12px;
  background: #ededed;
  border-bottom: 1px solid #d9d9d9;
}

.cs-nav-back {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #000;
  cursor: pointer;
  width: 44px;
  text-align: left;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-nav-back .svg-icon {
  width: 22px;
  height: 22px;
}

.cs-nav-center {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.cs-nav-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
}

.cs-nav-sub {
  display: block;
  font-size: 10px;
  color: #888;
  margin-top: 2px;
}

.cs-nav-more {
  width: 44px;
  text-align: right;
  font-size: 18px;
  color: #000;
  letter-spacing: 2px;
}

.cs-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 8px;
  -webkit-overflow-scrolling: touch;
}

.cs-time {
  text-align: center;
  font-size: 11px;
  color: #b2b2b2;
  margin: 12px 0 8px;
}

.cs-msg {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 8px;
}

.cs-msg-user {
  justify-content: flex-end;
}

.cs-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.cs-avatar-cartoon {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.cs-avatar-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.cs-bubble {
  max-width: 72%;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.cs-msg-service .cs-bubble {
  background: #fff;
  color: #000;
  border: 1px solid #e5e5e5;
}

.cs-msg-user .cs-bubble {
  background: #95ec69;
  color: #000;
}

.cs-chat-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #f7f7f7;
  border-top: 1px solid #d9d9d9;
}

.cs-tool-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cs-input-wrap {
  flex: 1;
  min-width: 0;
}

.cs-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.cs-input:focus {
  border-color: #07c160;
}

.cs-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d9d9d9;
  font-size: 22px;
  color: #666;
  font-weight: 300;
}

.cs-action-btn.is-send {
  border-radius: 4px;
  background: #07c160;
  border-color: #07c160;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* ========== 新首页框架 & TINP / 自评 ========== */
.home-scroll {
  padding: 0 0 20px;
}

.home-carousel {
  margin: 12px 16px 0;
  --carousel-height: 168px;
  --carousel-radius: 14px;
  box-shadow: 0 10px 24px rgba(139, 58, 50, 0.16);
}

.home-carousel .carousel-slide.home-slide::before {
  width: 120px;
  height: 120px;
  right: -28px;
  top: -36px;
  left: auto;
  bottom: auto;
  background: rgba(255, 255, 255, 0.14);
}

.home-carousel .carousel-slide.home-slide::after {
  width: 70px;
  height: 70px;
  left: 18%;
  bottom: -24px;
  top: auto;
  right: auto;
  background: rgba(255, 255, 255, 0.1);
}

.home-slide-content {
  padding: 18px 20px 28px;
  justify-content: center;
  gap: 0;
}

/* 互盛·TINP体应：中等 */
.home-slide-content .slide-brand {
  display: block;
  background: none;
  backdrop-filter: none;
  padding: 0;
  margin-bottom: 6px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.95;
  width: auto;
}

/* 每天十分钟：最大 */
.home-slide-content .slide-headline {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin-bottom: 6px;
}

/* 感知和记录未病动态：次大 */
.home-slide-content .slide-sub {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.95;
  margin-bottom: 8px;
}

/* 免责小字标签 */
.home-slide-content .slide-note {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
}

.home-carousel .carousel-dots {
  bottom: 10px;
}

.home-carousel .carousel-dot {
  background: rgba(255, 255, 255, 0.4);
}

.home-carousel .carousel-dot.active {
  background: #fff;
  width: 16px;
}

.slide-brand {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.28);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  width: fit-content;
}

/* 板块二：新人福利卡（无进度条：左文案 + 右按钮） */
.welfare-card {
  margin: 12px 16px 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, #FFF8F6 0%, #FFFFFF 48%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(199, 91, 74, 0.08);
  border: 1px solid #F0D8D2;
  position: relative;
}

.welfare-card.claimed {
  background: #FAFAFA;
  border-color: var(--border);
}

.welfare-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.welfare-copy {
  flex: 1;
  min-width: 0;
}

.welfare-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.welfare-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.welfare-offer {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 4px;
  line-height: 1.4;
}

.welfare-desc {
  display: block;
  font-size: 12px;
  color: #777777;
  margin-bottom: 6px;
  line-height: 1.5;
}

.nowrap {
  white-space: nowrap;
}

.welfare-remain {
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
  line-height: 1.4;
}

.welfare-remain strong {
  font-weight: 700;
}

.btn-claim {
  flex-shrink: 0;
  align-self: flex-end;
  background: var(--brand);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.btn-claim:active {
  background: var(--brand-dark);
}

.btn-claim:disabled {
  background: #CCCCCC;
  color: #999999;
}

@media (max-width: 360px) {
  .welfare-body {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-claim {
    align-self: flex-end;
    margin-top: 4px;
  }
}

/* 三步入口 */
.home-steps {
  margin: 16px 16px 0;
}

.home-steps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.home-steps-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.home-steps-head span {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.home-step-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  position: relative;
}

.home-step-card.step-1,
.home-step-card.step-2,
.home-step-card.step-3 {
  background: #fff;
  border-color: var(--border);
}

.home-step-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.home-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: var(--brand-light);
  flex-shrink: 0;
}

.home-step-card.step-1 .home-step-icon,
.home-step-card.step-2 .home-step-icon,
.home-step-card.step-3 .home-step-icon {
  background: var(--brand-light);
  color: var(--brand);
}

.home-step-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.home-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.2px;
}

.home-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.home-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.home-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 44px;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  box-shadow: none;
  cursor: pointer;
}

.home-step-btn:active {
  background: var(--brand-dark);
  transform: none;
}

.home-step-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-step-link {
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

/* 底部入口 */
.home-footer-entry {
  margin: 4px 16px 0;
}

.home-records-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  cursor: pointer;
}

.home-records-entry:active {
  background: #FAFAFA;
}

.home-records-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-records-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.home-records-info {
  flex: 1;
  min-width: 0;
}

.home-records-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.home-records-info span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
}

.home-records-arrow {
  color: #c0c6d0;
  font-size: 20px;
  line-height: 1;
}

.home-disclaimer {
  margin: 10px 4px 0;
  font-size: 11px;
  color: #999999;
  text-align: center;
  line-height: 1.5;
}

.home-block {
  margin: 14px 16px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.home-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px 0;
}

.home-block-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.home-block-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 板块二核心入口 */
.tinp-core {
  background: transparent;
  box-shadow: none;
}

.self-result-banner {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border: 1px solid rgba(255, 159, 67, 0.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
}

.self-result-label {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.self-result-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.tinp-core-hero {
  position: relative;
  min-height: 248px;
  padding: 28px 18px 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
    linear-gradient(145deg, #3d8bf0 0%, #5aabff 45%, #7ec0ff 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(61, 139, 240, 0.28);
  overflow: hidden;
}

.tinp-core-hero::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -40px;
  right: -30px;
  pointer-events: none;
}

.tinp-core-badge {
  display: inline-block;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.tinp-claim-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

.tinp-claim-tip {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.tinp-claim-tip:active {
  opacity: 0.8;
}

.tinp-core-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.tinp-core-desc {
  font-size: 13px;
  opacity: 0.92;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.tinp-claim-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #0055ff;
  line-height: 1.2;
  white-space: nowrap;
}

.tinp-claim-marquee {
  flex: 1;
  min-width: 0;
  height: 20px;
  overflow: hidden;
  position: relative;
}

.tinp-claim-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s ease;
  will-change: transform;
}

.tinp-claim-item {
  height: 20px;
  font-size: 12px;
  color: #666666;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tinp-claim-remain {
  flex-shrink: 0;
  font-size: 12px;
  color: #999999;
  line-height: 1.2;
  white-space: nowrap;
}

.tinp-claim-remain strong {
  font-size: 12px;
  font-weight: 600;
  color: #666666;
  margin-left: 2px;
}

.btn-tinp-start {
  display: block;
  width: 100%;
  border: none;
  background: #fff;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
  transition: transform 0.15s;
}

.btn-tinp-start:active {
  transform: scale(0.98);
}

.tinp-archive-hotzone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.tinp-archive-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.tinp-archive-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tinp-archive-info strong {
  font-size: 14px;
}

.tinp-archive-info span {
  font-size: 11px;
  opacity: 0.9;
}

.tinp-archive-arrow {
  font-size: 20px;
  opacity: 0.8;
}

/* 自评专区 */
.self-zone-list {
  padding: 8px 8px 12px;
}

.self-zone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.self-zone-item:active {
  background: var(--primary-bg);
}

.self-zone-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.self-zone-item-icon.assess {
  background: linear-gradient(135deg, #5aabff, #3d8bf0);
}

.self-zone-item-icon.record {
  background: linear-gradient(135deg, #ffb86c, #ff9f43);
}

.self-zone-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.self-zone-item-body strong {
  font-size: 15px;
}

.self-zone-item-body span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 28P */
.materials-28p {
  cursor: default;
  margin-bottom: 4px;
}

.materials-28p-cover {
  padding: 32px 18px 28px;
  min-height: 168px;
  background:
    linear-gradient(120deg, rgba(61, 139, 240, 0.92), rgba(255, 159, 67, 0.85)),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255,255,255,0.06) 8px, rgba(255,255,255,0.06) 16px);
  color: #fff;
}

.materials-28p-tag {
  display: inline-block;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.materials-28p-cover h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.materials-28p-cover p {
  font-size: 13px;
  opacity: 0.92;
  margin-bottom: 14px;
  line-height: 1.5;
}

.materials-28p-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.materials-28p-cta-btn {
  border: none;
  background: #fff;
  color: #0055ff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.materials-28p-link {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  opacity: 0.95;
}

.materials-28p-cta {
  font-size: 13px;
  font-weight: 600;
}

/* 综合健康档案入口（同十六体况档案样式） */
.health-hub-block {
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}

.health-hub-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.health-hub-entry:active {
  background: #f5f8ff;
}

.health-hub-entry-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.health-hub-entry-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.health-hub-entry-info strong {
  font-size: 15px;
  color: #1a1a1a;
}

.health-hub-entry-info span {
  font-size: 12px;
  color: #999;
}

.health-hub-entry-arrow {
  font-size: 20px;
  color: #999;
  flex-shrink: 0;
}

.health-hub-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 10px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 5;
}

#page-health-hub .page-body {
  padding-top: 10px;
}

.health-hub-tab {
  flex: 0 0 auto;
  border: 1px solid #e8e8e8;
  background: #f8f8f8;
  color: #666;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.health-hub-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.health-latest-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p28-result-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 28P观察记录页：仅激活时显示，避免盖住首页 */
#page-p28-quiz.active {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding-bottom: 0;
}

#page-p28-quiz .nav-bar {
  flex-shrink: 0;
}

.p28-quiz-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.p28-quiz-wrap {
  flex: 1;
  min-height: 0;
  padding-bottom: 0;
}

.p28-quiz-wrap:not(.p28-quiz-record) {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.p28-quiz-wrap.p28-quiz-record {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p28-face-panel {
  flex: 0 0 46%;
  min-height: 0;
  max-height: 46%;
  display: flex;
  flex-direction: column;
}

.p28-face-card {
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.p28-face-img-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.p28-face-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.p28-face-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.p28-face-hint {
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  line-height: 1.45;
  flex-shrink: 0;
}

.p28-face-hint strong {
  color: #333;
  font-weight: 600;
}

.p28-cs-tip {
  margin: 4px 0 0;
  font-size: 11px;
  color: #888;
  line-height: 1.45;
  flex-shrink: 0;
}

.p28-cs-link {
  display: inline;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.p28-points-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.p28-sticky-head {
  position: static;
  padding-bottom: 0;
  background: transparent;
}

.p28-gender-step {
  background: #fff;
  border-radius: 14px;
  padding: 28px 18px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.p28-gender-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 18px;
}

.p28-gender-options {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.p28-gender-btn {
  flex: 1;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #333;
  border-radius: 12px;
  padding: 16px 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.p28-gender-btn:active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.p28-gender-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  text-align: left;
  margin: 0 0 14px;
}

.p28-gender-divider {
  height: 0;
  border-top: 1px dashed #e8e8e8;
  margin: 0 0 14px;
}

.p28-gender-foot {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.p28-what-block {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 20px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.p28-what-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.p28-what-block .tinp-intro-text p {
  margin-bottom: 12px;
}

.p28-what-block .tinp-intro-text p:last-child {
  margin-bottom: 0;
}

.p28-gender-btn.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.p28-gender-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.p28-gender-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 7px;
}

.p28-gender-tag.male {
  background: #e8f1ff;
  color: #0055ff;
}

.p28-gender-tag.female {
  background: #ffe8f1;
  color: #e84393;
}

.p28-progress {
  font-size: 13px;
  color: #333;
  font-weight: 600;
}

.p28-progress strong {
  color: #0055ff;
}

.p28-point-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}

.p28-point-card.has-value {
  border-color: #91caff;
  background: #f7fbff;
}

.p28-point-toggle {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px;
  cursor: pointer;
}

.p28-point-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.p28-point-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.p28-point-head strong {
  font-size: 14px;
  color: #1a1a1a;
}

.p28-point-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #0055ff;
  background: #e8f1ff;
  border-radius: 999px;
  padding: 2px 8px;
}

.p28-point-picked {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
  max-width: 42%;
  text-align: right;
}

.p28-point-card.has-value .p28-point-picked {
  color: #0055ff;
  font-weight: 600;
}

.p28-point-meta {
  font-size: 12px;
  color: #888;
  line-height: 1.45;
}

.p28-point-body {
  padding: 0 12px 12px;
  border-top: 1px dashed #e8edf3;
}

.p28-dim-label {
  margin: 10px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.p28-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p28-option {
  border: 1px solid #e8e8e8;
  background: #f8f8f8;
  color: #333;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.3;
}

.p28-option.selected {
  background: #0055ff;
  border-color: #0055ff;
  color: #fff;
}

.p28-option-clear {
  margin-top: 10px;
  background: #fff;
  color: #999;
}

.p28-submit-bar {
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(245, 247, 251, 0) 0%, var(--bg) 22%, var(--bg) 100%);
}

.p28-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #555;
  line-height: 1.55;
}

.p28-confirm-check input {
  margin-top: 2px;
  flex-shrink: 0;
}

.p28-result-block h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.p28-sense-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p28-sense-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f3f7;
}

.p28-sense-list li:last-child {
  border-bottom: none;
}

.p28-sense-list.compact li {
  padding: 6px 0;
}

.p28-sense-main {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.55;
  font-weight: 500;
}

.p28-sense-organ {
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}

.p28-more {
  font-size: 12px;
  color: #999;
}

.p28-result-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
  font-style: italic;
  line-height: 1.6;
}

.p28-result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.p28-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f9fc;
  border-radius: 10px;
}

.p28-result-no {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.p28-result-opt {
  font-size: 13px;
  color: #0055ff;
  font-weight: 600;
}

/* 商城页头 */
#page-mall {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(126, 192, 255, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, #d4ebfc 0%, #e8f4ff 180px, #f5faff 100%);
  min-height: calc(100vh - var(--tab-height));
}

.mall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 8px;
}

.mall-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.mall-header p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mall-cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: var(--nav-blue);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mall-cart-btn .svg-icon svg {
  width: 22px;
  height: 22px;
}

.mall-cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  display: none;
  align-items: center;
  justify-content: center;
}

.mall-cart-badge.show {
  display: flex;
}

.mall-products {
  margin-top: 4px;
}

/* 问卷通用 */
.quiz-body {
  padding: 16px 12px 24px;
}

.quiz-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-soft);
}

.quiz-type-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-bg);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.quiz-question {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  border: 1.5px solid var(--border);
  background: #fafcff;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.quiz-option-letter {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef3fb;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.quiz-option.selected .quiz-option-letter {
  background: var(--primary);
  color: #fff;
}

.quiz-option-text {
  flex: 1;
  line-height: 1.45;
}

.quiz-option:active,
.quiz-option.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 600;
}

.quiz-option.yes-no {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  display: block;
}

.quiz-actions {
  margin-top: 18px;
}

/* 报告 */
.report-card {
  margin: 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.report-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.report-signs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.report-signs-6 {
  grid-template-columns: repeat(3, 1fr);
}

.report-sign {
  text-align: center;
  padding: 12px 6px;
  border-radius: 12px;
  background: var(--primary-bg);
}

.report-sign .sign-name {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.report-sign .sign-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
}

.report-sign .sign-val.neg {
  color: var(--text-secondary);
}

.report-conclusion {
  background: linear-gradient(135deg, #e8f4ff, #fff8f0);
  border-radius: 14px;
  padding: 14px;
}

.report-conclusion h4 {
  font-size: 13px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.report-conclusion p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.report-locations {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e8edf3;
}

.report-locations h4 {
  font-size: 13px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.report-location-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f7;
  font-size: 13px;
  line-height: 1.5;
}

.report-location-row:last-child {
  border-bottom: none;
}

.report-location-key {
  flex-shrink: 0;
  color: #666;
  font-weight: 600;
  min-width: 64px;
}

.report-location-val {
  text-align: right;
  color: #1a1a1a;
  font-weight: 500;
}

.tinp-self-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f7f9fc;
  border: 1px solid #e8edf3;
  border-radius: 12px;
}

.tinp-self-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #666;
  margin-bottom: 8px;
}

.tinp-self-summary-line {
  font-size: 13px;
  color: #333;
  line-height: 1.7;
}

.tinp-self-summary-line strong {
  color: #0055ff;
}

.self-continue-tinp {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e8edf3;
}

.self-continue-tinp p {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}

.tinp-intro-meanings {
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
}

.tinp-intro-meanings li {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 6px;
  padding-left: 10px;
  border-left: 3px solid #cfe0ff;
}

.btn-ghost.btn-block {
  width: 100%;
}

.tinp-result-block {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #e8f4ff, #fff8f0);
  border-radius: 14px;
}

.tinp-result-block.compact {
  margin-bottom: 0;
}

.tinp-result-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.tinp-result-title {
  font-size: 20px;
  font-weight: 700;
  color: #0055ff;
  line-height: 1.35;
  margin-bottom: 8px;
}

.tinp-result-desc {
  font-size: 14px;
  color: #333;
  line-height: 1.65;
  font-weight: 500;
}

.tinp-sense-record h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.tinp-sense-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tinp-sense-list li {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

.tinp-quiz-tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f7f9fc;
  border-radius: 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.55;
}

.tinp-ice-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8f6;
  border: 1px solid #f0d9d4;
  font-size: 12px;
  color: #666;
  line-height: 1.55;
}

.tinp-ice-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-weight: 600;
}

.tinp-parts-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e8e8e8;
}

.tinp-parts-hint {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tinp-parts-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tinp-part-option {
  border: 1px solid #e8e8e8;
  background: #f8f8f8;
  color: #333;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
}

.tinp-part-option.selected {
  background: #0055ff;
  border-color: #0055ff;
  color: #fff;
}

.records-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}

.record-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 12px 10px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.record-item-date {
  width: 52px;
  text-align: center;
  background: var(--primary-bg);
  border-radius: 10px;
  padding: 8px 4px;
  color: var(--primary-dark);
}

.record-item-date .d {
  font-size: 18px;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

.record-item-date .m {
  font-size: 10px;
}

.record-item-body {
  flex: 1;
}

.record-item-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.record-item-body span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 文章空白 / 28P */
.article-blank {
  padding: 24px 16px;
}

.article-blank-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.article-blank-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.article-blank-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.materials-body {
  padding: 12px;
}

.materials-video {
  background: #1a1a2e;
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  color: #fff;
  margin-bottom: 12px;
}

.materials-play {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.materials-article {
  padding: 18px 16px;
}

.materials-article h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.materials-article h3 {
  font-size: 15px;
  margin: 16px 0 8px;
  color: var(--primary-dark);
}

.materials-article p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.materials-img-block {
  margin-top: 16px;
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f4ff, #fff0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.tinp-intro-text p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #555;
  line-height: 1.6;
}

.tinp-intro-note {
  font-size: 12px !important;
  color: var(--accent) !important;
  background: #fff8f0;
  padding: 10px 12px;
  border-radius: 10px;
}

.tinp-intro-highlight {
  font-size: 13px !important;
  font-weight: 600;
  color: #5c3a2e !important;
  background: linear-gradient(135deg, #fff4ec 0%, #fde8df 100%);
  border: 1px solid #f0cfc3;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.7;
}

#btnTinpIntroStart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-reports .menu-item {
  position: relative;
}

.report-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
}

.assess-icon {
  background: #fff3e6;
  color: var(--accent);
}

.p28-icon {
  background: #e6fffb;
  color: #13c2c2;
  font-size: 11px;
}

.report-count {
  font-style: normal;
  font-size: 12px;
  color: var(--text-secondary);
  margin-right: 4px;
}

.self-score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.self-score-row .score {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
}

.self-score-row .unit {
  font-size: 13px;
  color: var(--text-secondary);
}

.self-health-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #f7f9fc;
  border: 1px solid #e8edf3;
  border-radius: 12px;
}

.self-health-color-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.self-health-color-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.self-observe-card {
  background: #fff;
  border: 1px solid #F0D8D2;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

.self-observe-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.self-observe-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.self-observe-step + .self-observe-step {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e8e8e8;
}

.self-observe-step-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.self-observe-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.self-observe-option {
  border: 1px solid #e8e8e8;
  background: #f8f8f8;
  color: #333;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.3;
}

.self-observe-option.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.self-observe-result {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #f7f9fc;
  border: 1px solid #e8edf3;
  border-radius: 12px;
}

.self-observe-result-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.self-observe-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.self-observe-result-row strong {
  color: #0055ff;
  font-weight: 600;
}

.self-result-format {
  padding: 14px 16px;
  background: #f7f9fc;
  border: 1px solid #e8edf3;
  border-radius: 12px;
}

.self-result-line {
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.8;
}

.self-result-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
  font-style: italic;
  line-height: 1.6;
}

.self-guide {
  margin-bottom: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #eef5ff, #fff8f0);
  border-radius: 14px;
}

.self-guide.compact {
  padding: 12px 14px;
  margin-bottom: 10px;
}

.self-guide h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 6px;
}

.self-guide p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.self-step-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.self-step-actions .btn-ghost,
.self-step-actions .btn-primary {
  flex: 1;
}

.btn-ghost {
  border: 1px solid #d9e1ec;
  background: #fff;
  color: #333;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.self-review-card {
  cursor: pointer;
}

.self-review-answer {
  margin-top: 8px;
  font-size: 13px;
  color: #0055ff;
  font-weight: 600;
}

.self-result-hero {
  margin-bottom: 12px;
}

.self-result-type {
  font-size: 24px;
  font-weight: 700;
  color: #0055ff;
  line-height: 1.35;
  margin-bottom: 8px;
}

.self-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

.self-result-score,
.self-result-band {
  color: #333;
}

.self-result-dot {
  color: #999;
  margin: 0 2px;
}

.self-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.self-status-green { background: #e8f8ef; color: #1a9b4b; }
.self-status-blue { background: #eef4ff; color: #0055ff; }
.self-status-orange { background: #fff3e6; color: #e67e22; }
.self-status-red { background: #ffeaea; color: #e74c3c; }
.self-status-deepred { background: #fde8e8; color: #8b0000; }

.self-result-face {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f7f9fc;
  border-radius: 10px;
  font-size: 13px;
  color: #333;
}

.self-result-face span {
  margin-left: 6px;
  color: #999;
  font-size: 12px;
}

.self-result-phenomena h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.self-result-phenomena ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.self-result-phenomena li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}

.self-result-phenomena li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0;
  color: #0055ff;
  font-weight: 700;
}

/* 问卷整页 / 提交栏 / 档案筛选 */
.quiz-all-wrap {
  padding-bottom: 8px;
}

.quiz-card-item {
  margin-bottom: 12px;
}

.quiz-options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-submit-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(240, 248, 255, 0) 0%, #f0f8ff 28%, #f0f8ff 100%);
  padding: 16px 4px 8px;
  margin-top: 4px;
}

.quiz-progress-hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 10px;
}

#btnSubmitTinp:disabled,
#btnSubmitSelf:disabled,
#btnSubmitP28:disabled,
#btnSubmitP28.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.self-quiz-scroll {
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.report-tendency {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--text);
}

.report-tendency.big {
  font-size: 18px;
  margin: 12px 0 16px;
}

.report-tendency strong {
  color: var(--primary-dark);
}

.self-on-report {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border: 1px solid rgba(255, 159, 67, 0.22);
}

.archive-latest-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.records-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 12px 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.records-filter label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.records-filter select {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fafcff;
  color: var(--text);
  outline: none;
}

/* 首页顶部品牌条 + 商城轮播 */
.home-topbar {
  padding: 14px 16px 2px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(145deg, #3d8bf0, #5aabff);
  box-shadow: 0 6px 16px rgba(61, 139, 240, 0.28);
}

.home-brand h1 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.home-brand p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.home-carousel {
  margin: 12px 16px 0;
}

.tinp-core-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -36px;
  top: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.mall-carousel {
  margin: 12px 12px 0;
}

.mall-products {
  margin-top: 10px;
}

#page-mall {
  padding-bottom: 8px;
}

.mall-banner-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.mall-banner-detail p {
  margin-bottom: 10px;
}

/* 首页内容区与 Tab 间距 */
.home-scroll {
  padding-bottom: 20px;
}

/* ========== 分销中心 / 佣金提现 ========== */
.profile-dist-block {
  margin-top: 12px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px 16px 8px;
  box-shadow: var(--shadow-soft);
}

.profile-dist-block .section-head {
  margin-bottom: 4px;
}

.profile-dist-entry {
  margin: 0 -4px;
  padding: 14px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
}

.profile-dist-entry:first-of-type {
  border-top: none;
}

.profile-dist-entry:active {
  background: #fafafa;
  border-radius: 10px;
}

.profile-dist-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-dist-icon.entity {
  background: #EEF4FA;
  color: #3D6B8C;
}

.profile-dist-icon svg {
  width: 22px;
  height: 22px;
}

.profile-dist-info {
  flex: 1;
  min-width: 0;
}

.profile-dist-info strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.profile-dist-info span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.profile-dist-arrow {
  font-size: 20px;
  color: #ccc;
}

.nav-text-btn {
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 0 4px;
  cursor: pointer;
  min-width: 60px;
  text-align: right;
}

.dist-page-body {
  padding: 12px;
}

.dist-page-body-flush {
  padding: 0;
}

/* 分销中心 */
.dist-hub {
  padding-bottom: 16px;
}

.dist-hub-head {
  background: linear-gradient(135deg, #D97A6C 0%, #C75B4A 55%, #8B3A32 100%);
  color: #fff;
  border-radius: 0 0 16px 16px;
  padding: 16px 16px 18px;
}

.dist-hub-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dist-hub-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.dist-hub-user strong {
  display: block;
  font-size: 17px;
}

.dist-hub-user span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.92;
}

.dist-hub-cash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dist-hub-cash em {
  display: block;
  font-style: normal;
  font-size: 13px;
  opacity: 0.92;
}

.dist-hub-cash b {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 700;
}

.dist-hub-withdraw-btn {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.dist-hub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  margin: -8px 12px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.dist-hub-stats > div {
  padding: 14px 12px;
  text-align: center;
}

.dist-hub-stats > div:first-child {
  border-right: 1px solid #f0f0f0;
}

.dist-hub-stats em {
  display: block;
  font-style: normal;
  font-size: 13px;
  margin-bottom: 6px;
}

.dist-hub-stats em.ok { color: #2e9b57; }
.dist-hub-stats em.warn { color: #e67e22; }

.dist-hub-stats b {
  font-size: 16px;
  color: #222;
}

.dist-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.dist-menu-item {
  border: none;
  background: #fff;
  padding: 18px 8px 14px;
  text-align: center;
  cursor: pointer;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.dist-menu-item:nth-child(3n) {
  border-right: none;
}

.dist-menu-item:active {
  background: #fafafa;
}

.dist-menu-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.dist-menu-ico.gold { background: linear-gradient(135deg, #f0c36a, #d9a441); }
.dist-menu-ico.blue { background: linear-gradient(135deg, #6aa8e8, #3d7ec4); }
.dist-menu-ico.red { background: linear-gradient(135deg, #e88a7a, #c75b4a); }
.dist-menu-ico.orange { background: linear-gradient(135deg, #f0a86a, #e07a3c); }
.dist-menu-ico.green { background: linear-gradient(135deg, #6bc48a, #3da866); }

.dist-menu-item strong {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #333;
  font-weight: 600;
}

.dist-menu-item em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
}


.dist-rule-note {
  margin: 8px 16px 8px;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

.dist-summary-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  color: #666;
}

.dist-summary-card strong {
  color: var(--brand);
  font-size: 20px;
  margin-left: 6px;
}

.dist-list-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dist-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.dist-list-main {
  flex: 1;
  min-width: 0;
}

.dist-list-main strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.dist-list-main span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

.dist-type-tag {
  display: inline-block;
  margin-left: 6px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 1px 7px;
}

.dist-points-delta {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.dist-points-delta.plus { color: #1a9b4b; }
.dist-points-delta.minus { color: #c0392b; }
.dist-points-delta.pending { color: #e67e22; }

.dist-order-card {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.dist-order-top,
.dist-order-meta,
.dist-order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dist-order-top strong {
  font-size: 15px;
}

.dist-status {
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 2px 8px;
}

.dist-order-meta {
  font-size: 12px;
  color: #999;
}

.dist-order-foot {
  font-size: 13px;
  color: #555;
}

.dist-order-foot em {
  font-style: normal;
  color: #1a9b4b;
  font-weight: 700;
}

.dist-invite-tip {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
}

.dist-invite-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.dist-invite-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.dist-invite-card p {
  margin-top: 2px;
  font-size: 12px;
  color: #999;
}

.dist-poster-preview {
  background: linear-gradient(160deg, #F5E1DC 0%, #fff 45%, #f7f7f7 100%);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 14px;
}

.dist-poster-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.dist-poster-title {
  margin: 10px 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.dist-poster-qr {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px dashed #d8b4a8;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
}

.dist-poster-foot {
  margin-top: 12px;
  font-size: 12px;
  color: #888;
}

/* 散户简单申请 */
.dist-apply-simple-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow-soft);
}

.dist-apply-simple-card .dist-apply-intro {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* 申请分销商（主体完整页） */
.dist-apply-page {
  min-height: 100%;
  background: #f5f5f5;
  padding-bottom: 24px;
}

.dist-apply-banner {
  position: relative;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 55%, #f76b6b 100%);
  padding: 28px 18px 36px;
  overflow: hidden;
}

.dist-apply-banner-deco {
  position: absolute;
  right: -20px;
  top: 10px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), rgba(255,255,255,0.05));
}

.dist-apply-banner-text {
  position: relative;
  z-index: 1;
  color: #7a1f1f;
}

.dist-apply-banner-text strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #c0392b;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.dist-apply-banner-text span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8b3a32;
  opacity: 0.9;
}

.dist-apply-sheet {
  margin: -18px 12px 0;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.dist-apply-welcome {
  font-size: 14px;
  color: #333;
  margin-bottom: 14px;
  line-height: 1.5;
}

.dist-apply-welcome span {
  color: var(--brand);
  font-weight: 700;
}

.dist-apply-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid #f0f0f0;
}

.dist-apply-row > label {
  width: 84px;
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
}

.dist-apply-row > label i {
  color: #e74c3c;
  font-style: normal;
  margin-right: 2px;
}

.dist-apply-row-val {
  flex: 1;
  min-width: 0;
}

.dist-apply-row-val input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 12px 0;
  background: transparent;
  font-family: inherit;
}

.dist-apply-row-val input[readonly] {
  color: #888;
}

.dist-inviter-name {
  font-style: normal;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}

.dist-inviter-tip {
  color: #999;
  font-size: 12px;
  margin-left: 2px;
}

.dist-apply-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 18px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

.dist-apply-agree input {
  margin-top: 2px;
}

.dist-apply-agree a {
  color: #3d7ec4;
  text-decoration: none;
}

.dist-apply-submit {
  border-radius: 999px !important;
  min-height: 46px;
}

.dist-apply-demo-tip {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  text-align: center;
}

#page-dist-apply-entity .dist-apply-page {
  display: block;
  min-height: calc(100vh - 44px);
}

.dist-apply-status-card {
  margin: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow-soft);
}

.dist-apply-reject {
  font-size: 13px;
  color: #c0392b;
  background: #ffeaea;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.dist-apply-reject[hidden] {
  display: none !important;
}

.dist-apply-status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.dist-apply-status-badge.pending {
  color: #e67e22;
  background: #fff3e6;
}

.dist-apply-status-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.dist-apply-status-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 4px;
}

.dist-apply-hint {
  margin: 14px 0 16px !important;
  font-size: 12px !important;
  color: #999 !important;
  line-height: 1.6 !important;
}

.dist-agree-text p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* 分销佣金页 */
.dist-comm-page {
  min-height: 100%;
  background: #f5f5f5;
  padding-bottom: 90px;
}

.dist-comm-banner {
  background: linear-gradient(135deg, #D97A6C 0%, #C75B4A 100%);
  color: #fff;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dist-comm-banner span {
  display: block;
  font-size: 13px;
  opacity: 0.95;
}

.dist-comm-banner strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  font-weight: 700;
}

.dist-comm-link-btn {
  border: 1px solid rgba(255,255,255,0.85);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.dist-comm-list {
  background: #fff;
  margin-top: 0;
}

.dist-comm-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  border-left: none;
  border-right: none;
  border-top: none;
  font-size: 15px;
  color: #333;
  text-align: left;
}

.dist-comm-row em {
  font-style: normal;
  color: #666;
}

.dist-comm-row-link {
  cursor: pointer;
}

.dist-comm-row-link em {
  color: #ccc;
  font-size: 18px;
}

.dist-comm-footer {
  position: sticky;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, #f5f5f5 30%);
}

/* 申请提现 */
.dist-wd-page {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.dist-wd-balance p {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dist-wd-balance strong {
  color: #222;
}

.dist-wd-rule {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  cursor: pointer;
}

.dist-wd-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.dist-wd-amount span {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
}

.dist-wd-amount input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 22px;
  font-family: inherit;
  min-width: 0;
}

.dist-wd-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.dist-wd-method {
  margin-top: 20px;
}

.dist-wd-method h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.dist-wd-method-row {
  display: flex;
  gap: 10px;
}

.dist-wd-method-btn {
  flex: 1;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 10px 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.dist-wd-method-btn.active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 600;
}

.dist-wd-fields {
  margin-top: 8px;
}

.dist-wd-submit {
  margin-top: 24px;
  border-radius: 999px !important;
  min-height: 46px;
}
