/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-main {
    font-size: 24px;
    font-weight: bold;
    color: #ff4d4f;
}

.beta-tag {
    font-size: 9px;
    font-weight: normal;
    color: #666;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 1px 4px;
    border-radius: 8px;
    display: inline-block;
    margin-left: 6px;
    vertical-align: top;
    margin-top: 4px;
}

.logo-sub {
    font-size: 12px;
    color: #666;
    line-height: 1;
    padding-left: 10px;
    border-left: 1px solid #ddd;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff4d4f;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn.primary {
    background-color: #ff4d4f;
    color: white;
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.btn.primary:hover {
    color: white;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 77, 79, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

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

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

/* 神经元效果 */
.neuron {
    position: absolute;
    background: rgba(255, 77, 79, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.neuron::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to right, rgba(255, 77, 79, 0.6), transparent);
    transform: rotate(45deg);
    top: -20px;
    left: 50%;
}

.neuron:nth-child(1) {
    width: 10px;
    height: 10px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.neuron:nth-child(2) {
    width: 8px;
    height: 8px;
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.neuron:nth-child(3) {
    width: 12px;
    height: 12px;
    top: 40%;
    left: 90%;
    animation-delay: 2s;
}

.neuron:nth-child(4) {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 20%;
    animation-delay: 3s;
}

.neuron:nth-child(5) {
    width: 10px;
    height: 10px;
    top: 30%;
    left: 70%;
    animation-delay: 4s;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 功能区域 */
.features {
    padding: 80px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* 优势区域 */
.advantages {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.advantages h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.advantages > .container > p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* 解决方案区域 */
.solutions {
    padding: 80px 0;
    background-color: white;
}

.solutions h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.solutions > .container > p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.solution-container {
    background-color: #f5f5f5;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.solution-row {
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    height: 60px;
}

.solution-row:last-child {
    margin-bottom: 0;
}

.solution-row-inner {
    display: flex;
    gap: 15px;
    align-items: center;
    position: absolute;
    top: 0;
    height: 100%;
    animation: scroll 30s linear infinite;
}

/* 为不同行设置不同方向的动画 */
.solution-row:nth-child(odd) .solution-row-inner {
    left: 0;
    animation: scrollLeft 30s linear infinite;
}

.solution-row:nth-child(even) .solution-row-inner {
    right: 0;
    animation: scrollRight 30s linear infinite;
}

.solution-item {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff2f0;
}

.solution-row:hover .solution-row-inner {
    animation-play-state: paused;
}

/* 向左滚动动画 */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 向右滚动动画 */
@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* 下载区域 */
.download {
    padding: 80px 0;
    background-color: #e0e0e0;
    text-align: center;
}

.download h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.download > .container > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.download-hint {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.btn.large {
    padding: 16px 32px;
    font-size: 18px;
    min-width: 300px;
    text-align: center;
}

.btn.crystal {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%),
                linear-gradient(to bottom, #ff4d4f 0%, #d32f2f 100%);
    box-shadow: 
        0 4px 6px rgba(255,77,79,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(211,47,47,0.3);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn.crystal:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 12px rgba(255,77,79,0.3),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(211,47,47,0.4);
}

.btn.crystal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0) 50%,
        rgba(255,255,255,0.2) 100%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.platform-card {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.platform-card.active {
    background-color: #fff2f0;
    box-shadow: 0 6px 16px rgba(255, 77, 79, 0.1);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.platform-card.active:hover {
    box-shadow: 0 8px 20px rgba(255, 77, 79, 0.2);
}

.platform-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.platform-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.platform-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.platform-card .system-requirement {
    font-size: 12px;
    color: #999;
    margin-bottom: 30px;
}

.platform-card .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.btn.disabled {
    background-color: #d9d9d9;
    color: #666;
    cursor: not-allowed;
}

.btn.disabled:hover {
    opacity: 1;
    transform: none;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.about p {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.about-links a {
    text-decoration: none;
    color: #ff4d4f;
    font-weight: 500;
    transition: color 0.3s;
}

.about-links a:hover {
    color: #cf1322;
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .features h2,
    .advantages h2,
    .solutions h2,
    .about h2 {
        font-size: 28px;
    }

    .feature-cards,
    .advantage-cards,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .solution-column {
        margin-bottom: 30px;
    }

    .about-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}