.index_main {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: block;
    margin: 0 auto;
    overflow: hidden; 
}
.index_mainbox {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: block;
    margin: 0 auto;

}

body {
    margin: 0;
    padding: 0;
    background-color: #0c0a21;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1e1b4b 0%, #0c0a21 60%, #030612 100%);
    z-index: -100;
    pointer-events: none;
}

.xchat-hero-section * {
    box-sizing: border-box;
}

.xchat-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #ffffff;
}

/* 繁星点点背景 */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    border-radius: 50%;
    will-change: opacity;
}

.star-layer1 {
    width: 1px;
    height: 1px;
    box-shadow: 10vw 10vh #fff, 20vw 80vh #fff, 30vw 30vh #fff, 40vw 60vh #fff, 50vw 20vh #fff, 60vw 90vh #fff, 70vw 40vh #fff, 80vw 10vh #fff, 90vw 70vh #fff, 95vw 30vh #fff, 5vw 50vh #fff, 15vw 90vh #fff, 25vw 20vh #fff, 35vw 70vh #fff, 45vw 40vh #fff, 55vw 80vh #fff, 65vw 10vh #fff, 75vw 60vh #fff, 85vw 90vh #fff, 88vw 20vh #fff;
    animation: twinkle 3s infinite alternate;
}

.star-layer2 {
    width: 2px;
    height: 2px;
    box-shadow: 12vw 15vh #fff, 22vw 75vh #fff, 32vw 35vh #fff, 42vw 55vh #fff, 52vw 25vh #fff, 62vw 85vh #fff, 72vw 45vh #fff, 82vw 15vh #fff, 92vw 75vh #fff, 97vw 35vh #fff, 7vw 55vh #fff, 17vw 85vh #fff, 27vw 25vh #fff, 37vw 75vh #fff, 47vw 45vh #fff, 57vw 85vh #fff, 67vw 15vh #fff, 77vw 65vh #fff, 87vw 95vh #fff, 89vw 25vh #fff;
    animation: twinkle 4s infinite alternate-reverse;
}

.star-layer3 {
    width: 3px;
    height: 3px;
    box-shadow: 18vw 18vh #fff, 28vw 78vh #fff, 38vw 38vh #fff, 48vw 58vh #fff, 58vw 28vh #fff, 68vw 88vh #fff, 78vw 48vh #fff, 88vw 18vh #fff, 98vw 78vh #fff, 2vw 38vh #fff;
    animation: twinkle 5s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.1; }
    100% { opacity: 0.9; }
}

/* 动态光粒子地球背景 */
.earth-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-width: 800px;
    height: 80vw;
    max-height: 800px;
    perspective: 1200px;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    contain: strict;
}

.earth-sphere {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateEarth 20s linear infinite;
    will-change: transform;
}

.earth-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(167, 139, 250, 1);
    backface-visibility: hidden;
    pointer-events: none;
}

.earth-ring:nth-child(1) { transform: rotateY(0deg); }
.earth-ring:nth-child(2) { transform: rotateY(60deg); }
.earth-ring:nth-child(3) { transform: rotateY(120deg); }
.earth-ring:nth-child(4) { transform: rotateX(90deg) scale(0.98); }
.earth-ring:nth-child(5) { transform: rotateX(60deg) scale(0.75); }
.earth-ring:nth-child(6) { transform: rotateX(-60deg) scale(0.75); }

@keyframes rotateEarth {
    0% { transform: rotateX(15deg) rotateY(0deg); }
    100% { transform: rotateX(15deg) rotateY(360deg); }
}

/* 核心内容区 */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    background: radial-gradient(circle, rgba(12,10,33,0.8) 0%, rgba(12,10,33,0) 80%);
}

.hero-tagline {
    display: inline-block;
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0 auto 40px auto;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* 下载按钮组 */
.download-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-primary-windows {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(90deg, #6d28d9 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary-windows:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(109, 40, 217, 0.6);
}

.btn-primary-windows::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn-primary-windows:hover::before {
    left: 100%;
}

.btn-primary-windows svg {
    margin-right: 12px;
    width: 24px;
    height: 24px;
}

.other-platforms {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.platform-link:hover {
    color: #a78bfa;
}

.platform-mini-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.platform-link svg {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    fill: currentColor;
}

.platform-divider {
    color: #4b5563;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .earth-background {
        width: 120vw;
        height: 120vw;
    }
    
    .btn-primary-windows {
        width: 100%;
        padding: 14px 20px;
    }
}

/* 错落布局配置 - 特性区域 */
.features-section {
    position: relative;
    z-index: 10;
    padding: 100px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.history-title, .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff !important;
    text-align: center;
    margin-bottom: 40px;
    -webkit-text-fill-color: initial;
    background: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(30, 27, 75, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:nth-child(1) { grid-column: span 3; }
.feature-card:nth-child(2) { grid-column: span 3; }
.feature-card:nth-child(3) { grid-column: span 2; }
.feature-card:nth-child(4) { grid-column: span 4; }
.feature-card:nth-child(5) { grid-column: span 3; }
.feature-card:nth-child(6) { grid-column: span 3; }

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(30, 27, 75, 0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: #a78bfa;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 12px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.feature-title {
    color: #fff;
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.feature-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card { grid-column: span 1 !important; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* 简介区域 */
.xchat-intro-section {
    position: relative;
    z-index: 10;
    color: #cbd5e1;
    padding: 100px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mockup-window {
    background: rgba(30, 27, 75, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: -30px 30px 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/10;
    transform: perspective(1000px) rotateY(10deg);
}

.chat-app {
    display: flex;
    height: 100%;
    background: rgba(0,0,0,0.2);
}

.chat-sidebar {
    width: 30%;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.msg-bubble {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
}

.msg-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
}

.line {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 6px;
}

.line.short { width: 40%; }
.line.medium { width: 65%; }
.line.long { width: 90%; }

.intro-text h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 25px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 30px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.check-list li svg {
    width: 20px;
    height: 20px;
    color: #a78bfa;
}

/* 下载区域 */
.download-section {
    padding: 100px 20px;
    text-align: center;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.download-card {
    background: rgba(30, 27, 75, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(30, 27, 75, 0.6);
}

.download-card h3 {
    color: #ffffff !important;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.platform-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
}

.platform-icon svg { 
    width: 32px; 
    height: 32px; 
    fill: currentColor; 
    transition: transform 0.3s ease;
}

.download-card:hover .platform-icon svg {
    transform: scale(1.1);
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.6) !important;
    background: rgba(46, 16, 101, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #a78bfa;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 80%;
}

.btn-download:hover {
    background: #a78bfa;
    color: #0f172a;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

/* FAQ */
.faq-section {
    padding: 100px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(30, 27, 75, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px 30px;
}

.faq-question {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.faq-question span { color: #a78bfa; font-weight: 800; }

.faq-answer {
    color: #94a3b8;
    line-height: 1.7;
    padding-left: 30px;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.testimonial-card {
    background: rgba(30, 27, 75, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
}

.testimonial-content {
    color: #cbd5e1;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 30px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}