html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background-color: #F8FAFC; }

/* ========== Hero - 深空科技风格 ========== */
.hero-bg {
    background: linear-gradient(180deg,
        #0f172a 0%,
        #1e1b4b 20%,
        #312e81 50%,
        #1e1b4b 80%,
        #0f172a 100%);
    position: relative;
    overflow: hidden;
}

/* 星空背景 */
.hero-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 160px 20px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 200px 60px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 250px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 350px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 400px 70px, rgba(255,255,255,0.6), transparent);
    background-size: 400px 100px;
    animation: twinkle 8s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 行星装饰 */
.hero-planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: planetFloat 15s ease-in-out infinite;
}
.hero-planet-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    top: 15%;
    right: 10%;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5), inset -10px -10px 20px rgba(0,0,0,0.2);
}
.hero-planet-2 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    top: 60%;
    right: 15%;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4), inset -8px -8px 15px rgba(0,0,0,0.2);
    animation-delay: -5s;
}
.hero-planet-3 {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #f472b6, #db2777);
    top: 25%;
    left: 8%;
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.4), inset -5px -5px 10px rgba(0,0,0,0.2);
    animation-delay: -10s;
}
@keyframes planetFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* 轨道环 */
.hero-orbit {
    position: absolute;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: orbitRotate 30s linear infinite;
}
.hero-orbit-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -50px;
}
.hero-orbit-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -30px;
    animation-direction: reverse;
    animation-duration: 20s;
}
@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 代码块装饰 - 漂浮积木块 */
.hero-code-block {
    position: absolute;
    animation: codeFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    z-index: 5;
}
.hero-code-block img {
    transition: transform 0.3s ease;
}
.hero-code-block:hover img {
    transform: scale(1.05);
}
.hero-code-block-1 {
    top: 15%;
    left: 3%;
    animation-delay: 0s;
}
.hero-code-block-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: -2.5s;
}
.hero-code-block-3 {
    top: 40%;
    right: 5%;
    animation-delay: -5s;
}
@keyframes codeFloat {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* 积木装饰 */
.hero-block {
    position: absolute;
    border-radius: 8px;
    opacity: 0.5;
    animation: blockBounce 8s ease-in-out infinite;
}
.hero-block-1 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    top: 30%;
    left: 12%;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.hero-block-2 {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    top: 50%;
    right: 10%;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.4);
    animation-delay: -2s;
}
.hero-block-3 {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    bottom: 35%;
    left: 8%;
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.4);
    animation-delay: -4s;
}
@keyframes blockBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

/* 标题样式 */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}
@media (max-width: 640px) {
    .hero-title { font-size: 2.5rem; }
}
.hero-title-main {
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title-keyword {
    background: linear-gradient(135deg, #818cf8, #22d3ee, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 副标题 */
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
@media (max-width: 640px) {
    .hero-subtitle { font-size: 1.1rem; }
}

/* 统计卡片 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.hero-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
}
.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}
.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.hero-stat-number-pink {
    background: linear-gradient(135deg, #f472b6, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-number-cyan {
    background: linear-gradient(135deg, #22d3ee, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-number-purple {
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* CTA按钮样式已移到common.css */

/* 区块分割线 */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E2E8F0 20%, #CBD5E1 50%, #E2E8F0 80%, transparent 100%);
    margin: 0;
}

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 1024px) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Section badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
}

/* Feature cards */
.feature-card-bounce {
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card-bounce:hover {
    transform: translateY(-8px);
}
.icon-rotate {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card-bounce:hover .icon-rotate {
    transform: scale(1.1) rotate(8deg);
}

/* Color cards */
.color-card {
    transition: all 0.3s ease;
}
.color-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.25);
}

/* Component card */
.component-card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.component-card:hover {
    border-color: #6366F1;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.25);
}

/* Comparison table - 简洁现代风格 */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
/* 行悬停浮起效果（Tailwind hover 变体在 Windows 编译不生效） */
.comparison-row {
    transition: all 0.2s ease;
}
.comparison-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: rgba(251, 244, 234, 0.2);
}
/* 表头样式由 Tailwind 类控制 */
/* 表格行样式由 Tailwind 类控制 */
/* 状态图标保留 */
.comp-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
}
.comp-status-yes {
    background: #dcfce7;
    color: #16a34a;
}
.comp-status-no {
    background: #f1f5f9;
    color: #94a3b8;
}
.comp-status-star {
    background: #fef3c7;
    color: #d97706;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 32px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6366F1;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #6366F1;
}
.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 24px;
    width: 2px;
    height: calc(100% - 16px);
    background: #E2E8F0;
}
.timeline-item:last-child::after {
    display: none;
}

/* Mobile responsive fixes */
@media (max-width: 640px) {
    /* Prevent horizontal scroll */
    section {
        overflow-x: clip;
    }
    /* Hide decorative elements on small screens */
    .hero-planet,
    .hero-orbit,
    .hero-code-block,
    .hero-block {
        display: none !important;
    }
    /* Stats cards */
    .hero-stats {
        gap: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-stat-card {
        padding: 0.75rem 1rem;
        min-width: calc(50% - 0.375rem);
    }
    .hero-stat-number {
        font-size: 1.5rem;
    }
    /* Timeline */
    .timeline-item {
        padding-left: 24px;
    }
    /* Timeline */
    .feature-card-bounce {
        padding: 20px;
    }
}
