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

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, #0A0A0A, #1E1E1E);
    color: #FFFFFF;
    line-height: 1.6;
    letter-spacing: 0.5px;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 14, 14, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #0074FF;
}

.navbar .toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar .toggle div {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }
    .navbar ul {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(14, 14, 14, 0.95);
        width: 100%;
        transition: left 0.3s ease;
    }
    .navbar ul.active {
        left: 0;
    }
    .navbar ul li {
        margin: 20px 0;
        text-align: center;
    }
    .navbar .toggle {
        display: flex;
    }
}

/* 主体内容样式 */
.header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0074FF, #FF8C00);
    animation: aurora-move 15s linear infinite;
    text-align: center;
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.header p {
    font-size: 18px;
    color: #E0E0E0;
    max-width: 600px;
    margin: 0 auto 40px;
}

.header .btn-primary {
    background: linear-gradient(to right, #0074FF, #FF8C00);
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.header .btn-primary:hover::before {
    width: 200%;
    height: 200%;
}

.header .btn-primary:hover {
    transform: scale(1.05);
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 内容区块样式 */
.section {
    padding: 100px 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: #1E1E1E;
}

.section .left, .section .right {
    flex: 1 1 45%;
    margin: 20px 0;
}

.section .left img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.section .left img:hover {
    transform: scale(1.05);
}

.section .right h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
}

.section .right p {
    font-size: 16px;
    color: #CCCCCC;
    margin-bottom: 15px;
}

/* 示例展示样式 */
.demo-section {
    padding: 100px 50px;
    background: #0A0A0A;
}

.demo-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #FF8C00;
    margin-bottom: 40px;
    text-align: center;
}

.demo-section article {
    background: #1E1E1E;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.demo-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #0074FF;
    margin-bottom: 15px;
}

.demo-section p {
    font-size: 16px;
    color: #CCCCCC;
    margin-bottom: 15px;
}

.demo-section pre {
    background: #2E2E2E;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.demo-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #FF8C00;
}

/* 提示信息样式 */
.notice {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #0074FF, #FF8C00);
    color: #FFFFFF;
    font-size: 18px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 页脚样式 */
.footer {
    padding: 50px;
    background: #0A0A0A;
    text-align: center;
}

.footer p {
    font-size: 16px;
    color: #CCCCCC;
}

/* 动态粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .section, .demo-section {
        padding: 80px 30px;
    }

    .navbar {
        padding: 15px 30px;
    }

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

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

@media (max-width: 480px) {
    .section, .demo-section {
        padding: 60px 20px;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar ul li {
        margin: 15px 0;
    }

    .header h1 {
        font-size: 28px;
    }

    .header p {
        font-size: 14px;
    }

    .section .left, .section .right {
        flex: 1 1 100%;
    }
}

