/* ============================================================
   首页（index.php）专属样式
   ============================================================ */

/* 主色调变量 */
:root {
    --modern-primary: #6366f1;
    --modern-primary-dark: #4f46e5;
    --modern-secondary: #8b5cf6;
    --modern-accent: #ec4899;
    --modern-success: #10b981;
    --modern-bg: #f8fafc;
    --modern-text: #1e293b;
    --modern-text-light: #64748b;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.main-content {
    overflow-x: hidden;
}

/* ============ Hero 区块 ============ */
.hero-modern {
    position: relative;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    padding: 80px 0 120px;
    overflow: hidden;
    min-height: 600px;
}

.min-vh-75 {
    min-height: 75vh;
}

/* 动态背景装饰 */
.hero-bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #f59e0b;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #ec4899;
    top: 40%;
    left: 40%;
    animation-delay: 10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* 折扣徽章 */
.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 #fbbf24;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* 主标题 */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 0 8px;
}

/* 副标题 */
.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

/* CTA 按钮 */
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: white;
    color: var(--modern-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    color: var(--modern-primary-dark);
}

.btn-ghost-modern {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-ghost-modern:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    transform: translateY(-3px);
}

.btn-lg-modern {
    padding: 18px 40px;
    font-size: 1.15rem;
}

/* 信任标识 */
.trust-indicators {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.trust-item i {
    font-size: 1.1rem;
    color: #fbbf24;
}

.trust-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.3);
}

/* Hero 右侧视觉 */
.hero-visual {
    position: relative;
    height: 500px;
}

.float-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: floatCard 6s infinite ease-in-out;
}

.main-card {
    width: 320px;
    padding: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.card-header-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.card-title-sm {
    font-weight: 700;
    color: var(--modern-text);
    font-size: 1.1rem;
}

.card-subtitle-sm {
    color: var(--modern-text-light);
    font-size: 0.85rem;
}

.amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 16px 0;
}

.amount-display .currency {
    font-size: 1.8rem;
    color: var(--modern-text-light);
    margin-right: 4px;
}

.amount-display .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--modern-text);
    line-height: 1;
}

.discount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.original-price {
    text-decoration: line-through;
    color: var(--modern-text-light);
    font-size: 0.9rem;
}

.discount-tag {
    background: var(--gradient-accent);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.final-price {
    color: var(--modern-success);
    font-weight: 700;
    font-size: 1.1rem;
}

.progress-modern {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-success);
    border-radius: 10px;
    animation: progressAnim 3s infinite;
}

@keyframes progressAnim {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 100%; }
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--modern-text-light);
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--modern-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.mini-card {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--modern-text);
}

.mini-card i {
    color: var(--modern-primary);
    font-size: 1.1rem;
}

.mini-card-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.mini-card-2 {
    bottom: 20%;
    left: 0;
    animation-delay: 2s;
}

.mini-card-3 {
    bottom: 5%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes floatCard {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

.mini-card-1, .mini-card-2, .mini-card-3 {
    animation: floatCardSmall 4s infinite ease-in-out;
}

@keyframes floatCardSmall {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 波浪过渡 */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ============ 通用区块样式 ============ */
.section-eyebrow {
    display: inline-block;
    color: var(--modern-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--modern-text);
    margin-bottom: 0;
}

/* ============ 运营商展示 ============ */
.carriers-section {
    background: white;
}

.carrier-showcase {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    background: #f8fafc;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrier-showcase:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.carrier-show-mobile:hover { border-color: #0084CF; }
.carrier-show-unicom:hover { border-color: #E60012; }
.carrier-show-telecom:hover { border-color: #005BAC; }

.carrier-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    object-fit: contain;
}

.carrier-showcase h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--modern-text);
    margin-bottom: 8px;
}

.carrier-showcase p {
    color: var(--modern-text-light);
    margin: 0;
}

/* ============ 核心优势 ============ */
.features-modern {
    background: var(--modern-bg);
}

.feature-card-modern {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid #e2e8f0;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: var(--modern-primary);
}

.feature-icon-modern {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.icon-gradient-1 { background: var(--gradient-primary); }
.icon-gradient-2 { background: var(--gradient-success); }
.icon-gradient-3 { background: var(--gradient-accent); }
.icon-gradient-4 { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }

.feature-card-modern h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--modern-text);
    margin-bottom: 12px;
}

.feature-card-modern p {
    color: var(--modern-text-light);
    margin: 0;
    line-height: 1.6;
}

/* ============ 热门套餐 ============ */
.packages-modern {
    background: white;
}

.package-card-modern {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    position: relative;
    height: 100%;
}

.package-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
    border-color: var(--modern-primary);
}

.package-popular {
    border-color: var(--modern-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    transform: scale(1.05);
}

.package-popular:hover {
    transform: scale(1.05) translateY(-12px);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    white-space: nowrap;
}

.package-header-modern {
    margin-bottom: 20px;
}

.package-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--modern-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-price-modern {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 8px;
}

.package-price-modern .currency {
    font-size: 1.8rem;
    color: var(--modern-text-light);
    margin-right: 4px;
}

.package-price-modern .price-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--modern-text);
    line-height: 1;
}

.package-original {
    color: var(--modern-text-light);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.package-discount-price {
    color: var(--modern-text-light);
    margin-bottom: 24px;
    font-size: 1rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--modern-text);
    font-size: 0.95rem;
}

.package-features i {
    color: var(--modern-success);
    font-size: 0.9rem;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-package {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: #f1f5f9;
    color: var(--modern-text);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-package:hover {
    background: var(--modern-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-package-popular {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-package-popular:hover {
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
}

/* ============ 充值流程 ============ */
.process-modern {
    background: var(--modern-bg);
}

.process-step-modern {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.process-step-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.step-number-modern {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--modern-text);
    margin-bottom: 6px;
}

.step-content p {
    color: var(--modern-text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* ============ 用户评价 ============ */
.testimonials-modern {
    background: white;
}

.testimonial-card-modern {
    background: #f8fafc;
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.testimonial-card-modern:hover {
    background: white;
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.quote-icon {
    color: var(--modern-primary);
    font-size: 1.5rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.testimonial-text {
    color: var(--modern-text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.avatar-2 { background: var(--gradient-accent); }
.avatar-3 { background: var(--gradient-success); }

.testimonial-name {
    font-weight: 700;
    color: var(--modern-text);
}

.testimonial-location {
    color: var(--modern-text-light);
    font-size: 0.85rem;
}

.testimonial-rating {
    color: #fbbf24;
    margin-left: auto;
}

.testimonial-rating i {
    font-size: 0.9rem;
}

/* ============ CTA 区块 ============ */
.cta-section {
    background: var(--modern-bg);
}

.cta-box {
    background: var(--gradient-primary);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
}

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

.cta-content .btn-primary-modern:hover {
    background: #f8fafc;
    color: var(--modern-primary-dark);
}

/* ============ 响应式 ============ */
@media (max-width: 991.98px) {
    .hero-modern {
        padding: 60px 0 100px;
        min-height: auto;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .package-popular {
        transform: scale(1);
    }
    .package-popular:hover {
        transform: translateY(-12px);
    }
}

@media (max-width: 767.98px) {
    .hero-modern {
        padding: 48px 0 80px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .hero-cta .btn-modern {
        width: 100%;
    }
    .trust-indicators {
        justify-content: center;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .package-price-modern .price-number {
        font-size: 3rem;
    }
    .cta-box {
        padding: 40px 24px;
    }
    .cta-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    .hero-modern {
        padding: 36px 0 70px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .trust-indicators {
        gap: 12px;
    }
    .trust-divider {
        display: none;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .feature-card-modern,
    .package-card-modern,
    .process-step-modern,
    .testimonial-card-modern {
        padding: 20px 16px;
    }
    .carrier-logo {
        width: 60px;
        height: 60px;
    }
}
