body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

.nav-link {
    transition: color 0.3s, border-bottom-color 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

/* 【最終修正】使用 !important 確保樣式絕對生效 */
.nav-link-mobile.active {
    color: #0d6efd !important;
    font-weight: 700 !important;
    background-color: #e7f1ff !important;
}

.btn-primary {
    background-color: #0d6efd;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.tab.active {
    background-color: #0d6efd;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.performance-toggle.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* --- 最受歡迎方案樣式 --- */
.plan-popular {
    position: relative;
    border-color: #0d6efd;
    transform: scale(1.03);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    z-index: 10;
}

.plan-popular::before {
    content: '最多人選擇';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d6efd;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* --- 手機版懸浮 LOGO 樣式 --- */
#fixed-icon {
    position: fixed;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;

    width: 70px;
    height: 70px;
    bottom: 15px;
    left: 15px;
    top: auto;
}

#fixed-icon img {
    width: 100%;
    height: auto;
    padding: 8px;
    transition: transform 0.3s ease;
}

#fixed-icon:hover img {
    transform: scale(1.08) rotate(-10deg);
}

#fixed-icon.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* --- 提升電腦版基礎字體大小 --- */
@media (min-width: 1024px) {
    html {
        font-size: 112.5%; /* 將基礎字體從 16px 提升至 18px */
    }
}

/* --- Swiper 輪播樣式微調 --- */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff; /* 按鈕顏色 */
    background-color: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem; /* 調整箭頭大小 */
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
    width: 10px;
    height: 10px;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #0d6efd; /* 使用網站主題藍色 */
}

/* --- 【最終修正】改用 CSS 動畫實現閃爍效果，移除 .flash-bg --- */
@keyframes yellow-flash {
  from { background-color: #fffbe5; }
  to { background-color: transparent; }
}

section:target {
  animation: yellow-flash 1.5s ease-out;
}
