
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e); /* 深蓝色渐变背景 */
    color: #ecf0f1; /* 浅灰色字体 */
    font-family: 'Roboto', sans-serif; /* 现代无衬线字体 */
    line-height: 1.6;
    overflow-x: hidden; /* 禁止水平滚动条 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    z-index: 1000;
}
.navbar.scrolled {
    background: #2c3e50;
}
.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ecf0f1;
}
.navbar .nav-links a {
    color: #ecf0f1;
    margin-left: 20px;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}
.navbar .nav-links a:hover {
    color: #3498db;
}
.navbar .search {
    position: relative;
}
.navbar .search input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    outline: none;
    transition: width 0.3s ease;
    width: 150px;
}
.navbar .search input:focus {
    width: 250px;
}

/* 主内容区样式 */
.section-hero {
    position: relative;
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.7);
}
.section-hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.section-hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}
.section-hero p {
    font-size: 1.2em;
}

/* 提示信息样式 */
.reference-note {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(52, 152, 219, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    color: #fff;
    z-index: 1000;
    animation: fadeIn 2s ease-in;
}

/* 文章内容样式 */
article {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(44, 62, 80, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
article h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
}
article h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}
article p {
    font-size: 1em;
    color: #ecf0f1;
    margin-bottom: 15px;
}
article pre {
    background: #2c3e50;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    margin-bottom: 20px;
    white-space: pre-wrap;
}
article b, article strong {
    color: #e67e22;
}
article a {
    color: #3498db;
    text-decoration: none;
}
article a:hover {
    text-decoration: underline;
}

/* 卡片式布局 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}
.card {
    background: #34495e;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}
.card .chart {
    width: 100%;
    height: 200px;
    background: #2c3e50;
    border-radius: 4px;
}

/* 按钮样式 */
.button-highlight {
    background: linear-gradient(45deg, #3498db, #e67e22);
    border: none;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 4px;
    font-size: 1em;
}
.button-highlight:hover {
    background: linear-gradient(45deg, #2980b9, #d35400);
}
.button-hover {
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}
.button-hover:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1s ease-in;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
    }
    .navbar .search input {
        width: 100px;
    }
    .section-hero h1 {
        font-size: 2em;
    }
    article h2 {
        font-size: 1.8em;
    }
}
@media (min-width: 769px) {
    .navbar .search input {
        width: 150px;
    }
}

