/* ==================== */
/* 基礎變數設定 */
/* ==================== */
:root {
    --primary: #4A90D9;
    --primary-dark: #2E6BB5;
    --primary-light: #6BA8E5;
    --primary-pale: #E8F2FC;
    --accent: #FF6B35;
    --accent-light: #FF8F66;
    --success: #22C55E;
    --warning: #F59E0B;
    --dark: #1A1A2E;
    --dark-soft: #2D2D44;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6B7280;
    --gray-300: #D1D5DB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #4A90D9 0%, #6BA8E5 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ==================== */
/* Hero 區塊 */
/* ==================== */
.hero {
    background: var(--gradient-dark);
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(74, 144, 217, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 144, 217, 0.2);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(74, 144, 217, 0.3);
}

.hero h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 16px;
    color: var(--gray-300);
    max-width: 500px;
    margin: 0 auto;
}

/* ==================== */
/* Tab 導航 */
/* ==================== */
.tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-btn:hover {
    background: var(--primary-pale);
    color: var(--primary);
    border-color: var(--primary-light);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.tab-btn .emoji {
    margin-right: 6px;
}

/* ==================== */
/* Tab 內容 */
/* ==================== */
.tab-content {
    display: none;
    padding: 48px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* 區塊標題 */
/* ==================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-header p {
    font-size: 15px;
    color: var(--gray-500);
}

/* ==================== */
/* 功能列表（月租型共用功能） */
/* ==================== */
.features-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
}

.features-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-box h3::before {
    content: '✦';
    color: var(--primary);
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    list-style: none;
}

.features-list li {
    font-size: 14px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

.features-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

/* ==================== */
/* 定價卡片 Grid */
/* ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.pricing-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ==================== */
/* 定價卡片 */
/* ==================== */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--primary);
}

.pricing-card.popular::before {
    content: '推薦';
    position: absolute;
    top: 16px;
    right: -28px;
    background: var(--gradient-accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 32px;
    transform: rotate(45deg);
}

.pricing-card.enterprise {
    background: var(--gradient-dark);
    color: var(--white);
}

.pricing-card.enterprise .card-title,
.pricing-card.enterprise .card-subtitle,
.pricing-card.enterprise .price,
.pricing-card.enterprise .price-period,
.pricing-card.enterprise .feature-item {
    color: var(--white);
}

.pricing-card.enterprise .feature-item::before {
    color: var(--primary-light);
}

/* 卡片標籤 */
.card-badge {
    display: inline-block;
    background: var(--primary-pale);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.pricing-card.enterprise .card-badge {
    background: rgba(74, 144, 217, 0.2);
    color: var(--primary-light);
}

/* 卡片標題 */
.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* 價格 */
.price-block {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-card.enterprise .price-block {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.price {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.price .currency {
    font-size: 18px;
    font-weight: 600;
}

.price-period {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.price-note {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.pricing-card.enterprise .price-note {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
}

/* 功能列表 */
.feature-list {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}

.feature-item {
    font-size: 14px;
    color: var(--gray-700);
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-item::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item.highlight {
    font-weight: 600;
    color: var(--primary-dark);
}

.feature-item.highlight::before {
    color: var(--primary);
}

.feature-item.disabled {
    color: var(--gray-300);
    text-decoration: line-through;
}

.feature-item.disabled::before {
    content: '✕';
    color: var(--gray-300);
}

/* CTA 按鈕 */
.cta-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cta-btn.primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.cta-btn.secondary:hover {
    background: var(--primary-pale);
    color: var(--primary);
    border-color: var(--primary-light);
}

.cta-btn.accent {
    background: var(--gradient-accent);
    color: var(--white);
}

.cta-btn.accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== */
/* 比較表格 */
/* ==================== */
.comparison-section {
    margin-top: 60px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.comparison-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--gray-700);
}

.comparison-table tr:hover td {
    background: var(--primary-pale);
}

.comparison-table .check {
    color: var(--success);
    font-weight: 700;
}

.comparison-table .cross {
    color: var(--gray-300);
}

/* ==================== */
/* 第二年續約資訊 */
/* ==================== */
.renewal-info {
    margin-top: 20px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.renewal-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.renewal-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.renewal-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
}

.renewal-note {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* 推薦卡片的續約樣式 */
.pricing-card.popular .renewal-info {
    background: var(--primary-pale);
    border-left-color: var(--primary-dark);
}

/* ==================== */
/* 加購項目 */
/* ==================== */
.addon-section {
    margin-top: 48px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.addon-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.addon-item span:first-child {
    font-size: 14px;
    color: var(--gray-700);
}

.addon-item span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* ==================== */
/* 私有雲特殊樣式 */
/* ==================== */
.enterprise-note {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.1) 0%, rgba(107, 168, 229, 0.05) 100%);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 40px;
}

.enterprise-note h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enterprise-note p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
}

.enterprise-note ul {
    margin-top: 12px;
    padding-left: 20px;
}

.enterprise-note li {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 4px;
}

/* ==================== */
/* 不包含項目 */
/* ==================== */
.exclude-section {
    margin-top: 32px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--warning);
}

.exclude-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.exclude-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
}

.exclude-list li {
    font-size: 13px;
    color: var(--gray-500);
}

.exclude-list li::before {
    content: '✕';
    color: var(--gray-400);
    margin-right: 6px;
}

/* ==================== */
/* Footer */
/* ==================== */
.pricing-footer {
    text-align: center;
    padding: 48px 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.pricing-footer p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==================== */
/* RWD 響應式 */
/* ==================== */
@media (max-width: 768px) {
    .hero {
        padding: 40px 16px 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .tab-nav {
        gap: 6px;
        padding: 12px 16px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .tab-content {
        padding: 32px 16px 48px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .features-box {
        padding: 20px;
    }

    .features-list {
        flex-direction: column;
        gap: 8px;
    }

    .comparison-table {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
}

/* ==================== */
/* 服務特色區塊 */
/* ==================== */
.service-section {
    background: var(--white);
    padding: 60px 20px;
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: var(--primary-pale);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.service-content p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ==================== */
/* FAQ 問與答區塊 */
/* ==================== */
.faq-section {
    background: var(--gray-100);
    padding: 60px 20px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--primary-pale);
    color: var(--primary-dark);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 24px 24px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 12px;
}

.faq-answer ul {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-answer li {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 4px;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
}

.faq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.faq-table th,
.faq-table td {
    padding: 12px;
    border: 1px solid var(--gray-300);
    text-align: left;
    vertical-align: top;
}

.faq-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
}

.faq-table ul {
    margin: 0;
    padding-left: 16px;
}

.faq-table li {
    margin-bottom: 2px;
}

/* ==================== */
/* 聯絡區塊 */
/* ==================== */
.contact-section {
    background: var(--gradient-primary);
    padding: 60px 20px;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 32px;
    line-height: 1.5;
}

.contact-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-width: 280px;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-content {
    text-align: left;
}

.contact-card-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.contact-card-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

/* ==================== */
/* Footer 底部 */
/* ==================== */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 48px 20px 24px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 14px;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1000px;
    margin: 24px auto 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.footer-notice {
    font-size: 12px;
    color: var(--gray-500);
}

/* ==================== */
/* RWD 響應式補充 */
/* ==================== */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-section h2 {
        font-size: 20px;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}