
/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    animation: fadeInDown 1s ease-out;
}

header p {
    font-size: 1.2em;
    color: #d1d1d1;
    animation: fadeInUp 1s ease-out;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s ease;
}

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

nav a:hover {
    color: #ffa500;
}

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

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

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

.module:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

/* 图片样式 */
.module img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

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

/* 标题样式 */
.module h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffa500;
    animation: fadeInLeft 1s ease-out;
}

.module p {
    font-size: 1em;
    color: #dddddd;
    margin-bottom: 10px;
}

.module ul {
    list-style: none;
}

.module ul li {
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat left center;
    padding-left: 25px;
    margin-bottom: 8px;
    background-size: 16px 16px;
}

/* 代码块样式 */
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9em;
    color: #f1f1f1;
    margin-bottom: 20px;
}

code {
    font-family: 'Fira Sans', monospace;
}

/* 示例数据展示 */
.sample-data {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.sample-data h2 {
    color: #ffdd57;
    margin-bottom: 15px;
}

.sample-data ul {
    list-style: disc inside;
    color: #ecf0f1;
}

.sample-data li {
    margin-bottom: 10px;
}

/* 提示信息 */
.notice {
    text-align: center;
    font-size: 1.2em;
    color: #ff6347;
    margin-bottom: 40px;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@media (max-width: 1200px) {
    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    header {
        padding: 30px 0;
    }

    header h1 {
        font-size: 2em;
    }

    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    nav a {
        font-size: 1em;
    }

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

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.2em;
    }

    .module h2 {
        font-size: 1.2em;
    }
}

