:root {
    --primary-color: #6366F1;      /* 更鲜明的主色调 */
    --accent-color: #818CF8;       /* 柔和的强调色 */
    --dark-color: #0A0F1D;         /* 更深的背景色 */
    --light-color: #FFFFFF;        /* 纯白色文字 */
    --text-color: #F1F5F9;         /* 更亮的文字颜色 */
    --section-bg: #151D2E;         /* 更深的区块背景 */
    --hover-color: #4F46E5;        /* 悬浮效果色 */
    --border-color: rgba(255, 255, 255, 0.1); /* 边框颜色 */
}

/* 导航栏样式 */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

/* 主要区域样式 */
.hero {
    min-height: 100vh;
    height: 100vh; /* 确保完全铺满 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--section-bg) 100%);
    padding: 0; /* 移除默认内边距 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%),
        linear-gradient(rgba(0, 0, 0, 0.4) 0%, var(--dark-color) 100%);
}

.particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    background: linear-gradient(
        300deg,
        #FF6B6B 0%,
        #4ECDC4 15%,
        #45B8AC 30%,
        #96C3EB 45%,
        #7B68EE 60%,
        #FF85E6 75%,
        #FFA07A 90%,
        #FF6B6B 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 3s ease-in-out infinite;
}

.hero-subtitle-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 1.5rem auto;
    max-width: 90%;
    padding: 0 15px;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: 280px;
        margin: 1.5rem auto 0;
        width: 100%;
        padding: 0 20px;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero .lead {
    font-size: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    padding: 0;
    text-align: center;
    width: fit-content;  /* 使用fit-content确保宽度适应内容 */
}

/* 按钮样式 */
.hero .btn {
    position: relative;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
}

.hero .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: var(--light-color);
}

.hero .btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--light-color);
    backdrop-filter: blur(4px);
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* 软件界面展示图片样式 */
.hero-image {
    max-width: 600px;  /* 适应界面宽度700px，留出边距 */
    max-height: 350px; /* 考虑到其他UI元素占用空间 */
    width: auto;
    height: auto;
    border-radius: 12px;
    object-fit: contain; /* 保持图片比例 */
    margin: 20px auto;
    display: block;
}

@media (max-width: 700px) {
    .hero-image {
        max-height: 300px;
    }
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
}

/* 功能卡片样式 */
.feature-card {
    background: var(--section-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* 下载区域样式 */
.download-options {
    max-width: 400px;
    margin: 0 auto;
}

.download-options .btn {
    padding: 1rem;
    transition: all 0.3s ease;
}

.download-options .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.download-options .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-options .btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.download-options .small {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* 使用指南样式 */
.step-card {
    background: var(--section-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.step-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin: 1rem 0;
}

/* 文字样式调整 */
body {
    color: var(--text-color);
    background-color: var(--dark-color);
}

.feature-card h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.9;
}

.step-card h4 {
    color: var(--light-color);
}

.step-card p {
    color: var(--text-color);
    opacity: 0.9;
}

.footer {
    color: var(--text-color);
    background: var(--section-bg);
    padding: 3rem 0;
}

/* 文本颜色修正 */
.text-light {
    color: var(--text-color) !important;
}

.feature-card p, 
.step-card p,
.step-detail {
    color: var(--text-color);
    opacity: 0.9;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.modal-title {
    color: var(--light-color);
}

/* 下载弹框样式 */
.modal-content {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.version-badges .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.system-req {
    margin: 1rem 0;
    font-size: 0.95rem;
}

/* 3D效果样式 */
.floating-3d {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-image.floating-3d {
    transform-origin: center center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-image.floating-3d:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* 界面预览样式 */
.interface-preview {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.hero-image {
    border-radius: 8px;
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* 新的标题样式 */
.title-text {
    font-size: min(3.5rem, 8vw);  /* 响应式字体大小 */
    font-weight: 700;
    background: linear-gradient(
        300deg,
        #FF6B6B 0%,
        #4ECDC4 15%,
        #45B8AC 30%,
        #96C3EB 45%,
        #7B68EE 60%,
        #FF85E6 75%,
        #FFA07A 90%,
        #FF6B6B 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(123, 104, 238, 0.4);
    animation: gradient 5s ease-in-out infinite;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .title-text {
        font-size: min(2.5rem, 7vw);
        padding: 0 10px;
    }

    .hero h1 {
        font-size: min(2.5rem, 7vw);
        transform: none;
        padding: 0 15px;
    }

    .hero .lead {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 3.2rem;
        white-space: nowrap;
        background: linear-gradient(
            300deg,
            #FF6B6B 0%,
            #4ECDC4 15%,
            #45B8AC 30%,
            #96C3EB 45%,
            #7B68EE 60%,
            #FF85E6 75%,
            #FFA07A 90%,
            #FF6B6B 100%
        );
        background-size: 400% 400%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: gradient 3s ease-in-out infinite;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        white-space: nowrap;
        color: var(--text-color);
        margin: 1.5rem auto;
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0 15px;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 1.5rem auto 0;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
