:root {
  --bg-main: #0f1117;
  --bg-card: #1a1d26;
  --bg-card-sub: #252936;
  --bg-active: #2e3347;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --text-primary: #f0f1f5;
  --text-secondary: #8b92a8;
  --text-tertiary: #565d73;
  --accent-primary: #c8382b;
  --accent-primary-muted: rgba(200, 56, 43, 0.15);
  --accent-blue: #4a90d9;
  --accent-blue-muted: rgba(74, 144, 217, 0.15);
  --accent-green: #2e9e5b;
  --accent-green-muted: rgba(46, 158, 91, 0.15);
  --accent-yellow: #d4a843;
  --accent-yellow-muted: rgba(212, 168, 67, 0.15);
  --accent-orange: #c97b34;
  --accent-red: #c8382b;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 5px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Hiragino Sans", Meiryo, sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

/* 主容器 */
.app-container {
  width: 100%;
  max-width: 580px;
  padding: calc(12px + var(--safe-top)) 16px calc(76px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 頂部原生列 */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 8px;
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #4a90d9;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.header-action-btn:active {
  background: var(--bg-active);
  transform: scale(0.96);
}

.speed-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.speed-toggle-btn:active {
  background: var(--bg-card-sub);
  color: var(--text-primary);
}

/* 語言選擇與切換列 (iOS 原生膠囊風格) */
.lang-selector-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.lang-switch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switch-btn:active {
  transform: rotate(180deg) scale(0.92);
}

/* 核心卡片容器 */
.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.textarea-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.45;
  resize: none;
  min-height: 85px;
}

.textarea-field::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}

/* 輸入框工具列 */
.input-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.action-tools-left {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ocr-cam-btn {
  background: rgba(74, 144, 217, 0.16);
  color: #4a90d9;
  border: 1px solid rgba(74, 144, 217, 0.35);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ocr-preview-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ocr-thumb-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  background: #000;
}

.ocr-meta-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ocr-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ocr-status-text {
  font-size: 12px;
  font-weight: 600;
  color: #4a90d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ocr-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.ocr-mode-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ocr-mode-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.ocr-mode-pill.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
}

.text-action-btn {
  background: var(--bg-card-sub);
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.text-action-btn:active {
  background: var(--bg-active);
  color: var(--text-primary);
}

.mic-action-btn {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.mic-action-btn:active {
  transform: scale(0.96);
}

.mic-action-btn.recording {
  background: #c8382b;
  border-color: #c8382b;
  color: #ffffff;
  animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
  0% { opacity: 1; }
  50% { opacity: 0.75; }
  100% { opacity: 1; }
}

.primary-trans-btn {
  background: var(--accent-blue);
  border: none;
  color: #ffffff;
  padding: 8px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.primary-trans-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* 首頁雙向直覺語音按鈕列 */
.main-dual-voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.main-voice-btn {
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.main-voice-btn:active {
  transform: scale(0.97);
}

.main-voice-btn .v-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.main-voice-btn .v-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.main-voice-btn .v-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.main-voice-btn .v-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.2;
  margin-top: 2px;
}

/* 我說中文 (藍色強調) */
.main-voice-btn.voice-zh {
  border-color: rgba(74, 144, 217, 0.4);
  background: linear-gradient(180deg, rgba(74, 144, 217, 0.15) 0%, rgba(74, 144, 217, 0.05) 100%);
}

.main-voice-btn.voice-zh:hover {
  border-color: rgba(74, 144, 217, 0.7);
}

/* 對方說日文 (綠色/日式強調) */
.main-voice-btn.voice-ja {
  border-color: rgba(46, 158, 91, 0.4);
  background: linear-gradient(180deg, rgba(46, 158, 91, 0.15) 0%, rgba(46, 158, 91, 0.05) 100%);
}

.main-voice-btn.voice-ja:hover {
  border-color: rgba(46, 158, 91, 0.7);
}

/* 錄音中脈衝狀態 */
.main-voice-btn.recording {
  background: #c8382b !important;
  border-color: #c8382b !important;
  animation: pulse-red 1.2s infinite;
}

.main-voice-btn.recording .v-title,
.main-voice-btn.recording .v-sub {
  color: #ffffff !important;
}

/* 對講機實時聆聽提示浮條 */
.conv-live-hint {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse-subtle 1.5s infinite;
}

.conv-live-hint.me {
  background: rgba(74, 144, 217, 0.15);
  border: 1px dashed rgba(74, 144, 217, 0.4);
  color: #4a90d9;
  align-self: flex-end;
}

.conv-live-hint.partner {
  background: rgba(46, 158, 91, 0.15);
  border: 1px dashed rgba(46, 158, 91, 0.4);
  color: #2e9e5b;
  align-self: flex-start;
}

@keyframes pulse-subtle {
  0% { opacity: 0.95; }
  50% { opacity: 0.65; }
  100% { opacity: 0.95; }
}

/* 翻譯結果卡片 */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-target-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  word-break: break-word;
}

.result-furigana-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-furigana-ruby {
  font-size: 16px;
  line-height: 1.9;
  color: #e5e5ea;
  word-break: break-word;
}

.result-furigana-ruby ruby rt,
.big-ja-text ruby rt {
  font-size: 11px;
  color: #4a90d9;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.big-ja-text ruby rt {
  font-size: 14px;
}

.result-furigana-plain {
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-word;
}

.result-romaji-text {
  font-size: 14px;
  color: var(--accent-yellow);
  font-family: -apple-system, monospace;
  font-weight: 500;
}

.result-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 4px;
}

.play-speak-btn {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.play-speak-btn:active {
  background: var(--bg-active);
}

.play-speak-btn.speaking {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.result-aux-tools {
  display: flex;
  gap: 8px;
}

.pill-tool-btn {
  background: var(--bg-card-sub);
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.pill-tool-btn:active {
  background: var(--bg-active);
  color: var(--text-primary);
}

.pill-tool-btn.highlight {
  color: var(--text-primary);
  background: #2c2c2e;
}

/* 雙人對講機模式 */
.conv-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 160px);
  min-height: 420px;
}

.conv-chat-flow {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px;
}

.conv-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.conv-bubble-row.me {
  align-self: flex-end;
}

.conv-bubble-row.partner {
  align-self: flex-start;
}

.conv-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.conv-bubble.me {
  background: var(--accent-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.conv-bubble.partner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.conv-bubble-trans {
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conv-romaji {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.conv-bubble-play {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

.conv-bottom-dual-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}

.dual-talk-btn {
  height: 64px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  color: #fff;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.dual-talk-btn:active {
  transform: scale(0.97);
}

.dual-talk-btn .title {
  font-size: 14px;
  font-weight: 600;
}

.dual-talk-btn .sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-talk-zh {
  background: var(--bg-card);
}

.btn-talk-zh.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-talk-ja {
  background: var(--bg-card);
}

.btn-talk-ja.active {
  background: #2e9e5b;
  border-color: #2e9e5b;
}

/* 分段切換器 (Segmented Control - 支援多項目平滑滑動) */
.sub-segmented-bar {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sub-segmented-bar::-webkit-scrollbar {
  display: none;
}

.sub-seg-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.sub-seg-btn.active {
  background: var(--bg-card-sub);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ========================================================
 * 6. 現代化精緻景點與美食卡片 (Modern Spot & Food Cards)
 * ======================================================== */
.spot-item-card {
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  margin-bottom: 16px;
}

.spot-gallery-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  max-height: 235px;
  background: #141416;
  overflow: hidden;
}

.spot-gallery-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.spot-gallery-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.spot-gallery-scroll {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.spot-gallery-scroll::-webkit-scrollbar {
  display: none;
}

.spot-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
}

.spot-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
}

.spot-gallery-slide:active .spot-gallery-img {
  transform: scale(0.98);
}

.spot-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  max-height: 235px;
  background: #2c2c2e;
}

.spot-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spot-region-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.gallery-caption-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
  pointer-events: none;
}

.gallery-counter-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d4a843;
  padding: 4px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-family: -apple-system, monospace;
  font-weight: 700;
  z-index: 3;
  pointer-events: none;
}

.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 4;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s, transform 0.15s;
}

.gallery-nav-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.gallery-nav-arrow:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.85);
}

.gallery-nav-prev {
  left: 10px;
}

.gallery-nav-next {
  right: 10px;
}

/* 卡片主體內容 */
.spot-body-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 標題與 MapCode 區塊 */
.spot-header-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.spot-title-group {
  flex: 1;
  min-width: 0;
}

.spot-main-name {
  font-size: 18.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.spot-ja-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 3px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.spot-romaji-dot {
  color: var(--text-tertiary);
}

.spot-romaji-tag {
  color: #d4a843;
  font-family: -apple-system, monospace;
  font-size: 11.5px;
}

/* 車機導航 MapCode 快捷晶片按鈕 */
.spot-mapcode-chip {
  background: linear-gradient(135deg, rgba(46, 158, 91, 0.16) 0%, rgba(46, 158, 91, 0.06) 100%);
  border: 1px solid rgba(46, 158, 91, 0.35);
  border-radius: 12px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.spot-mapcode-chip:hover {
  background: rgba(46, 158, 91, 0.25);
  border-color: rgba(46, 158, 91, 0.6);
  transform: translateY(-1px);
}

.spot-mapcode-chip:active {
  transform: scale(0.96);
}

.spot-mapcode-chip .mc-icon {
  font-size: 12px;
}

.spot-mapcode-chip .mc-code {
  font-size: 12.5px;
  font-weight: 800;
  color: #2e9e5b;
  font-family: -apple-system, monospace;
}

.spot-mapcode-chip .mc-copy-badge {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(46, 158, 91, 0.4);
  padding: 2px 5px;
  border-radius: 6px;
  font-weight: 600;
}

/* 快速關鍵資訊標籤 (營業/門票/停車) */
.spot-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1px;
}

.spot-quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11.5px;
  color: #d1d1d6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 核心亮點說明 */
.spot-highlight-card {
  font-size: 13.5px;
  color: #f2f2f7;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.spot-highlight-card .hl-sparkle {
  color: #d4a843;
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

/* 必買限定伴手禮 / 必吃招牌推薦精品框 */
.spot-feature-box {
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.spot-feature-box.must-buy {
  background: linear-gradient(135deg, rgba(200, 56, 43, 0.12) 0%, rgba(200, 56, 43, 0.04) 100%);
  border: 1px solid rgba(200, 56, 43, 0.28);
}

.spot-feature-box.must-buy .feature-badge {
  font-size: 12px;
  font-weight: 700;
  color: #ff375f;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spot-feature-box.must-buy .feature-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffd6e0;
}

.spot-feature-box.must-eat {
  background: linear-gradient(135deg, rgba(201, 123, 52, 0.12) 0%, rgba(201, 123, 52, 0.04) 100%);
  border: 1px solid rgba(201, 123, 52, 0.28);
}

.spot-feature-box.must-eat .feature-badge {
  font-size: 12px;
  font-weight: 700;
  color: #c97b34;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spot-feature-box.must-eat .feature-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffe8cc;
}

/* 內行攻略小貼士 */
.spot-tip-card {
  background: rgba(74, 144, 217, 0.08);
  border-left: 3.5px solid #4a90d9;
  border-radius: 0 12px 12px 0;
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #bad7ff;
}

.spot-tip-card .tip-bulb {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.spot-tip-card strong {
  color: #4a90d9;
}

/* 深度詳細攻略折疊器 (Accordion) */
.spot-accordion-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 14px;
  color: #a1a1a6;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.spot-accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.spot-accordion-toggle.expanded {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.acc-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.spot-accordion-body {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

.acc-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.45;
}

.acc-row-title {
  font-weight: 700;
  color: #ffffff;
}

.acc-row-highlight {
  color: #d4a843;
  line-height: 1.45;
}

.acc-row-desc {
  color: #a1a1a6;
  line-height: 1.45;
}

.acc-desc-block {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acc-desc-text {
  color: #c7c7cc;
  font-size: 12.5px;
  line-height: 1.55;
}

/* 雙層黃金操作列 (Dual Action Suite) */
.spot-action-suite {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 2px;
}

.spot-main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-main-action {
  height: 42px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-gmap {
  background: linear-gradient(135deg, #4a90d9 0%, #0066cc 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(74, 144, 217, 0.35);
}

.btn-gmap:hover {
  background: linear-gradient(135deg, #2b95ff 0%, #0a75e0 100%);
}

.btn-gmap:active {
  transform: scale(0.97);
}

.btn-trip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-trip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-trip:active {
  transform: scale(0.97);
}

.btn-trip.in-trip {
  background: linear-gradient(135deg, rgba(46, 158, 91, 0.22) 0%, rgba(46, 158, 91, 0.1) 100%);
  border-color: rgba(46, 158, 91, 0.5);
  color: #2e9e5b;
}

.spot-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.btn-sub-tool {
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-sub-tool:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-sub-tool:active {
  background: var(--bg-active);
  transform: scale(0.96);
}

.action-link-btn {
  text-decoration: none;
  background: var(--bg-card-sub);
  color: var(--accent-blue);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  box-sizing: border-box;
  transition: background 0.15s, transform 0.1s;
}

.action-link-btn:active {
  background: var(--bg-active);
}

/* 實用工具箱 (Tools Section) */
.tool-sub-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tool-sub-panel.active {
  display: flex;
}

/* 1. 匯率計算機 */
.calc-display-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-rate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.calc-rate-badge {
  background: var(--bg-card-sub);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--accent-yellow);
  font-family: -apple-system, monospace;
}

.calc-inputs-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-field-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-field-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.calc-input-box {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  width: 100%;
  outline: none;
  font-family: -apple-system, monospace;
}

.calc-swapper-icon {
  font-size: 16px;
  color: var(--text-tertiary);
  margin-top: 14px;
}

/* 免稅與折扣開關列 */
.calc-toggles-bar {
  display: flex;
  gap: 8px;
}

.toggle-pill-btn {
  flex: 1;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.toggle-pill-btn.active {
  background: var(--accent-green);
  color: #000000;
  border-color: var(--accent-green);
}

.calc-result-summary {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.calc-result-summary strong {
  color: var(--text-primary);
  font-size: 15px;
}

.calc-quick-num-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-num-btn {
  background: var(--bg-card-sub);
  border: none;
  color: var(--text-primary);
  padding: 10px 0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.quick-num-btn:active {
  background: var(--bg-active);
}

/* 2. 沖繩右駕保命卡 */
.drive-tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drive-tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drive-tip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.drive-tip-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.drive-tip-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.drive-tip-highlight {
  color: var(--accent-yellow);
  font-weight: 600;
}

/* 3. 沖繩即時天氣預報 */
.weather-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.weather-main-temp {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-condition-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.weather-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card-sub);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.weather-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weather-stat-label {
  font-size: 10px;
  color: var(--text-secondary);
}

.weather-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.weather-forecast-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  text-align: center;
}

.forecast-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.forecast-date {
  font-size: 11px;
  color: var(--text-secondary);
}

.forecast-icon {
  font-size: 20px;
}

.forecast-temp {
  font-size: 12px;
  font-weight: 600;
}

.forecast-rain {
  font-size: 10px;
  color: var(--accent-blue);
}

/* 4. 入境通關住宿備忘卡 */
.vjw-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vjw-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vjw-field-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vjw-input-field {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.vjw-tools-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* 常用句清單 */
.phrase-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.phrase-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 34px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.phrase-search-icon {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.category-pill-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.category-pill-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cat-pill.active {
  background: var(--text-primary);
  color: #000000;
  font-weight: 600;
  border-color: var(--text-primary);
}

.phrase-list-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phrase-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phrase-zh-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phrase-ja-text {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2px;
}

.phrase-romaji {
  font-size: 12px;
  color: var(--accent-yellow);
  font-family: -apple-system, monospace;
}

.phrase-card-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.mini-tool-btn {
  background: var(--bg-card-sub);
  border: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.mini-tool-btn:active {
  background: var(--bg-active);
  color: var(--text-primary);
}

/* 全螢幕大字展示視窗 */
.flash-card-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.flash-card-modal.active {
  opacity: 1;
  pointer-events: auto;
}

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

.modal-close-btn {
  background: #2c2c2e;
  border: none;
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  margin: auto 0;
}

.big-ja-text {
  font-size: clamp(32px, 8vw, 54px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  word-break: break-word;
}

.big-romaji-text {
  font-size: clamp(16px, 4vw, 22px);
  color: var(--accent-yellow);
  font-weight: 500;
}

.big-zh-text {
  font-size: clamp(17px, 4.5vw, 24px);
  color: var(--text-secondary);
  font-weight: 500;
}

.modal-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: var(--safe-bottom);
}

.modal-speak-btn {
  background: var(--text-primary);
  border: none;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 底部常駐導航欄 (iOS Native 5-Tab Bar) */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(52px + var(--safe-bottom));
  background: rgba(15, 17, 23, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 5px;
  z-index: 1000;
  max-width: 580px;
  margin: 0 auto;
}

.nav-tab-item {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 3px 0;
}

.nav-tab-item .tab-icon {
  font-size: 17px;
}

.nav-tab-item .tab-label {
  font-size: 10px;
  font-weight: 500;
}

.nav-tab-item.active {
  color: var(--accent-primary);
}

/* 行李檢查清單 (Checklist) */
.checklist-section-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  gap: 6px;
}

.checklist-items-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card-sub);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.check-item-label:active {
  background: var(--bg-active);
}

.check-item-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
  cursor: pointer;
  margin-top: 2px;
}

.check-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.check-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.check-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.check-item-label.checked .check-item-title {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.check-item-label.checked {
  opacity: 0.65;
}

/* 掃貨必買指南 (Shopping Guide) */
.shop-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.shop-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.shop-item-ja {
  font-size: 12px;
  color: var(--text-secondary);
}

.shop-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 緊急救助電話黃頁 (Emergency Contacts) */
.emergency-call-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.emergency-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.emergency-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.emergency-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.emergency-num-highlight {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-green);
  font-family: -apple-system, monospace;
}

.call-btn-link {
  text-decoration: none;
  background: var(--accent-green);
  color: #000000;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.call-btn-link:active {
  transform: scale(0.96);
}

/* 提示訊息 Toast */
.toast-msg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #2c2c2e;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

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

/* 頁面切換控制 */
.tab-content-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.tab-content-panel.active {
  display: flex;
}

/* 空狀態 */
.empty-state-box {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* 相片全螢幕燈箱 (Lightbox Modal) */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeIn 0.2s ease-out;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  box-sizing: border-box;
  z-index: 2;
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.lb-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.lb-counter {
  font-size: 13px;
  color: var(--accent-yellow);
  font-family: -apple-system, monospace;
}

.lb-top-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-close-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 14px;
  letter-spacing: 0.2px;
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lb-close-hint:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.lb-close-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.lb-close-btn:hover, .lb-close-btn:active {
  background: rgba(255, 59, 48, 0.85);
  border-color: rgba(255, 59, 48, 1);
  transform: scale(1.08);
}

.lightbox-img-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 14px 0;
  cursor: pointer;
}

.lb-main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease, transform 0.15s ease;
  user-select: none;
  cursor: pointer;
}

.lb-main-image:hover {
  transform: scale(1.008);
}

.lb-main-image:active {
  transform: scale(0.97);
}

.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
}

.lb-nav-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.lb-prev-btn {
  left: 6px;
}

.lb-next-btn {
  right: 6px;
}

.lightbox-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-caption {
  font-size: 13px;
  line-height: 1.45;
  color: #e5e5ea;
  text-align: center;
}

.lightbox-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ==========================================================================
   v12.0 自由行自駕必備模組 (行程單 / 潮汐日落 / 加油停車 / 必買清單 / 離線皮夾)
   ========================================================================== */

/* 1. 景點頂部子面板切換 */
.spot-top-seg-bar {
  margin-bottom: 10px;
}

.spot-sub-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 2. 自訂自由行自駕行程單 (My Trip) */
.trip-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 2px;
}

.trip-action-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.trip-action-pill.highlight {
  background: rgba(74, 144, 217, 0.15);
  border-color: var(--accent-blue);
  color: #4a90d9;
}

.trip-action-pill.danger {
  color: #c8382b;
  border-color: rgba(200, 56, 43, 0.3);
}

.trip-action-pill:active {
  transform: scale(0.96);
}

.trip-day-summary-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trip-spot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.trip-seq-badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.trip-thumb-img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #2c2c2e;
}

.trip-info-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trip-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.trip-spot-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-day-tag {
  flex-shrink: 0;
  background: var(--bg-card-sub);
  color: var(--accent-yellow);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
}

.trip-mapcode-row {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trip-mapcode-val {
  font-family: monospace;
  color: var(--accent-orange);
  font-weight: 700;
}

.trip-card-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.trip-move-btn {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.trip-move-btn:active {
  background: var(--bg-active);
  color: var(--text-primary);
}

.trip-time-tag {
  background: rgba(74, 144, 217, 0.15);
  color: var(--accent-blue);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.trip-note-box {
  background: rgba(212, 168, 67, 0.08);
  border-left: 2px solid var(--accent-yellow);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-top: 2px;
}

.trip-highlight-text {
  font-size: 11px;
  color: var(--accent-orange);
  line-height: 1.3;
  margin-top: 1px;
}

.trip-day-route-banner {
  background: var(--bg-card);
  border: 1px solid rgba(74, 144, 217, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.trip-day-route-banner .route-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
}

.trip-day-route-banner .route-flow {
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.4;
}

.trip-day-route-banner .route-traffic {
  font-size: 11px;
  color: #2e9e5b;
  line-height: 1.3;
}

/* ========================================================
 * 3. 沖繩潮汐與日落黃金時刻 (Sunset & Tide Luxury Redesign)
 * ======================================================== */
.sunset-hero-card {
  background: linear-gradient(135deg, rgba(200, 56, 43, 0.22) 0%, rgba(255, 149, 0, 0.28) 45%, rgba(175, 82, 222, 0.22) 100%);
  border: 1px solid rgba(201, 123, 52, 0.45);
  box-shadow: 0 8px 30px rgba(255, 149, 0, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.sunset-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sunset-sub-label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
}

.sunset-main-time {
  font-size: 28px;
  font-weight: 800;
  color: #c97b34;
  letter-spacing: -0.5px;
  margin-top: 2px;
  text-shadow: 0 2px 14px rgba(201, 123, 52, 0.35);
}

.sunset-countdown-badge {
  background: rgba(201, 123, 52, 0.25);
  border: 1px solid rgba(201, 123, 52, 0.5);
  color: #d4a843;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sunset-solar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sunset-solar-slot {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.sunset-solar-slot.highlight {
  background: rgba(201, 123, 52, 0.18);
  border-color: rgba(201, 123, 52, 0.5);
  box-shadow: 0 4px 14px rgba(201, 123, 52, 0.15);
}

.solar-slot-icon {
  font-size: 16px;
}

.solar-slot-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.solar-slot-time {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 1px 0;
}

.sunset-solar-slot.highlight .solar-slot-time {
  color: #d4a843;
}

.solar-slot-desc {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.25;
}

.sunset-tip-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
}

/* 潮汐觀測卡 */
.tide-hero-card {
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.22) 0%, rgba(46, 158, 91, 0.16) 100%);
  border: 1px solid rgba(74, 144, 217, 0.35);
  box-shadow: 0 8px 30px rgba(74, 144, 217, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.tide-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tide-sub-label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.tide-status-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tide-type-pill {
  background: rgba(46, 158, 91, 0.2);
  border: 1px solid rgba(46, 158, 91, 0.4);
  color: #2e9e5b;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.tide-jma-link {
  font-size: 11.5px;
  color: #5ac8fa;
  text-decoration: none;
  background: rgba(90, 200, 250, 0.12);
  border: 1px solid rgba(90, 200, 250, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.tide-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tide-slot-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.tide-slot-box.highlight {
  background: rgba(74, 144, 217, 0.2);
  border-color: rgba(74, 144, 217, 0.5);
  box-shadow: 0 4px 14px rgba(74, 144, 217, 0.15);
}

.tide-slot-stage {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.tide-slot-time {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 1px 0;
}

.tide-slot-box.highlight .tide-slot-time {
  color: #5ac8fa;
}

.tide-slot-note {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.25;
}

.tide-guide-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
}

/* 聖地相片卡列表 */
.scenic-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 2px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.scenic-section-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.scenic-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.scenic-img-wrap {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
}

.scenic-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.scenic-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.2px;
}

.scenic-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.scenic-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.scenic-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.tide-timing-pill {
  font-size: 11px;
  font-weight: 700;
  color: #c97b34;
  background: rgba(201, 123, 52, 0.12);
  border: 1px solid rgba(201, 123, 52, 0.3);
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.scenic-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.scenic-spot-view {
  font-size: 11.5px;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1.4;
}

.scenic-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.scenic-btn-mapcode {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 12px;
  transition: all 0.15s;
}

.scenic-btn-mapcode:active {
  background: rgba(255, 255, 255, 0.12);
}

.scenic-btn-mapcode span {
  font-size: 11px;
  color: var(--text-secondary);
}

.scenic-btn-mapcode strong {
  color: #d4a843;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.scenic-btn-nav {
  background: rgba(74, 144, 217, 0.15);
  border: 1px solid rgba(74, 144, 217, 0.35);
  color: #5ac8fa;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* 琉裝 & 景點專屬外連按鈕 */
.scenic-btn-book {
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: #d4a843;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.15s;
}
.scenic-btn-book:active {
  background: rgba(212, 168, 67, 0.28);
}
.scenic-btn-line {
  background: rgba(6, 199, 85, 0.16);
  border: 1px solid rgba(6, 199, 85, 0.45);
  color: #06c755;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.15s;
}
.scenic-btn-line:active {
  background: rgba(6, 199, 85, 0.3);
}
.scenic-btn-ig {
  background: rgba(255, 55, 95, 0.15);
  border: 1px solid rgba(255, 55, 95, 0.4);
  color: #ff375f;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.15s;
}
.scenic-btn-ig:active {
  background: rgba(255, 55, 95, 0.28);
}

.scenic-btn-trip {
  background: rgba(200, 56, 43, 0.15);
  border: 1px solid rgba(200, 56, 43, 0.35);
  color: #ff375f;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

/* 4. 加油站 & 停車場全攻略 */
.gas-gun-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gas-gun-card {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gas-red {
  border-left: 4px solid #c8382b;
}

.gas-yellow {
  border-left: 4px solid #d4a843;
}

.gas-green-danger {
  border-left: 4px solid #2e9e5b;
  background: rgba(46, 158, 91, 0.08);
}

.gas-gun-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.gas-gun-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.gas-gun-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.gas-phrase-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gas-phrase-item {
  background: var(--bg-card-sub);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gas-phrase-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gas-phrase-ja {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.gas-phrase-romaji {
  font-size: 11px;
  color: var(--accent-blue);
}

.gas-phrase-zh {
  font-size: 12px;
  color: var(--text-secondary);
}

.gas-phrase-tools {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* 5. 互動式購物清單 (Shopping Checklist) */
.shop-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.shop-progress-title {
  font-weight: 700;
  color: var(--text-primary);
}

.shop-progress-val {
  color: var(--accent-green);
  font-weight: 700;
}

.shop-progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-card-sub);
  border-radius: 4px;
  overflow: hidden;
}

.shop-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2e9e5b, #2e9e5b);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.add-custom-shop-bar {
  display: flex;
  gap: 8px;
  margin: 4px 0;
}

.custom-shop-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
}

.custom-shop-input:focus {
  border-color: var(--accent-blue);
}

.shop-checklist-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: opacity 0.2s;
}

.shop-item-card.checked {
  opacity: 0.55;
}

.shop-item-card.checked .shop-name-zh {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.shop-custom-check {
  margin-top: 2px;
  width: 22px;
  height: 22px;
  accent-color: var(--accent-green);
  cursor: pointer;
  flex-shrink: 0;
}

.shop-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shop-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.shop-name-zh {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.shop-price-badge {
  font-size: 11px;
  color: var(--accent-yellow);
  font-weight: 700;
  white-space: nowrap;
}

.shop-name-ja {
  font-size: 12px;
  color: var(--accent-blue);
}

.shop-location-text {
  font-size: 11px;
  color: var(--text-secondary);
}

.shop-tip-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

.shop-item-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* 6. 自由行離線皮夾 (Travel Wallet) */
.wallet-group-box {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: -0.2px;
}

.vjw-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 380px) {
  .vjw-inputs-row {
    grid-template-columns: 1fr;
  }
}

/* 7. 加入行程彈窗 (Add to Trip Modal) */
.add-to-trip-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.trip-modal-content {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 18px 16px calc(18px + var(--safe-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.trip-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.trip-modal-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.trip-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.trip-modal-days-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trip-day-choice-btn {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.trip-day-choice-btn.active {
  background: rgba(74, 144, 217, 0.2);
  border-color: var(--accent-blue);
  color: #4a90d9;
}

.trip-day-choice-btn.highlight {
  grid-column: span 2;
  color: var(--accent-yellow);
}

.trip-day-choice-btn:active {
  transform: scale(0.97);
}

.trip-remove-action-btn {
  width: 100%;
  background: rgba(200, 56, 43, 0.15);
  border: 1px solid rgba(200, 56, 43, 0.35);
  color: #c8382b;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.trip-remove-action-btn:active {
  background: rgba(200, 56, 43, 0.25);
}

/* iOS 加入主畫面快捷導引浮條 */
.ios-install-bar {
  position: fixed;
  bottom: 72px;
  left: 12px;
  right: 12px;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(20, 26, 38, 0.96);
  border: 1px solid rgba(74, 144, 217, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  z-index: 998;
  animation: slide-up-subtle 0.35s ease;
}

@keyframes slide-up-subtle {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ios-install-icon img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: block;
}

.ios-install-content {
  flex: 1;
  min-width: 0;
}

.ios-install-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ios-install-sub {
  font-size: 11px;
  color: #4a90d9;
  line-height: 1.2;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ios-share-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 217, 0.25);
  border: 1px solid rgba(74, 144, 217, 0.5);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 11px;
  font-weight: bold;
}

.ios-install-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-install-close:active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ios-install-bar {
  cursor: pointer;
}

/* iOS 加入主畫面 Sheet Modal */
.ios-install-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.ios-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ios-sheet-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #141a26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 14px 20px 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.75);
  animation: ios-sheet-slide-up 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@keyframes ios-sheet-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.ios-sheet-handle {
  width: 38px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin: 0 auto 2px;
}

.ios-sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ios-sheet-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.ios-sheet-header-text {
  flex: 1;
  min-width: 0;
}

.ios-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.ios-sheet-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ios-sheet-x-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ios-sheet-x-btn:active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ios-sheet-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.ios-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ios-step-badge {
  width: 22px;
  height: 22px;
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ios-step-info {
  flex: 1;
}

.ios-step-title {
  font-size: 13.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.ios-step-title strong {
  color: #4a90d9;
}

.ios-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 217, 0.2);
  border: 1px solid rgba(74, 144, 217, 0.4);
  color: #4a90d9;
  border-radius: 6px;
  padding: 2px 5px;
  vertical-align: middle;
}

.ios-pill-box {
  font-size: 11px;
  font-weight: 700;
  color: #2e9e5b;
  background: rgba(46, 158, 91, 0.18);
  border-color: rgba(46, 158, 91, 0.4);
  padding: 2px 7px;
}

.ios-step-desc {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.ios-sheet-pointer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(74, 144, 217, 0.12);
  border: 1px dashed rgba(74, 144, 217, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: #4a90d9;
  font-size: 12.5px;
  font-weight: 600;
}

.ios-pointer-bounce {
  font-size: 15px;
  animation: pointer-bounce 0.9s infinite alternate ease-in-out;
}

@keyframes pointer-bounce {
  from { transform: translateY(-3px); }
  to { transform: translateY(4px); }
}

.ios-sheet-primary-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.35);
  width: 100%;
}

.ios-sheet-primary-btn:active {
  background: var(--primary-hover);
  transform: scale(0.98);
}

/* ========================================================
 * 18. 首頁 4 大救急情境大字卡直通膠囊 (Quick Emergency Cards)
 * ======================================================== */
.quick-emergency-pills-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.quick-em-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 4px;
  color: #f2f2f7;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.quick-em-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-em-pill:active {
  transform: scale(0.95);
  background: var(--bg-active);
}

/* 翻譯收藏按鈕已收藏狀態 */
.fav-btn.active, .sub-tool-btn.active {
  color: #d4a843 !important;
  border-color: rgba(212, 168, 67, 0.4) !important;
  background: rgba(212, 168, 67, 0.12) !important;
}

/* LINE 格式行程匯出按鈕 */
.trip-action-pill.highlight-green {
  background: linear-gradient(135deg, rgba(46, 158, 91, 0.22) 0%, rgba(46, 158, 91, 0.1) 100%);
  border: 1px solid rgba(46, 158, 91, 0.45);
  color: #2e9e5b;
}

.trip-action-pill.highlight-green:hover {
  background: rgba(46, 158, 91, 0.25);
}

/* ========================================================
 * 19. 今日血拼累計小帳本 (Shopping Ledger)
 * ======================================================== */
.calc-ledger-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-add-record-btn {
  background: linear-gradient(135deg, rgba(201, 123, 52, 0.18) 0%, rgba(201, 123, 52, 0.08) 100%);
  border: 1px solid rgba(201, 123, 52, 0.35);
  color: #c97b34;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  width: 100%;
}

.calc-add-record-btn:active {
  transform: scale(0.98);
  background: rgba(201, 123, 52, 0.25);
}

.calc-ledger-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.ledger-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.ledger-total {
  font-size: 13.5px;
  font-weight: 800;
  color: #d4a843;
  font-family: -apple-system, monospace;
}

.ledger-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.ledger-clear-btn:hover {
  color: #c8382b;
}

.ledger-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.ledger-empty-hint {
  font-size: 11.5px;
  color: var(--text-tertiary);
  text-align: center;
  padding: 8px 0;
}

.ledger-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.ledger-item-name {
  color: #d1d1d6;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}

.ledger-item-amount {
  font-family: -apple-system, monospace;
  font-weight: 700;
  color: #ffffff;
  margin-right: 8px;
}

.ledger-item-del {
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 13px;
  padding: 0 4px;
}

.ledger-item-del:hover {
  color: #c8382b;
}

/* ========================================================
 * 20. 自駕還車與飯店退房必檢清單 (Checkout Checklists)
 * ======================================================== */
.drive-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drive-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.drive-check-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.drive-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.drive-check-item.checked {
  opacity: 0.6;
}

.drive-check-item.checked .check-main-title {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.check-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.check-main-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.check-sub-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ========================================================
 * 21. 匯率 AA 制多人分攤與自訂匯率
 * ======================================================== */
.calc-split-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.split-num-selector {
  display: flex;
  gap: 4px;
}

.split-num-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c7c7cc;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.split-num-btn.active {
  background: #4a90d9;
  border-color: #4a90d9;
  color: #ffffff;
  font-weight: 700;
}

.split-result-summary {
  background: rgba(74, 144, 217, 0.12);
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  color: #4a90d9;
  text-align: center;
}

.calc-rate-edit-btn {
  background: transparent;
  border: none;
  color: var(--accent-blue);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 4px;
  border-radius: 4px;
  text-decoration: underline;
}

/* ========================================================
 * 22. 👕 日本衣物與鞋子尺碼對照表 (Size Chart)
 * ======================================================== */
.size-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}

.size-table th {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 9px 8px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.size-table td {
  padding: 8px 6px;
  color: #d1d1d6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.size-table tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

.size-table td.size-hl {
  color: #d4a843;
  font-weight: 700;
}

/* ========================================================
 * 23. 🍢 居酒屋與燒肉點餐圖鑑 (Izakaya & Yakiniku Guide)
 * ======================================================== */
.izakaya-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.izakaya-food-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.izakaya-food-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.izakaya-food-name-ja {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.izakaya-food-name-zh {
  font-size: 13px;
  font-weight: 600;
  color: #d4a843;
  margin-top: 2px;
}

.izakaya-food-romaji {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: -apple-system, monospace;
}

.izakaya-food-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #c7c7cc;
}

.izakaya-card-tools {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

/* ========================================================
 * 24. 🆘 沖繩緊急急難救助直撥 (SOS Emergency)
 * ======================================================== */
.sos-urgent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.sos-call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.sos-call-btn:active {
  transform: scale(0.96);
}

.sos-police {
  background: linear-gradient(135deg, #4a90d9 0%, #0055b3 100%);
  color: #ffffff;
}

.sos-amb {
  background: linear-gradient(135deg, #c8382b 0%, #c41c12 100%);
  color: #ffffff;
}

.sos-coast {
  background: linear-gradient(135deg, #2e9e5b 0%, #1e8736 100%);
  color: #ffffff;
}

.sos-call-num {
  font-size: 20px;
  letter-spacing: 0.5px;
}

.sos-call-desc {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.sos-diplomat-card {
  background: linear-gradient(135deg, rgba(200, 56, 43, 0.16) 0%, rgba(200, 56, 43, 0.05) 100%);
  border: 1px solid rgba(200, 56, 43, 0.35);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.sos-phone-link-btn {
  background: #ff2d55;
  color: #ffffff;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

/* ========================================================
 * 25. 🧳 行李清單進度條與自訂物品
 * ======================================================== */
.pack-progress-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.pack-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.pack-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.pack-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2e9e5b 0%, #2e9e5b 100%);
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-pack-wrap {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.custom-pack-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12.5px;
}

.custom-pack-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.custom-pack-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ========================================================
 * 2026 沖繩最新退稅攻略 & 新手實戰教學
 * ======================================================== */
.tax-guide-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.tax-highlight-pulse {
  animation: taxPulse 2s ease-in-out;
}

@keyframes taxPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 144, 217, 0.7); border-color: var(--accent-blue); }
  50% { box-shadow: 0 0 20px 4px rgba(74, 144, 217, 0.5); border-color: var(--accent-blue); }
  100% { box-shadow: 0 0 0 0 rgba(74, 144, 217, 0); border-color: var(--border-color); }
}

.tax-guide-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tax-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tax-status-badge {
  background: rgba(46, 158, 91, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(46, 158, 91, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tax-status-badge.fee {
  background: rgba(201, 123, 52, 0.15);
  color: var(--accent-orange);
  border-color: rgba(201, 123, 52, 0.3);
}

.tax-main-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin: 0;
}

.tax-sub-title {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* 4 大核心規則摘要卡片 */
.tax-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tax-sum-card {
  background: var(--bg-card-sub);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tax-sum-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tax-sum-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tax-sum-label {
  font-size: 10.5px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.tax-sum-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tax-sum-desc {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.25;
}

/* 子標籤導航 */
.tax-pill-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.tax-tab-pill {
  cursor: pointer;
  white-space: nowrap;
}

/* 內容面板 */
.tax-content-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.tax-content-panel.active {
  display: flex;
}

/* 1. 步驟卡片 */
.tax-stepper-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tax-step-item {
  display: flex;
  gap: 12px;
  background: var(--bg-card-sub);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.tax-step-num {
  width: 26px;
  height: 26px;
  background: var(--accent-blue);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.tax-step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.tax-step-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tax-step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.tax-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tax-tag.green {
  background: rgba(46, 158, 91, 0.15);
  color: var(--accent-green);
}

.tax-tag.blue {
  background: rgba(74, 144, 217, 0.15);
  color: var(--accent-blue);
}

.tax-tag.orange {
  background: rgba(201, 123, 52, 0.15);
  color: var(--accent-orange);
}

.tax-tag.red {
  background: rgba(200, 56, 43, 0.15);
  color: #c8382b;
}

.tax-step-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tax-step-desc strong {
  color: var(--text-primary);
}

.tax-step-tip {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-yellow);
  padding: 6px 8px;
  border-radius: 0 6px 6px 0;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tax-step-tip strong {
  color: var(--accent-yellow);
}

/* 2. 一般品 vs 消耗品 對照 */
.tax-cat-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tax-cat-card {
  background: var(--bg-card-sub);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tax-cat-card.general {
  border-left: 4px solid var(--accent-green);
}

.tax-cat-card.consumable {
  border-left: 4px solid var(--accent-orange);
}

.tax-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tax-cat-icon {
  font-size: 24px;
}

.tax-cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.tax-cat-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

.tax-cat-badge.ok {
  background: rgba(46, 158, 91, 0.15);
  color: var(--accent-green);
}

.tax-cat-badge.no {
  background: rgba(200, 56, 43, 0.15);
  color: #c8382b;
}

.tax-cat-items {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 8px;
  border-radius: 6px;
}

.tax-cat-items strong {
  color: var(--text-primary);
}

.tax-cat-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tax-cat-points li {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tax-cat-points li strong {
  color: var(--text-primary);
}

/* 混買陷阱警示框 */
.tax-alert-callout {
  display: flex;
  gap: 10px;
  background: rgba(200, 56, 43, 0.1);
  border: 1px solid rgba(200, 56, 43, 0.3);
  border-radius: var(--radius-lg);
  padding: 12px;
  align-items: flex-start;
}

.tax-alert-callout-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.tax-alert-callout-body {
  font-size: 12px;
  color: #ffb3b0;
  line-height: 1.5;
}

.tax-alert-callout-body strong {
  color: #ffffff;
}

/* 3. 商場手續費清單 */
.tax-malls-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tax-mall-card {
  background: var(--bg-card-sub);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tax-mall-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.tax-mall-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tax-mall-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.tax-mall-branch {
  font-size: 11px;
  color: var(--text-tertiary);
}

.tax-fee-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.tax-fee-tag.free {
  background: rgba(46, 158, 91, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(46, 158, 91, 0.3);
}

.tax-fee-tag.charged {
  background: rgba(201, 123, 52, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(201, 123, 52, 0.3);
}

.tax-fee-tag.mixed {
  background: rgba(74, 144, 217, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(74, 144, 217, 0.3);
}

.tax-mall-info-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.tax-mall-info-grid strong {
  color: var(--text-primary);
}

.tax-mall-tip {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tax-mall-tip strong {
  color: var(--accent-yellow);
}

/* 4. 5 大致命地雷 */
.tax-pitfall-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tax-pitfall-item {
  background: var(--bg-card-sub);
  border: 1px solid rgba(200, 56, 43, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 12px;
}

.tax-pitfall-num {
  font-size: 15px;
  font-weight: 900;
  color: #c8382b;
  background: rgba(200, 56, 43, 0.15);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tax-pitfall-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.tax-pitfall-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.tax-pitfall-p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.tax-pitfall-p strong {
  color: #c97b34;
}

.tax-pitfall-sol {
  background: rgba(46, 158, 91, 0.1);
  border-left: 3px solid var(--accent-green);
  padding: 6px 8px;
  border-radius: 0 6px 6px 0;
  font-size: 11.5px;
  color: var(--text-primary);
  line-height: 1.4;
}

.tax-pitfall-sol strong {
  color: var(--accent-green);
}

/* 5. 退稅日語手指卡 */
.tax-phrase-intro {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.tax-phrase-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tax-phrase-card {
  background: var(--bg-card-sub);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tax-phrase-zh {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.tax-phrase-ja {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-yellow);
}

.tax-phrase-ro {
  font-size: 11px;
  color: var(--text-tertiary);
}

.tax-phrase-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.phrase-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}

.phrase-tool-btn:active {
  background: var(--accent-blue);
  color: #ffffff;
}

/* 伴手禮頂部快捷橫幅 */
.tax-quick-banner {
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.15), rgba(46, 158, 91, 0.15));
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.15s, border-color 0.15s;
}

.tax-quick-banner:active {
  transform: scale(0.98);
  border-color: var(--accent-blue);
}

.tax-quick-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tax-quick-emoji {
  font-size: 22px;
  flex-shrink: 0;
}

.tax-quick-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tax-quick-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tax-quick-tag {
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.tax-quick-desc {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tax-quick-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 購物清單中的消耗品/一般品標籤 */
.shop-tax-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  display: inline-block;
}

.shop-tax-pill.general {
  background: rgba(46, 158, 91, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(46, 158, 91, 0.3);
}

.shop-tax-pill.consumable {
  background: rgba(201, 123, 52, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(201, 123, 52, 0.3);
}

/* 6. 快速通關密技卡片 */
.tax-fast-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tax-fast-card {
  background: var(--bg-card-sub);
  border: 1px solid rgba(74, 144, 217, 0.25);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.tax-fast-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.tax-fast-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.tax-fast-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tax-fast-desc strong {
  color: var(--text-primary);
}

.tax-fast-desc em {
  display: block;
  font-style: normal;
  color: var(--accent-yellow);
  margin-top: 4px;
  font-size: 11px;
}

/* 2026.11 新制重大改革橫幅 */
.tax-new-system-banner {
  background: linear-gradient(135deg, rgba(200, 56, 43, 0.15), rgba(201, 123, 52, 0.15));
  border: 1px solid rgba(201, 123, 52, 0.4);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tax-new-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-orange);
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.tax-new-body {
  font-size: 12px;
  color: #ffffff;
  line-height: 1.55;
}

.tax-new-body strong {
  color: var(--accent-yellow);
}

/* ========================================================
 * 14. Bento Box 工具箱首頁儀表盤 (Tools Hub Bento Grid)
 * ======================================================== */
.tools-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.bento-card {
  background: rgba(28, 28, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

.bento-card:active {
  transform: scale(0.97);
  background: rgba(44, 44, 46, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
}

.bento-card.bento-hero {
  grid-column: span 2;
  padding: 18px;
  background: linear-gradient(145deg, rgba(38, 38, 42, 0.9), rgba(22, 22, 24, 0.95));
}

.bento-card-bg-glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.bento-card-bg-glow.tax-glow {
  background: transparent;
}

.bento-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bento-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.bento-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-badge.glow-yellow {
  color: var(--accent-yellow);
  background: var(--accent-yellow-muted);
  border-color: rgba(212, 168, 67, 0.3);
}

.bento-badge.glow-green {
  color: var(--accent-green);
  background: var(--accent-green-muted);
  border-color: rgba(46, 158, 91, 0.3);
}

.bento-badge.glow-red {
  color: var(--accent-primary);
  background: var(--accent-primary-muted);
  border-color: rgba(200, 56, 43, 0.3);
}

.bento-card-body {
  margin-bottom: 12px;
}

.bento-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}

.bento-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bento-link-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* 工具子頁頂部返回列 */
.tool-detail-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 2px 0 6px 0;
}

.back-to-hub-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.back-to-hub-btn:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.97);
}

.tool-detail-current-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* 匯率頁內的退稅快速引導橫幅 */
.calc-tax-guide-banner {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(46, 158, 91, 0.12), rgba(74, 144, 217, 0.08));
  border: 1px solid rgba(46, 158, 91, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-tax-guide-banner:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, rgba(46, 158, 91, 0.2), rgba(74, 144, 217, 0.15));
}

.calc-tax-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #2e9e5b;
  color: #000;
  display: inline-block;
  margin-bottom: 4px;
}

.calc-tax-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.calc-tax-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.calc-tax-banner-arrow {
  font-size: 20px;
  color: #2e9e5b;
  font-weight: 300;
  margin-left: 10px;
}

/* Accordion 卡片折疊樣式 */
.accordion-card .card-header-bar {
  cursor: pointer;
  user-select: none;
}

.accordion-chevron {
  font-size: 13px;
  color: var(--text-secondary);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.accordion-card.collapsed .accordion-chevron {
  transform: rotate(-90deg);
}

.accordion-card.collapsed .accordion-collapsible-body {
  display: none !important;
}

/* 景點頁篩選膠囊微調（降噪） */
.spot-top-seg-bar {
  margin-bottom: 8px;
}

.category-pill-scroll {
  padding: 2px 0 6px 0;
}

/* ========================================================
 * 17. 琉裝體驗模組化排版 (Ryuso Modern UI)
 * ======================================================== */
.ryuso-banner-notice {
  background: rgba(200, 56, 43, 0.08);
  border: 1px solid rgba(200, 56, 43, 0.22);
  border-radius: var(--radius-lg);
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.ryuso-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 10px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ryuso-filter-row::-webkit-scrollbar {
  display: none;
}

.ryuso-filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ryuso-filter-chip.active {
  background: #ff375f;
  border-color: #ff375f;
  color: #ffffff;
}

.ryuso-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}

.ryuso-card:active {
  border-color: rgba(255, 255, 255, 0.2);
}

.ryuso-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.ryuso-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.ryuso-card-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ryuso-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ryuso-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.3;
}
.ryuso-tag.green {
  background: rgba(46, 158, 91, 0.15);
  color: #2e9e5b;
}
.ryuso-tag.blue {
  background: rgba(74, 144, 217, 0.15);
  color: #4a90d9;
}
.ryuso-tag.pink {
  background: rgba(255, 55, 95, 0.15);
  color: #ff375f;
}
.ryuso-tag.yellow {
  background: rgba(212, 168, 67, 0.15);
  color: #d4a843;
}
.ryuso-tag.gray {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.ryuso-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ryuso-info-grid strong {
  color: var(--text-primary);
}

.ryuso-tip {
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid #ff375f;
  border-radius: 0 6px 6px 0;
  padding: 6px 9px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.ryuso-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 2px;
}

.ryuso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 8px;
  border-radius: var(--radius-md);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.ryuso-btn:active {
  transform: scale(0.97);
}
.ryuso-btn-line {
  background: rgba(6, 199, 85, 0.16);
  border-color: rgba(6, 199, 85, 0.42);
  color: #06c755;
}
.ryuso-btn-book {
  background: rgba(212, 168, 67, 0.14);
  border-color: rgba(212, 168, 67, 0.38);
  color: #d4a843;
}
.ryuso-btn-ig {
  background: rgba(255, 55, 95, 0.14);
  border-color: rgba(255, 55, 95, 0.38);
  color: #ff375f;
}
.ryuso-btn-nav {
  background: rgba(74, 144, 217, 0.14);
  border-color: rgba(74, 144, 217, 0.38);
  color: #5ac8fa;
}
.ryuso-btn-mapcode {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

/* 離線皮夾截圖保險箱 */
.wallet-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.wallet-shot-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 14px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
}
.wallet-shot-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.wallet-shot-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background: #111;
}
.wallet-shot-label {
  padding: 6px 28px 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wallet-shot-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================
 * 19. v17.0 全能升級樣式 (Whisper / 手寫 / 裁切 / 原圖疊字 / 地圖 / 掃碼 / 地震)
 * ======================================================== */
.whisper-bar {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.whisper-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  min-height: 36px;
  border-radius: 16px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.whisper-toggle-btn.active {
  background: rgba(46, 158, 91, 0.16);
  border-color: rgba(46, 158, 91, 0.45);
  color: #2e9e5b;
}
.ocr-overlay-pill {
  background: rgba(201, 123, 52, 0.2);
  border: 1px solid rgba(201, 123, 52, 0.5);
  color: #d4a843;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.dict-lookup-box {
  background: rgba(74, 144, 217, 0.08);
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dict-lookup-hdr {
  font-size: 11px;
  font-weight: 700;
  color: #4a90d9;
}
.dict-entry-row {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-primary);
}
.dict-entry-kana {
  color: var(--accent-yellow);
  font-size: 11px;
  margin-left: 4px;
}
.dict-entry-gloss {
  color: var(--text-secondary);
  margin-left: 6px;
}

/* Cropper & Overlay Modals */
.ocr-crop-modal-content {
  max-width: 480px;
  width: 94%;
  gap: 10px;
}
.ocr-crop-stage {
  width: 100%;
  max-height: 52vh;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.ocr-crop-actions {
  display: flex;
  gap: 8px;
}
.ocr-crop-mode-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  min-height: 36px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ocr-crop-mode-pill.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}
.ocr-overlay-stage-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 10px 18px;
  overflow: auto;
}
.ocr-overlay-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
}
.ocr-overlay-stage img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
}
.ocr-overlay-boxes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ocr-overlay-badge {
  position: absolute;
  background: rgba(12, 12, 16, 0.88);
  color: #d4a843;
  border: 1px solid rgba(212, 168, 67, 0.65);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  pointer-events: auto;
  cursor: pointer;
  max-width: 65%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.65);
  word-break: break-word;
}

/* KanjiCanvas 手寫面板 */
.kanji-draw-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}
#kanjiDrawCanvas {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid var(--accent-blue);
  touch-action: none;
  cursor: crosshair;
}
.kanji-draw-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.kanji-candidates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.kanji-cand-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
.kanji-cand-btn:active {
  background: var(--accent-blue);
}

/* 沖繩互動地圖 */
.map-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-action-btns {
  display: flex;
  gap: 8px;
}
.map-action-btns .mini-tool-btn {
  min-height: 40px;
  flex: 1;
}
.map-action-btns .mini-tool-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
.okinawa-map-container {
  width: 100%;
  height: 410px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #141a24;
}
.map-selected-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 條碼掃描器 */
.barcode-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.barcode-reader-box {
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-color);
}
.barcode-result-card {
  background: rgba(46, 158, 91, 0.08);
  border: 1px solid rgba(46, 158, 91, 0.3);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 國定假日提醒 & 地震情報 */
.holiday-jp-banner {
  background: rgba(201, 123, 52, 0.14);
  border: 1px solid rgba(201, 123, 52, 0.45);
  color: #d4a843;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}
.quake-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quake-card-hdr {
  font-size: 12px;
  font-weight: 700;
  color: #c97b34;
}
.quake-card-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.quake-event-row {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
}
.quake-event-row:last-child {
  border-bottom: none;
}

/* 飲食忌口／過敏原大字卡 */
.dietary-trigger-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(200, 56, 43, 0.12);
  border: 1px solid rgba(200, 56, 43, 0.35);
  color: #c97b34;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}
.dietary-trigger-btn:active {
  background: rgba(200, 56, 43, 0.22);
}
.dietary-badge-pill {
  background: #c8382b;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.dietary-modal-content {
  max-width: 480px;
  width: 94%;
  gap: 10px;
}
.dietary-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 2px;
}
.dietary-chip-btn {
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: left;
}
.dietary-chip-btn.active {
  background: rgba(200, 56, 43, 0.2);
  border-color: #c8382b;
  color: #d4a843;
}
.dietary-preview-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dietary-preview-ja {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
}
.dietary-preview-zh {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}


/* ========================================================
 * 🚕 日本 / 沖繩叫車攻略 & 司機溝通卡
 * ======================================================== */
.taxi-callout {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-primary);
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
}
.taxi-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .taxi-compare-grid {
    grid-template-columns: 1fr;
  }
}
.taxi-app-card {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.taxi-app-card.go {
  border-color: rgba(46, 158, 91, 0.35);
}
.taxi-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.taxi-app-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.taxi-tag {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 168, 67, 0.16);
  color: #d4a843;
}
.taxi-tag.green {
  background: rgba(46, 158, 91, 0.18);
  color: #2e9e5b;
}
.taxi-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.taxi-link-row {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.taxi-link-row .mini-tool-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
}
.taxi-zone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.taxi-zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-card-sub);
  border-radius: 10px;
  font-size: 12.5px;
  color: #fff;
}
.taxi-zone-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.taxi-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.taxi-status.ok { background: rgba(46, 158, 91, 0.16); color: #2e9e5b; }
.taxi-status.warn { background: rgba(201, 123, 52, 0.16); color: #c97b34; }
.taxi-status.low { background: rgba(200, 56, 43, 0.16); color: #c8382b; }
.taxi-prep-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.taxi-prep-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  background: var(--bg-card-sub);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-primary);
  cursor: pointer;
}
.taxi-prep-item input {
  margin-top: 2px;
  accent-color: #2e9e5b;
}
.taxi-field-lbl {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.taxi-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 12.5px;
}
.taxi-fare-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.taxi-quick-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.taxi-toggles-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.taxi-toggle-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
}
.taxi-split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.taxi-fare-result {
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.14), rgba(212, 168, 67, 0.08));
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: 12px;
  padding: 12px;
}
.taxi-fare-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.taxi-fare-twd {
  font-size: 16px;
  color: #d4a843;
}
.taxi-fare-detail {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.taxi-phrase-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.taxi-phrase-item {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.taxi-phrase-zh {
  font-size: 13px;
  font-weight: 700;
  color: #d4a843;
}
.taxi-phrase-ja {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.taxi-phrase-romaji {
  font-size: 11.5px;
  color: var(--text-secondary);
}
.taxi-phrase-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
