
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5e9c8 0%, #a7d6b4 50%, #8ecae6 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Helvetica Neue', sans-serif;
    color: #2c3e50;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 40px;
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid #a7d6b4;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5em;
    color: #27ae60;
}

h4 {
    font-size: 1.2em;
    color: #2980b9;
}

/* 段落样式 */
p {
    font-size: 1em;
    margin-bottom: 15px;
    text-align: justify;
}

b {
    color: #e67e22;
}

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

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

/* 动态文本样式 */
.dynamic-text span {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

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

/* 分屏布局 */
.split-screen {
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
}

.split-screen .left, .split-screen .right {
    flex: 1 1 100%;
    min-height: 300px;
    position: relative;
}

.split-screen .left {
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover;
}

.split-screen .right {
    background-color: rgba(245, 245, 245, 0.9);
    padding: 40px;
    overflow-y: auto;
}

/* 互动按钮样式 */
.hover-button {
    background-color: #6fa8dc;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.hover-button:hover {
    background-color: #3c78d8;
    transform: scale(1.1);
}

/* 图像覆盖层 */
.image-overlay {
    position: relative;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}

/* 展示区样式 */
.showcase {
    margin-top: 40px;
}

.showcase img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 10px;
    border-radius: 10px;
}

/* 列表样式 */
ul {
    list-style-type: disc;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* 警示文本 */
.alert-text {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-left: 5px solid #e74c3c;
    margin: 20px 0;
    border-radius: 3px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: white;
    margin-top: 40px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* 微交互涟漪效果 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
    background-size: 100% 100%;
    animation: ripple-effect 15s linear infinite;
}

@keyframes ripple-effect {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* 响应式设计 */
@media (min-width: 320px) and (max-width: 479px) {
    h1 { font-size: 1.8em; }
    .split-screen {
        flex-direction: column;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    h1 { font-size: 2em; }
    .split-screen .left, .split-screen .right {
        flex: 1 1 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 { font-size: 2.2em; }
    .split-screen {
        flex-direction: row;
    }
    .split-screen .left, .split-screen .right {
        flex: 1;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    h1 { font-size: 2.5em; }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    h1 { font-size: 2.8em; }
}

@media (min-width: 1440px) {
    h1 { font-size: 3em; }
}

/* 代码预览样式 */
.code-preview {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    color: #dcdcdc;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.code-preview pre {
    margin: 0;
    overflow-x: auto;
}

