/* ===================================
   專案自訂樣式 - 循環杯服務一站通
   ================================== */

/* ===== 顏色變數 ===== */
:root {
    --primary-color: #199E9D;
    --secondary-color: #d4eb00;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --text-primary: #000000;
    --text-secondary: #656565;
    --text-muted: #939393;
    --border-color: #e0e0e0;
    --article-gradient-start: #edfff3;
    --article-gradient-end: #eaf8e0;
    
    /* 字體大小變數 */
    --size-12: .75rem;
    --size-13: .8125rem;
    --size-14: .875rem;
    --size-15: .9375rem;
    --size-16: 1rem;
    --size-18: 1.125rem;
    --size-20: 1.25rem;
    --size-22: 1.375rem;
}

/* ===== 全域樣式 ===== */
body {
    background-color: var(--light-bg);
    font-family: 'Noto Sans TC', 'Noto Sans CJK TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

a, a:hover {
   text-decoration: none;
}

/* ===== 無障礙輔助 ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ===== 導航欄樣式 ===== */

.header-top {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* navbar-brand 作為 h1 的樣式重置 */
.navbar-brand {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: normal;
    line-height: normal;
}

.navbar-brand a {
    display: inline-block;
    text-decoration: none;
}

header .navbar {
   padding: 10px 0;
   position: relative;
}
 
header .navbar-nav .nav-link{
   border-bottom: 1px dashed rgba(255,255,255,.5);
   padding-left: 10px;
   font-size: var(--size-18);
   color: #000000;
}
header .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: 0;
}

header .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}
header .navbar-toggler {
   border: 0;
   width: 40px;
   height: 40px;
   border-radius: 50% 0 50% 50%;
   background: var(--white);
   text-align: center;
   padding: 0;
   color: #000000;
   vertical-align: bottom;
}
header .navbar-toggler:hover {
   color: var(--primary-color);
}
header .navbar-toggler:focus {
   box-shadow: 0 0 0 0.15rem rgba(25, 158, 157, 1);
}

header .navbar-collapse {
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   background-color: var(--secondary-color);
   border-top: 1px solid #ffffff;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   z-index: 1000;
   padding: 0 1rem 0.5rem;
}
/* ===== 主視覺區 ===== */
.hero-section {
    margin-top: 0;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* ===== 首頁 - 功能區 ===== */
.menu-section {
    position: relative;
    margin-top: -24px;
}

.index-search-title {
    background: var(--primary-color);
    color: #ffffff;
    display: inline-block;
    font-weight: 700;
    font-size: var(--size-22);
    letter-spacing: 1px;
    padding: 0.25rem 0;
    border-radius: 70px;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
    width: 213px;
    text-align: center;
}
.index-search-title img {
   margin-left: 4px;
   margin-right: 4px;
   vertical-align: sub;
}

.search-card {
    background: linear-gradient(180deg, var(--white) 0%, #f0f0f0 100%);
    border: 3px solid var(--primary-color);
    border-radius: 24px;
    box-shadow: 0 8.75px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
}
.search-card-title {
   font-size: var(--size-22);
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.25;
}
.search-card  .text-muted {
   font-size: var(--size-15);
   margin-bottom: 0;
}

.search-item {
    display: block;
    transition: background-color 0.3s ease;
    padding: 1rem 0;
}

.search-item:hover {
    background-color: rgba(25, 158, 157, 0.05);
}
.search-item img {
   margin-bottom: 8px;
}

.search-card .border-end {
    border-color: var(--white) !important;
}

/* ===== 快捷功能區 ===== */
.quick-links {
   margin-top: 20px;
   margin-bottom: 20px;
}
.quick-links .card {
    border-radius: 30px;
    border: none;
    transition: all 0.3s ease;
    height: 110px;
    box-shadow: 0 4px 8.75px rgba(0, 0, 0, 0.05);
    border: 1px solid #ffffff;
}
.quick-links .card:hover .quick-link-title {
    color: var(--primary-color);
}
.quick-link-card {
    display: block;
}
.quick-links .card-body img {
   margin-bottom: 6px;
   padding: 0;
}
.quick-links .card-body {
   font-size: var(--size-18);
}
.quick-link-title {
    font-weight: 600;
    margin: 0;
}


/* ===== 文章卡片區 ===== */
.article-card {
    border-radius: 30px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.article-link {
    display: block;
    height: 100%;
    color: inherit;
}

.article-link:hover .card-title {
    color: var(--primary-color);
}

.article-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    background: linear-gradient(180deg, var(--article-gradient-start) 0%, var(--article-gradient-end) 100%);
}

.article-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px 30px 0 0;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.05);
}

.article-card .card-title {
    color: var(--primary-color);
    transition: color 0.3s ease;
    font-size: var(--size-20);
    margin-bottom: 4px;
}

.article-card .card-text {
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--size-16);
}
.article-card .card-body{
   padding-bottom: 20px;
}



/* ===== Footer 樣式 ===== */
.footer-section {
   padding: 16px 0;
}
.footer-section p {
    color: #6c6c6c;
    font-size: var(--size-12);
    margin-bottom: 0;
    text-align: center;
}

/* ===================================
   地圖查詢頁面
   ================================== */

/* 地圖容器 */
.map-section {
    position: relative;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 漸層遮罩 */
.map-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: linear-gradient(180deg, rgba(93, 93, 93, 0.5) 0%, rgba(195, 195, 195, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.map-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 177px;
    background: linear-gradient(0deg, rgba(93, 93, 93, 0.5) 0%, rgba(195, 195, 195, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* 搜尋控制區 */
.map-controls {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 8px;
}

/* 搜尋框 */
.search-box {
    position: relative;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 4px 8.75px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.search-box i.far {
    font-size: var(--size-16);
    flex-shrink: 0;
    color: var(--primary-color);
}

.search-box .form-control {
    border: none;
    padding: 0;
    font-size: var(--size-16);
    color: var(--text-primary);
    background: transparent;
    box-shadow: none;
}

.search-box .form-control::placeholder {
    color: #cbcbcb;
}

.search-box .form-control:focus {
    outline: none;
    box-shadow: none;
}

/* 地圖頁面的品牌篩選按鈕 */
.btn-filter {
    background: var(--white);
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 4px 8.75px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--size-16);
    color: #252525;
    font-weight: 400;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    background: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #252525;
}

.btn-filter i {
    font-size: var(--size-16);
    color: var(--primary-color);
}

/* 我的位置按鈕 */
.btn-location {
    position: absolute;
    bottom: 200px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--white);
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 3.5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.btn-location:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-location i {
    font-size: 14px;
    color: var(--text-primary);
}

/* 店家資訊卡片 - Swiper 輪播 */
.store-info-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-info-section.show {
    transform: translateY(0);
}

.store-info-section > .container-fluid {
    padding: 0;
}

.store-swiper {
    width: 100%;
    padding-bottom: 8px;
}

.store-swiper .swiper-wrapper {
    padding-bottom: 8px;
}

.store-swiper .swiper-slide {
    width: auto;
    max-width: calc(100% - 48px);
    padding: 0;
    background: transparent;
}

.store-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 8.75px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    width: 100%;
    min-height: 124px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-slide-active .store-card {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.store-card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.store-brand {
    flex-shrink: 0;
}

/* 地圖頁面的品牌圖示（方形） */
.store-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 3.5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 4px;
}

.store-brand .brand-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-details {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.store-distance {
    display: inline-block;
    font-size: var(--size-14);
    color: #636363;
    margin-bottom: 0;
    line-height: 1.25;
}

/* 地圖頁面的店名樣式 */
.store-card .store-name {
    font-size: var(--size-22);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

/* 地圖頁面的地址樣式 */
.store-card .store-address {
    font-size: var(--size-15);
    color: #636363;
    margin: 0;
    margin-left: 0;
    padding-right: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: baseline;
}

.store-card .store-address i {
    color: var(--primary-color);
    font-size: 15px;
    flex-shrink: 0;
}

.store-actions {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.btn-action {
    width: 32px;
    height: 32px;
    background: var(--secondary-color);
    border: none;
    border-radius: 16px 16px 0 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: #c5db00;
    transform: scale(1.05);
}

.btn-action i {
    font-size: var(--size-14);
}

/* 地圖頁面的品牌篩選側邊欄（特殊樣式） */
/* .map-section ~ .brand-sidebar {
    max-width: 440px;
}

.map-section ~ .brand-sidebar .sidebar-header {
    padding: 16px 20px;
    background: var(--secondary-color);
    border-bottom: none;
}

.map-section ~ .brand-sidebar .btn-close-sidebar {
    background: transparent;
    padding: 8px;
    font-size: var(--size-20);
    line-height: 1;
}

.map-section ~ .brand-sidebar .btn-close-sidebar:hover {
    background: transparent;
    transform: scale(1.1);
}

.map-section ~ .brand-sidebar .sidebar-content {
    background: #f9f9f9;
} */


/* 品牌篩選側邊欄 - 通用樣式 */
.brand-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #F9F9F9;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.brand-sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    font-size: var(--size-20);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.btn-close-sidebar {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    
}

.btn-close-sidebar:hover {
    background: var(--light-bg);
    color: var(--text-primary);
}

.btn-close-sidebar i {
    font-size: var(--size-20);
}

.sidebar-tools {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.btn-select-all,
.btn-clear-all {
    flex: 1;
    padding: 8px 10px;
    font-size: var(--size-14);
    border: 1px solid var(--border-color);
}

.btn-select-all {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.btn-clear-all {
    background: #f3f3f3;
    color: var(--text-primary);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.brand-category {
    margin-bottom: 24px;
}

.category-title {
    font-size: var(--size-15);
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.brand-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.brand-item {
    position: relative;
    display: flex;
    align-items: center;
}

.brand-item .brand-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.brand-card {
    flex: 1;
    background: var(--white);
    border-radius: 12px;
    padding: 3px 6px 8px;
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-direction: column;
    box-shadow: 0 2px 3.5px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.brand-card:hover {
    border-color: var(--border-color);
}

.brand-label {
    flex: 1;
    font-size: var(--size-15);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
}

.brand-check-mark {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.brand-item .brand-check:checked ~ .brand-check-mark {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    opacity: 1;
}
.brand-item .brand-check:checked + .brand-card{
    border: 2px solid var(--secondary-color);
}
.brand-check-mark i {
    font-size: var(--size-13);
    color: var(--white);
    color: #000000;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    gap: 12px;
    background: #ffffff;
}
.btn {
    border-radius: 6px;
    font-size: var(--size-16);
    padding: 11px;
    min-width: 70px;
}

.btn-cancel {
    background: #F3F3F3;
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-apply {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.btn-apply:hover {
    background: #c5db00;
    box-shadow: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   單一店家頁面樣式 (mapsearch02)
   ================================== */

/* 返回按鈕 */
.btn-back {
    background: var(--white);
    border: none;
    width: 48px;
    height: 48px;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 3.5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0;

}

.btn-back:hover {
    transform: translateY(-1px);
    background: var(--white);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.btn-back:active, .btn-back:first-child:active {
    background: #ffffff;
}

.btn-back i {
    color: var(--primary-color);
    font-size: var(--size-16);
}
.btn:first-child:active {
    color: #707070;
    border-color: #707070;
    box-shadow: none;
}
/* 單一店家卡片樣式 */
.store-card-single {
    max-width: none;
    width: 100%;
    min-height: auto;
    padding: 20px;
    gap: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
}

.store-card-single .store-card-header {
    margin-bottom: 4px;
}

.store-card-single .store-address {
    padding-right: 0;
    white-space: normal;
}

/* 店家資訊項目 */
.store-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--size-16);
    color: #636363;
    margin: 0;
    align-items: center;
}

.store-info-item i {
    color: var(--primary-color);
    font-size: var(--size-16);
    flex-shrink: 0;
    margin-top: 2px;
}

.store-info-item span {
    flex: 1;
    line-height: 1.5;
}

/* 服務項目區域 */
.store-services {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e9e9e9;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f7f7;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--size-14);
    font-weight: 500;
}

.service-badge i {
    font-size: var(--size-14);
}

/* 操作按鈕群組 */
.store-actions-group {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #e9e9e9;
}

.btn-action-icon {
    gap: 4px;
    background: #F3F3F3;
    transition: all 0.3s ease;
}

.btn-action-icon:hover {
    background: #e6e6e6;
}

.btn-action-icon i {
    font-size: var(--size-16);
    color: #636363;
}
.btn-custom-primary {
    background: var(--secondary-color);
    border-radius: 6px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}



.btn-custom-primary:hover {
    background: #c5db00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8.75px rgba(212, 235, 0, 0.3);
}

.btn-custom-primary i {
    font-size: var(--size-16);
}

/* 純文字操作項 */
.store-action-text {
    /* display: flex;
    align-items: center;
    justify-content: center; */
    padding: 12px 16px;
    background: var(--white);
    font-size: var(--size-16);
    font-weight: 400;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.5;
}

/* 電話資訊樣式調整 */
.store-card-single .store-info-item {
    margin-bottom: 0;
}

.store-card-single .store-info-item span {
    font-weight: 400;
}

.btn-feedback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F3F3;
    color: var(--primary-color);
    text-align: center;
    line-height: 36px;
    font-size: var(--size-16);
    position: absolute;
    right: 20px;
    bottom: 98px;
    border: none;
}
/* ===================================
   循環杯服務 Modal (Bootstrap 5)
   ================================== */

/* 小型居中 Modal 樣式 */
#cupServiceModal .modal-dialog {
    max-width: 480px;
    border-radius: 16px;
}

#cupServiceModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    position: relative;
}

#cupServiceModal .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

#cupServiceModal .modal-body {
    padding: 48px 32px 24px;
}

#cupServiceModal .modal-footer {
    padding: 0 32px 32px;
}

.modal-title {
    font-size: var(--size-20);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.5;
}

.modal-subtitle {
    font-size: var(--size-16);
    color: #636363;
    margin: 0;
    line-height: 1.5;
}

.btn-modal-cancel,
.btn-modal-confirm {
    flex: 1;
    max-width: 180px;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: var(--size-16);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel {
    background: #f3f3f3;
    color: var(--text-primary);
}

.btn-modal-cancel:hover {
    background: #e6e6e6;
}

.btn-modal-confirm {
    background: var(--secondary-color);
    color: var(--text-primary);
    text-decoration: none;
}

.btn-modal-confirm:hover {
    background: #c5db00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 235, 0, 0.3);
    color: var(--text-primary);
}

/* 借還說明 Modal (居中) */
#borrowInfoModal .modal-dialog {
    max-width: 540px;
    max-height: 90vh;
}

#borrowInfoModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    position: relative;
}

#borrowInfoModal .btn-close,
#feedbackModal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

#borrowInfoModal .modal-header {
    background: var(--white);
    padding: 20px 20px 0;
    flex-shrink: 0;
}

.brand-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.brand-logo-modal {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: var(--white);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-name {
    font-size: var(--size-20);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}

.modal-brand-title {
    font-size: var(--size-20);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}

#borrowInfoModal .modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.borrow-info-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-image {
    width: 100%;
    text-align: center;
}

.info-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.info-text {
    font-size: var(--size-15);
    color: var(--text-primary);
    line-height: 1.6;
}

.info-text p {
    margin: 0 0 12px;
}

.info-text p:last-child {
    margin-bottom: 0;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}

.info-link {
    margin-top: 8px;
}

.link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--size-15);
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-with-icon:hover {
    color: #147b7a;
}

.link-with-icon i {
    font-size: var(--size-14);
}

/* ===================================
   門市查詢頁面
   ================================== */

/* 頁面標題區 */
.wrapper {
    background: #F9F9F9;
}

/* 搜尋區域 */
.search-section {
    padding: 0;
}

.result-count {
    font-size: var(--size-14);
    color: #636363;
    margin: 0;
}

/* ===== 分頁導航 ===== */
.pagination {
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 3px;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    color: var(--text-primary);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    font-size: var(--size-16);
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pagination .page-item .page-link:hover {
    background-color: rgba(25, 158, 157, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-item .page-link:focus {
    box-shadow: 0 0 0 0.15rem rgba(25, 158, 157, 0.3);
    z-index: 3;
}

/* Active 當前頁面 */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
}

.pagination .page-item.active .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Disabled 停用狀態（上一頁/下一頁禁用） */
.pagination .pagination-prev.disabled .page-link,
.pagination .pagination-next.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--light-bg);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .pagination-prev.disabled .page-link:hover,
.pagination .pagination-next.disabled .page-link:hover {
    background-color: var(--light-bg);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* 上一頁/下一頁特殊樣式 */
.pagination .pagination-prev .page-link,
.pagination .pagination-next .page-link {
    padding: 0.5rem 0.875rem;
    min-width: 40px;
}

.pagination .pagination-prev .page-link i,
.pagination .pagination-next .page-link i {
    font-size: var(--size-16);
    line-height: 1;
}

/* 省略號樣式 */
.pagination .page-item.disabled span.page-link {
    color: var(--text-muted);
    background-color: transparent;
    border-color: transparent;
    cursor: default;
    opacity: 1;
    pointer-events: none;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    padding: 0.5rem 0.5rem;
}

.pagination .page-item.disabled span.page-link:hover {
    background-color: transparent;
    border-color: transparent;
}

/* RWD: 手機版調整 */
@media (max-width: 767.98px) {
    .pagination {
        gap: 3px;
    }
    
    .pagination .page-item .page-link {
        padding: 0.375rem 0.625rem;
        font-size: var(--size-14);
        min-width: 36px;
        height: 36px;
    }
    
    .pagination .pagination-prev .page-link,
    .pagination .pagination-next .page-link {
        padding: 0.375rem 0.625rem;
        min-width: 36px;
    }
    
    .pagination .pagination-prev .page-link i,
    .pagination .pagination-next .page-link i {
        font-size: var(--size-14);
    }
    
    .pagination .page-item.disabled span.page-link {
        height: 36px;
        padding: 0.375rem 0.375rem;
    }
}

/* 門市列表 */
.store-list-section {
    padding: 0 0 40px;
}

.store-list-card {
    display: block;
    background: var(--white);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.store-list-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 確保 Bootstrap col 不會被文字內容撐開 */
.store-list-card .col {
    min-width: 0;
}

.store-list-brand {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.store-list-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.store-list-info {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.store-list-city {
    display: inline-block;
    font-size: var(--size-14);
    color: #636363;
    background: #f3f3f3;
    padding: 5px 10px;
    border-radius: 15px;
    margin-bottom: 2px;
    line-height: 1;
}

.store-list-name {
    font-size: var(--size-22);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.store-list-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: var(--size-14);
    color: #636363;
    margin: 0;
    line-height: 1.6;
}

.store-list-address i {
    color: var(--primary-color);
    font-size: var(--size-14);
    flex-shrink: 0;
    margin-top: 2px;
}

.store-list-arrow {
    color: #c7c7c7;
    font-size: var(--size-18);
}

/* 門市查詢頁面 - 篩選區域樣式 */
.filter-section {
    margin-bottom: 24px;
}

.filter-section-title {
    font-size: var(--size-16);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.filter-region {
    padding: 0 4px;
}

.region-select {
    font-size: var(--size-15);
    color: var(--text-primary);
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 10px 34px 10px 12px;
    background-color: var(--white);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
}

.region-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 158, 157, 0.1);
}

/* 搜尋表單區的 input 樣式 (與 select 一致) */
.search-form-section .form-control {
    font-size: var(--size-15);
    color: var(--text-primary);
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 10px 12px;
    background-color: var(--white);
}

.search-form-section .form-control::placeholder {
    color: #b8b8b8;
}

.search-form-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 158, 157, 0.1);
}

.search-form-section .btn {
    padding: 9px 11px;
}

/* ===================================
   門市查詢頁面 (storesearch.html)
   ================================== */


.form-section-title {
    font-size: var(--size-16);
    font-weight: 500;
    color: var(--text-primary);
    margin: 16px 0 12px;
}


/* 查詢按鈕 */
.search-button-wrapper {
    margin-top: 24px;
    padding: 0 4px;
    margin-bottom: 24px;
}


.btn-listback {
    color: #252525;
}
.btn-listback i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* 查詢列表標題區 */
.store-list-header {
    padding: 16px 0 12px;
}



/* ===================================
   活動列表頁面
   ================================== */

/* 活動標題區 */
.page-head{
    padding: 12px;
}

.page-head-title {
    font-size: var(--size-20);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}
.page-head-title img {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

/* 活動列表 */
.activity-list-section {
    padding: 0 0 40px;
}

.activity-list-card {
    display: block;
    background: var(--white);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.activity-list-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.activity-list-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.activity-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-list-content {
    padding: 8px 8px 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.activity-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.activity-list-content .tag {
    display: inline-block;
    font-size: var(--size-14);
    padding: 3px 10px;
    border-radius: 15px;
    line-height: 1.2;
}

.activity-list-content .tag-discount {
    background-color: #D1F9E3;
    color: #25A4A1;
}

.activity-list-content  .tag-news {
    background-color: #F7FBCD;
    color: #967300;
}

.activity-list-content  .date {
    font-size: var(--size-14);
    color: #636363;
}

.activity-list-content .title {
    font-size: var(--size-22);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-list-arrow {
    color: #c7c7c7;
    font-size: var(--size-18);
    padding: 0 8px;
}

/* ===================================
   服務指引頁面
   ================================== */

/* 文章內容區 */
.post-content-section {
    padding: 0 0 40px;
}

.post-content {
    background: var(--white);
    padding: 24px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* ===================================
   常見問題頁面
   ================================== */

/* 常見問題列表 */
.faq-list-section {
    padding: 0 0 40px;
}

/* FAQ Accordion 樣式 */
.faq-item {
    background: var(--white);
    border: none;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.accordion-item:first-of-type, 
.accordion-item:last-of-type {
    border-radius: 12px;
}
.faq-item .accordion-header {
    margin: 0;
}

.faq-item .accordion-button {
    font-size: var(--size-18);
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--white);
    padding: 16px 20px;
    border: none;
    box-shadow: none;
    position: relative;
}

.faq-item .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.faq-item .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.faq-item .accordion-button::after {
    content: "\f078";
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    background-image: none;
    width: auto;
    height: auto;
    font-size: var(--size-13);
    color: var(--primary-color);
}

.faq-item .accordion-button:not(.collapsed)::after {
    content: "\f077";
    color: var(--white);
    transform: none;
}


.faq-item .accordion-collapse {
    border: none;
    background: #ffffff;
}

.faq-item .accordion-body {
    padding: 16px;
    font-size: var(--size-16);
    color: #000000;
    line-height: 1.5;
}

.faq-item .accordion-body p {
    margin: 0 0 12px;
}

.faq-item .accordion-body p:last-child {
    margin-bottom: 0;
}


.cppage {
    padding: 0 12px;
}
.cppage .date {
    font-size: var(--size-14);
    color: #636363;
}
.cppage .title {
    font-size: var(--size-22);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 10px;
}


.feedback-form {
    color: #636363;
}

.feedback-form .form-label {
    margin-bottom: 0;
}
.feedback-form .store-name {
    font-size: var(--size-20);
    font-weight: 500;
    color: var(--primary-color);
}

/* ===== 響應式設計 ===== */

@media (min-width: 768px) {
    .hero-section {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .brand-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

}

@media (max-width: 767.98px) {
    /* 活動列表縮圖在手機版調整 */
    .activity-list-thumb {
        width: 100px;
        height: 100px;
        margin-right: 10px;
    }
    
    .activity-list-title {
        font-size: var(--size-15);
    }
    
    .activity-list-arrow {
        padding: 0 4px;
        font-size: var(--size-16);
    }
    
    /* 文章內容區在手機版調整 */
    .post-content {
        padding: 20px 16px;
    }
    
}

/* ===================================
   意見回饋 Modal - 自訂 Checkbox 選項
   =================================== */

/* 選項區塊 */
.feedback-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 待選標簽卡片 */
.feedback-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f2f2f2;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: var(--size-18);
    color: var(--text-secondary);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
}

/* Icon 占位區塊 (未來加圖用) */
.feedback-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: auto;
    flex-shrink: 0;
}

.feedback-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 選取狀態 - 綠色 */
.feedback-check:checked + .feedback-option {
    background: #e8f6f5;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.feedback-modal-content.feedback-success-only .feedback-form-body,
.feedback-modal-content.feedback-success-only .feedback-modal-footer {
    display: none;
}

.feedback-modal-content.feedback-success-only #feedbackMessage {
    margin-bottom: 0;
}
