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

body {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #000428, #004e92);
    overflow-x: hidden;
}

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

/* 头部 */
header {
    text-align: center;
    padding: 100px 0;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    position: relative;
    color: #ffffff;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 3rem;
    z-index: 1;
    position: relative;
    font-weight: bold;
}

header p {
    font-size: 1.2rem;
    margin-top: 20px;
    z-index: 1;
    position: relative;
}

/* 主要内容 */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: linear-gradient(135deg, #004e92, #000428);
}

section:nth-child(odd) {
    background: linear-gradient(135deg, #000428, #004e92);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffeb3b;
}

section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

section pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

table, th, td {
    border: 1px solid #ffffff;
}

th, td {
    padding: 12px;
    text-align: center;
}

th {
    background: #ff9800;
    color: #000000;
}

td {
    background: rgba(255, 255, 255, 0.1);
}

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

/* 动画效果 */
@keyframes sparkle {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffeb3b;
    border-radius: 50%;
    animation: sparkle 1s ease-in-out infinite;
}

/* 按钮样式 */
.button {
    background-color: #ff9800;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.button:hover {
    background-color: #f57c00;
    box-shadow: 0 0 10px #ffeb3b;
}

/* 微交互 */
.button:hover::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid #ffeb3b;
    border-radius: 4px;
    animation: glow 0.5s forwards;
}

@keyframes glow {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    section h2 {
        font-size: 2rem;
    }

    header h1 {
        font-size: 2rem;
    }
}

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

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 1.8rem;
    }
}

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

    section h2 {
        font-size: 1.5rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

    section h2 {
        font-size: 1.2rem;
    }

    .container {
        padding: 40px 0;
    }
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 1rem;
    margin-top: 20px;
    color: #ffeb3b;
}

/* 内部链接 */
a {
    color: #ff9800;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffeb3b;
    transition: width .3s;
}

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

/* 代码可读性 */
pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 微调内容间距 */
.article-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    margin-bottom: 40px;
}

