
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: radial-gradient(circle at top right, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.5px;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    position: relative;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

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

.navbar-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff5722;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 300px;
    background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.carousel-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 123, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
}

.carousel-content h2 {
    margin-bottom: 10px;
    font-size: 1.8em;
    color: #ffffff;
}

.carousel-content a {
    display: inline-block;
    padding: 10px 20px;
    background: #8e2de2;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s;
}

.carousel-content a:hover {
    background: #4a00e0;
}

/* 模块样式 */
.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffffff;
    display: inline-block;
}

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

.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: #ff5722;
}

.card p {
    font-size: 0.95em;
    margin-bottom: 15px;
}

.card a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.card a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

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

/* 文章展示样式 */
.article-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.article-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #8e2de2;
}

.article-section p {
    margin-bottom: 15px;
}

.article-section pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.article-section code {
    color: #ff5722;
}

.article-section ul, .article-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article-section table, .article-section th, .article-section td {
    border: 1px solid #ffffff;
}

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

.article-section th {
    background: #2a5298;
}

/* 示例展示提示 */
.reference-note {
    text-align: center;
    font-size: 1em;
    margin-bottom: 20px;
    color: #ff5722;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .carousel {
        height: 250px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 1024px) {
    .section h2 {
        font-size: 1.8em;
    }

    .carousel-content h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 200px;
    }

    .carousel-content {
        padding: 15px;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px;
    }

    .navbar-brand {
        font-size: 1.2em;
    }

    .carousel {
        height: 150px;
    }

    .carousel-content h2 {
        font-size: 1.2em;
    }

    .section h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    .navbar {
        padding: 10px;
    }

    .carousel {
        height: 120px;
    }

    .carousel-content {
        padding: 10px;
    }

    .section h2 {
        font-size: 1.2em;
    }

    .card h3 {
        font-size: 1em;
    }

    .article-section {
        padding: 20px;
    }
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #8e2de2, #4a00e0);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s;
}

.button:hover {
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: #ffffff;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    margin-right: 10px;
}


