/* ===== 咖记 Coffee Journal - 全局样式 ===== */
:root {
  --coffee-dark: #3E2723;
  --coffee-primary: #6F4E37;
  --coffee-light: #A0826D;
  --latte: #C9A96E;
  --cream: #FAF6F0;
  --cream-dark: #F0EAE0;
  --white: #FFFFFF;
  --chocolate: #D2691E;
  --berry: #A0522D;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #E53935;
  --info: #2196F3;
  --text-primary: #2D1810;
  --text-secondary: #6B5345;
  --text-tertiary: #A0917F;
  --text-inverse: #FFFFFF;
  --tab-bar-height: 56px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(62,39,35,0.08);
  --shadow-md: 0 2px 8px rgba(62,39,35,0.12);
  --shadow-lg: 0 4px 16px rgba(62,39,35,0.15);
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }
.status-bar { height: env(safe-area-inset-top, 0px); }
#page-container {
  flex: 1;
  padding-bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

/* ===== 底部导航 ===== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(111,78,55,0.1);
  display: flex;
  z-index: 100;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; cursor: pointer;
  color: var(--text-tertiary);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.tab-item.active { color: var(--coffee-primary); }
.tab-item.active .tab-icon {
  filter: drop-shadow(0 1px 3px rgba(111,78,55,0.25));
}
.tab-icon { width: 26px; height: 26px; transition: transform 0.2s ease; }
.tab-item.active .tab-icon { transform: translateY(-1px) scale(1.05); }
.tab-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }

/* ===== 通用组件 ===== */
.page-header {
  padding: 16px 16px 8px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
}
.page-title { font-size: 22px; font-weight: 700; color: var(--coffee-dark); }
.page-subtitle { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 0 16px 12px;
  transition: box-shadow 0.2s, transform 0.1s;
}
.card:active { transform: scale(0.98); }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
  background: var(--cream-dark); color: var(--coffee-light);
}
.tag.tag-origin { background: #FFF3E0; color: #E65100; }
.tag.tag-process { background: #E8F5E9; color: #2E7D32; }
.tag.tag-roast { background: #EFEBE9; color: #5D4037; }
.tag.tag-master { background: #FFF8E1; color: #F57F17; }
.tag.tag-personal { background: #E3F2FD; color: #1565C0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--coffee-primary); color: var(--white); }
.btn-primary:active { background: var(--coffee-dark); }
.btn-secondary { background: var(--cream-dark); color: var(--coffee-primary); }
.btn-outline { background: transparent; border: 1.5px solid var(--coffee-light); color: var(--coffee-primary); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* 浮动按钮 */
.fab {
  position: fixed; bottom: calc(var(--tab-bar-height) + 20px + env(safe-area-inset-bottom, 0px));
  right: 20px; width: 52px; height: 52px;
  border-radius: 50%; border: none;
  background: var(--coffee-primary); color: var(--white);
  box-shadow: 0 4px 16px rgba(111,78,55,0.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 90;
  transition: transform 0.2s;
}
.fab:active { transform: scale(0.9); }
.fab svg { width: 26px; height: 26px; }

/* ===== 模态弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-sheet {
  background: var(--cream);
  width: 100%; max-width: 430px;
  max-height: 90vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.32,0.72,0,1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; background: var(--cream);
  border-bottom: 1px solid rgba(111,78,55,0.08);
  z-index: 10;
}
.modal-title { font-size: 17px; font-weight: 700; color: var(--coffee-dark); }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream-dark); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
}
.modal-body { padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  font-size: 15px; color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--coffee-primary);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ===== 资讯列表 ===== */
.news-card { display: flex; padding: 14px; gap: 12px; }
.news-card .news-img {
  width: 80px; height: 80px; border-radius: var(--radius-md);
  object-fit: cover; flex-shrink: 0; background: var(--cream-dark);
}
.news-card .news-content { flex: 1; min-width: 0; }
.news-card .news-title {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .news-desc {
  font-size: 12px; color: var(--text-tertiary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .news-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.news-card .news-source { font-size: 11px; color: var(--text-tertiary); }
.news-card .news-date { font-size: 11px; color: var(--text-tertiary); }

.news-filter {
  display: flex; gap: 8px; padding: 8px 16px 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.news-filter::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; padding: 6px 14px;
  border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--white); color: var(--text-secondary);
  border: 1px solid var(--cream-dark); cursor: pointer;
  transition: all 0.2s; -webkit-tap-highlight-color: transparent;
}
.filter-chip.active { background: var(--coffee-primary); color: var(--white); border-color: var(--coffee-primary); }

/* ===== 豆子列表 ===== */
.bean-tabs {
  display: flex; padding: 0 16px; gap: 0;
  border-bottom: 1px solid var(--cream-dark);
}
.bean-tab {
  flex: 1; padding: 12px; text-align: center;
  font-size: 14px; font-weight: 600;
  color: var(--text-tertiary); cursor: pointer;
  position: relative; transition: color 0.2s;
}
.bean-tab.active { color: var(--coffee-primary); }
.bean-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%); width: 40px; height: 3px;
  border-radius: 2px; background: var(--coffee-primary);
}

.bean-card { padding: 14px; }
.bean-card .bean-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.bean-card .bean-name { font-size: 15px; font-weight: 700; color: var(--text-primary); flex: 1; }
.bean-card .bean-origin { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.bean-card .bean-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bean-card .bean-info { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-secondary); }
.bean-card .bean-info-item { display: flex; flex-direction: column; gap: 2px; }
.bean-card .bean-info-label { font-size: 10px; color: var(--text-tertiary); }
.bean-card .bean-info-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* 风味雷达 */
.flavor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flavor-tag {
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; background: var(--cream-dark); color: var(--coffee-light);
}

/* 豆子状态 */
.bean-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
}
.bean-status.using { background: #E8F5E9; color: #2E7D32; }
.bean-status.empty { background: #FFEBEE; color: #C62828; }
.bean-status.stored { background: #E3F2FD; color: #1565C0; }

/* 养豆进度 */
.resting-progress {
  margin-top: 10px; padding: 8px 12px;
  background: var(--cream-dark); border-radius: var(--radius-sm);
}
.resting-progress .progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-secondary); margin-bottom: 4px;
}
.resting-bar { height: 4px; background: rgba(111,78,55,0.15); border-radius: 2px; overflow: hidden; }
.resting-bar-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.resting-bar-fill.ready { background: var(--success); }
.resting-bar-fill.waiting { background: var(--warning); }
.resting-bar-fill.expired { background: var(--danger); }

/* ===== 冲煮记录 ===== */
.brew-filter { display: flex; gap: 8px; padding: 8px 16px 12px; }
.brew-card { padding: 14px; }
.brew-card .brew-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.brew-card .brew-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.brew-card .brew-bean { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.brew-card .brew-params {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 10px; padding: 10px; background: var(--cream-dark); border-radius: var(--radius-sm);
}
.brew-param { text-align: center; }
.brew-param-value { font-size: 14px; font-weight: 700; color: var(--coffee-primary); }
.brew-param-label { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
.brew-card .brew-rating { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.star { font-size: 14px; color: #DDD; }
.star.filled { color: var(--latte); }
.brew-card .brew-notes { font-size: 12px; color: var(--text-secondary); margin-top: 8px; line-height: 1.4; }
.brew-card .brew-ai {
  margin-top: 8px; padding: 10px;
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border-radius: var(--radius-sm); border-left: 3px solid var(--latte);
}
.brew-ai-label { font-size: 10px; font-weight: 700; color: var(--chocolate); margin-bottom: 4px; }
.brew-ai-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* ===== 探店 ===== */
.cafe-card { padding: 14px; }
.cafe-card .cafe-header { display: flex; justify-content: space-between; align-items: flex-start; }
.cafe-card .cafe-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.cafe-card .cafe-address { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.cafe-card .cafe-drinks { margin-top: 10px; }
.cafe-drink-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--cream-dark);
  font-size: 13px;
}
.cafe-drink-item:last-child { border-bottom: none; }
.cafe-drink-name { color: var(--text-primary); font-weight: 500; }
.cafe-drink-rating { color: var(--latte); font-size: 12px; }
.cafe-card .cafe-notes { font-size: 12px; color: var(--text-secondary); margin-top: 8px; line-height: 1.4; }

/* ===== 器具 ===== */
.equip-card { display: flex; padding: 14px; gap: 12px; align-items: center; }
.equip-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--cream-dark); display: flex;
  align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.equip-info { flex: 1; }
.equip-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.equip-brand { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.equip-tags { display: flex; gap: 6px; margin-top: 6px; }

/* ===== 空状态 ===== */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-text { font-size: 14px; color: var(--text-tertiary); }
.empty-btn { margin-top: 16px; }

/* ===== 详情页 ===== */
.detail-section {
  margin: 0 16px 12px; padding: 14px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.detail-section-title {
  font-size: 14px; font-weight: 700; color: var(--coffee-dark);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 13px;
}
.detail-label { color: var(--text-tertiary); }
.detail-value { color: var(--text-primary); font-weight: 500; text-align: right; }

/* ===== 推荐页 ===== */
.reco-card {
  margin: 0 16px 12px; padding: 16px;
  background: linear-gradient(135deg, var(--coffee-primary), var(--coffee-dark));
  border-radius: var(--radius-lg); color: var(--white);
}
.reco-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.reco-desc { font-size: 13px; opacity: 0.9; line-height: 1.5; }
.reco-params {
  display: flex; gap: 12px; margin-top: 12px;
  padding: 10px; background: rgba(255,255,255,0.15); border-radius: var(--radius-sm);
}
.reco-param { text-align: center; flex: 1; }
.reco-param-value { font-size: 16px; font-weight: 700; }
.reco-param-label { font-size: 10px; opacity: 0.8; margin-top: 2px; }

/* ===== 统计卡片 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; margin-bottom: 12px; }
.stat-card {
  padding: 14px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat-value { font-size: 24px; font-weight: 700; color: var(--coffee-primary); }
.stat-label { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* ===== 搜索 ===== */
.search-bar {
  margin: 0 16px 12px; padding: 8px 14px;
  background: var(--white); border-radius: 20px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.search-bar svg { width: 16px; height: 16px; color: var(--text-tertiary); flex-shrink: 0; }
.search-bar input {
  border: none; outline: none; background: transparent;
  font-size: 14px; flex: 1; color: var(--text-primary);
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }
.text-sm { font-size: 12px; }
.text-tertiary { color: var(--text-tertiary); }
.font-bold { font-weight: 700; }

/* 列表淡入动画 */
.fade-in { animation: fadeInSection 0.3s ease; }
@keyframes fadeInSection { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 分段标题 */
.section-title {
  padding: 12px 16px 8px; font-size: 14px;
  font-weight: 700; color: var(--coffee-dark);
  display: flex; align-items: center; gap: 6px;
}

/* 咖啡地图占位 */
.map-placeholder {
  margin: 0 16px 12px; height: 180px;
  background: var(--cream-dark); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); font-size: 13px;
  position: relative; overflow: hidden;
}
.map-pin {
  position: absolute; width: 12px; height: 12px;
  border-radius: 50%; background: var(--coffee-primary);
  border: 2px solid var(--white); box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 设置列表 */
.setting-list { margin: 0 16px; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.setting-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; border-bottom: 1px solid var(--cream-dark);
  cursor: pointer;
}
.setting-item:last-child { border-bottom: none; }
.setting-item:active { background: var(--cream-dark); }
.setting-label { font-size: 14px; color: var(--text-primary); }
.setting-value { font-size: 13px; color: var(--text-tertiary); }

/* 注水步骤 */
.pour-steps { margin-top: 8px; }
.pour-step {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.pour-step:last-child { border-bottom: none; }
.pour-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--coffee-primary); color: var(--white);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pour-step-content { flex: 1; font-size: 13px; color: var(--text-secondary); }

/* 对比标记 */
.compare-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
  background: #E8F5E9; color: #2E7D32;
}

/* ===== 资讯来源链接 ===== */
.news-source-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--info);
  text-decoration: none; margin-top: 8px;
  padding: 6px 12px; background: #E3F2FD;
  border-radius: 8px; transition: background 0.2s;
}
.news-source-link:active { background: #BBDEFB; }
.news-source-link svg { width: 12px; height: 12px; flex-shrink: 0; }
.news-detail-source {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: var(--white);
  border-radius: var(--radius-md); margin: 0 16px 12px;
  box-shadow: var(--shadow-sm);
}
.news-detail-source .source-name {
  font-size: 13px; color: var(--text-secondary); font-weight: 600;
}
.news-detail-source .source-link {
  font-size: 12px; color: var(--info);
  text-decoration: none; display: inline-flex; align-items: center; gap: 3px;
  margin-left: auto;
}

/* ===== 风味选择器 ===== */
.flavor-picker {
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 12px; background: var(--white);
}
.flavor-category {
  margin-bottom: 10px;
}
.flavor-category:last-child { margin-bottom: 0; }
.flavor-category-label {
  font-size: 11px; font-weight: 700;
  color: var(--text-tertiary); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.flavor-options {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.flavor-option {
  padding: 4px 10px; border-radius: 14px;
  font-size: 12px; font-weight: 500;
  background: var(--cream-dark); color: var(--text-secondary);
  border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.flavor-option.selected {
  background: var(--coffee-primary); color: var(--white);
  border-color: var(--coffee-primary);
}
.flavor-option:active { transform: scale(0.95); }
.selected-flavors {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--cream-dark);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.selected-flavors-label {
  font-size: 11px; color: var(--text-tertiary);
  width: 100%; margin-bottom: 4px;
}

/* ===== 结构化冲煮建议 ===== */
.brewing-suggestion-display {
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 14px;
}
.brewing-suggestion-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 8px;
}
.bs-item {
  display: flex; flex-direction: column; gap: 2px;
}
.bs-label {
  font-size: 10px; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.3px;
}
.bs-value {
  font-size: 14px; font-weight: 700; color: var(--coffee-primary);
}
.bs-notes {
  font-size: 12px; color: var(--text-secondary);
  line-height: 1.5; margin-top: 6px;
  padding: 8px 10px; background: var(--white);
  border-radius: var(--radius-sm);
}

/* ===== 探店城市筛选 ===== */
.city-filter {
  display: flex; gap: 8px; padding: 0 16px 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.city-filter::-webkit-scrollbar { display: none; }
.city-chip {
  flex-shrink: 0; padding: 5px 12px;
  border-radius: 16px; font-size: 12px; font-weight: 600;
  background: var(--white); color: var(--text-secondary);
  border: 1px solid var(--cream-dark);
  cursor: pointer; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.city-chip.active {
  background: var(--coffee-primary); color: var(--white);
  border-color: var(--coffee-primary);
}
.cafe-city-tag {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  background: #E8F5E9; color: #2E7D32;
}

/* ===== 冲煮建议表单 ===== */
.brewing-suggestion-form {
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 12px; background: var(--cream);
}

/* ===== 冲煮建议网格展示 ===== */
.brewing-suggestion-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.bs-item {
  background: var(--cream); border-radius: var(--radius-sm);
  padding: 8px 6px; text-align: center;
}
.bs-value { font-size: 14px; font-weight: 700; color: var(--coffee-primary); }
.bs-label { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }

/* ===== 加载动画 ===== */
.loading-screen {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 70vh; gap: 12px;
}
.loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--coffee-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--text-tertiary); }

/* ===== Toast 提示 ===== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(62,39,35,0.92); color: #fff; font-size: 13px;
  padding: 10px 20px; border-radius: 20px; z-index: 9999;
  opacity: 0; transition: all 0.3s; pointer-events: none;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== LLM 标签 ===== */
.llm-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 4px;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE); color: #fff;
  margin-left: 4px; vertical-align: middle;
}

/* ===== 探店推荐卡片 ===== */
.cafe-rec-card {
  padding: 14px; margin-bottom: 10px;
}
.rec-specialty {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; font-size: 13px; color: var(--text-secondary);
  line-height: 1.4;
}
.rec-type-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: #fff;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}
.rec-desc {
  font-size: 12px; color: var(--text-tertiary); line-height: 1.5;
  margin-top: 6px;
}
.rec-drinks {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  margin-top: 8px;
}
.rec-drink-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--cream-dark); color: var(--text-secondary);
}
.rec-drink-detail {
  padding: 10px 0; border-bottom: 1px solid var(--cream-dark);
}
.rec-drink-detail:last-child { border-bottom: none; }
.rec-drink-name-detail {
  font-size: 14px; font-weight: 600; color: var(--coffee-dark);
}

/* ===== 资讯来源链接 ===== */
.news-detail-source {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 16px; padding: 12px 14px; background: var(--cream);
  border-radius: var(--radius-md); margin-bottom: 12px;
}
.source-name { font-size: 14px; font-weight: 600; color: var(--coffee-dark); margin-top: 2px; }
.source-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--coffee-primary);
  text-decoration: none; padding: 6px 12px; border-radius: 8px;
  background: rgba(111,78,55,0.08); transition: all 0.2s;
}
.source-link:active { background: rgba(111,78,55,0.15); }

/* ===== 风味选择器 ===== */
.flavor-picker { margin-top: 4px; }
.flavor-category { margin-bottom: 10px; }
.flavor-category-label {
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px;
}
.flavor-options { display: flex; flex-wrap: wrap; gap: 6px; }
.flavor-option {
  font-size: 12px; padding: 4px 10px; border-radius: 12px;
  background: var(--cream-dark); color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.flavor-option.selected {
  background: var(--coffee-primary); color: #fff;
}
.selected-flavors {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--cream-dark);
}
.selected-flavors-label {
  font-size: 11px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 4px;
}

/* ===== Tab图标美化 ===== */
.tab-icon {
  width: 24px; height: 24px;
  transition: transform 0.2s, filter 0.2s;
}
.tab-item.active .tab-icon {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 1px 2px rgba(111,78,55,0.3));
}

/* ===== MT-8 ===== */
.mt-8 { margin-top: 8px; }
