/* 云丰网 · 公共样式 */
:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #fb923c;
  --primary-bg: #fff7ed;
  --primary-soft: #ffedd5;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #fffbf5;
  --white: #ffffff;
  --border: #fed7aa;
  --success: #10b981;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(234, 88, 12, 0.08);
  --shadow-lg: 0 12px 40px rgba(234, 88, 12, 0.14);
  --tabbar-height: 58px;
  --page-max: 520px;
}

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

html, body {
  margin: 0;
  padding: 0;
}

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

.page-shell {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: var(--tabbar-height);
  position: relative;
  background: var(--bg);
}

@media (min-width: 769px) {
  body { background: #e8ecf1; }
  .page-shell {
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.06), 0 12px 48px rgba(15, 23, 42, 0.1);
  }
}

@media (min-width: 1100px) {
  .page-shell {
    min-height: 100vh;
    overflow: hidden;
  }

  .page-shell.theme-custom {
    overflow: visible;
  }
}

/* 主站底部菜单 · 6项 */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  height: var(--tabbar-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 16px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: stretch;
}

.tabbar-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  padding: 0 2px;
  text-align: center;
  line-height: 1.2;
}

.tabbar-item:hover { color: var(--primary); }

.tabbar-item.active {
  color: var(--primary);
  font-weight: 800;
}

.tabbar-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  background: var(--primary);
}

/* 商城页底部菜单 · 3项 */
.tabbar-mall .tabbar-item {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-mall .tabbar-item.active {
  font-weight: 900;
}

.tabbar-jiazheng .tabbar-item {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-jiazheng .tabbar-item.active {
  font-weight: 900;
}

.tabbar-jiazheng .tabbar-item-btn {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-canyin .tabbar-item {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-canyin .tabbar-item.active {
  font-weight: 900;
}

.tabbar-canyin .tabbar-item-btn {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-hotel .tabbar-item {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-hotel .tabbar-item.active {
  font-weight: 900;
}

.tabbar-hotel .tabbar-item-btn {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-knowledge .tabbar-item {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-knowledge .tabbar-item.active {
  font-weight: 900;
}

.tabbar-knowledge .tabbar-item-btn {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-custom .tabbar-item {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

.tabbar-custom .tabbar-item.active {
  font-weight: 900;
  color: #c2410c;
}

.tabbar-custom .tabbar-item.active::before {
  background: #ea580c;
}

.tabbar-custom .tabbar-item-btn {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
  color: var(--text-muted);
}

.tabbar-custom .tabbar-item-btn:hover {
  color: #ea580c;
}

.tabbar-mall .tabbar-item-btn {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
}

@media (min-width: 769px) {  .tabbar {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: var(--page-max);
    transform: translateX(-50%);
  }
}

/* 客服弹窗 */
.kefu-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 20, 10, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.kefu-modal.active { opacity: 1; visibility: visible; }

.kefu-modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.25s;
}

.kefu-modal.active .kefu-modal-box { transform: translateY(0) scale(1); }

.kefu-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.kefu-modal-title { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.kefu-modal-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.qrcode-frame {
  width: 180px; height: 180px;
  padding: 10px;
  margin: 0 auto 16px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
}

.qrcode-frame img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }

.kefu-modal-tip { font-size: 13px; color: var(--text-muted); }
.kefu-modal-tip i { color: var(--primary); margin-right: 4px; }

.kefu-modal-trial {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 16px; padding: 13px 16px;
  background: transparent; color: var(--primary-dark);
  border: 2px solid var(--primary); border-radius: 10px;
  text-decoration: none; font-size: 15px; font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.kefu-modal-trial:hover {
  background: var(--primary-bg); color: var(--primary);
}

.tabbar-item-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.tabbar-item-btn:hover { color: var(--primary); }
