/* 基本設定 */
:root {
    --primary-color: #27ae60;    /* 翠綠色，代表成功與金流 */
    --secondary-color: #2c3e50;  /* 深藍色，代表穩定與專業 */
    --accent-color: #e67e22;     /* 橘色，用於強調支付功能 */
    --purple-color: #8e44ad;     /* 紫色，用於法規與發票 */
    --bg-light: #f9fbfd;
    --white: #ffffff;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

/* 導覽列 */
header {
    background: var(--white);
    padding: 1.2rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-download {
    background: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700 !important;
}

/* 首屏廣告 */
.hero {
    padding: 100px 5%;
    background: linear-gradient(135deg, #2c3e50 0%, #27ae60 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    display: none;
/* display: inline-block; */
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 定價區塊 */
.pricing {
    padding: 100px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.price-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.highlight {
    border-color: var(--primary-color);
    position: relative;
}

.price-card.highlight::before {
    content: "熱門首選";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 30px;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1;
}

.price-card ul li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-card ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.features {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    /* 加入您要求的左邊距 (對應 10dp) */
    margin-left: 10px; 
}

.feature-grid {
    display: grid;
    /* 這裡會自動處理 4 個卡片的排列 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* 確保圖示顏色與支付包一致 (選用) */
.feature-card i.fa-credit-card {
    color: var(--accent-color); /* 橘色或您定義的支付色 */
}

/* 圖文模組 $1 加購樣式 */
.visual-addon {
    margin-top: 20px;
    padding: 15px;
    background: #f0f7ff;
    border: 1px dashed #3498db;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #2980b9;
}

/* 按鈕樣式 */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 頁尾 */
footer {
    padding: 50px 5%;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    margin-top: 100px;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    nav ul { display: none; } /* 手機版可考慮隱藏或做漢堡選單 */
    .pricing-grid { grid-template-columns: 1fr; }
}

.price-card.addon {
    opacity: 0.9;
}

/* 步驟標籤 */
.step-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.step-badge-addon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* 提示文字 */
.req-text {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    border-top: 1px dashed var(--color-border);
    padding-top: 10px;
}

.btn-card-primary:hover {
    background: #219150;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* 首屏高亮文案框 */
.highlight-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 30px;
    border-radius: 15px;border-left: 6px solid var(--primary-color);
    display: inline-block;
    margin: 25px 0;
    text-align: left;
}
.highlight-box p {
    margin: 5px 0 !important;
    font-size: 1.15rem;
}

/* 價格卡片層次 */
.price-card.membership {
    border: 3px solid var(--primary-color);
    transform: scale(1.05); /* 稍微放大核心會員版 */
    z-index: 10;
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.2);
}

/* 複選資格說明 */
.membership-req {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

/* 重新顯示按鈕並美化 */
.btn-primary-hero {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: 0.3s;
    display: inline-block;
}
.btn-card-primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* --- 導覽列核心修正 --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap; /* 確保不換行，或是 wrap 視需求而定 */
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

/* --- 手機版 (Portrait) 修正 --- */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 2%;
    }

    /* 隱藏 Logo 的後半段文字，節省空間 */
    .hide-mobile {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    nav ul {
        display: flex !important; /* 強制顯示 */
        gap: 8px;
    }

    nav ul li {
        margin-left: 8px;
    }

    nav ul li a {
        font-size: 0.85rem; /* 縮小文字 */
    }

    .btn-download {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    /* Hero 文字縮小 */
    .hero h1 { font-size: 1.8rem; }
    .highlight-box { padding: 10px; font-size: 0.9rem; }
    
    .pricing-grid {
        grid-template-columns: 1fr; /* 定價改為單欄 */
    }
    
    .price-card.membership {
        transform: none; /* 手機版不放大 */
        margin-bottom: 20px;
    }
}

/* --- 價格標籤樣式 --- */
.step-label {
    background: var(--primary-color);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.step-label-addon {
    background: var(--secondary-color);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}
