
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    overflow-x: hidden;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: radial-gradient(circle, rgba(255,87,34,0.8), transparent);
    animation: aurora-move 15s linear infinite;
}

header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700;
}

header p {
    font-size: 1.2em;
    color: #ffffff;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 0;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
    transition: color 0.3s ease;
}

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

/* 主要内容样式 */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

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

.card p {
    margin-top: 10px;
    font-size: 1em;
    color: #ffffff;
}

/* 示例展示样式 */
.example-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.example-display h2 {
    color: #FFD700;
    margin-bottom: 20px;
}

.example-display article {
    line-height: 1.8;
}

.example-display pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #00ff00;
}

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

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

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

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: rgba(255, 215, 0, 0.3);
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgba(255,87,34,0.8), transparent); }
    50% { background: radial-gradient(circle, rgba(34,193,195,0.8), transparent); }
    100% { background: radial-gradient(circle, rgba(255,87,34,0.8), transparent); }
}

/* 按钮样式 */
button {
    background-color: #FFD700;
    border: none;
    padding: 10px 20px;
    color: #000;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #FFA500;
}

/* 视差滚动效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

@media (max-width: 1200px) {
    .navbar a {
        margin: 0 10px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .navbar {
        flex-direction: column;
    }

    .navbar a {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .card h3 {
        font-size: 1.2em;
    }

    .card p {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    header {
        padding: 30px 0;
    }

    header h1 {
        font-size: 1.5em;
    }

    .navbar a {
        font-size: 0.9em;
    }
}

