
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 文字和背景基础设置 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #8BC34A, #607D8B);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    animation: backgroundMove 15s linear infinite;
}

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

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Arial', sans-serif;
    color: #2E7D32;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 2em;
    margin-top: 30px;
}

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

/* 段落样式 */
p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
}

/* 链接样式 */
a {
    color: #1E88E5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* 代码块样式 */
pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 按钮样式 */
.button {
    display: inline-block;
    background-color: #8BC34A;
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.button:hover {
    background-color: #689F38;
    transform: scale(1.05);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 15px 0;
    position: relative;
}

/* 动画花瓣 */
@keyframes fall {
    0% { transform: translateY(-100px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.flower {
    position: absolute;
    top: -50px;
    left: 50%;
    width: 50px;
    height: 50px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover;
    animation: fall 10s linear infinite;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.2em;
    }
}

/* 示例展示区 */
.sample-display {
    background: linear-gradient(135deg, #E0F7FA, #FFECB3);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
}

.sample-display h2 {
    color: #006064;
}

.sample-display pre {
    background: #FFF3E0;
    border-left: 5px solid #FFA000;
}

.sample-display table th {
    background-color: #FFC107;
}

/* 提示文字样式 */
.notice {
    text-align: center;
    font-size: 1.2em;
    color: #FF5722;
    margin-bottom: 20px;
}

