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

/* 字体与排版 */
body {
    font-family: 'Roboto', 'Montserrat', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #4A6CF7, #8C52FF);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #FFFFFF;
}

/* 容器布局 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(10, 26, 47, 0.8);
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    color: #FFA726;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.navbar .nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #FFA726;
    transform: scale(1.1);
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }
    .navbar .hamburger {
        display: block;
        cursor: pointer;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

/* 移动端导航菜单 */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: rgba(10, 26, 47, 0.9);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 8px;
}

.mobile-menu a {
    color: #FFFFFF;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 18px;
}

.mobile-menu a:last-child {
    margin-bottom: 0;
}

/* 主视觉区 */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle, rgba(255, 135, 0, 0.3), transparent);
    animation: aurora-move 15s linear infinite;
}

.hero .content {
    text-align: center;
    z-index: 1;
}

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

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero .cta-button {
    background: linear-gradient(135deg, #FFA726, #FF8E53);
    border: none;
    padding: 15px 30px;
    color: #FFFFFF;
    font-size: 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero .cta-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #FF8E53, #FFA726);
}

/* 动画关键帧 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* 内容区域 */
.section {
    padding: 60px 0;
    background-color: rgba(10, 26, 47, 0.9);
}

.section:nth-child(even) {
    background: rgba(10, 26, 47, 0.8);
}

.section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #FFA726;
}

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

.card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.card p {
    font-size: 16px;
    color: #FFFFFF;
}

/* 示范展示 */
.demo-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #4A6CF7, #8C52FF);
}

.demo-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #FFFFFF;
}

.demo-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
}

.demo-content article {
    color: #FFFFFF;
}

.demo-content pre {
    background-color: #0A1A2F;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.demo-content code {
    color: #FFA726;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 代码高亮 */
.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 4px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(10, 26, 47, 0.8);
    color: #FFA726;
    font-size: 16px;
}

/* 动态粒子背景 */
.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #FFA726;
    border-radius: 50%;
    animation: move-particles 5s infinite linear;
}

@keyframes move-particles {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100vh); opacity: 0.5; }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .hero h1 {
        font-size: 40px;
    }
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .section .content-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .section .content-wrapper {
        grid-template-columns: 1fr;
    }
    .navbar .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .navbar {
        padding: 15px;
    }
    .section .section-title {
        font-size: 28px;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 24px;
    }
    .hero p {
        font-size: 14px;
    }
    .footer {
        font-size: 14px;
    }
}

