/* ===== 食之候 · H5 全局样式 ===== */
:root {
  /* ===== 食之候 · 新中式温润（对齐原型，2026-08-24 全量落地） ===== */
  --primary: #2E7D4F;
  --primary-light: #4CAF78;
  --primary-soft: #7FB89A;
  --primary-bg: #FAF7F0;
  --card-bg: #ffffff;
  --accent: #C8843C;
  --accent-light: #E0A86A;
  --text: #1F2A24;
  --text-secondary: #7A877E;
  --border: #E7E2D6;
  --shadow: 0 2px 8px rgba(31, 42, 36, 0.06);
  --shadow-lg: 0 16px 40px rgba(46, 125, 79, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--primary-bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== 布局容器 ===== */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部导航 ===== */
.top-nav {
  background: var(--card-bg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.brand-icon {
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  text-decoration: none;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.user-menu span {
  color: var(--text-secondary);
}

/* ===== 卡片 ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: -12px;
  margin-bottom: 16px;
}

/* ===== 标题区 ===== */
.hero {
  text-align: center;
  padding: 32px 16px 24px;
}

.hero h1 {
  font-size: 26px;
  color: var(--primary);
  margin: 0 0 10px 0;
  font-weight: 800;
}

.hero p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
}

/* ===== 表单 ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-grid .form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(91, 140, 91, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #b2bec3;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(45, 90, 39, 0.25);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn-accent:hover {
  box-shadow: 0 6px 16px rgba(193, 127, 89, 0.25);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: #f8faf8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-group .btn {
  flex: 1;
  min-width: 100px;
}

/* ===== 功能网格 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.feature-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-icon.green { background: #eaf3ea; }
.feature-icon.orange { background: #fdf1e8; }
.feature-icon.blue { background: #e8f1f8; }
.feature-icon.purple { background: #f0e8f8; }
.feature-icon.red { background: #fde8e8; }
.feature-item h3 {
  font-size: 15px;
  margin: 0 0 6px 0;
  color: var(--text);
}

.feature-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ===== 结果展示 ===== */
.result-section {
  display: none;
}

.result-section.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

.result-block {
  background: #fbfaf8;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary-light);
}

.result-block h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--primary);
}

.result-block p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.advice-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 14px;
}

.advice-card {
  background: #f8faf8;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.advice-card.accent {
  background: #fff8f2;
  border-left: 4px solid var(--accent);
}

.advice-card h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
}

.advice-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

/* ===== 加载动画 ===== */
.loading-box {
  display: none;
  text-align: center;
  padding: 30px;
}

.loading-box.show {
  display: block;
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 4px solid #d4ddd4;
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 14px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 空状态 / 提示 ===== */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.message {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}

.message.show {
  display: block;
}

.message.error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #ffd0d0;
}

.message.success {
  background: #f0fff0;
  color: #27ae60;
  border: 1px solid #d0f0d0;
}

/* ===== 链式流程步骤指示器 ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 10px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 12px;
}

.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5e9e5;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-item.done .step-dot {
  background: var(--primary-light);
  color: #fff;
}

.step-item.active .step-dot {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.15);
}

.step-item.active {
  color: var(--primary);
  font-weight: 700;
}

.step-item.done {
  color: var(--primary-light);
}

.step-arrow {
  color: #c0c8c0;
  font-size: 12px;
  flex-shrink: 0;
}

/* ===== 流程操作按钮组 ===== */
.pipeline-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.pipeline-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* ===== 分析摘要条 ===== */
.pipeline-summary {
  background: #f4f8f4;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pipeline-summary .chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--primary);
}

/* ===== 页脚 ===== */
.page-footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: auto;
}

/* ===== 登录/注册页 ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #e8f0e8 100%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  text-align: center;
  color: var(--primary);
  font-size: 26px;
  margin: 0 0 28px 0;
}

.auth-card .form-field {
  margin-bottom: 16px;
}

.auth-card input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(91, 140, 91, 0.1);
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== 聊天页 ===== */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 56px);
  background: var(--card-bg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8f9fa;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-bubble.user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  margin-right: auto;
  background: #fff;
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input-area textarea {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 100px;
}

.chat-input-area textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.chat-input-area .btn {
  padding: 10px 18px;
  border-radius: 20px;
}

/* ===== 拍照页 ===== */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  background: #fbfaf8;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--primary-light);
  background: #f4f8f4;
}

.upload-area .icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--primary-soft);
}

.upload-area p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.preview-img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-sm);
  margin: 16px auto;
  display: block;
  box-shadow: var(--shadow);
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 22px;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .brand {
    font-size: 16px;
  }
}

/* ===== 自定义日期选择器 ===== */
.date-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.date-picker-overlay.show {
  display: flex;
  opacity: 1;
}

.date-picker-sheet {
  background: var(--card-bg);
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.date-picker-overlay.show .date-picker-sheet {
  transform: translateY(0);
}

.date-picker-header {
  background: var(--primary);
  color: #fff;
  padding: 18px 20px 14px;
}

.date-picker-year {
  font-size: 14px;
  opacity: 0.92;
  margin-bottom: 2px;
}

.date-picker-date {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
}

.date-picker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

.date-picker-nav .nav-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.date-picker-nav .nav-btn:hover {
  background: var(--primary-bg);
}

.date-picker-nav .nav-btn.year {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.date-picker-nav .nav-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  min-width: 110px;
  text-align: center;
}

.date-picker-nav .nav-year,
.date-picker-nav .nav-month {
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.date-picker-nav .nav-year:hover,
.date-picker-nav .nav-month:hover {
  color: var(--primary);
  background: var(--primary-bg);
  border-bottom-color: var(--primary-light);
}

.date-picker-nav .nav-year:active,
.date-picker-nav .nav-month:active {
  background: var(--primary-soft);
  color: #fff;
}

/* 年月选择面板 */
.dp-panel {
  padding: 10px 12px 16px;
}

.dp-panel-title {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.dp-year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding: 2px;
}

.dp-year-item {
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dp-year-item:hover {
  background: var(--primary-soft);
  color: #fff;
}

.dp-year-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.dp-month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 2px;
}

.dp-month-item {
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dp-month-item:hover {
  background: var(--primary-soft);
  color: #fff;
}

.dp-month-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

#dpCalendar {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 12px 6px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 12px 16px;
  gap: 4px 0;
  min-height: 220px;
}

.date-picker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin: 2px auto;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
}

.date-picker-day:hover {
  background: var(--primary-bg);
}

.date-picker-day.other-month {
  color: var(--text-secondary);
  opacity: 0.55;
}

.date-picker-day.today {
  color: var(--primary);
  font-weight: 600;
  border: 1px solid var(--primary-light);
}

.date-picker-day.selected {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.date-picker-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.date-picker-footer button {
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.date-picker-footer button:hover {
  background: var(--primary-bg);
}

.date-picker-footer .btn-confirm {
  color: var(--primary);
  font-weight: 600;
}

@media (min-width: 481px) {
  .date-picker-overlay {
    align-items: center;
  }
  .date-picker-sheet {
    border-radius: 20px;
    transform: scale(0.92);
  }
  .date-picker-overlay.show .date-picker-sheet {
    transform: scale(1);
  }
}

/* ===== 思考动画 ===== */
.dots-anim::after {
  content: '';
  animation: dotsAnim 1.2s steps(4, end) infinite;
}
@keyframes dotsAnim {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

/* ===== 功能入口卡片（V1.1） ===== */
.func-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  transition: all 0.2s ease;
  text-align: center;
}
.func-entry:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(46,125,50,0.15);
  transform: translateY(-2px);
}
.func-entry b { font-size: 15px; }

/* ===== 标签筛选 ===== */
.tag-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.tag-chip {
  padding: 6px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
}
.tag-chip.active, .tag-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== 体质表现多选卡片 ===== */
.symptom-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}
.symptom-item.selected {
  border-color: var(--primary);
  background: rgba(46,125,50,0.07);
}
.symptom-item input { accent-color: var(--primary); }

/* ===== 固定底部导航栏 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 720px;
  margin: 0 auto;
  height: 64px;
  background: #fff;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
  z-index: 900;
  border-top: 1px solid var(--border);
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: #999;
  transition: color 0.15s;
  gap: 2px;
}

.bn-item .bn-icon {
  font-size: 22px;
  line-height: 1;
}

.bn-item .bn-label {
  font-size: 11px;
  line-height: 1;
}

.bn-item.active {
  color: var(--primary);
  font-weight: 600;
}

.bn-item:active {
  background: var(--primary-bg);
}

/* 适配安全区域（iPhone 底部小横条） */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
}
