/* 全新會員升級頁面樣式 */

/* 重置和基礎樣式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 主容器 */
.main {
    background: linear-gradient(135deg, #F3F5F7 0%, #e8ecf0 100%);
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(204, 3, 3, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(208, 13, 9, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(204, 3, 3, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    flex-direction: column;
}

/* 英雄區域 */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 0 60px;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(204, 3, 3, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 3, 3, 0.2);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #CC0303;
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    margin-bottom: 40px;
}

.title-highlight {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
    margin-bottom: 16px;
}

.title-subtitle {
    display: block;
    font-size: 20px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #CC0303;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 英雄視覺區域 */
.hero-visual {
    flex: 1;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 20px;
}

.floating-cards-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 526px;
    gap: 20px;
}

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    flex: 1;
    min-width: 120px;
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}


.card-icon {
    font-size: 33px;
    margin-bottom: 8px;
    display: block;
}

.card-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* 週期選擇器 */
.period-selector {
    margin: 60px 0;
    display: flex;
    justify-content: center;
}

.selector-wrapper {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 6px;
    border: 2px solid #e0e0e0;
    display: flex;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* overflow: hidden; */
}

.selector-bg {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(33.33% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(135deg, #CC0303, #D00D09);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: translateX(102%);
}

.selector-bg.months-selected {
    transform: translateX(0%);
}

.selector-bg.year-selected {
    transform: translateX(204%);
}

.period-option {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 10px 0px;
    width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 600;
    flex: 1;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.period-option:hover {
    color: #333;
}

.period-option.active {
    color: white;
}

.period-option.recommended {
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 15px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 107, 107, 0.6);
    }
}

.option-title {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 700;
}

.option-subtitle {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
}

/* 方案容器 */
.plans-container {
    padding: 0px 0 90px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* max-width: 1200px; */
    margin: 0 auto;
    align-items: stretch;
}

/* 方案卡片 */
.plan-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
    border: 2px solid #CC0303;
    /* transform: scale(1.02); */
}

.plan-card.premium {
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 220, 0.95) 100%); */
    border: 2px solid #D00D09;
}

/* 方案標籤 */
.featured-badge,
.premium-badge {
    position: absolute;
    top: 0px;
    right: -2px;
    padding: 8px 20px;
    border-radius: 0 10px 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.featured-badge {
    background: linear-gradient(135deg, #CC0303, #D00D09);
}

.premium-badge {
    background: linear-gradient(135deg, #D00D09, #CC0303);
    color: white;
}

/* 方案頭部 */
.plan-header {
    text-align: center;
    margin-bottom: 32px;
}

.plan-tier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tier-icon {
    font-size: 32px;
}

.tier-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    text-align: center;
}

.tier-name-red {
    color: #cc0303;
    margin-top: 0px;
}

.tier-name-red .save-indicator.red-color {
    color: #cc0303;
}

.plan-img {
    width: 100%;
    margin-bottom: 20px;
}

.plan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plan-price {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #CC0303;
    margin-bottom: 8px;
}

.price-period {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 22px;
    background-color: #cc0303;
    padding: 2px 10px;
    border-radius: 5px;

}

/* 功能列表 */
.plan-features {
    margin-bottom: 32px;
    flex: 1;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.feature-check {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #CC0303, #D00D09);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-check svg {
    width: 12px;
    height: 12px;
    color: white;
}

/* 方案操作區域 */
.plan-action {
    text-align: center;
}

.action-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.current-btn {
    background: #337ab7;
    color: #fff;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(135deg, #CC0303, #D00D09);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(204, 3, 3, 0.4);
}

.premium-btn {
    background: linear-gradient(135deg, #D00D09, #CC0303);
    color: white;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(208, 13, 9, 0.4);
}

.btn-icon {
    font-size: 18px;
}

/* 支付選項 */
.payment-options {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.payment-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-btn:hover {
    border-color: #CC0303;
    color: #CC0303;
}

.payment-btn.paypal:hover {
    border-color: #0070ba;
    color: #0070ba;
}

.premium-note {
    font-size: 12px;
    color: #CC0303;
    font-weight: 600;
    text-align: center;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 0 40px;
    }

    .hero-visual {
        height: 250px;
    }

    .floating-cards-container {
        max-width: 400px;
        gap: 15px;
    }

    .floating-card {
        padding: 16px;
    }

    .card-icon {
        font-size: 24px;
    }

    .card-text {
        font-size: 11px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .plan-card.featured {
        transform: none;
    }

    .plan-card {
        height: auto;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 15px;
        gap: 0;
    }

    .title-highlight {
        font-size: 36px;
    }

    .title-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .hero-visual {
        height: auto;
        padding: 0;
        width: 100%;
        background-color: transparent;
    }

    .floating-cards-container {
        /* flex-direction: column; */
        gap: 12px;
        max-width: 100%;
        /* max-width: 300px; */
    }

    .floating-card {
        padding: 12px;
        min-width: auto;
    }

    .card-icon {
        font-size: 20px;
    }

    .card-text {
        font-size: 14px;
    }

    .period-selector {
        margin: 0;
    }

    .selector-wrapper {
        /* flex-direction: column; */
        gap: 0px;
        width: 100%;
    }

    .period-option {
        min-width: auto;
    }

    .plans-container {
        padding: 40px 0 60px;
    }

    .plan-card {
        padding: 24px;
    }

    .price-amount {
        font-size: 36px;
    }

    .payment-options {
        flex-direction: column;
        gap: 6px;
    }

    .payment-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .title-highlight {
        font-size: 28px;
    }

    .title-subtitle {
        font-size: 16px;
    }

    .hero-title {
        margin-bottom: 20px;
    }

    .hero-badge {
        padding: 10px 24px;
        margin-bottom: 20px;
    }

    .hero-section {
        gap: 30px;
        padding: 50px 0 30px 0;
    }

    .hero-stats {
        /* flex-direction: column; */
        gap: 30px;
    }

    .floating-card {
        padding: 15px;
        min-width: 30%;
    }

    .card-icon {
        font-size: 24px;
    }

    .plan-card {
        padding: 20px;
    }

    .tier-name {
        font-size: 20px;
    }

    .price-amount {
        font-size: 32px;
    }
}

/* 動畫效果 */
.plan-card {
    animation: slideInUp 0.6s ease-out;
}

.plan-card:nth-child(1) {
    animation-delay: 0.1s;
}

.plan-card:nth-child(2) {
    animation-delay: 0.2s;
}

.plan-card:nth-child(3) {
    animation-delay: 0.3s;
    box-shadow: 0 8px 18px rgba(204, 3, 3, 0.8);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* 價格切換動畫 */
.price-amount.price-changing {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.15s ease;
}

/* 焦點狀態 */
.action-btn:focus,
.payment-btn:focus,
.period-option:focus {
    outline: 3px solid rgba(204, 3, 3, 0.3);
    outline-offset: 2px;
}

/* 滾動效果 */
.plan-card {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .plan-card:nth-child(1) {
        order: 3;
    }
    
    .plan-card:nth-child(2) {
        order: 2;
    }
    
    .plan-card:nth-child(3) {
        order: 1;
        box-shadow: 0 3px 10px rgba(204, 3, 3, 0.8);
    }
}