/* ==================== Tech Nova Homepage v2 ==================== */
/* 明亮科技风 - 渐变玻璃拟态 - 内容丰富 */

/* ---------- Reset & Variables ---------- */
body.homepage {
    padding-top: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-weight: 400;
    color: #334155;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Gradient Background Layers ---------- */
.homepage .bg-layer {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.homepage .bg-layer.base {
    background: linear-gradient(160deg, #f0f4ff 0%, #f8fafc 30%, #eef2ff 60%, #f5f7ff 100%);
}
.homepage .bg-layer.noise {
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Animated floating orbs */
.homepage .bg-orb {
    position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
    animation: floatOrb 18s ease-in-out infinite;
}
.homepage .bg-orb.o1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(99,132,241,0.12) 0%, transparent 70%);
    top: -120px; left: -80px;
}
.homepage .bg-orb.o2 {
    width: 440px; height: 440px;
    background: radial-gradient(circle, rgba(56,189,248,0.10) 0%, transparent 70%);
    top: 40%; right: -120px;
    animation-delay: -6s;
}
.homepage .bg-orb.o3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    bottom: 10%; left: 30%;
    animation-delay: -12s;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0,0) scale(1); }
    25% { transform: translate(40px,-30px) scale(1.08); }
    50% { transform: translate(-20px,35px) scale(0.94); }
    75% { transform: translate(-35px,-20px) scale(1.04); }
}

/* ---------- Navbar ---------- */
.homepage .nav-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 14px 0;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    background: transparent;
}
.homepage .nav-header.scrolled {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(99,102,241,0.1);
    box-shadow: 0 1px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
}
.homepage .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1280px; margin: 0 auto; padding: 0 28px;
}
.homepage .nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; z-index: 1001;
}
.homepage .nav-logo img { width: 40px; height: 40px; border-radius: 10px; }
.homepage .nav-logo .logo-text {
    font-size: 20px; font-weight: 700; color: #1e293b;
    letter-spacing: -0.5px;
}
.homepage .nav-links {
    display: flex; align-items: center; gap: 4px;
    list-style: none; margin: 0; padding: 0;
}
.homepage .nav-links a {
    color: #475569; text-decoration: none;
    padding: 8px 16px; border-radius: 8px;
    font-size: 14px; font-weight: 500;
    transition: all 0.2s;
}
.homepage .nav-links a:hover { color: #6366f1; background: rgba(99,102,241,0.06); }
.homepage .nav-links .btn-nav {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff !important; padding: 9px 22px; border-radius: 10px;
    font-weight: 600; box-shadow: 0 4px 16px rgba(99,102,241,0.3);
    margin-left: 8px;
}
.homepage .nav-links .btn-nav:hover {
    box-shadow: 0 6px 24px rgba(99,102,241,0.45);
    transform: translateY(-1px); color: #fff !important;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
}
.homepage .nav-toggle {
    display: none; background: none; border: none;
    color: #1e293b; font-size: 22px; cursor: pointer; z-index: 1001;
}

/* ---------- Hero ---------- */
.homepage .hero {
    position: relative; z-index: 1;
    padding: 150px 28px 100px; max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.homepage .hero-left {
    animation: slideInLeft 0.8s ease-out;
}
.homepage .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
    border-radius: 50px; padding: 6px 16px;
    font-size: 13px; color: #6366f1; font-weight: 600;
    margin-bottom: 24px;
}
.homepage .hero-badge .dot {
    width: 7px; height: 7px; background: #22c55e; border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}
.homepage .hero-left h1 {
    font-size: 50px; font-weight: 800; line-height: 1.15;
    letter-spacing: -1.5px; color: #0f172a; margin: 0 0 20px;
}
.homepage .hero-left h1 .gradient-text {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.homepage .hero-left p {
    font-size: 17px; color: #64748b; line-height: 1.7; margin: 0 0 36px;
    max-width: 480px;
}
.homepage .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.homepage .btn-primary-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff; font-weight: 600; font-size: 15px;
    padding: 13px 30px; border-radius: 12px; text-decoration: none;
    box-shadow: 0 8px 28px rgba(99,102,241,0.35);
    transition: all 0.3s;
}
.homepage .btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(99,102,241,0.5);
    color: #fff; text-decoration: none;
}
.homepage .btn-outline-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #6366f1; font-weight: 600; font-size: 15px;
    padding: 13px 30px; border-radius: 12px; text-decoration: none;
    border: 2px solid #e0e7ff;
    transition: all 0.3s;
}
.homepage .btn-outline-cta:hover {
    border-color: #6366f1; color: #6366f1;
    background: #f5f3ff; text-decoration: none;
}
/* Hero right - floating card mockup */
.homepage .hero-right {
    display: flex; justify-content: center;
    animation: slideInRight 0.8s ease-out;
}
.homepage .hero-mockup {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 25px 60px rgba(99,102,241,0.1), 0 4px 12px rgba(0,0,0,0.04);
    width: 100%; max-width: 420px;
    transform: rotate(1deg);
    overflow: hidden;
}
.homepage .hero-mockup .mock-title {
    font-size: 13px; color: #94a3b8; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}
.homepage .hero-mockup .mock-icons {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.homepage .hero-mockup .mock-icon {
    width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
    overflow: hidden; flex-shrink: 0;
}
.homepage .hero-mockup .mock-icon img { max-width: 26px; max-height: 26px; width: 26px; height: 26px; object-fit: contain; display: block; }
.homepage .hero-mockup .mock-icon .mock-fallback { font-size: 16px; color: #6366f1; font-weight: 700; }
.homepage .hero-mockup .mock-icon:hover {
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,0.15);
}
.homepage .hero-mockup .mock-btn {
    display: block; width: 100%; text-align: center;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff; padding: 12px; border-radius: 12px;
    font-weight: 600; font-size: 14px; margin-bottom: 12px;
}
.homepage .hero-mockup .mock-hint {
    font-size: 12px; color: #94a3b8; text-align: center;
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- Platform Banner ---------- */
.homepage .platform-strip {
    position: relative; z-index: 1;
    padding: 40px 28px; max-width: 1280px; margin: 0 auto;
}
.homepage .platform-strip-inner {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99,102,241,0.08);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex; align-items: center; justify-content: center; gap: 40px;
    flex-wrap: wrap;
}
.homepage .platform-strip-label {
    font-size: 13px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 2px; white-space: nowrap;
}
.homepage .platform-strip-icons {
    display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}
.homepage .p-icon {
    width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
    overflow: hidden; flex-shrink: 0;
}
.homepage .p-icon img { max-width: 22px; max-height: 22px; width: 22px; height: 22px; opacity: 0.6; transition: opacity 0.25s; object-fit: contain; display: block; }
.homepage .p-icon:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,0.12); }
.homepage .p-icon:hover img { opacity: 1; }

/* ---------- Stats Row ---------- */
.homepage .stats-row {
    position: relative; z-index: 1;
    max-width: 1280px; margin: 0 auto; padding: 20px 28px 60px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.homepage .stat-item {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99,102,241,0.06);
    border-radius: 16px; padding: 28px 24px;
    text-align: center; transition: all 0.3s;
}
.homepage .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.08);
}
.homepage .stat-item .stat-num {
    font-size: 36px; font-weight: 800; letter-spacing: -1px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 6px;
}
.homepage .stat-item .stat-label {
    font-size: 13px; color: #94a3b8; font-weight: 600;
}

/* ---------- How It Works ---------- */
.homepage .how-it-works {
    position: relative; z-index: 1;
    padding: 80px 28px; max-width: 1280px; margin: 0 auto;
}
.homepage .section-label {
    text-align: center; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px; color: #6366f1; margin-bottom: 12px;
}
.homepage .section-title {
    text-align: center; font-size: 38px; font-weight: 800;
    letter-spacing: -0.5px; color: #0f172a; margin: 0 0 12px;
}
.homepage .section-subtitle {
    text-align: center; font-size: 17px; color: #64748b;
    max-width: 540px; margin: 0 auto 56px;
}
.homepage .steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    margin-bottom: 60px;
}
.homepage .step-card {
    background: #fff; border-radius: 20px; padding: 32px 24px;
    text-align: center; position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
    transition: all 0.3s;
}
.homepage .step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.2);
}
.homepage .step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.homepage .step-card h3 {
    font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 8px;
}
.homepage .step-card p {
    font-size: 14px; color: #64748b; line-height: 1.6; margin: 0;
}
.homepage .steps-arrow {
    display: flex; justify-content: center; gap: 24px;
    position: relative; z-index: 0; margin-top: -40px; margin-bottom: 20px;
    pointer-events: none;
}
.homepage .steps-arrow .arr {
    width: 100px; height: 2px;
    background: linear-gradient(90deg, #e0e7ff, #6366f1, #e0e7ff);
    opacity: 0.5;
}

/* ---------- Features Grid ---------- */
.homepage .features {
    position: relative; z-index: 1;
    padding: 80px 28px; max-width: 1280px; margin: 0 auto;
}
.homepage .features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.homepage .feature-card {
    background: #fff; border-radius: 20px; padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    transition: all 0.35s; position: relative; overflow: hidden;
}
.homepage .feature-card::before {
    content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
    opacity: 0; transition: opacity 0.35s;
}
.homepage .feature-card:hover::before { opacity: 1; }
.homepage .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.15);
}
.homepage .feature-card .fc-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #6366f1; margin-bottom: 18px;
}
.homepage .feature-card h3 {
    font-size: 19px; font-weight: 700; color: #0f172a; margin: 0 0 8px;
}
.homepage .feature-card p {
    font-size: 14px; color: #64748b; line-height: 1.65; margin: 0;
}

/* ---------- Integration Panel ---------- */
.homepage .integration {
    position: relative; z-index: 1;
    padding: 80px 28px; max-width: 1280px; margin: 0 auto;
}
.homepage .integration-panel {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-radius: 28px; padding: 60px 50px;
    border: 1px solid rgba(99,102,241,0.08);
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.homepage .integration-panel h2 {
    font-size: 32px; font-weight: 800; color: #0f172a;
    letter-spacing: -0.5px; margin: 0 0 14px;
}
.homepage .integration-panel p {
    font-size: 15px; color: #64748b; line-height: 1.7; margin: 0 0 24px;
}
.homepage .integration-panel .code-block {
    background: #1e293b; border-radius: 14px; padding: 24px 28px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px; color: #e2e8f0; line-height: 1.8;
    overflow-x: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.homepage .code-block .c-keyword { color: #c084fc; }
.homepage .code-block .c-string { color: #34d399; }
.homepage .code-block .c-func { color: #38bdf8; }
.homepage .code-block .c-comment { color: #64748b; }

/* ---------- Comparison Table ---------- */
.homepage .compare {
    position: relative; z-index: 1;
    padding: 80px 28px; max-width: 1280px; margin: 0 auto;
}
.homepage .compare-table {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
}
.homepage .compare-table table {
    width: 100%; border-collapse: collapse;
}
.homepage .compare-table th {
    background: #f8fafc; padding: 16px 24px; text-align: left;
    font-size: 13px; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #edf2f7;
}
.homepage .compare-table td {
    padding: 14px 24px; font-size: 14px; color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.homepage .compare-table tr:last-child td { border-bottom: none; }
.homepage .compare-table .check { color: #22c55e; font-weight: 700; }
.homepage .compare-table .uncheck { color: #cbd5e1; }

/* ---------- FAQ ---------- */
.homepage .faq {
    position: relative; z-index: 1;
    padding: 80px 28px; max-width: 800px; margin: 0 auto;
}
.homepage .faq-item {
    background: #fff; border-radius: 16px; margin-bottom: 12px;
    border: 1px solid #edf2f7;
    overflow: hidden; transition: all 0.3s;
}
.homepage .faq-item:hover { border-color: rgba(99,102,241,0.15); }
.homepage .faq-q {
    padding: 18px 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 600; font-size: 15px; color: #1e293b;
    user-select: none;
}
.homepage .faq-q .fa-chevron-down { color: #94a3b8; transition: transform 0.3s; font-size: 13px; }
.homepage .faq-item.open .fa-chevron-down { transform: rotate(180deg); color: #6366f1; }
.homepage .faq-a {
    padding: 0 24px 18px; font-size: 14px; color: #64748b; line-height: 1.7;
    display: none;
}
.homepage .faq-item.open .faq-a { display: block; }

/* ---------- CTA ---------- */
.homepage .cta-section {
    position: relative; z-index: 1;
    padding: 80px 28px 100px; max-width: 1280px; margin: 0 auto;
}
.homepage .cta-card {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border-radius: 28px; padding: 60px 50px;
    text-align: center; color: #fff;
    box-shadow: 0 20px 60px rgba(99,102,241,0.25);
    position: relative; overflow: hidden;
}
.homepage .cta-card::before {
    content: ''; position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    top: -150px; right: -100px; pointer-events: none;
}
.homepage .cta-card::after {
    content: ''; position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    bottom: -120px; left: -80px; pointer-events: none;
}
.homepage .cta-card h2 {
    font-size: 34px; font-weight: 800; letter-spacing: -0.5px;
    margin: 0 0 14px; position: relative; z-index: 1;
}
.homepage .cta-card p {
    font-size: 16px; opacity: 0.9; margin: 0 0 32px; position: relative; z-index: 1;
    max-width: 500px; margin-left: auto; margin-right: auto;
}
.homepage .btn-cta-white {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #6366f1; font-weight: 700;
    font-size: 15px; padding: 14px 36px; border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: all 0.3s; position: relative; z-index: 1;
}
.homepage .btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    color: #6366f1; text-decoration: none;
}

/* ---------- Footer ---------- */
.homepage .footer-home {
    position: relative; z-index: 1;
    padding: 40px 28px; max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid #edf2f7; flex-wrap: wrap; gap: 12px;
}
.homepage .footer-home p {
    color: #94a3b8; font-size: 13px; margin: 0;
}
.homepage .footer-home a { color: #64748b; text-decoration: none; margin: 0 4px; }
.homepage .footer-home a:hover { color: #6366f1; }

/* ---------- Scroll Animation ---------- */
.animate-on-scroll {
    opacity: 0; transform: translateY(28px);
    transition: all 0.65s cubic-bezier(0.4,0,0.2,1);
}
.animate-on-scroll.visible {
    opacity: 1; transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .homepage .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .homepage .hero-left p { max-width: 100%; }
    .homepage .hero-actions { justify-content: center; }
    .homepage .hero-right { display: none; }
    .homepage .features-grid { grid-template-columns: repeat(2, 1fr); }
    .homepage .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .homepage .integration-panel { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .homepage .nav-links { display: none; }
    .homepage .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(20px);
        padding: 16px 24px;
        border-bottom: 1px solid #edf2f7;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
    .homepage .nav-toggle { display: block; }
    .homepage .hero { padding: 120px 20px 60px; }
    .homepage .hero-left h1 { font-size: 34px; }
    .homepage .features-grid { grid-template-columns: 1fr; }
    .homepage .steps-grid { grid-template-columns: 1fr; }
    .homepage .stats-row { grid-template-columns: repeat(2, 1fr); }
    .homepage .section-title { font-size: 28px; }
    .homepage .cta-card h2 { font-size: 26px; }
    .homepage .cta-card, .homepage .integration-panel { padding: 36px 24px; }
}
@media (max-width: 480px) {
    .homepage .hero-left h1 { font-size: 26px; }
    .homepage .stats-row { grid-template-columns: repeat(2, 1fr); }
    .homepage .platform-strip-inner { gap: 16px; }
}
