/* ========== i18n 載入前隱藏頁面，避免語言閃爍 ========== */
body:not(.i18n-ready) {
    opacity: 0;
}
body.i18n-ready {
    opacity: 1;
    transition: opacity 0.15s ease-in;
}

/* i18n: 與 main_simulation 表單統一的輸入高度，避免不同瀏覽器造成垂直位移 */
.standard-input,
.standard-select {
  height: 36px;
}

/* ========== 按鈕與間距修正 (2026-01-22) ========== */
.container {
    margin-top: 70px !important;
    padding-top: 0px !important;
}
#resetButton, #guideButton, #guidedSetupButton, #open-visual-canvas-btn {
    top: 0px !important;
}
/* 基本資料/進階資料區塊與按鈕的間距 */
.finance-sections {
    margin-top: 70px !important;
    padding-top: 0px !important;
}
@media screen and (max-width: 768px) {
    .container {
        margin-top: 70px !important;
        padding-top: 0px !important;
    }
    .finance-sections {
        margin-top: 80px !important;
        padding-top: 0px !important;
    }
}
/* 通用樣式（不與頁頭頁尾重複） */

.contact-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1565c0; /* 使用相同的深藍色 */
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: #1e88e5; /* 使用相同的主藍色 */
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #1565c0; /* 使用相同的深藍色 */
}

@media (max-width: 768px) {
    .contact-container {
        margin: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

:root {
    --gradient-start: #1e88e5;
    --gradient-end: #64b5f6;
    --dark-blue: #1565c0;
    --light-blue: #90caf9;
}

/* 頁首樣式 */
.gradient-header {
    background: linear-gradient(
        135deg,
        var(--gradient-start) 0%,
        var(--gradient-end) 70%,
        var(--gradient-end) 100%
    );
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
    overflow: visible;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 50px;
}

.gradient-header .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.gradient-header .logo img {
    height: 40px;
    width: auto;
    padding: 2px 0;
}

.gradient-header .nav-links {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.gradient-header .nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: inline-block;
}

.gradient-header .nav-links a:hover {
    background-color: var(--dark-blue);
}

/* 語言下拉（全站共用樣式） */
.language-dropdown { position: relative; }
/* 讓切換語言外觀與其他導覽連結一致，且不顯示下拉符號 */
.language-toggle {
    display: inline-block; background: transparent; border: none; color: #fff;
    cursor: pointer; padding: 0.3rem 0.5rem; font-size: inherit; font-weight: inherit;
    line-height: 1.2; border-radius: 4px; vertical-align: middle; font-family: inherit;
    -webkit-appearance: none; appearance: none;
}
.language-toggle:hover { background-color: var(--dark-blue); }
.language-toggle:focus { outline: none; }
.language-toggle .dropdown-arrow { display: none !important; }
.language-menu {
    position: absolute; top: calc(100% + 0.5rem); right: 0;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(15px);
    border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3); min-width: 140px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 10000;
}
.language-dropdown.open .language-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.language-option {
    display: flex; width: 100%; align-items: center; gap: 8px;
    background: transparent; border: none; cursor: pointer;
    padding: 10px 14px; color: #333; font-weight: 600;
}
.language-option:hover { background: rgba(0,0,0,0.05); }
.language-option .flag, .language-toggle .current-flag { display: none; }

/* 頁尾樣式 */
.gradient-footer {
    background: linear-gradient(
        135deg,
        var(--gradient-end) 0%,
        var(--gradient-start) 70%,
        var(--gradient-start) 100%
    );
    color: white;
    padding: 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    z-index: 1000;
}

.gradient-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.gradient-footer .footer-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.gradient-footer .copyright {
    color: white;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    margin-top: 0.25rem;
}

.gradient-footer a {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.gradient-footer a:hover {
    background-color: var(--dark-blue);
}

/* 響應式樣式 */
/* 小屏到中屏過渡：451px-576px - 使用漢堡選單 */
@media (max-width: 576px) and (min-width: 451px) {
    .gradient-header {
        padding: 0.65rem 0.9rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }
    
    .gradient-header .logo {
        font-size: 1.25rem;
        max-width: 70%;
    }
    
    .gradient-header .logo img {
        max-height: 34px;
        width: auto;
    }
    
    /* 桌面版導航隱藏 */
    .gradient-header .nav-links-desktop {
        display: none !important;
    }
    
    /* 漢堡按鈕顯示 */
    .mobile-menu-btn {
        display: flex !important;
        margin-left: auto;
    }
}

/* 小屏幕：450px以下 - 使用漢堡選單 */
@media (max-width: 450px) {
    .gradient-header {
        padding: 0.6rem 0.8rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }
    
    .gradient-header .logo {
        font-size: 1.2rem;
        max-width: 70%;
    }
    
    .gradient-header .logo img {
        max-height: 32px;
        width: auto;
    }
    
    /* 桌面版導航隱藏 */
    .gradient-header .nav-links-desktop {
        display: none !important;
    }
    
    /* 漢堡按鈕顯示 */
    .mobile-menu-btn {
        display: flex !important;
        margin-left: auto;
    }
    
    /* 手機版下拉選單在小屏幕的調整 */
    .mobile-nav-dropdown a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .gradient-footer {
        padding: 0.6rem 0.8rem;
    }
    
    .gradient-footer .footer-content {
        padding: 0;
        gap: 0.25rem;
    }
    
    .gradient-footer .copyright {
        font-size: 0.8rem;
        margin-top: 0.15rem;
    }
    
    .gradient-footer a {
        font-size: 0.8rem;
        padding: 0.25rem 0.4rem;
    }
}

/* 超小屏幕：320px-380px - 使用漢堡選單 */
@media (max-width: 380px) {
    .gradient-header {
        padding: 0.5rem 0.8rem;
        position: relative;
    }
    
    .gradient-header .logo {
        max-width: 70%;
        font-size: 1.1rem;
    }
    
    .gradient-header .logo img {
        max-height: 28px;
    }
    
    /* 桌面版導航隱藏 */
    .gradient-header .nav-links-desktop {
        display: none !important;
    }
    
    /* 漢堡按鈕顯示 */
    .mobile-menu-btn {
        display: flex !important;
        margin-left: auto;
        width: 36px;
        height: 36px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    /* 手機版下拉選單在超小屏幕的調整 */
    .mobile-nav-dropdown a {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .gradient-footer .copyright {
        font-size: 0.75rem;
    }
}

/* 漢堡按鈕樣式 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 10000;
    margin-left: auto;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 漢堡按鈕動畫 - 轉換成X */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 手機版下拉選單樣式 */
.mobile-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(
        135deg,
        var(--gradient-start) 0%,
        var(--gradient-end) 70%,
        var(--gradient-end) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 0;
    overflow: visible; /* 允許內部下拉（語言選單）超出容器顯示 */
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.mobile-nav-dropdown.active {
    max-height: 400px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.mobile-nav-dropdown a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center; /* 手機下拉文字置中 */
}

.mobile-nav-dropdown a:last-child {
    border-bottom: none;
}

.mobile-nav-dropdown a:hover,
.mobile-nav-dropdown a:active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 確保手機版選單在所有斷點都能正確顯示 */
@media (max-width: 768px) {
    .gradient-header {
        position: relative;
        overflow: visible !important;
    }
    
    .mobile-nav-dropdown {
        display: block !important;
    }
    /* 手機版：語言下拉容器置中且佔滿整列 */
    .mobile-nav-dropdown .language-dropdown {
        width: 100%;
        display: flex;
        justify-content: center;
        position: relative;
        padding: 0.5rem 0; /* 與其他項目留點距離 */
    }
    .mobile-nav-dropdown .language-menu {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -10px) !important;
        min-width: 160px;
    }
    .mobile-nav-dropdown .language-dropdown.open .language-menu {
        transform: translate(-50%, 0) !important;
    }

    /* 移除開始模擬左側裝飾線，置中更協調 */
    .mobile-nav-dropdown a[href="main_simulation.html"] {
        border-left: none;
    }
    
    /* 確保桌面版導航在手機版時隱藏 */
    .nav-links-desktop {
        display: none !important;
    }
    
    /* 確保漢堡按鈕在手機版時顯示 */
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* 特殊處理"開始模擬"按鈕在手機版中的樣式 */
.mobile-nav-dropdown a[href="main_simulation.html"] {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    font-weight: bold;
    border-left: 4px solid white;
}

.mobile-nav-dropdown a[href="main_simulation.html"]:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
}

/* 調試用：強制顯示手機版選單 (可在開發時啟用) */
/*
@media (max-width: 768px) {
    .mobile-nav-dropdown {
        max-height: 400px !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        border: 2px solid red;
        background: rgba(30, 136, 229, 0.9) !important;
    }
}
*/

@media (hover: none) {
    .gradient-header .nav-links a:active {
        background-color: var(--dark-blue);
    }
    
    .mobile-menu-btn:active {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* 桌面版螢幕：769px以上 */
@media (min-width: 769px) {
    /* 確保桌面版導航顯示 */
    .gradient-header .nav-links,
    .gradient-header .nav-links-desktop {
        display: flex !important;
    }
    
    /* 確保漢堡按鈕隱藏 */
    .mobile-menu-btn {
        display: none !important;
    }
    
    /* 確保手機版選單隱藏 */
    .mobile-nav-dropdown {
        display: none !important;
    }
}

/* 中大寬度屏幕：769px-992px */
@media (max-width: 992px) and (min-width: 769px) {
    .gradient-header .nav-links a {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
    }
}

/* 中等寬度屏幕：577px-768px - 使用漢堡選單 */
@media (max-width: 768px) and (min-width: 577px) {
    .gradient-header {
        padding: 0.7rem 1rem;
        position: relative;
    }
    
    .gradient-header .logo {
        font-size: 1.3rem;
        max-width: 70%;
    }
    
    .gradient-header .logo img {
        max-height: 35px;
    }
    
    /* 桌面版導航隱藏 */
    .gradient-header .nav-links-desktop {
        display: none !important;
    }
    
    /* 漢堡按鈕顯示 */
    .mobile-menu-btn {
        display: flex !important;
        margin-left: auto;
    }
} 
/* ========== Cookie 同意橫幅 ========== */
#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e1e2f 0%, #2d2d44 100%);
    color: #fff;
    padding: 16px 20px;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#cookieConsentBanner.cookie-slide-out {
    animation: cookieSlideDown 0.3s ease forwards;
}

@keyframes cookieSlideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    min-width: 280px;
}

.cookie-consent-content p i {
    color: #f59e0b;
    margin-right: 8px;
}

.cookie-consent-content a {
    color: #a78bfa;
    text-decoration: underline;
}

.cookie-consent-content a:hover {
    color: #c4b5fd;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 600px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent-content p {
        min-width: auto;
    }
}

/* ========================================
   subscription.html 頁面專用樣式
   從 HTML inline <style> 移出至獨立 CSS 檔案
   由 webpack bundle 打包壓縮
   ======================================== */

:root {
    --bg-color: #e6e6e6;
    --border-color: rgba(30, 136, 229, 0.15);
    --section-bg: #f1f5f9;
    --hover-shadow: rgba(30, 136, 229, 0.2);
}

body {
    background: linear-gradient(135deg,
        rgba(30, 136, 229, 0.1) 0%,
        rgba(30, 136, 229, 0.15) 30%,
        rgba(30, 136, 229, 0.2) 70%,
        rgba(30, 136, 229, 0.25) 100%);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
    min-height: 100vh;
}

/* 主要內容區 */
.main-content {
    margin-top: 0;
    padding: 0;
}

/* 全寬度區塊容器 */
.section {
    width: 100%;
    padding: 4rem 0;
    position: relative;
}

/* 全螢幕藍色背景 */
.section.light-gradient {
    background: linear-gradient(135deg,
        rgba(30, 136, 229, 0.1) 0%,
        rgba(30, 136, 229, 0.15) 30%,
        rgba(30, 136, 229, 0.2) 70%,
        rgba(30, 136, 229, 0.25) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 4rem 0;
}

/* 現代化無容器設計 */
.section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* 大標題區域 */
.hero-title {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.hero-title h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-title p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* 訂閱功能卡片 */
.subscription-features {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.subscription-features:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.subscription-features h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gradient-start);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    text-align: center;
}

.subscription-features h3 i {
    font-size: 0.9em;
    opacity: 0.8;
}

/* 價格區標題置中（含圖示） */
.price-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* 功能區塊和價格區塊樣式 */
.features-section {
    display: flex;
    flex-direction: column;
}

.price-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* 功能列表樣式 */
.feature-list {
    margin-top: 2rem;
    list-style: none;
    padding: 0;
    text-align: center;
}

.feature-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: clamp(1.15rem, 1.4vw, 1.35rem);
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--gradient-start);
    font-size: 1.1rem;
    opacity: 0.8;
}

/* 價格容器 */
.price-container {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.price-container:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.price-container h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gradient-start);
}

/* 價格卡片容器 */
.price-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.price-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.price-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.price-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gradient-start);
}

.price-amount {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.price-divider {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gradient-start);
    margin: 0 1rem;
}

/* 付款方式網格 */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.payment-method {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.payment-method-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.payment-method-header img {
    height: 40px;
    margin-right: 15px;
    border-radius: 8px;
}

.payment-method-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--gradient-start);
}

.payment-container {
    margin: 1.5rem 0;
    text-align: center;
}

/* 現代化按鈕樣式 */
.button {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    justify-content: center;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(30, 136, 229, 0.4);
    background: linear-gradient(45deg, var(--gradient-end), var(--gradient-start));
}

.button:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.button:disabled:hover {
    background: #cccccc !important;
    transform: none !important;
}

/* 條款同意區域 */
.terms-agreement {
    margin: 2rem 0;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 2px solid rgba(30, 136, 229, 0.2);
    backdrop-filter: blur(5px);
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
}

.terms-checkbox-label input[type="checkbox"] {
    margin: 0;
    transform: scale(1.3);
}

.terms-checkbox-label a {
    color: var(--gradient-start);
    text-decoration: underline;
    font-weight: 600;
}

.payment-note {
    margin-top: 1rem;
    text-align: center;
}

.payment-note small {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
}

.payment-processing-message {
    display: none;
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(240, 247, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(30, 136, 229, 0.2);
    color: var(--gradient-start);
    font-weight: 500;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
    }

    .section-content {
        padding: 0 1rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .payment-method {
        padding: 1.5rem;
    }

    .subscription-features,
    .price-container {
        padding: 1.5rem;
    }

    .feature-list li {
        padding: 0.6rem 0;
        font-size: 1rem;
        justify-content: center;
    }

    .price-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .price-cards {
        flex-direction: column;
        gap: 1.5rem;
    }

    .price-card {
        min-width: auto;
        padding: 1.5rem;
    }

    .price-divider {
        margin: 0.5rem 0;
        font-size: 1rem;
    }

    .price-amount {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .section-content {
        padding: 0 2rem;
    }
}

/* 語言下拉（與首頁一致） */
.language-dropdown { position: relative; }
.language-toggle { display: inline-block; background: transparent; border: none; color: #fff; cursor: pointer; padding: 0.3rem 0.5rem; font-size: inherit; font-weight: inherit; line-height: 1.2; border-radius: 4px; vertical-align: middle; font-family: inherit; -webkit-appearance: none; appearance: none; }
.language-toggle:hover { background-color: var(--gradient-start); }
.language-toggle:focus { outline: none; }
.language-toggle .dropdown-arrow { display: none !important; }
.language-menu {
    position: absolute; top: calc(100% + 0.5rem); right: 0;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(15px);
    border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3); min-width: 140px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 10000;
}
.language-dropdown.open .language-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.language-option {
    display: flex; width: 100%; align-items: center; gap: 8px;
    background: transparent; border: none; cursor: pointer;
    padding: 10px 14px; color: #333; font-weight: 600;
}
.language-option:hover { background: rgba(0,0,0,0.05); }
.language-option .flag, .language-toggle .current-flag { display: none; }

