
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: white;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1cb5e0, #2a2a72);
    padding: 20px;
    text-align: center;
    font-family: 'Bebas Neue', cursive;
    font-size: 36px;
    color: #00ff99;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

nav a {
    color: #00ff99;
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00e673;
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 模块样式 */
.module {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 标题样式 */
h1, h2, h3, h4 {
    margin: 20px 0;
}

h1 {
    font-size: 48px;
    color: #00ff99;
}

h2 {
    font-size: 36px;
    color: #1cb5e0;
}

h3 {
    font-size: 28px;
    color: #ff9900;
}

h4 {
    font-size: 24px;
    color: #ff6699;
}

/* 段落样式 */
p {
    line-height: 1.6;
    font-size: 16px;
    color: white;
}

/* 代码块样式 */
pre {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff99;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00e673;
}

/* 按钮样式 */
button {
    background-color: #00ff99;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    background-color: #00e673;
}

/* 图标样式 */
.icon {
    width: 50px;
    height: 50px;
    background-color: #00ff99;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,255,153,0.8);
    position: relative;
}

.icon::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid rgba(0,255,153,0.5);
    border-radius: 50%;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 320px) {
    header {
        font-size: 24px;
    }
    nav a {
        font-size: 14px;
        margin: 0 10px;
    }
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    header {
        font-size: 28px;
    }
    nav a {
        font-size: 16px;
        margin: 0 12px;
    }
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    nav a {
        font-size: 17px;
    }
}

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

@media (min-width: 1440px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
    h1 {
        font-size: 52px;
    }
    h2 {
        font-size: 38px;
    }
}

