
/* 页面整体样式 */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部设计 */
header {
    background: linear-gradient(135deg, #1f4068, #2e5984);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    color: #d4d4d4;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat-x;
    opacity: 0.1;
    animation: header-bg-move 15s linear infinite;
}

@keyframes header-bg-move {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 区块样式 */
.section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    margin-top: -20px;
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #1f4068, #2e5984);
}

.section .inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.section-text {
    flex: 1;
    padding: 20px;
}

.section-image {
    flex: 1;
    text-align: center;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6f61, #ff9a8b);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

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

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

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

th {
    background: #2a5298;
    color: #fff;
}

td {
    background: #1f4068;
    color: #d4d4d4;
}

/* 响应式适配 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .section .inner {
        flex-direction: column;
    }

    .section img {
        margin-bottom: 20px;
    }

    pre {
        font-size: 0.8rem;
    }
}

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

    header p {
        font-size: 1rem;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* 动态交互效果 */
.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 提示文字样式 */
.tip {
    text-align: center;
    font-size: 0.9rem;
    color: #d4d4d4;
    margin-top: 20px;
}

