
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000814, #001d3d, #003566);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 渐变动画 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background {
    background: linear-gradient(135deg, #008CFF, #7F00FF, #00FF9B);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
}

/* 容器布局 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #00FF9B;
}

header h1 {
    font-size: 3em;
    color: #00FF9B;
    text-shadow: 2px 2px 10px rgba(0, 255, 155, 0.7);
}

/* 导航样式 */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00FF9B;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

/* 主要内容样式 */
main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 标题样式 */
h2, h3, h4 {
    color: #00FF9B;
    text-shadow: 1px 1px 5px rgba(0, 255, 155, 0.7);
}

h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

h3 {
    font-size: 2em;
    margin-top: 20px;
}

h4 {
    font-size: 1.5em;
    margin-top: 15px;
}

/* 段落样式 */
p {
    font-size: 1.1em;
    margin: 10px 0;
    color: #e0e0e0;
}

/* 代码块样式 */
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

code {
    color: #00FF9B;
    font-size: 1em;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 列表样式 */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

ul li::before {
    content: '✔️';
    margin-right: 10px;
    color: #00FF9B;
}

/* 响应式设计 */
@media (min-width: 320px) and (max-width: 479px) {
    header h1 {
        font-size: 2em;
    }

    nav a {
        font-size: 1em;
    }

    main {
        gap: 20px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    header h1 {
        font-size: 2.5em;
    }

    nav a {
        font-size: 1.1em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }

    header h1 {
        font-size: 3em;
    }

    nav a {
        font-size: 1.2em;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    header h1 {
        font-size: 3.5em;
    }
}

@media (min-width: 1200px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }

    header h1 {
        font-size: 4em;
    }
}

@media (min-width: 1440px) {
    .container {
        grid-template-columns: repeat(6, 1fr);
    }

    header h1 {
        font-size: 4.5em;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hover-effect:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}


