/* ============================================================
   Front Page ?魔力指数 9 大区?   Hero / PainPoints / WhyUs / Steps / Features / Rankings /
   ValueAdd / Pricing / TrialCTA
   ============================================================ */

/* ============================================================
   Section Primitives
   ============================================================ */
.section {
    padding: 64px 0;
    position: relative;
}
.section.is-light   { background: var(--white); }
.section.is-purple  { background: var(--bg-light); }
.section.is-white   { background: var(--white); }
.section.is-dark    { background: var(--bg-light); }

.section-head {
    text-align: center;
    margin-bottom: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.section-head .section-badge { margin-bottom: 16px; }
.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.section-head h2 .gradient-text {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-head p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.section-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
    margin: 0;
}

/* ============================================================
   Section 1: HERO
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    padding: 96px var(--gutter) 80px;
    text-align: center;
    border-bottom: 1px solid var(--primary-100);
}
.hero::before {
    /* 64px hero-pattern grid */
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(13, 148, 136, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.hero-bg-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.hero-bg-blob {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.hero-bg-blob.b1 { top: -100px; left: -100px; background: var(--primary-300); }
.hero-bg-blob.b2 { bottom: -100px; right: -100px; background: var(--primary-400); }
.hero-bg-blob.b3 { top: 30%; right: 20%; background: var(--primary-200); width: 300px; height: 300px; }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--gray-800);
    letter-spacing: -0.025em;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar (Hero 内的 URL 输入 + 立即分析按钮) */
.hero-search {
    max-width: 640px;
    margin: 0 auto 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 0.9375rem;
    color: var(--gray-800);
    outline: none;
    font-family: var(--font-mono);
}
.hero-search-input::placeholder { color: var(--gray-400); }
.hero-search-input:focus { background: var(--bg-light); border-radius: var(--radius); }
.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    height: 48px;
    background: var(--primary-700);
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
}
.hero-search-btn:hover {
    background: var(--primary-800);
    box-shadow: var(--shadow-md);
}
.hero-search-btn svg { width: 16px; height: 16px; }

.hero-search-note {
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.hero-search-note a { color: var(--primary-700); border-color: var(--primary-200); }
.hero-search-note a:hover { color: var(--primary-800); }

.hero-input-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--danger-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--danger);
    color: #991B1B;
    font-size: 0.8125rem;
    text-align: left;
}

/* Marquee of AI model chips */
.hero-marquee {
    max-width: 900px;
    margin: 40px auto 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    position: relative;
}
.hero-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.hero-marquee:hover .hero-marquee-track { animation-play-state: paused; }
.hero-marquee-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--gray-700);
    white-space: nowrap;
    flex-shrink: 0;
}
.hero-marquee-logo {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Hero particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-particle {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--primary-400);
    border-radius: 50%;
    opacity: 0.4;
}

/* ============================================================
   Section 2: Pain Points (3 columns)
   ============================================================ */
.pain-points {
    background: var(--white);
}
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pain-card {
    text-align: center;
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--t-base);
}
.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}
.pain-card .icon-chip {
    margin: 0 auto 20px;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary-100), var(--bg-light));
}
.pain-card .icon-chip svg { width: 32px; height: 32px; color: var(--primary-700); }
.pain-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-800);
}
.pain-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   Section 3: Why Us (2/3-col grid of 6 mini features)
   ============================================================ */
.why-us {
    background: var(--bg-light);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    transition: all var(--t-base);
}
.why-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.why-item .icon-chip { flex-shrink: 0; }
.why-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}
.why-item p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   Section 4: 6-Step Process
   ============================================================ */
.steps {
    background: var(--white);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}
.step-card {
    position: relative;
    padding: 32px 24px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--t-base);
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}
.step-card .step-num {
    position: absolute;
    top: -10px; right: 16px;
    background: var(--primary-700);
    color: var(--white);
    font-weight: 700;
    font-size: 0.75rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}
.step-card .icon-chip {
    margin-bottom: 16px;
    width: 56px; height: 56px;
}
.step-card .icon-chip svg { width: 28px; height: 28px; }
.step-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-800);
}
.step-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   Section 5: Features with Tabs
   ============================================================ */
.features {
    background: var(--bg-light);
}
.tabs-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--gray-100);
    padding: 6px;
    border-radius: var(--radius);
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
}
.tabs-bar button {
    padding: 10px 20px;
    background: transparent;
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
}
.tabs-bar button:hover { color: var(--primary-700); }
.tabs-bar button.is-active {
    background: var(--primary-700);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.feature-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
}
.feature-panel.is-active { display: grid; }
.feature-panel .feature-image {
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-100);
    box-shadow: var(--shadow);
}
.feature-panel .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.feature-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: var(--gray-800);
    font-weight: 600;
}
.feature-panel p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ============================================================
   Section 6: Rankings (4-col grid of ranking cards)
   ============================================================ */
.rankings {
    background: var(--white);
}
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ranking-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: all var(--t-base);
}
.ranking-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}
.ranking-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}
.ranking-card-head .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-700);
    background: var(--bg-light);
}
.ranking-card-head .num.is-crown {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: var(--white);
}
.ranking-card-head .num.is-crown::before { content: '👑'; }
.ranking-card-head h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
}
.ranking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: 0.875rem;
    transition: background var(--t-fast);
    border-radius: var(--radius-sm);
    padding-left: 8px;
    padding-right: 8px;
}
.ranking-row:hover { background: var(--bg-light); }
.ranking-row .brand { color: var(--gray-700); }
.ranking-row .score { color: var(--primary-700); font-weight: 600; font-size: 0.8125rem; }

/* ============================================================
   Section 7: Value-Add Services (3-col grid of 6 service cards)
   ============================================================ */
.value-add {
    background: var(--bg-light);
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.value-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all var(--t-base);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}
.value-card .icon-chip {
    width: 48px; height: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-100), var(--bg-light));
}
.value-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-800);
}
.value-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   Section 8: Pricing (3-col pricing cards, middle highlighted)
   ============================================================ */
.pricing {
    background: var(--white);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.price-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--t-base);
    display: flex;
    flex-direction: column;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.price-card.is-featured {
    border-top: 4px solid var(--primary-700);
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
    z-index: 1;
    border-color: var(--primary-300);
    ring: 2px var(--primary-300);
}
.price-card.is-featured:hover {
    transform: scale(1.03) translateY(-4px);
}
.price-card .badge-popular {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    box-shadow: var(--shadow);
}
.price-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}
.price-card .price-desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 24px;
    min-height: 36px;
}
.price-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-700);
    line-height: 1;
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.price-card .price .currency { font-size: 1.25rem; }
.price-card .price .period { font-size: 0.875rem; color: var(--gray-500); font-weight: 400; margin-left: 4px; }
.price-card .price-meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}
.price-card .btn { width: 100%; margin-top: auto; }
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.price-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--gray-700);
}
.price-card ul li::before {
    content: '?;
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   Section 9: Trial CTA (dark gradient)
   ============================================================ */
.trial-cta {
    background: linear-gradient(135deg, var(--primary-900), var(--primary-700) 50%, var(--primary-800));
    color: var(--white);
    padding: 80px var(--gutter);
    position: relative;
    overflow: hidden;
}
.trial-cta::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: var(--primary-400);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}
.trial-cta::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: var(--primary-300);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}
.trial-cta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}
.trial-cta-text .section-badge { margin-bottom: 20px; }
.trial-cta-text h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}
.trial-cta-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}
.trial-cta-features {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.trial-cta-features h4 {
    color: var(--white);
    font-size: 1.0625rem;
    margin-bottom: 16px;
    font-weight: 600;
}
.trial-cta-features ul li {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
/* --- Footer ---
   Footer styles moved to assets/css/footer.css (shared globally).
   ============================================================ */
/* (footer styles extracted to footer.css) */
