/* 温度陪养 H5 MVP 样式 v3.0 */
* { margin:0; padding:0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --brand: #2e7d32;
  --brand-light: #4caf50;
  --brand-bg: #e8f5e9;
  --orange: #ff6600;
  --orange-light: #fff3e0;
  --text: #333;
  --text-secondary: #666;
  --text-tertiary: #999;
  --bg: #f8f9f5;
  --card-bg: #fff;
  --border: #eee;
  --danger: #d32f2f;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* 顶部导航 */
.topbar {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.topbar-brand .logo {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* Banner */
.banner {
  background: linear-gradient(135deg, #1b5e20 0%, #43a047 100%);
  color: #fff;
  padding: 36px 20px 44px;
  text-align: center;
  position: relative;
  overflow: visible;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.banner h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.banner .slogan {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.8;
}

/* 主内容 */
.main { padding: 0 16px 24px; max-width: 600px; margin: 0 auto; }

/* 提示卡片 */
.notice-card {
  background: #e3f2fd;
  border-left: 4px solid #1976d2;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin: 0 auto 20px;
  max-width: 600px;
  font-size: 13px;
  color: #333;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.notice-card h4 {
  color: #1565c0;
  font-size: 13px;
  margin-bottom: 4px;
}

/* 产品卡片 */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.product-card.recommended { border: 2px solid var(--brand-light); }
.product-card.hot { border: 2px solid var(--orange); }

.badge {
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--brand-light);
  color: #fff;
  font-size: 11px;
  padding: 4px 28px;
  transform: rotate(35deg);
}

.product-card.hot .badge { background: var(--orange); }
.product-card.recommended .badge { background: var(--brand-light); }

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.product-icon { font-size: 28px; }

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}

.product-card.hot .product-name { color: var(--orange); }

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

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.price-current {
  font-size: 32px;
  font-weight: 800;
  color: var(--danger);
}

.price-current .yen { font-size: 18px; }

.price-period {
  font-size: 13px;
  color: var(--text-tertiary);
}

.price-original {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-bottom: 12px;
  display: block;
}

/* 服务列表 */
.service-list {
  list-style: none;
  margin-bottom: 16px;
}

.service-list li {
  font-size: 13px;
  color: #444;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.service-list li::before {
  content: '✓';
  color: var(--brand-light);
  font-weight: 700;
  flex-shrink: 0;
}

.service-list li.moxa::before { content: '🔥'; color: var(--orange); }
.service-list li.highlight { color: var(--orange); font-weight: 600; }

/* 标签 */
.fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.fit-tag {
  background: var(--brand-bg);
  color: var(--brand);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.product-card.hot .fit-tag { background: var(--orange-light); color: var(--orange); }

/* 按钮 */
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(46,125,50,0.25);
}

.btn-primary:active { transform: translateY(1px); opacity: 0.9; }

.btn-orange {
  background: linear-gradient(135deg, #f57c00, var(--orange));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,102,0,0.25);
}

.btn-orange:active { transform: translateY(1px); opacity: 0.9; }

.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand-light);
  margin-top: 10px;
}

.btn-outline:active { background: var(--brand-bg); }

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 18px;
  width: auto;
  display: inline-block;
}

.btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-row .btn { flex: 1; margin-top: 0; }

/* 企微入口 */
.qw-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.qw-section h3 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.qw-section p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.qw-qr {
  width: 160px;
  height: 160px;
  background: var(--bg);
  border-radius: 8px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.qw-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qw-placeholder {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  padding: 20px;
}

/* 底部说明 */
.disclaimer {
  background: #fff9c4;
  border-radius: 8px;
  padding: 14px;
  margin-top: 24px;
  font-size: 12px;
  color: #666;
  line-height: 1.8;
}

.disclaimer strong { color: #f57c00; }

/* 底部固定栏 */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 10px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 99;
}

.bottom-bar .price-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.bottom-bar .price-info .label { font-size: 12px; color: var(--text-tertiary); }
.bottom-bar .price-info .price { font-size: 22px; font-weight: 800; color: var(--danger); }
.bottom-bar .price-info .period { font-size: 12px; color: var(--text-secondary); }

.bottom-bar .btn {
  width: auto;
  padding: 12px 28px;
  font-size: 15px;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px;
  position: relative;
  animation: modalIn 0.25s ease;
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: var(--brand);
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

.modal-product {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-product .name { font-size: 14px; font-weight: 600; }
.modal-product .price { font-size: 18px; font-weight: 800; color: var(--danger); }

.modal-qr {
  width: 200px;
  height: 200px;
  background: var(--bg);
  border-radius: 8px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.modal-qr img { width: 100%; height: 100%; object-fit: contain; }

.modal-steps {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 16px;
}

.modal-steps li { margin-bottom: 4px; }

.modal-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.modal-btn:active { opacity: 0.9; }

/* 占位页 */
.page-header {
  background: linear-gradient(135deg, #1b5e20 0%, #43a047 100%);
  color: #fff;
  padding: 40px 20px 30px;
  text-align: center;
}

.page-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.page-header p { font-size: 14px; opacity: 0.9; }

.page-content {
  max-width: 600px;
  margin: -20px auto 0;
  padding: 0 16px 40px;
}

.page-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.page-card h2 {
  font-size: 16px;
  color: var(--brand);
  border-left: 3px solid var(--brand-light);
  padding-left: 10px;
  margin-bottom: 14px;
}

.page-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-card p:last-child { margin-bottom: 0; }

.placeholder-img {
  width: 100%;
  height: 200px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 14px;
  border: 1px dashed var(--border);
  margin-bottom: 16px;
}

.loading { opacity: 0.6; pointer-events: none; }

/* ===== Logo & 图片组件 ===== */

/* 导航栏 logo */
.topbar-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

/* Banner logo */
.banner-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
}

.banner-logo {
  max-width: 180px;
  max-height: 50px;
  width: auto;
  height: auto;
  display: block;
}

/* 页面头部 logo */
.page-header-logo {
  max-width: 180px;
  max-height: 50px;
  margin: 0 auto 12px;
  display: block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}

/* 卡片内横幅图 */
.card-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.page-card .card-banner-img { border-radius: 12px; }

/* 黄主任头像 */
.drhuang-photo-card { text-align: center; }

.drhuang-portrait {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  border: 4px solid var(--brand-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #fff;
}

.drhuang-logo-avatar {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  background: #fff;
  border: 4px solid var(--brand-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px;
}

/* 四句准则 */
.motto-box {
  background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
  text-align: center;
}

.motto-box p {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  line-height: 2;
  margin: 0;
  letter-spacing: 2px;
}

/* 品牌故事 */
.brand-story-card {
  position: relative;
  overflow: hidden;
}

.brand-story-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.brand-motto {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
  border-left: 4px solid var(--orange);
}

.brand-motto .main-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.brand-motto .sub-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* 健康十不 */
.ten-no-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.ten-no-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--brand-bg);
  border-radius: 10px;
  padding: 14px;
}

.ten-no-item .num {
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.ten-no-item .content h4 {
  font-size: 15px;
  color: var(--brand);
  margin-bottom: 4px;
}

.ten-no-item .content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.ten-no-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.ten-no-summary {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.8;
}

/* 出诊时间 */
.schedule-box {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.schedule-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

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

.schedule-item.rest { background: #fff8f8; }

.schedule-label {
  flex-shrink: 0;
  width: 80px;
  background: var(--brand-bg);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 4px;
}

.schedule-item.rest .schedule-label {
  background: #ffebee;
  color: var(--danger);
}

.schedule-content {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 门诊出诊 + 二维码（左右布局） */
.schedule-with-qr {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-left { flex: 1; }

.schedule-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px dashed var(--border);
}

/* 公益科普 + 二维码（左右布局） */
.science-with-qr {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.science-left { flex: 1; }

.science-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px dashed var(--border);
}

/* 侧边二维码通用样式 */
.side-qr-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.side-qr-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* 联系二维码 */
.contact-qr {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  margin: 10px auto;
  display: block;
  border: 1px solid var(--border);
}

/* 弹窗内支付金额 */
.modal-pay-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.modal-pay-amount span {
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-pay-amount strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--danger);
}

/* 弹窗内联系客服 */
.modal-contact {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.modal-contact-qr {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 6px;
}

.modal-contact p {
  font-size: 12px;
  color: var(--text-tertiary);
}

.modal-highlight {
  background: #fff3e0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text);
  text-align: center;
  border: 1px dashed var(--orange);
}

.modal-highlight strong { color: var(--orange); }

/* 关注服务号提示 */
.mp-follow-tip {
  position: fixed;
  bottom: 88px;
  left: 16px;
  right: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}

.mp-follow-tip .icon {
  width: 40px;
  height: 40px;
  background: var(--brand-bg);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.mp-follow-tip .text { flex: 1; }

.mp-follow-tip .text h4 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.mp-follow-tip .text p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.mp-follow-tip .btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  flex-shrink: 0;
}

/* 服务地点 */
.location-grid {
  display: grid;
  gap: 12px;
}

.location-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
}

.location-item h4 {
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 6px;
}

.location-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== 响应式 ===== */
@media (min-width: 600px) {
  .banner { padding: 50px 20px 60px; }
  .banner h1 { font-size: 28px; }
  .product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .main { max-width: 900px; }
  .ten-no-list { grid-template-columns: 1fr 1fr; }
  .schedule-with-qr,
  .science-with-qr { flex-direction: row; align-items: flex-start; }
  .schedule-right,
  .science-right { flex-shrink: 0; width: 150px; }
}

@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== 打印样式（桌牌） ===== */
@media print {
  body {
    background: #fff;
    padding-bottom: 0;
    color: #000;
  }

  .topbar,
  .bottom-bar,
  .mp-follow-tip,
  .qw-section,
  .disclaimer,
  .btn-outline,
  .nav-links,
  .modal-overlay,
  .notice-card { display: none !important; }

  .main {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .product-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .product-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .product-card.recommended,
  .product-card.hot { border: 2px solid #000 !important; }

  .product-card .btn-primary { display: block !important; }

  .banner {
    background: #fff !important;
    color: #000 !important;
    padding: 20px !important;
    border-bottom: 2px solid #000;
  }

  .banner::after { display: none; }
  .banner-logo { filter: none !important; }
  .banner h1 { color: #000 !important; }
  .banner .slogan { color: #000 !important; opacity: 1 !important; }

  .fit-tag {
    background: #eee !important;
    color: #000 !important;
  }

  .service-list li::before { color: #000 !important; }
  .service-list li.moxa::before { color: #000 !important; }

  .badge { background: #000 !important; color: #fff !important; }

  .price-current { color: #000 !important; }

  /* 打印时把产品页内容压缩到两页 */
  .product-card {
    margin-bottom: 0 !important;
  }
}
