@charset "utf-8";
/* ============================================================
   fun100-ilanbnb 羅東夜市民宿頻道現代化 RWD 整合樣式表
   配色基調：電腦版同款浪漫粉桃 (#FBB5D2) + 典雅莓紅 (#c2185b / #e91e63)
   電腦版 (>=992px): 保持原始經典排版，100% 像素精準
   行動版 (<=991px): 啟用全新輕量流式行動版 UI，觸控友善、零裁切、無橫向溢出
   ============================================================ */

/* 1. 斷點切換控制 */
.fun100-mobile-wrapper {
  display: none;
}
table.fun100-desktop-wrapper,
.fun100-desktop-wrapper {
  display: table;
  width: 990px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media screen and (min-width: 992px) {
  .fun100-mobile-wrapper {
    display: none !important;
  }
  table.fun100-desktop-wrapper,
  .fun100-desktop-wrapper {
    display: table !important;
    width: 990px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media screen and (max-width: 991px) {
  body:not(.force-desktop) {
    background-image: none !important;
    background-color: #FBB5D2 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body:not(.force-desktop) table.fun100-desktop-wrapper,
  body:not(.force-desktop) .fun100-desktop-wrapper {
    display: none !important;
  }
  body:not(.force-desktop) .fun100-mobile-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

body.force-desktop table.fun100-desktop-wrapper,
body.force-desktop .fun100-desktop-wrapper {
  display: table !important;
  width: 990px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.force-desktop .fun100-mobile-wrapper {
  display: none !important;
}

body.force-mobile table.fun100-desktop-wrapper,
body.force-mobile .fun100-desktop-wrapper {
  display: none !important;
}
body.force-mobile .fun100-mobile-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
body.force-mobile {
  background-image: none !important;
  background-color: #FBB5D2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   2. 行動版專屬樣式 (全部嚴格作用於 .fun100-mobile-wrapper 下)
   ============================================================ */
.fun100-mobile-wrapper * {
  box-sizing: border-box;
}

.fun100-mobile-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft JhengHei", "微軟正黑體", sans-serif;
  color: #333333;
  line-height: 1.5;
  background-color: #FBB5D2;
  min-height: 100vh;
}

.fun100-mobile-wrapper a {
  text-decoration: none;
  color: inherit;
}

.fun100-mobile-wrapper img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 行動版頁首 (吸頂) */
.fun100-mobile-wrapper .mobile-header {
  background: #ffffff;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(194, 24, 91, 0.18);
}

/* 670:184 完美比例版頭背景 (多裝置防裁切) */
.fun100-mobile-wrapper .header-banner-area {
  position: relative;
  width: 100%;
  aspect-ratio: 670 / 184;
  background: url('../img/mobile_head_nightmarket.jpg') no-repeat center center;
  background-size: 100% 100%;
  overflow: hidden;
}

@supports not (aspect-ratio: 670 / 184) {
  .fun100-mobile-wrapper .header-banner-area {
    height: 0;
    padding-top: 27.4626%;
  }
}

.fun100-mobile-wrapper .brand-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 100%;
  display: block;
  text-decoration: none;
  z-index: 2;
}

.fun100-mobile-wrapper .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fun100-mobile-wrapper .menu-toggle {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(194, 24, 91, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2185b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 3;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fun100-mobile-wrapper .menu-toggle .icon-hamburger,
.fun100-mobile-wrapper .menu-toggle .icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
}

.fun100-mobile-wrapper .menu-toggle .icon-close {
  display: none;
}

/* 選單展開狀態：圖示平滑轉變為醒目精緻的 ✕ 關閉圖示 */
.fun100-mobile-wrapper .menu-toggle.active {
  background: #ffffff;
  color: #e53e3e;
  border-color: rgba(229, 62, 62, 0.35);
  box-shadow: 0 3px 10px rgba(229, 62, 62, 0.25);
  transform: rotate(90deg);
}

.fun100-mobile-wrapper .menu-toggle.active .icon-hamburger {
  display: none;
}

.fun100-mobile-wrapper .menu-toggle.active .icon-close {
  display: flex;
  transform: rotate(-90deg);
}

.fun100-mobile-wrapper .menu-toggle:active {
  transform: scale(0.92);
}

.fun100-mobile-wrapper .menu-toggle.active:active {
  transform: scale(0.92) rotate(90deg);
}

/* 搜尋列 */
.fun100-mobile-wrapper .search-bar {
  padding: 8px 12px 10px;
  background: #ffffff;
  border-bottom: 1px solid #f8bbd0;
}

.fun100-mobile-wrapper .search-bar form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fun100-mobile-wrapper .search-bar input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid #f48fb1;
  border-radius: 20px;
  font-size: 13.5px;
  background-color: #fff0f5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: none;
  color: #880e4f;
  transition: border-color 0.2s, background-color 0.2s;
}

.fun100-mobile-wrapper .search-bar input:focus {
  border-color: #c2185b;
  background-color: #ffffff;
}

.fun100-mobile-wrapper .search-bar button {
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(194, 24, 91, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.fun100-mobile-wrapper .search-bar button:active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* 導覽抽屜選單 */
.fun100-mobile-wrapper .mobile-nav {
  display: none;
  background: #2a111a;
  padding: 12px 15px;
  border-bottom: 3px solid #e91e63;
}

.fun100-mobile-wrapper .mobile-nav.active {
  display: block;
}

.fun100-mobile-wrapper .mobile-nav a.category-title {
  display: block;
  font-size: 13px;
  color: #f48fb1;
  font-weight: bold;
  margin: 10px 0 6px 0;
  border-bottom: 1px solid rgba(244, 143, 177, 0.3);
  padding-bottom: 4px;
}

.fun100-mobile-wrapper .mobile-nav a.category-title:first-child {
  margin-top: 0;
}

.fun100-mobile-wrapper .mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.fun100-mobile-wrapper .mobile-nav-grid a {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  font-size: 13px;
  padding: 8px 4px;
  text-align: center;
  border-radius: 6px;
  display: block;
  transition: background 0.2s;
}

.fun100-mobile-wrapper .mobile-nav-grid a:active,
.fun100-mobile-wrapper .mobile-nav-grid a.active {
  background: #c2185b;
  color: #ffffff;
}

/* 主題標籤滑動列 */
.fun100-mobile-wrapper .theme-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #f8bbd0;
  -webkit-overflow-scrolling: touch;
}

.fun100-mobile-wrapper .theme-chips-bar::-webkit-scrollbar {
  display: none;
}

.fun100-mobile-wrapper .theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  border-radius: 18px;
  font-size: 12.5px;
  background: #fce4ec;
  color: #880e4f;
  border: 1px solid #f48fb1;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.fun100-mobile-wrapper .theme-chip.active {
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
  color: #ffffff;
  border-color: #ad1457;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(194, 24, 91, 0.35);
}

/* 鄉鎮橫向滑動列 */
.fun100-mobile-wrapper .town-chips-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 7px 12px;
  background: #fde1ec;
  border-bottom: 1px solid #f8bbd0;
  -webkit-overflow-scrolling: touch;
}

.fun100-mobile-wrapper .town-chips-bar::-webkit-scrollbar {
  display: none;
}

.fun100-mobile-wrapper .town-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #880e4f;
  border: 1px solid #f48fb1;
  text-decoration: none;
  flex-shrink: 0;
  font-weight: bold;
  transition: all 0.15s ease;
}

.fun100-mobile-wrapper .town-chip:active {
  background: #c2185b;
  color: #ffffff;
  border-color: #c2185b;
}

/* 行動版主要內容容器 */
.fun100-mobile-wrapper .mobile-container {
  padding: 8px 8px 30px;
}

/* 通用區塊卡片 */
.fun100-mobile-wrapper .section-card {
  background: #ffffff;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(194, 24, 91, 0.12);
  border: 1.5px solid #f48fb1;
  overflow: hidden;
}

/* 區塊標題欄 (電腦版同款羅東夜市粉紅熱鬧風格) */
.fun100-mobile-wrapper .section-header {
  padding: 10px 14px;
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.fun100-mobile-wrapper .section-header.blue {
  background: linear-gradient(135deg, #ad1457 0%, #c2185b 100%);
}

.fun100-mobile-wrapper .section-header.coral {
  background: linear-gradient(135deg, #d81b60 0%, #f06292 100%);
}

.fun100-mobile-wrapper .section-header-badge {
  font-size: 11.5px;
  font-weight: normal;
  background: rgba(0, 0, 0, 0.16);
  padding: 2px 8px;
  border-radius: 10px;
  text-shadow: none;
}

/* ============================================================
   A 區：羅東夜市民宿精選焦點輪播 (比例 345:300)
   ============================================================ */
.fun100-mobile-wrapper .carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 345 / 300;
  background-color: #fce4ec;
  overflow: hidden;
}

@supports not (aspect-ratio: 345 / 300) {
  .fun100-mobile-wrapper .carousel-viewport {
    height: 0;
    padding-top: 86.9565%;
  }
}

.fun100-mobile-wrapper .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
}

.fun100-mobile-wrapper .carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.fun100-mobile-wrapper .carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* 全站鐵則：圖片照原始比例呈現，嚴禁裁切 (Zero-Crop Rule) */
.fun100-mobile-wrapper .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 核心決策：隱藏廣告大圖上的遮罩文字，保留按鈕即可 */
.fun100-mobile-wrapper .carousel-slide-caption {
  display: none !important;
}

.fun100-mobile-wrapper .carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.15s ease, background 0.15s ease;
}

.fun100-mobile-wrapper .carousel-nav-btn.prev {
  left: 10px;
}

.fun100-mobile-wrapper .carousel-nav-btn.next {
  right: 10px;
}

.fun100-mobile-wrapper .carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
  background: rgba(0, 0, 0, 0.65);
}

/* A 區快速切換名稱選單 (晶片清單) */
.fun100-mobile-wrapper .quick-bnb-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 10px;
  background: #fff0f5;
  border-top: 1px solid #f8bbd0;
  -webkit-overflow-scrolling: touch;
}

.fun100-mobile-wrapper .quick-bnb-list::-webkit-scrollbar {
  display: none;
}

.fun100-mobile-wrapper .quick-bnb-item {
  font-size: 11.5px;
  padding: 4px 9px;
  background: #ffffff;
  border: 1px solid #f48fb1;
  border-radius: 12px;
  color: #880e4f;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.fun100-mobile-wrapper .quick-bnb-item.active {
  background: #c2185b;
  color: #ffffff;
  border-color: #c2185b;
  font-weight: bold;
}

/* ============================================================
   B 區：推薦特色夜市・人氣首選 (卡片，一行一家大版面)
   ============================================================ */
.fun100-mobile-wrapper .b-zone-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.fun100-mobile-wrapper .b-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f48fb1;
  box-shadow: 0 2px 6px rgba(194, 24, 91, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

.fun100-mobile-wrapper .b-card:active {
  transform: scale(0.98);
}

.fun100-mobile-wrapper .b-card-img-box {
  width: 100%;
  aspect-ratio: 480 / 290;
  overflow: hidden;
  position: relative;
  background: #fff0f5;
}

@supports not (aspect-ratio: 480 / 290) {
  .fun100-mobile-wrapper .b-card-img-box {
    height: 0;
    padding-top: 60.4166%;
  }
}

/* 全站鐵則：圖片照原始比例呈現，嚴禁裁切 (Zero-Crop Rule) */
.fun100-mobile-wrapper .b-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fun100-mobile-wrapper .b-card-content {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fun100-mobile-wrapper .b-card-title {
  font-size: 15px;
  font-weight: bold;
  color: #880e4f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fun100-mobile-wrapper .b-card-tag {
  font-size: 10.5px;
  background: #fce4ec;
  color: #ad1457;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  flex-shrink: 0;
}

/* ============================================================
   跑馬燈快訊
   ============================================================ */
.fun100-mobile-wrapper .marquee-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1.5px solid #f48fb1;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(194, 24, 91, 0.08);
}

.fun100-mobile-wrapper .marquee-tag {
  background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fun100-mobile-wrapper .marquee-track {
  flex: 1;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  overflow: hidden;
  font-size: 13.5px;
}

.fun100-mobile-wrapper .marquee-track a {
  color: #b71c1c;
  font-weight: bold;
  text-decoration: none;
}

/* ============================================================
   C 區：精選優質夜市住宿 (雙欄等寬格狀展示)
   ============================================================ */
.fun100-mobile-wrapper .c-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.fun100-mobile-wrapper .c-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f48fb1;
  box-shadow: 0 2px 6px rgba(194, 24, 91, 0.08);
  transition: transform 0.15s ease;
  min-width: 0;
}

.fun100-mobile-wrapper .c-card:active {
  transform: scale(0.98);
}

.fun100-mobile-wrapper .c-card-img-box {
  width: 100%;
  aspect-ratio: 190 / 125;
  overflow: hidden;
  background: #fff0f5;
}

@supports not (aspect-ratio: 190 / 125) {
  .fun100-mobile-wrapper .c-card-img-box {
    height: 0;
    padding-top: 65.7894%;
  }
}

/* 全站鐵則：圖片照原始比例呈現，嚴禁裁切 (Zero-Crop Rule) */
.fun100-mobile-wrapper .c-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fun100-mobile-wrapper .c-card-title {
  padding: 6px 8px;
  font-size: 12.5px;
  font-weight: bold;
  color: #880e4f;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   羅東夜市好文推薦 (比照首頁樣式：左圖右文卡片式列表)
   ============================================================ */
.fun100-mobile-wrapper .blogger-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fun100-mobile-wrapper .blogger-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fce4ec;
  align-items: center;
}

.fun100-mobile-wrapper .blogger-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fun100-mobile-wrapper .blogger-thumb {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid #f48fb1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.fun100-mobile-wrapper .blogger-info {
  flex: 1;
  min-width: 0;
}

.fun100-mobile-wrapper .blogger-title {
  font-size: 13.5px;
  font-weight: bold;
  color: #880e4f;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  text-decoration: none;
}

.fun100-mobile-wrapper .blogger-title:hover,
.fun100-mobile-wrapper .blogger-title:active {
  color: #c2185b;
}

.fun100-mobile-wrapper .blogger-meta {
  font-size: 11.5px;
  color: #ad1457;
}

/* 頁尾相容樣式 */
.fun100-mobile-wrapper .mobile-footer {
  background: #fde1ec;
  border-top: 2px solid #f48fb1;
  padding: 20px 14px 28px;
  text-align: center;
  color: #880e4f;
  font-size: 12px;
}

.fun100-mobile-wrapper .mobile-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.fun100-mobile-wrapper .mobile-footer-links a {
  color: #880e4f;
  font-weight: bold;
  text-decoration: underline;
}

.fun100-mobile-wrapper .mobile-footer-copy {
  line-height: 1.6;
  color: #ad1457;
}

/* 浮動置頂按鈕 */
.fun100-mobile-wrapper .back-to-top {
  position: fixed;
  bottom: 22px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(194, 24, 91, 0.45);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.15s;
}

.fun100-mobile-wrapper .back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.fun100-mobile-wrapper .back-to-top:active {
  transform: scale(0.9);
}
