/* TIZI Homepage - Premium Light Tech */

.home-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.home-page { overflow-x: hidden; }

.home-hero {
    position: relative;
    min-height: clamp(520px, 85vh, 760px);
    display: flex;
    align-items: center;
    margin: -2rem -1rem 0;
    padding: 4rem 1.5rem 5rem;
    background: linear-gradient(165deg, #f8fafc 0%, #eef6ff 35%, #f0fdfa 70%, #f8fafc 100%);
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59, 130, 246, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.1), transparent);
    pointer-events: none;
}

.home-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    pointer-events: none;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
    font-size: 0.8rem;
    font-weight: 500;
    color: #2563eb;
    backdrop-filter: blur(8px);
}

.home-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px #22d3ee;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.home-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.home-title-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-stat {
    text-align: center;
    padding: 1rem;
}

.home-stat-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.home-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3b82f6;
    margin-bottom: 0.75rem;
}

.home-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-glass-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.04),
        0 20px 50px -12px rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(0.21, 1.02, 0.73, 1), box-shadow 0.35s ease;
}

.home-glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 12px -2px rgba(15, 23, 42, 0.06),
        0 28px 60px -12px rgba(59, 130, 246, 0.18);
}

.home-feature-icon {
    width: 3rem; height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.08));
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.home-step-num {
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.home-node-map {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%);
    overflow: hidden;
}

.home-node-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(34, 211, 238, 0.15), transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(99, 102, 241, 0.12), transparent 45%);
}

.home-node-dot {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 16px #22d3ee, 0 0 32px rgba(34, 211, 238, 0.4);
    animation: node-pulse 3s ease-in-out infinite;
}

@keyframes node-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.home-pricing-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.35s ease;
}

.home-pricing-card.featured {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 25px 60px -15px rgba(59, 130, 246, 0.25);
    transform: scale(1.02);
}

.home-pricing-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 50px -12px rgba(59, 130, 246, 0.12);
    transform: translateY(-4px);
}

.home-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-faq-item.open {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
}

.home-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #0f172a;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.home-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

.home-faq-item.open .home-faq-a {
    max-height: 200px;
    padding: 0 1.5rem 1.25rem;
}

.home-faq-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: #94a3b8;
}

.home-faq-item.open .home-faq-chevron {
    transform: rotate(180deg);
    color: #3b82f6;
}

.home-cta {
    position: relative;
    border-radius: 2rem;
    padding: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0e7490 100%);
    overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 60%);
    pointer-events: none;
}

.home-trust-logo {
    height: 28px;
    opacity: 0.35;
    filter: grayscale(100%);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #64748b;
}

.home-hero-img {
    border-radius: 1.5rem;
    box-shadow: 0 40px 80px -20px rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.home-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.21, 1.02, 0.73, 1);
}

.home-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Download section */
.home-download-section {
    background: linear-gradient(180deg, #fff 0%, #f0f9ff 50%, #fff 100%);
}

.home-download-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.home-download-pill-android {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}
.home-download-pill-android:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.25);
}
.home-download-pill-windows {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}
.home-download-pill-windows:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.25);
}
.home-download-pill-mac {
    background: linear-gradient(135deg, #f5f5f5, #e5e5e5);
    color: #404040;
    border-color: rgba(115, 115, 115, 0.25);
    box-shadow: 0 4px 20px rgba(115, 115, 115, 0.15);
}
.home-download-pill-mac:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(115, 115, 115, 0.25);
}

.home-download-card {
    padding: 2rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}
.home-download-card:not(.is-disabled):hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.14);
}
.home-download-card.is-disabled { opacity: 0.72; }

.home-download-card-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
}
.home-download-card-icon-android {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}
.home-download-card-icon-windows {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.home-download-card-icon-mac {
    background: linear-gradient(135deg, #737373, #404040);
    color: #fff;
    box-shadow: 0 8px 24px rgba(64, 64, 64, 0.35);
}

.home-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
}
.home-download-btn-android {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}
.home-download-btn-android:hover {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}
.home-download-btn-windows {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.home-download-btn-windows:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}
.home-download-btn-mac {
    background: linear-gradient(135deg, #525252, #262626);
    color: #fff;
    box-shadow: 0 8px 24px rgba(64, 64, 64, 0.35);
}
.home-download-btn-mac:hover {
    box-shadow: 0 12px 32px rgba(64, 64, 64, 0.45);
    transform: translateY(-1px);
}
.home-download-btn-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Order / Pricing page */
.order-page { margin: -1.5rem -1rem 0; }
@media (min-width: 768px) { .order-page { margin: 0; } }

/* 购买页核心内容不依赖 JS 动画，避免空白 */
.order-page .home-reveal {
    opacity: 1;
    transform: none;
}

.order-hero {
    position: relative;
    padding: 3rem 1rem 4rem;
    background: linear-gradient(165deg, #f8fafc 0%, #eef6ff 40%, #f0fdfa 100%);
    overflow: hidden;
}
.order-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 130, 246, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(6, 182, 212, 0.08), transparent);
    pointer-events: none;
}

.order-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.order-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}
.order-plan-card.is-featured {
    border: 2px solid rgba(59, 130, 246, 0.35);
    background: linear-gradient(165deg, rgba(255,255,255,0.95) 0%, rgba(239,246,255,0.9) 100%);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}
.order-plan-card.is-featured:hover { transform: scale(1.02) translateY(-6px); }

.order-plan-badge {
    position: absolute;
    top: -1px; right: 1.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.order-plan-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.order-plan-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.order-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin: 1.5rem 0 0.35rem;
}
.order-plan-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}
.order-plan-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.order-plan-period {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-left: 0.25rem;
}
.order-plan-daily {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.order-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}
.order-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}
.order-plan-features li:last-child { border-bottom: none; }
.order-plan-check {
    width: 1.25rem; height: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}
.order-plan-check svg { width: 0.7rem; height: 0.7rem; }

.order-pay-wechat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    color: #15803d;
}
.order-pay-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.order-pay-option {
    cursor: pointer;
}
.order-pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.order-pay-option span {
    display: block;
    text-align: center;
    padding: 0.55rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    transition: all 0.15s ease;
}
.order-pay-option input:checked + span {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.order-plan-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}
.order-plan-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.45);
}
.order-plan-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}
.order-plan-card.is-featured .order-plan-btn {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    box-shadow: 0 10px 32px rgba(6, 182, 212, 0.35);
}

.order-empty-card {
    max-width: 28rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.9);
    border: 1px dashed #cbd5e1;
}
.order-empty-icon {
    width: 4rem; height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: #3b82f6;
}

@media (max-width: 768px) {
    .home-hero { min-height: auto; padding-top: 2.5rem; padding-bottom: 3rem; }
    .home-pricing-card.featured { transform: none; }
    .order-plan-card.is-featured { transform: none; }
    .order-plan-card.is-featured:hover { transform: translateY(-4px); }
    .home-nav-links { display: none; }
    .home-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem;
        gap: 0.75rem;
        box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }
}
