/* ===== 套餐頁面樣式 ===== */

.pricing-container {
    min-height: 80vh;
    padding: 3rem 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 50px rgba(218, 165, 32, 0.3);
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.4);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-badge.popular {
    background: var(--gradient-2);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.8rem;
    font-family: 'Noto Serif TC', serif;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.card-price {
    text-align: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.2rem;
    color: var(--text-secondary);
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0.2rem;
}

.period {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.save-tag {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(245, 87, 108, 0.3));
    color: #FF6B6B;
    padding: 0.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.card-features {
    flex: 1;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item.highlight {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), transparent);
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
}

.feature-item.highlight i {
    color: #FFD700;
}

.purchase-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.card-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== 常見問題 ===== */
.faq-section {
    margin: 4rem 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.2);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.faq-question i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.faq-question h4 {
    font-size: 1.3rem;
    font-family: 'Noto Serif TC', serif;
    color: var(--text-primary);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    padding-left: 2.5rem;
}

/* ===== 安全保證 ===== */
.trust-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 4rem;
}

.trust-section h3 {
    font-size: 2rem;
    font-family: 'Noto Serif TC', serif;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.trust-item p {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== 模態框 ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--secondary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 2rem;
    font-family: 'Noto Serif TC', serif;
}

.modal-body {
    text-align: center;
}

.modal-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.demo-info {
    background: rgba(218, 165, 32, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: left;
}

.demo-info h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.demo-info ul {
    list-style: none;
    padding: 0;
}

.demo-info li {
    padding: 0.5rem 0;
    color: var(--text-primary);
}

.demo-info li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.highlight-text {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.2);
    border-left: 4px solid var(--secondary-color);
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .card-header h3 {
        font-size: 1.5rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    .trust-items {
        grid-template-columns: 1fr;
    }

    .faq-answer p {
        padding-left: 0;
    }
}
