/*
 * 算力云 - 流量卡页面专用样式
 * Data SIM Card Page Styles
 */

/* ==================
   全局样式变量定义
   ================== */
:root {
    --datesim-primary: #2563eb;
    --datesim-primary-light: #3b82f6;
    --datesim-primary-dark: #1d4ed8;
    --datesim-secondary: #10b981;
    --datesim-accent: #f59e0b;
    --datesim-gradient: linear-gradient(135deg, var(--datesim-primary) 0%, var(--datesim-primary-light) 100%);
    --datesim-gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    --datesim-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
    --datesim-shadow-hover: 0 20px 60px rgba(37, 99, 235, 0.25);
}

/* ==================
   Hero区域增强
   ================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 流量卡特色展示 */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-feature i {
    font-size: 1.25rem;
    color: #ffffff;
}

.hero-feature span {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ==================
   产品区域美化
   ================== */
.section-products {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-products-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-products-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--datesim-primary) 0%, var(--datesim-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-products-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--datesim-gradient);
    border-radius: 2px;
}

.section-products-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.7;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--datesim-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--datesim-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.view-all-link:hover {
    background: var(--datesim-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ==================
   选项卡美化
   ================== */
.tabs {
    margin-bottom: 4rem;
}

.tabs-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.tab-trigger {
    padding: 1rem 2rem;
    border-radius: 50px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s;
}

.tab-trigger:hover::before {
    left: 100%;
}

.tab-trigger:hover {
    color: var(--datesim-primary);
}

.tab-trigger-active {
    background: var(--datesim-gradient);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

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

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

/* ==================
   套餐卡片美化
   ================== */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.plan-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--datesim-primary) 0%, var(--datesim-primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--datesim-shadow-hover);
}

.plan-card.featured {
    transform: scale(1.05);
    border-color: var(--datesim-primary);
}

.plan-card.featured::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--datesim-secondary) 0%, #34d399 100%);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--datesim-accent) 0%, #fbbf24 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.plan-info {
    padding: 2.5rem 2rem 1.5rem;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2rem;
    position: relative;
}

.plan-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--datesim-gradient);
    border-radius: 2px;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--datesim-gradient-soft);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.plan-feature:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    transform: translateX(5px);
}

.plan-feature.bonus {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: var(--datesim-secondary);
    font-weight: 600;
}

.plan-icon {
    font-size: 1.25rem;
    color: var(--datesim-primary);
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.plan-feature.bonus .plan-icon {
    color: var(--datesim-secondary);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.plan-action {
    padding: 0 2rem 2.5rem;
}

.plan-pricing {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-card {
    flex: 1;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--datesim-primary);
    transform: translateY(-2px);
}

.price-card.featured {
    background: var(--datesim-gradient-soft);
    border-color: var(--datesim-primary);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price-period {
    font-weight: 700;
    color: #475569;
    font-size: 0.875rem;
}

.price-badge {
    background: var(--datesim-gradient);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-content {
    padding: 1.5rem;
}

.price-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.price-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}

.price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.25rem;
}

.price-member {
    color: var(--datesim-primary);
}

.plan-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    background: var(--datesim-gradient);
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    white-space: nowrap;
}

.plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.plan-btn:hover::before {
    left: 100%;
}

.plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

/* ==================
   特性展示区域
   ================== */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-box {
    text-align: center;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--datesim-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--datesim-shadow);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--datesim-gradient-soft);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--datesim-primary);
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.feature-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-box p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

/* ==================
   CTA区域美化
   ================== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--datesim-primary) 0%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.cta-container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn-primary {
    background: #ffffff;
    color: var(--datesim-primary);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.cta-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.cta-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.benefit-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================
   流量卡优势区域样式
   ================== */
.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.advantage-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--datesim-primary) 0%, var(--datesim-primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--datesim-shadow-hover);
}

.advantage-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--datesim-gradient-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--datesim-primary);
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon-wrapper {
    transform: scale(1.1);
    background: var(--datesim-gradient);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.advantage-card:hover .advantage-icon-wrapper i {
    color: #ffffff;
}

.advantage-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==================
   响应式设计
   ================== */
@media (max-width: 1200px) {
    .plan-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .section-products-title {
        font-size: 2.5rem;
    }

    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-feature {
        width: 100%;
        justify-content: center;
    }

    .section-products {
        padding: 80px 0;
    }

    .section-products-title {
        font-size: 2rem;
    }

    .tabs-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-trigger {
        width: 100%;
        text-align: center;
    }

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

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

    .plan-pricing {
        flex-direction: column;
    }

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

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-benefits {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .section-products-title {
        font-size: 1.75rem;
    }

    .plan-info {
        padding: 2rem 1.5rem 1rem;
    }

    .plan-action {
        padding: 0 1.5rem 2rem;
    }

    .feature-box {
        padding: 2rem 1.5rem;
    }
}