/* ==========================================================================
   厦门70岁生日家庭行程 WebApp - 专属样式表 (海湾蓝、闽南红与香槟金)
   ========================================================================== */

/* --- 1. 设计系统与自定义属性 --- */
:root {
  /* 调色盘 (闽南文化与海湾特色) */
  --sea-dark: #123545;       /* 深邃海湾蓝 */
  --sea-light: #eef7f9;      /* 清爽海面蓝 */
  --sand-bg: #eae7e1;        /* 闽南温润石板色/白沙滩 */
  --sand-dark: #d5cfc1;      /* 深沙石色 */
  --minnan-red: #ac3a2e;     /* 经典闽南红砖色 */
  --tea-green: #385d49;      /* 安溪茶山绿 */
  --gold: #bda272;           /* 70岁寿辰香槟金 */
  --gold-dark: #998054;
  
  /* 基础配色 */
  --bg-color: var(--sand-bg);
  --card-bg: #ffffff;
  --text-main: #2c3538;
  --text-muted: #5e6b70;
  --border-color: #e2dcce;
  --success-color: #2b7d4d;
  --warning-color: #d97706;
  --danger-color: #b91c1c;

  /* 圆角 & 阴影 */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(18, 53, 69, 0.05);
  --shadow-md: 0 6px 20px rgba(18, 53, 69, 0.08);
  --shadow-lg: 0 12px 36px rgba(18, 53, 69, 0.12);
  
  /* 字体系统 (全面使用系统字体，防劫持/提速) */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. 基础重置 --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 90px; /* 吸底导航预留空间 */
  overflow-x: hidden;
  font-size: 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
}

/* --- 3. 布局结构 --- */
.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- 4. 头部 (Compact Header) --- */
.trip-header {
  background: var(--sea-dark);
  color: #ffffff;
  padding: 24px 20px 32px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.birthday-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--sea-dark);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.utility-buttons {
  display: flex;
  gap: 8px;
}

.utility-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.utility-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header-title-section h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.header-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-bottom: 16px;
}

.trip-meta-info {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 进度条 */
.progress-strip {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.15);
  height: 6px;
  border-radius: 50px;
  overflow: hidden;
}

.progress-strip-fill {
  background: var(--gold);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}

/* --- 5. 通用卡片样式 --- */
.section-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--minnan-red);
  padding-left: 10px;
  margin-bottom: 4px;
}

.section-title h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--sea-dark);
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -6px;
}

/* --- 6. 状态标签 --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-confirmed { background: #e6f4ea; color: var(--success-color); }
.status-suggested { background: #eef3fc; color: var(--sea-dark); }
.status-optional { background: #fdf4e7; color: var(--warning-color); }
.status-pending { background: #fce8e6; color: var(--danger-color); }
.status-fallback { background: #f3f4f6; color: #4b5563; }

/* --- 7. 今日看板 (Today Mode Widget) --- */
.today-widget {
  background: linear-gradient(135deg, #ffffff, var(--sea-light));
  border: 2px solid var(--gold);
}

.today-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}

.today-badge-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--minnan-red);
}

.today-date-text {
  font-size: 13px;
  color: var(--text-muted);
}

.today-hotel-banner {
  background: var(--sea-dark);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

.today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.today-grid-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.today-grid-item small {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: bold;
}

.today-grid-item span {
  font-size: 13px;
  font-weight: 700;
}

.today-nav-link {
  color: var(--minnan-red);
  text-decoration: underline;
  cursor: pointer;
}

.today-pack-box {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.today-pack-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--sea-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.today-pack-list {
  font-size: 12px;
  color: var(--text-main);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.today-pack-list li::before {
  content: "•";
  color: var(--minnan-red);
  margin-right: 4px;
}

.today-fallback-box {
  background: #fdf5f5;
  border-left: 4px solid var(--minnan-red);
  padding: 8px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  color: var(--minnan-red);
  line-height: 1.4;
}

/* 预览状态标志 */
.preview-alert {
  background: var(--danger-color);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 4px;
  border-radius: var(--radius-sm);
}

/* --- 8. 不可错过 (Reservation Dashboard) --- */
.reservation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.res-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.res-card:hover {
  border-color: var(--gold);
}

.res-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-time-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--sea-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.res-body {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.res-detail {
  display: flex;
  justify-content: space-between;
}

.res-detail span {
  color: var(--text-muted);
}

.res-detail strong {
  color: var(--text-main);
}

/* --- 9. 每日行程 (Itinerary Section) --- */
.day-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.day-nav::-webkit-scrollbar {
  display: none;
}

.day-tab-btn {
  flex: 1 0 80px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: var(--transition);
}

.day-tab-btn.active {
  background: var(--sea-dark);
  color: #ffffff;
  border-color: var(--sea-dark);
}

.day-tab-btn .tab-d {
  font-size: 13px;
  font-weight: 800;
}

.day-tab-btn .tab-t {
  font-size: 10px;
  opacity: 0.8;
}

.day-card {
  display: none;
  animation: fadeIn 0.3s ease;
  flex-direction: column;
  gap: 12px;
}

.day-card.active-card {
  display: flex;
}

.day-summary-card {
  background: var(--sea-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-theme-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-theme-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--sea-dark);
}

.day-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}

.day-info-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.day-info-item span {
  color: var(--text-muted);
}

.day-info-item strong {
  font-weight: 700;
}

.day-img-box {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.day-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  text-align: center;
}

.timeline-outer {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.timeline-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--sea-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 12px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 12px;
  font-size: 12px;
}

.timeline-dot {
  position: absolute;
  left: -12px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--minnan-red);
}

.timeline-dot.highlight {
  background: var(--gold);
  width: 9px;
  height: 9px;
  left: -13px;
}

.timeline-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.timeline-time {
  font-weight: 800;
  color: var(--text-main);
}

.timeline-label {
  font-size: 10px;
  background: var(--sea-light);
  color: var(--sea-dark);
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
}

.timeline-text {
  color: var(--text-muted);
}

/* 展开按钮 */
.expand-timeline-btn {
  background: none;
  border: none;
  color: var(--minnan-red);
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.detailed-timeline-panel {
  display: none;
  margin-top: 10px;
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
}

.detailed-timeline-panel.expanded {
  display: block;
}

/* --- 10. 酒店卡片 --- */
.hotel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hotel-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.hotel-card-header {
  background: var(--sea-dark);
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hotel-card-header h3 {
  font-size: 14px;
  font-weight: 800;
}

.hotel-card-body {
  padding: 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hotel-card-body p {
  color: var(--text-muted);
}

.luggage-warning-box {
  background: #fdf5f5;
  border: 1px solid rgba(172,58,46,0.15);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11px;
  color: var(--minnan-red);
  font-weight: bold;
  margin-top: 4px;
}

/* --- 11. 正餐规划 --- */
.menu-tab-row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.menu-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
}

.menu-tab-btn.active {
  color: var(--minnan-red);
  border-bottom-color: var(--minnan-red);
}

.menu-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-section-header {
  font-size: 12px;
  font-weight: bold;
  color: var(--sea-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
  margin-top: 6px;
}

.menu-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f2ede4;
  cursor: pointer;
}

.menu-item.selected {
  background: #fcfbf8;
}

.menu-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--minnan-red);
  cursor: pointer;
  margin-top: 2px;
}

.dish-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dish-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dish-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.dish-price {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-main);
}

.dish-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.dish-tags-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.dish-tag {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
}

.tag-kid { background: #eef7f9; color: var(--sea-dark); }
.tag-elder { background: #e6f4ea; color: var(--success-color); }
.tag-warn { background: #fdf2f2; color: var(--danger-color); }
.tag-opt { background: #fcf6e5; color: var(--warning-color); }

/* 展开更多菜品 */
.expand-menu-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--sea-dark);
  font-size: 12px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  width: 100%;
}

.optional-dishes-panel {
  display: none;
}

.optional-dishes-panel.expanded {
  display: block;
}

/* 费用汇总 */
.menu-summary-bar {
  background: var(--sea-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.summary-row.grand-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--minnan-red);
  border-top: 1px dashed var(--border-color);
  padding-top: 6px;
}

.fhr-alert {
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.fhr-alert.perfect { background: #e6f4ea; color: var(--success-color); }
.fhr-alert.over { background: #fdf2f2; color: var(--danger-color); }

.menu-control-row {
  display: flex;
  gap: 8px;
}

.menu-ctrl-btn {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 6px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main);
}

/* --- 12. 清单模块 --- */
.checklist-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checklist-progress-outer {
  background: var(--border-color);
  height: 6px;
  border-radius: 50px;
  overflow: hidden;
  margin: 6px 0;
}

.checklist-progress-inner {
  background: var(--success-color);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.checklist-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.unfinished-filter-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.reset-list-btn {
  background: none;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  font-weight: bold;
}

.checklist-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-cat-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--sea-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f2ede4;
  font-size: 12px;
}

.todo-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  cursor: pointer;
}

.todo-label-text {
  line-height: 1.4;
}

.todo-item.completed .todo-label-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-owner {
  font-size: 10px;
  background: var(--sea-light);
  color: var(--sea-dark);
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: bold;
}

/* --- 13. 地图/画卷/贴士 --- */
.nav-shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.map-btn {
  background: #fbfbf9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-decoration: none;
  color: var(--sea-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: var(--transition);
}

.map-btn:hover {
  border-color: var(--gold);
}

.map-btn strong {
  font-size: 12px;
}

.map-btn small {
  font-size: 10px;
  color: var(--text-muted);
}

.mosaic-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  text-align: center;
}

.tips-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-card {
  background: #fbfbf9;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 12px;
  display: flex;
  gap: 10px;
}

.tip-emoji {
  font-size: 18px;
}

.tip-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tip-content strong {
  color: var(--sea-dark);
}

.tip-content p {
  color: var(--text-muted);
}

/* --- 14. 微信模板与版本选择 --- */
.temp-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.temp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.temp-card-head strong {
  font-size: 12px;
  color: var(--sea-dark);
}

.copy-btn {
  background: var(--sea-light);
  border: 1px solid var(--border-color);
  color: var(--sea-dark);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.temp-body-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  background: #fcfbf9;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #f0eae1;
  word-break: break-all;
}

.ver-picker {
  display: flex;
  gap: 8px;
}

.ver-btn {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ver-btn.active {
  border-color: var(--minnan-red);
  background: #fdf5f5;
  color: var(--minnan-red);
}

.ver-btn strong {
  font-size: 12px;
}

.ver-btn span {
  font-size: 10px;
  opacity: 0.8;
}

/* --- 15. 吸底导航 (Mobile Sticky Nav) --- */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  height: 58px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 90;
  border-top: 1px solid var(--border-color);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  flex: 1;
  padding: 6px 0;
}

.nav-item:active {
  color: var(--minnan-red);
}

.nav-icon {
  font-size: 18px;
}

/* --- 16. 灯箱 & Toast --- */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 53, 69, 0.95);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  max-width: 500px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.lightbox-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.lightbox-caption {
  padding: 14px;
  font-size: 12px;
}

.lightbox-title-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--sea-dark);
}

.lightbox-desc {
  color: var(--text-muted);
  line-height: 1.4;
}

.lightbox-credit {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: 6px;
  border-top: 1px dashed var(--border-color);
  padding-top: 4px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 110;
  background: rgba(0,0,0,0.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
}

.lightbox-nav-btn.prev { left: 10px; }
.lightbox-nav-btn.next { right: 10px; }

.toast-popup {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18,53,69,0.9);
  color: #fff;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 50px;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.toast-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 确认模态框 */
.confirm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.confirm-box h3 {
  font-size: 15px;
  font-weight: bold;
  color: var(--danger-color);
}

.confirm-box p {
  font-size: 13px;
  color: var(--text-muted);
}

.confirm-btns {
  display: flex;
  gap: 10px;
}

.confirm-btn {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.confirm-btn.yes {
  background: var(--danger-color);
  color: #fff;
  border-color: var(--danger-color);
}

.confirm-btn.no {
  background: #fff;
  color: var(--text-main);
}

/* --- 17. 老人阅读模式全局重写 (Seniors Mode) --- */
body.seniors-mode {
  font-size: 18px !important;
  line-height: 1.7 !important;
}

body.seniors-mode p,
body.seniors-mode span,
body.seniors-mode div,
body.seniors-mode li,
body.seniors-mode time,
body.seniors-mode strong,
body.seniors-mode b,
body.seniors-mode a {
  font-size: 17px !important;
  line-height: 1.8 !important;
}

body.seniors-mode h1,
body.seniors-mode h2,
body.seniors-mode h3,
body.seniors-mode h4,
body.seniors-mode h5 {
  font-size: 22px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
}

body.seniors-mode .header-title-section h1 {
  font-size: 26px !important;
}

body.seniors-mode .utility-btn,
body.seniors-mode .copy-btn,
body.seniors-mode .map-btn,
body.seniors-mode .expand-timeline-btn,
body.seniors-mode .expand-menu-btn,
body.seniors-mode .menu-ctrl-btn,
body.seniors-mode .reset-list-btn {
  font-size: 15px !important;
  padding: 10px 16px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid var(--text-main) !important;
  font-weight: 800 !important;
}

body.seniors-mode .nav-item {
  font-size: 13px !important;
  padding: 10px 0 !important;
}

body.seniors-mode .nav-icon {
  font-size: 22px !important;
}

body.seniors-mode .mobile-nav {
  height: 68px !important;
}

body.seniors-mode .day-tab-btn {
  padding: 12px 8px !important;
}

body.seniors-mode .day-tab-btn .tab-d {
  font-size: 16px !important;
}

body.seniors-mode .day-tab-btn .tab-t {
  font-size: 12px !important;
}

body.seniors-mode .timeline-dot {
  width: 12px !important;
  height: 12px !important;
  left: -14px !important;
}

body.seniors-mode .timeline-dot.highlight {
  width: 14px !important;
  height: 14px !important;
  left: -15px !important;
}

body.seniors-mode .todo-checkbox,
body.seniors-mode .menu-checkbox {
  width: 24px !important;
  height: 24px !important;
}

body.seniors-mode .todo-owner {
  font-size: 13px !important;
  padding: 4px 10px !important;
}

body.seniors-mode .dish-tags-row,
body.seniors-mode .section-desc,
body.seniors-mode .header-subtitle,
body.seniors-mode .progress-strip,
body.seniors-mode .fhr-alert,
body.seniors-mode .dish-desc {
  display: none !important; /* 老人模式过滤掉次要的小字和进度条 */
}

/* 老人模式下默认展开详细折叠，避免点击疲劳 */
body.seniors-mode .detailed-timeline-panel {
  display: block !important;
}

body.seniors-mode .expand-timeline-btn {
  display: none !important;
}

/* 动效减弱 */
body.seniors-mode * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* --- 18. 动画效果 --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
