
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A2463, #F5F7FA);
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 36, 99, 0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header .logo {
    color: #39FF14;
    font-size: 1.5em;
    text-decoration: none;
    font-weight: bold;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
nav ul li a {
    color: #F5F7FA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #39FF14;
}
main {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
section {
    margin-bottom: 60px;
}
h1, h2, h3 {
    color: #0A2463;
    margin-bottom: 20px;
}
h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
}
h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    border-bottom: 2px solid #39FF14;
    display: inline-block;
    padding-bottom: 5px;
}
h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin-top: 40px;
}
p {
    font-family: 'Merriweather', serif;
    font-size: 1em;
    margin-bottom: 20px;
}
pre {
    background: #EFEFEF;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}
code {
    font-family: 'Courier New', Courier, monospace;
    color: #0A2463;
}
button {
    background-color: #0A2463;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}
button:hover {
    background-color: #39FF14;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.item {
    background: #F5F7FA;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}
a {
    color: #39FF14;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0A2463;
}
.code-preview {
    background: #0A2463;
    color: #39FF14;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

/* 动画效果 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
body {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}
@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}
svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s ease-in-out forwards;
}
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent 50%, #F5F7FA 100%);
    animation: wave-animation 5s infinite alternate;
}
@keyframes wave-animation {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header {
        padding: 15px 30px;
    }
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.3em;
    }
}
@media (max-width: 1200px) {
    main {
        padding: 80px 15px 40px 15px;
    }
    nav ul {
        gap: 15px;
    }
}
@media (max-width: 1024px) {
    header {
        padding: 10px 20px;
    }
    .container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    header .menu-toggle {
        display: block;
        cursor: pointer;
        color: #F5F7FA;
        font-size: 1.5em;
    }
    .mobile-nav {
        display: none;
        flex-direction: column;
        background: rgba(10, 36, 99, 0.9);
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        border-radius: 5px;
    }
    .mobile-nav a {
        margin-bottom: 10px;
    }
}
@media (max-width: 480px) {
    header {
        padding: 8px 15px;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.1em;
    }
    button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}
@media (max-width: 320px) {
    header {
        padding: 5px 10px;
    }
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.2em;
    }
    h3 {
        font-size: 1em;
    }
    .container {
        grid-template-columns: 1fr;
    }
}

/* 特殊样式 */
.notice {
    text-align: center;
    font-size: 1.2em;
    color: #39FF14;
    margin-bottom: 40px;
}
.article-demo {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.article-demo h2 {
    color: #0A2463;
    border-bottom: none;
}
.article-demo pre {
    background: #EFEFEF;
    padding: 10px;
    border-radius: 5px;
}
.chart-bar {
    width: 50px;
    height: 0;
    background-color: #39FF14;
    transition: height 0.5s ease;
}
.chart-bar:nth-child(1) { height: 100px; }
.chart-bar:nth-child(2) { height: 150px; }
.chart-bar:nth-child(3) { height: 80px; }

