/**
 * Homepage Enhanced Styles
 * 首页增强样式 (v3.0: 浅色玻璃拟态 Hero、品牌渐变点缀、滚动渐显)
 */

html {
    overflow-x: hidden;
}

/* ========================================
   Hero Section
   ======================================== */

/* 浅色底 + 动态 Antigravity 散点背景穿透 */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background:
        radial-gradient(620px 420px at 12% 16%, rgba(29, 78, 216, 0.08), transparent 62%),
        radial-gradient(720px 480px at 88% 10%, rgba(59, 130, 246, 0.08), transparent 62%),
        radial-gradient(560px 420px at 76% 92%, rgba(16, 185, 129, 0.06), transparent 60%),
        rgba(248, 250, 252, 0.7);
}

/* 额外一层柔和模糊光斑，增加层次 */
.home-hero::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    right: -120px;
    top: -140px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    background: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.22);
    border-radius: 999px;
    color: #1a73e8;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.hero-title {
    font-size: clamp(2.25rem, 4.2vw + 0.9rem, 3.6rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.16;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 600;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 幽灵按钮：Hero 次级行动 */
.btn-ghost {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: #fff;
    border-color: var(--gray-400);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Hero 统计小卡片（玻璃拟态） */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

.hero-stat-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.7rem 1.15rem;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 6%;
    right: 6%;
    width: 260px;
    z-index: 1;
    animation-delay: 0s;
}

/* Overlap the chart body only — keep the "4,000 genes" footer clear */
.floating-card.card-2 {
    top: 18%;
    right: 42%;
    width: 200px;
    z-index: 2;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 10%;
    right: 4%;
    z-index: 3;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    animation-delay: 4s;
}

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

.card-header-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.chart-preview {
    margin-bottom: 1rem;
}

.mini-chart {
    width: 100%;
    height: auto;
}

.card-footer-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.stat-mini-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-indigo);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-mini-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   玻璃拟态通用卡片（首页特性/分类卡片）
   ======================================== */

.home-glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.home-glass:hover {
    box-shadow: var(--shadow-md);
}

/* ========================================
   Tools Section
   ======================================== */

.tools-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.tools-module-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: -1.5rem auto 3rem;
    max-width: 720px;
}

.tools-module-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--gray-300);
    background: #fff;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.tools-module-pill:hover {
    border-color: var(--brand-indigo);
    color: var(--brand-indigo);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.tools-module-pill i {
    opacity: 0.85;
}

.tools-module {
    margin-bottom: 3.5rem;
    scroll-margin-top: 5.5rem;
}

.tools-module:last-child {
    margin-bottom: 0;
}

.tools-module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.tools-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.tools-module-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.2rem;
}

.tools-module-header p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(29, 78, 216, 0.1);
    color: var(--brand-indigo);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.tool-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(29, 78, 216, 0.35);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card.featured-tool {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.tool-card.featured-tool::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tool-card.coming-soon {
    opacity: 0.6;
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tool-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.tool-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tool-features .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: 6rem 0;
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    height: 100%;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   Guide Section
   ======================================== */

.guide-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.guide-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: all var(--transition);
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(29, 78, 216, 0.35);
}

.guide-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.guide-icon {
    width: 80px;
    height: 80px;
    margin: 1.5rem auto 1.5rem;
    background: rgba(29, 78, 216, 0.08);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-indigo);
}

.guide-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.guide-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   Research Services Section
   ======================================== */

.research-services-section {
    padding: 6rem 0 0;
    background: white;
}

.research-services-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.38fr);
    gap: 3rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid rgba(29, 78, 216, 0.14);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(520px 280px at 6% 0%, rgba(59, 130, 246, 0.12), transparent 68%),
        linear-gradient(135deg, #f8fbff 0%, #f4f7ff 54%, #f8fafc 100%);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.09);
}

.research-services-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    left: -110px;
    bottom: -130px;
    border-radius: 50%;
    border: 38px solid rgba(29, 78, 216, 0.05);
    pointer-events: none;
}

.research-services-copy,
.research-services-contact {
    position: relative;
    z-index: 1;
}

.research-services-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-indigo);
    font-size: 0.84rem;
    font-weight: 700;
}

.research-services-copy h2 {
    margin: 0 0 1rem;
    color: var(--gray-900);
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.research-services-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.9;
}

.research-services-contact {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(145deg, #172554 0%, #1e3a8a 100%);
    color: white;
    box-shadow: 0 18px 36px rgba(30, 58, 138, 0.2);
}

.research-services-contact-icon {
    display: flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
    color: #bfdbfe;
    font-size: 1.15rem;
}

.research-services-contact-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.research-services-contact-label {
    margin-bottom: 0.2rem;
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.research-services-contact strong {
    margin-bottom: 0.65rem;
    font-size: 1.18rem;
}

.research-services-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: white;
    font-size: clamp(1.18rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.025em;
    line-height: 1.25;
    text-decoration: none;
}

.research-services-phone:hover {
    color: #dbeafe;
}

.research-services-note {
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: 6rem 0;
    background: white;
}

.cta-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.25rem;
    opacity: 0.95;
}

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

.cta-actions .btn-light {
    background: white !important;
    color: var(--brand-indigo) !important;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .hero-visual {
        height: 400px;
        margin-top: 3rem;
    }

    .floating-card.card-1 {
        width: 210px;
        right: 4%;
    }

    .floating-card.card-2 {
        width: 170px;
        top: 16%;
        right: 40%;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 4rem 0;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 0.5rem;
    }

    .hero-stat-chip {
        flex: 1;
        min-width: 96px;
    }

    .hero-visual {
        display: none;
    }

    .tools-section,
    .features-section,
    .guide-section,
    .research-services-section,
    .record-section,
    .cta-section {
        padding: 3rem 0;
    }

    .research-services-section {
        padding-bottom: 0;
    }

    .research-services-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-card h2 {
        font-size: 1.75rem;
    }

    .cta-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .research-services-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .research-services-copy p {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .research-services-contact {
        padding: 1.2rem;
    }

    .research-services-contact-icon {
        display: none;
    }
}

/* ---- Showcase section (real example outputs with hover explanations) ---- */
.showcase-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.mini-chart-img {
    width: 100%;
    border-radius: 0.5rem;
    display: block;
}

.showcase-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.showcase-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #fff;
}

.showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #fff;
    transition: transform 0.4s;
}

.showcase-card:hover .showcase-media img {
    transform: scale(1.02);
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.92) 100%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
}

.showcase-card:hover .showcase-overlay,
.showcase-card:focus-within .showcase-overlay {
    opacity: 1;
}

.showcase-overlay h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.showcase-overlay ul {
    margin: 0 0 0.9rem;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #e2e8f0;
}

.showcase-body {
    padding: 1rem 1.25rem 1.25rem;
}

.showcase-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.showcase-body p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Touch devices: no hover — keep the CTA reachable at the bottom */
@media (hover: none) {
    .showcase-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, 0.85) 100%);
        justify-content: flex-end;
    }

    .showcase-overlay h5,
    .showcase-overlay ul {
        display: none;
    }
}

@media (max-width: 768px) {
    .showcase-section {
        padding: 3rem 0;
    }
}

/* ── v3.1 home additions: capability band / analysis record / new badge ── */

/* 能力关键词带 */
.cap-band {
    padding: 0 0 2.5rem;
}
.cap-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.cap-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.75);
    color: var(--gray-600);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition, 0.2s ease);
}
.cap-pill:hover {
    border-color: var(--brand-indigo);
    color: var(--brand-indigo);
    transform: translateY(-1px);
}
.cap-pill-new {
    border-color: rgba(29, 78, 216, 0.45);
    color: #1d4ed8;
    font-weight: 600;
}
.cap-pill-new:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

/* Hero 悬浮卡：分析记录 */
.record-mini {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--gray-600);
}
.record-mini > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}
.record-mini i {
    color: var(--brand-indigo);
    width: 14px;
    flex: 0 0 14px;
    margin: 0;
    text-align: center;
    line-height: 1;
}
.record-mini span {
    min-width: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分析记录卖点区 */
.record-section {
    padding: 4rem 0;
}
.record-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}
.record-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.record-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}
.record-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.record-points i {
    color: #10b981;
    width: 1em;
    flex: 0 0 1em;
    margin: 0.28em 0 0;
    text-align: center;
    line-height: 1;
}
.record-points p {
    margin: 0;
    min-width: 0;
    line-height: 1.55;
}
.record-points strong {
    color: var(--gray-800);
    font-weight: 650;
}
.record-mock {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    background: #fff;
}
.record-mock-header {
    display: grid;
    grid-template-columns: 1.15em minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.4rem;
    padding: 0.85rem 1.1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}
.record-mock-header i {
    width: 1.15em;
    text-align: center;
    line-height: 1;
    color: var(--brand-indigo);
}
.record-mock-zip {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.record-mock-size {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gray-400);
    white-space: nowrap;
}
.record-mock-body {
    padding: 0.35rem 0;
}
.record-mock-row {
    display: grid;
    grid-template-columns: 1.15em minmax(0, max-content) minmax(4.5rem, 1fr);
    align-items: center;
    column-gap: 0.4rem;
    padding: 0.48rem 1.1rem;
    font-size: 0.85rem;
    color: var(--gray-700);
}
.record-mock-row i {
    width: 1.15em;
    font-size: 0.92em;
    text-align: center;
    line-height: 1;
    color: var(--gray-400);
}
.record-mock-name {
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.3;
    white-space: nowrap;
}
.record-mock-meta {
    min-width: 0;
    justify-self: end;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-400);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.record-mock-row:first-child i {
    color: #d97706;
}
.record-mock-fig i {
    color: var(--brand-indigo);
}

@media (max-width: 576px) {
    .record-mock-header,
    .record-mock-row {
        grid-template-columns: 1.15em minmax(0, 1fr);
        align-items: start;
        row-gap: 0.12rem;
    }
    .record-mock-header i,
    .record-mock-row i {
        margin-top: 0.18em;
    }
    .record-mock-size,
    .record-mock-meta {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }
}

/* 类别卡「新增」徽标 */
.cat-badge-new {
    display: inline-block;
    vertical-align: 2px;
    margin-left: 0.35rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════════════════════
   v3.2 首页配色回归经典版式（参照 biocloud_static.html）
   紫色渐变 Hero + 白色内容 + 蓝色 #2563eb 点缀；仅影响首页专用类，
   tools_hub / tools_category 虽引入本文件但不使用这些类，不受影响。
   ════════════════════════════════════════════════════════════════ */

:root {
    /* 首页经典紫渐变（与全局专业蓝并存，仅供首页使用） */
    --home-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ── Hero：紫色渐变底 + 十字纹理 ── */
.home-hero {
    background: var(--home-gradient);
}

.home-hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    -webkit-mask-image: none;
    mask-image: none;
}

.home-hero::after {
    content: none;
}

/* ── Hero 内容：白色系 ── */
.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-title {
    color: #fff;
}

/* 紫底上渐变文字改为白→浅紫，保证可读 */
.hero-title .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #e3d8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
}

.hero-features .feature-item {
    color: #fff;
}

.hero-features .feature-item i {
    color: #34d399;
}

/* Hero 主按钮：白底紫字反色 CTA（参照经典版式） */
.home-hero .btn-primary {
    background: #fff;
    color: #764ba2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.home-hero .btn-primary:hover,
.home-hero .btn-primary:focus-visible {
    background: #fff;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
}

/* Hero 次按钮：半透明白描边 */
.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Hero 统计小卡：白色玻璃 */
.hero-stat-chip {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.hero-stat-value {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.75);
}

/* ── 区块徽章：实心蓝（参照经典版式） ── */
.section-badge {
    background: var(--primary-color);
    color: #fff;
}

/* ── 特性 / 指南图标：紫渐变 ── */
.feature-icon {
    background: var(--home-gradient);
}

.guide-number {
    background: var(--home-gradient);
}

.guide-icon {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* ── CTA 卡：紫渐变 ── */
.cta-card {
    background: var(--home-gradient);
}

/* ── 能力关键词带 / 新增徽标：紫系 hover ── */
.cap-pill:hover {
    border-color: #667eea;
    color: #764ba2;
}

.cap-pill-new {
    border-color: rgba(118, 75, 162, 0.45);
    color: #764ba2;
}

.cap-pill-new:hover {
    border-color: #764ba2;
    color: #764ba2;
}

.cat-badge-new {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
}

.record-mini i {
    color: #667eea;
}

.record-mock-header i {
    color: #764ba2;
}

.record-mock-fig i {
    color: #667eea;
}

/* ── v3.2.1 微调 ── */

/* Hero 标题两行文案各自一行展示（宽屏下不换行） */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.1rem;
    }
    .hero-title span {
        white-space: nowrap;
    }
}

/* ========================================
   Three analysis paths: stacked large demos
   ======================================== */

.modes-section {
    padding: 5rem 0 0;
    background: #fff;
    overflow-x: clip;
}

.modes-section > .container {
    margin-bottom: 2.5rem;
}

.mode-chooser {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: 1.35rem auto 0;
    max-width: 920px;
}

.mode-chooser a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem 0.55rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.mode-chooser a span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
}

.mode-chooser a em {
    font-style: normal;
}

.mode-chooser a:nth-child(1) span { background: #047857; }
.mode-chooser a:nth-child(2) span { background: #4f46e5; }
.mode-chooser a:nth-child(3) span { background: #b45309; }

.mode-chooser a:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.mode-showcase {
    --mode-accent: #047857;
    padding: 3.25rem 0;
    scroll-margin-top: 88px;
}

.mode-showcase-suite {
    --mode-accent: #047857;
    background:
        radial-gradient(640px 420px at 88% 40%, rgba(5, 150, 105, 0.1), transparent 62%),
        #f8fafc;
}

.mode-showcase-agent {
    --mode-accent: #4f46e5;
    background:
        radial-gradient(640px 420px at 88% 40%, rgba(79, 70, 229, 0.1), transparent 62%),
        #fff;
}

.mode-showcase-agentb {
    --mode-accent: #b45309;
    background:
        radial-gradient(640px 420px at 88% 40%, rgba(217, 119, 6, 0.12), transparent 62%),
        #f8fafc;
}

.mode-showcase-inner {
    width: min(1360px, calc(100% - 3rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
    gap: 2.5rem 3.5rem;
    align-items: center;
}

.mode-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: 28rem;
}

.mode-copy .mode-num,
.mode-copy h3,
.mode-copy .mode-lead,
.mode-copy .mode-cta {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-showcase.is-revealed .mode-copy .mode-num { opacity: 1; transform: none; transition-delay: 0.05s; }
.mode-showcase.is-revealed .mode-copy h3 { opacity: 1; transform: none; transition-delay: 0.12s; }
.mode-showcase.is-revealed .mode-copy .mode-lead { opacity: 1; transform: none; transition-delay: 0.2s; }
.mode-showcase.is-revealed .mode-copy .mode-cta { opacity: 1; transform: none; transition-delay: 0.28s; }

.mode-num {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--mode-accent);
    margin-bottom: 0.55rem;
}

.mode-kicker {
    display: inline-block;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.45rem;
}

.mode-copy h3 {
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.22;
    letter-spacing: -0.03em;
    margin: 0 0 0.7rem;
}

.mode-lead {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    overflow-wrap: break-word;
}

.mode-cta {
    align-self: flex-start;
}

.mode-stage {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mode-stage-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #0f172a;
    aspect-ratio: 8 / 5;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.mode-showcase-suite .mode-stage-frame {
    box-shadow: 0 28px 70px rgba(5, 150, 105, 0.18);
}

.mode-showcase-agent .mode-stage-frame {
    box-shadow: 0 28px 70px rgba(79, 70, 229, 0.18);
}

.mode-showcase-agentb .mode-stage-frame {
    box-shadow: 0 28px 70px rgba(217, 119, 6, 0.18);
}

.mode-demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0f172a;
}

.mode-stage-cap {
    position: static;
    margin: 0.7rem 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.28s,
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}

.mode-showcase.is-revealed .mode-stage-cap {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .mode-copy .mode-num,
    .mode-copy h3,
    .mode-copy .mode-lead,
    .mode-copy .mode-cta,
    .mode-stage-cap {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 991.98px) {
    .mode-showcase {
        padding: 2.25rem 0;
    }
    .mode-showcase-inner {
        width: min(100%, calc(100% - 2rem));
        grid-template-columns: 1fr;
        gap: 1.15rem 1.25rem;
        align-items: stretch;
    }
    .mode-copy {
        max-width: none;
    }
    .mode-stage {
        order: -1;
        width: 100%;
    }
    .mode-copy h3 {
        font-size: 1.45rem;
        margin-bottom: 0.45rem;
    }
    .mode-lead {
        font-size: 0.98rem;
        margin-bottom: 0.95rem;
    }
    .mode-stage-cap {
        font-size: 0.85rem;
        margin-top: 0.55rem;
    }
}
