
/* 全局设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #8EC5FC, #E0C3FC);
    color: #333;
    line-height: 1.6;
    background-attachment: fixed;
}

/* 头部样式 */
.header {
    background: linear-gradient(to bottom, #4a90e2, #667eea);
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    background-position: center;
    animation: aurora-move 15s linear infinite;
}

.header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2em;
    margin-top: 10px;
}

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

.module {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.module img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.module h2, .module h3 {
    font-family: 'Pacifico', cursive;
    color: #4a90e2;
}

.module pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.module code {
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #667eea;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: transform 0.6s ease-out;
}

button:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.05);
    font-size: 0.9em;
    color: #666;
}

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

    .container {
        padding: 20px 10px;
    }

    .module {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 10px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .module h2, .module h3 {
        font-size: 1.5em;
    }

    button {
        padding: 8px 16px;
    }
}

