
/* 页面全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
p { 
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
}
a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: #ff9900; }

/* 特殊区块样式 */
.hero-section {
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    opacity: 0.2;
    z-index: -1;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.grid-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-10px);
}

/* 图片和装饰样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}
.decorative-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
}

/* 代码块样式 */
pre {
    background: #2d2d2d;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 20px 0;
}
code {
    color: #ffcc00;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    .grid-container { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-section { padding: 30px 10px; }
    p { font-size: 0.9rem; }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animated {
    animation: fadeIn 1s ease-in-out;
}

/* 提示样式 */
.notice {
    background: #ffcc00;
    color: #333;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    margin: 20px 0;
    border-radius: 5px;
}

