
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0074D9, #651FFF);
    color: #fff;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}
a {
    color: #FFD700;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 头部设计 */
header {
    position: relative;
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png'), linear-gradient(135deg, #0074D9, #651FFF);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    animation: rotate-bg 15s infinite linear;
    transform-origin: 50% 50%;
    z-index: 1;
}
header h1 {
    font-size: 48px;
    background: -webkit-linear-gradient(#FF4500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}
header p {
    font-size: 20px;
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    z-index: 2;
}

/* 动画效果 */
@keyframes rotate-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.background-animated {
    background: linear-gradient(135deg, #0074D9, #651FFF);
    background-size: 200% 200%;
    animation: gradient-animation 10s infinite;
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 模块化卡片式布局 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    width: calc(33.333% - 20px);
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-10px);
}
.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .card {
        width: calc(50% - 20px);
    }
}
@media (max-width: 768px) {
    .card {
        width: 100%;
    }
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: #fff;
    margin: 10px 0;
}
code {
    color: #FFD700;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0074D9, #651FFF);
    color: #fff;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}
.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}
.button:hover {
    background: linear-gradient(135deg, #FF4500, #FFD700);
}
.button:hover::before {
    width: 150px;
    height: 150px;
    opacity: 1;
}

/* 底部提示 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 14px;
}

