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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    background: rgba(30, 60, 114, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.5s ease;
}

.navbar.scrolled {
    background: rgba(30, 60, 114, 0.95);
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ffdd00;
}

/* 主页大图 */
.header {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(30,144,255,0.6), transparent);
    animation: aurora-move 15s linear infinite;
}

.header-content {
    z-index: 1;
    text-align: center;
}

.header-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    background: linear-gradient(to right, #1e90ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 2s ease-in-out;
}

.header-content p {
    margin-top: 20px;
    font-size: 1.2em;
    color: #f0f0f0;
    animation: fadeIn 2s ease-in-out 1s forwards;
    opacity: 0;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgba(30,144,255,0.6), transparent); }
    50% { background: radial-gradient(circle, rgba(138,43,226,0.6), transparent); }
    100% { background: radial-gradient(circle, rgba(30,144,255,0.6), transparent); }
}

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

/* 内容模块 */
.section {
    padding: 60px 40px;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #ffffff;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(135deg, #8a2be2, #1e90ff);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #ffffff;
}

.card p {
    font-size: 1em;
    color: #f0f0f0;
}

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background: radial-gradient(circle, #00ff7f, #1e90ff);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.5s ease;
}

.button:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #ff69b4, #8a2be2);
}

/* 示例展示 */
.example {
    padding: 60px 40px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.example h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #ffffff;
}

.article {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.article h2, .article h3, .article h4 {
    color: #ffdd00;
}

.article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.article code {
    color: #ffdd00;
    font-family: 'Courier New', Courier, monospace;
}

/* 代码块样式 */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

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

/* 提示信息 */
.reference {
    text-align: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.3);
    color: #000000;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px 20px;
    }

    .header-content h1 {
        font-size: 2em;
    }

    .section, .example {
        padding: 40px 20px;
    }
}

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

    .button {
        padding: 8px 20px;
    }
}

