* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #5aabff;
  --primary-light: #7ec0ff;
  --primary-dark: #3d8bf0;
  --primary-bg: #e8f4ff;
  --accent: #ff9f43;
  --accent-light: #ffb86c;
  --accent-warm: #ff8c42;
  --bg: #f0f8ff;
  --card: #ffffff;
  --text: #333333;
  --text-secondary: #999999;
  --border: #eef2f8;
  --danger: #ff6b6b;
  --shadow: 0 6px 20px rgba(90, 171, 255, 0.12);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --radius-lg: 20px;
  --tab-height: 56px;
  --nav-blue: #1677ff;
  --nav-gray: #b8bec8;
  --nav-icon-bg: #e8f4ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #d4ebfc;
  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) + 16px);
}

#page-home {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(126, 192, 255, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(255, 184, 108, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 70% 80%, rgba(126, 192, 255, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #d4ebfc 0%, #e8f4ff 180px, #f5faff 100%);
  min-height: calc(100vh - var(--tab-height));
  position: relative;
}

#page-home::before {
  content: "";
  position: absolute;
  top: 120px;
  right: -20px;
  width: 100px;
  height: 60px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  filter: blur(2px);
  pointer-events: none;
}

#page-profile {
  background:
    radial-gradient(ellipse 70% 40% at 30% 0%, rgba(126, 192, 255, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #d4ebfc 0%, #f0f8ff 200px, #f5faff 100%);
  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;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  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: 170px;
  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;
}

.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(4, 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%);
}

/* 商品详情页 */
#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(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.order-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px;
  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 {
  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, #a8d4ff 0%, #d4ebfc 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-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: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--tab-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  border-top: 1px solid rgba(22, 119, 255, 0.08);
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(22, 119, 255, 0.06);
}

.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: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-block {
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  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: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 4px 12px rgba(90, 171, 255, 0.3);
}

.btn-checkout {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(255, 159, 67, 0.35);
}

.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;
}
