/* ========================================
   特色餐饮运营智库 · 手机端样式
   ======================================== */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --primary: #F87171;
  --primary-light: #FCA5A5;
  --primary-dark: #B91C1C;
  --accent: #f59e0b;
  --success: #EF4444;
  --danger: #ef4444;
  --bg: #f8f7fc;
  --card: #ffffff;
  --text: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --border: #f0eef7;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
  --shadow-lg: 0 8px 24px rgba(124, 58, 237, 0.1);
  --tab-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  padding-bottom: calc(var(--tab-height) + var(--safe-bottom));
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none !important; }
a:link, a:visited, a:hover, a:active { text-decoration: none !important; }
a:active { opacity: 0.7; }

img { max-width: 100%; display: block; }

/* ===== 顶部导航栏 ===== */
.m-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #F87171 0%, #FCA5A5 100%);
  color: #fff;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.m-header .back-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.m-header .title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-header .action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== 底部 Tab 导航 ===== */
.m-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tab-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.m-tabbar .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s;
  padding-top: 6px;
  text-align: center;
  line-height: 1.2;
}

.m-tabbar .tab-item .icon {
  font-size: 22px;
  line-height: 1;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-tabbar .tab-item.active {
  color: var(--primary);
}

.m-tabbar .tab-item.center {
  position: relative;
}

.m-tabbar .tab-item.center .icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #F87171, #FCA5A5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top: -20px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ===== 容器 ===== */
.m-container {
  padding: 16px;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== 卡片 ===== */
.m-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.m-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-card-title .more {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
}

/* ===== Hero Banner ===== */
.m-hero {
  background: linear-gradient(135deg, #F87171 0%, #FCA5A5 50%, #FECACA 100%);
  color: #fff;
  padding: 24px 20px 32px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  position: relative;
  overflow: hidden;
}

.hero-top-btn {
  position: absolute !important;
  top: calc(16px + env(safe-area-inset-top, 0px)) !important;
  right: 16px !important;
  left: auto !important;
  float: right !important;
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  z-index: 999 !important;
  white-space: nowrap;
  display: inline-block;
}

.m-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.m-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.m-hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.m-hero h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.m-hero h1 .hl {
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.m-hero .desc {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.m-hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
}

.m-hero .hero-stat {
  text-align: center;
}

.m-hero .hero-stat .num {
  font-size: 20px;
  font-weight: 700;
}

.m-hero .hero-stat .label {
  font-size: 11px;
  opacity: 0.85;
}

/* ===== 快捷入口 ===== */
.m-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

.m-quick-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 6px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
  text-decoration: none;
  display: block;
}

.m-quick-item:active {
  transform: scale(0.95);
}

.m-quick-item .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 6px;
  background: linear-gradient(135deg, #ede9fe, #FECACA);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.m-quick-item .name {
  font-size: 11px;
  color: var(--text);
}

/* ===== 模式卡片列表 ===== */
.m-mode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-mode-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
}

.m-mode-card:active {
  transform: scale(0.98);
  background: #fafafa;
}

.m-mode-card .mode-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ede9fe, #FECACA);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.m-mode-card .mode-info {
  flex: 1;
  min-width: 0;
}

.m-mode-card .mode-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.m-mode-card .mode-desc {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-mode-card .mode-meta {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.m-mode-card .mode-tag {
  font-size: 10px;
  padding: 2px 6px;
  background: #f3f4f6;
  color: var(--text-2);
  border-radius: 4px;
}

.m-mode-card .arrow {
  color: var(--text-3);
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== 模式详情页 ===== */
.m-mode-hero {
  background: linear-gradient(135deg, #F87171 0%, #FCA5A5 100%);
  color: #fff;
  padding: 20px 16px 28px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  position: relative;
}

.m-mode-hero .category {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.m-mode-hero h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.m-mode-hero .sub {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 12px;
}

.m-mode-hero .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-mode-hero .tag {
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
}

/* 章节锚点导航 */
.m-anchor-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.m-anchor-bar::-webkit-scrollbar { display: none; }

.m-anchor-bar a {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #f3f4f6;
  color: var(--text-2);
  border-radius: 16px;
  font-size: 12px;
  transition: all 0.2s;
}

.m-anchor-bar a.active {
  background: var(--primary);
  color: #fff;
}

/* 正文内容 */
.m-content section {
  padding: 16px;
  margin-bottom: 8px;
  background: #fff;
}

.m-content section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-content section h2::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #F87171, #FCA5A5);
  border-radius: 2px;
}

.m-content p {
  margin-bottom: 10px;
  color: #374151;
  font-size: 14.5px;
  line-height: 1.75;
}

.m-content ul, .m-content ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.m-content li {
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #374151;
}

.m-content strong {
  color: var(--primary-dark);
}

/* 高亮提示框 */
.m-callout {
  background: linear-gradient(135deg, #faf5ff, #FEF2F2);
  border-left: 4px solid var(--primary);
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.7;
}

.m-callout.warn {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left-color: #f59e0b;
}

.m-callout.success {
  background: linear-gradient(135deg, #fecaca, #a7f3d0);
  border-left-color: #EF4444;
}

/* 业态详情页 Hero */
.m-industry-hero {
  background: linear-gradient(135deg, #F87171 0%, #FCA5A5 100%);
  color: #fff;
  padding: 24px 16px 28px;
  margin: -16px -16px 16px;
  text-align: center;
  position: relative;
}

.m-industry-hero .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}

.m-industry-hero h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.m-industry-hero p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
  color: #fff !important;
}

/* 锚点导航 */
.m-anchor-nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 4px 0 16px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.m-anchor-nav::-webkit-scrollbar {
  display: none;
}

.m-anchor-nav a {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.m-anchor-nav a:active {
  background: #F87171;
  border-color: #F87171;
  color: #fff;
}

/* 表格 */
.m-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid var(--border-light, #e5e7eb);
  -webkit-overflow-scrolling: touch;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}

/* 表格横向滚动提示 */
.m-table-wrap::after {
  content: '→';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--primary);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s;
}
.m-table-wrap.scrolled::after {
  opacity: 0;
}

.m-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.m-table-wrap th {
  background: linear-gradient(135deg, #FFF5F5 0%, #ede9fe 100%);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #B91C1C;
  border-bottom: 2px solid #FECACA;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.m-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  line-height: 1.6;
  vertical-align: middle;
  white-space: nowrap;
}

/* 结论列允许换行 */
.m-table-wrap td:last-child,
.m-table-wrap td.conclusion-col {
  white-space: normal;
  min-width: 180px;
  line-height: 1.7;
}

.m-table-wrap tr:nth-child(even) td {
  background: #fafafa;
}

.m-table-wrap tr:last-child td { border-bottom: none; }

.m-table-wrap tr:hover td {
  background: #FFF5F5;
}

/* 表格内强调文字 */
.m-table-wrap td strong {
  color: #F87171;
  font-weight: 600;
}

/* 表格内标签样式优化 */
.m-table-wrap .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin-right: 4px;
  vertical-align: middle;
  white-space: nowrap;
}
.m-table-wrap .tag-risk {
  background: #fef2f2;
  color: #dc2626;
}
.m-table-wrap .tag-safe {
  background: #fef2f2;
  color: #B91C1C;
}
.m-table-wrap .tag-warn {
  background: #fffbeb;
  color: #d97706;
}

/* 标签 */
.m-pill {
  display: inline-block;
  padding: 3px 10px;
  background: #FEF2F2;
  color: var(--primary-dark);
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 4px;
}

.m-pill.accent {
  background: #fef3c7;
  color: #92400e;
}

.m-pill.success {
  background: #fecaca;
  color: #065f46;
}

/* ===== 门控（手机版） ===== */
.m-gate-section {
  position: relative;
  margin: 16px 0;
}

.m-gate-section .gate-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
  z-index: 10;
  pointer-events: none;
}

.m-gate-card {
  position: relative;
  z-index: 20;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  margin-top: -60px;
  border: 1px solid #f0eef7;
}

.m-gate-card .lock-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #F87171, #FCA5A5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
}

.m-gate-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.m-gate-card .gate-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}

.m-gate-card .gate-benefits {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.m-gate-card .gate-benefit {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-gate-card .gate-benefit .check {
  color: var(--success);
  font-weight: bold;
}

.m-gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-gate-form .form-row {
  display: flex;
  gap: 10px;
}

.m-gate-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  background: #f9fafb;
}

.m-gate-form input:focus {
  border-color: var(--primary);
  background: #fff;
}

.m-gate-form select {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  background: #f9fafb;
  color: var(--text);
}

.m-gate-form button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #F87171, #FCA5A5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.m-gate-form button:active {
  opacity: 0.85;
}

.m-gate-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.m-gate-form .privacy {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

.m-gate-form .tip {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.m-gate-form .tip.success {
  background: #fecaca;
  color: #065f46;
}

.m-gate-form .tip.error {
  background: #fee2e2;
  color: #991b1b;
}

/* 门控模糊效果 */
.m-gated-blur {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.4;
}

.m-gate-unlocked .m-gated-blur {
  filter: none;
  user-select: auto;
  pointer-events: auto;
  opacity: 1;
  transition: all 0.3s ease;
}

.m-gate-hidden {
  display: none !important;
}

/* ===== 推荐阅读 ===== */
.m-recs {
  background: #fff;
  padding: 16px;
  margin-top: 8px;
}

.m-recs h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-rec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 10px;
  cursor: pointer;
}

.m-rec-item:active {
  background: #f3f4f6;
}

.m-rec-item .rec-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ede9fe, #FECACA);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.m-rec-item .rec-name {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.m-rec-item .rec-arrow {
  color: var(--text-3);
  font-size: 16px;
}

/* ===== 分类标签栏 ===== */
.m-category-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  white-space: nowrap;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
}

.m-category-bar::-webkit-scrollbar { display: none; }

.m-category-bar .cat-item {
  flex-shrink: 0;
  padding: 6px 16px;
  background: #f3f4f6;
  color: var(--text-2);
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.m-category-bar .cat-item.active {
  background: var(--primary);
  color: #fff;
}

/* ===== 搜索框 ===== */
.m-search {
  padding: 12px 16px;
  background: #fff;
}

.m-search input {
  width: 100%;
  padding: 10px 16px;
  padding-left: 40px;
  background: #f3f4f6;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

/* ===== 空状态 ===== */
.m-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
}

.m-empty .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ===== 底部操作栏 ===== */
.m-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 10px 16px;
  padding-bottom: calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  z-index: 150;
}

.m-action-bar .btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  border: none;
  cursor: pointer;
}

.m-action-bar .btn-primary {
  background: linear-gradient(135deg, #F87171, #FCA5A5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.m-action-bar .btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

/* ===== 工具卡片 ===== */
.m-tool-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.m-tool-card .tool-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.m-tool-card .tool-info {
  flex: 1;
}

.m-tool-card .tool-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.m-tool-card .tool-desc {
  font-size: 12px;
  color: var(--text-2);
}

.m-tool-card .tool-arrow {
  color: var(--text-3);
  font-size: 20px;
}

/* ===== 数据卡片（测算结果） ===== */
.m-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.m-stat-card {
  background: linear-gradient(135deg, #faf5ff, #FEF2F2);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.m-stat-card .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
}

.m-stat-card .label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ===== 进度条 ===== */
.m-progress {
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.m-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #F87171, #FCA5A5);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ===== 回到顶部 ===== */
.m-back-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tab-height) + 20px + var(--safe-bottom));
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  z-index: 100;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.m-back-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===== 企微二维码弹窗 ===== */
.m-qrcode-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.m-qrcode-modal.show {
  opacity: 1;
  visibility: visible;
}

.m-qrcode-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.m-qrcode-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.m-qrcode-content p {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}

.m-qrcode-content .qr-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-qrcode-content .close-btn {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
}


/* ========== 业态页 Hero 美化 ========== */
.m-industry-hero {
  background: linear-gradient(135deg, #3d0c0c 0%, #B91C1C 35%, #F87171 70%, #FCA5A5 100%);
  color: #fff;
  padding: 28px 20px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}
.m-industry-hero .icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 2;
  color: #fff !important;
}
.m-industry-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: #fff;
}
.m-industry-hero p {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  opacity: 0.95;
}

/* 业态特征标签 */
.industry-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}
.industry-tags span {
  font-size: 11px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
  color: #fff;
}

/* 光圈效果 */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 1;
}
.hero-glow.glow-1 {
  width: 200px;
  height: 200px;
  background: #FCA5A5;
  top: -60px;
  right: -40px;
}
.hero-glow.glow-2 {
  width: 160px;
  height: 160px;
  background: #60a5fa;
  bottom: -40px;
  left: -30px;
  opacity: 0.3;
}

/* 线条效果 */
.hero-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-lines .line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.hero-lines .line-1 {
  top: 25%;
  left: -10%;
  width: 60%;
  transform: rotate(-8deg);
}
.hero-lines .line-2 {
  top: 55%;
  right: -10%;
  width: 50%;
  transform: rotate(5deg);
  opacity: 0.6;
}
.hero-lines .line-3 {
  bottom: 20%;
  left: 20%;
  width: 40%;
  transform: rotate(-3deg);
  opacity: 0.4;
}

/* 不同业态的主题色变体 */
.m-industry-hero.theme-beauty {
  background: linear-gradient(135deg, #4a1b39 0%, #7a2e5e 35%, #c44d8e 70%, #f093b8 100%);
}
.m-industry-hero.theme-beauty .hero-glow.glow-1 { background: #f093b8; }
.m-industry-hero.theme-beauty .hero-glow.glow-2 { background: #c44d8e; }

.m-industry-hero.theme-hair {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 70%, #533483 100%);
}
.m-industry-hero.theme-hair .hero-glow.glow-1 { background: #e94560; }
.m-industry-hero.theme-hair .hero-glow.glow-2 { background: #533483; }

.m-industry-hero.theme-nail {
  background: linear-gradient(135deg, #3d0066 0%, #5c1a8a 35%, #8b5cf6 70%, #FECACA 100%);
}
.m-industry-hero.theme-nail .hero-glow.glow-1 { background: #FECACA; }
.m-industry-hero.theme-nail .hero-glow.glow-2 { background: #8b5cf6; }

.m-industry-hero.theme-skin {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 35%, #0d9488 70%, #2dd4bf 100%);
}
.m-industry-hero.theme-skin .hero-glow.glow-1 { background: #2dd4bf; }
.m-industry-hero.theme-skin .hero-glow.glow-2 { background: #0d9488; }

.m-industry-hero.theme-medical {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 35%, #3b82f6 70%, #93c5fd 100%);
}
.m-industry-hero.theme-medical .hero-glow.glow-1 { background: #93c5fd; }
.m-industry-hero.theme-medical .hero-glow.glow-2 { background: #3b82f6; }

.m-industry-hero.theme-all {
  background: linear-gradient(135deg, #3d0c0c 0%, #B91C1C 35%, #F87171 70%, #FCA5A5 100%);
}

/* ========== 示意图卡片（手机版） ========== */
.m-diagram-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 1.2rem 0;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
}
.m-diagram-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  text-align: center;
}
.m-diagram-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f8f7fc;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
}
.m-diagram-note strong {
  color: var(--primary);
}

/* ========== 业态页内容美化增强 ========== */
.m-industry-page .m-content section {
  margin-bottom: 1.5rem;
}

.m-industry-page .m-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  line-height: 1.5;
}

.m-industry-page .m-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.2rem 0 0.6rem;
  position: relative;
  padding-left: 20px;
}
.m-industry-page .m-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.m-industry-page .m-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.5rem;
}

/* 痛点三栏卡片 */
.m-pain-cards {
  display: flex;
  gap: 10px;
  margin: 1rem 0;
}
.m-pain-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.m-pain-card .emoji {
  font-size: 28px;
  margin-bottom: 6px;
}
.m-pain-card b {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.m-pain-card p {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

/* 亮点提示框 */
.m-highlight-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 1rem 0;
}
.m-highlight-box strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 4px;
}
.m-highlight-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* 增长模型条 */
.m-growth-model {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 1rem 0;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.m-growth-model strong {
  color: #92400e;
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.m-growth-model .model-path {
  font-size: 0.88rem;
  color: #78350f;
  font-weight: 600;
  margin-bottom: 6px;
}
.m-growth-model .model-desc {
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.6;
}

/* 业态页锚点导航美化 */
.m-anchor-nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.m-anchor-nav::-webkit-scrollbar {
  display: none;
}
.m-anchor-nav a {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 6px 14px;
  background: #f3f4f6;
  border-radius: 20px;
  color: var(--text-2);
  white-space: nowrap;
  transition: all 0.2s;
}
.m-anchor-nav a.active {
  background: var(--primary);
  color: #fff;
}

/* 步骤卡片 */
.m-step-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1rem 0;
}
.m-step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.m-step-card .step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.m-step-card .step-content {
  flex: 1;
}
.m-step-card .step-content b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.m-step-card .step-content p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* 数据指标卡 */
.m-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 1rem 0;
}
.m-metric-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.m-metric-card .metric-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.m-metric-card .metric-label {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ========== 全站漂浮水印（手机版） ========== */
.watermark-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
  user-select: none;
}
.watermark-layer .wm-text {
  position: absolute;
  color: rgba(124, 58, 237, 0.1);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 2px;
  white-space: nowrap;
  transform: rotate(-25deg);
  transform-origin: center center;
  user-select: none;
}
.watermark-layer .wm-text.wm-gold {
  color: rgba(245, 158, 11, 0.1);
}

/* 打印/存PDF时水印也显示 */
@media print {
  .watermark-layer {
    position: fixed !important;
    z-index: 9999 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .watermark-layer .wm-text {
    color: rgba(124, 58, 237, 0.12) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
