
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #F5F5DC; /* 米黄色背景 */
    color: #5D4037; /* 深棕色文字 */
    line-height: 1.6;
}

/* 头部导航样式 */
header {
    background-color: #5D4037;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}
header .logo {
    font-family: 'Baskerville', serif;
    font-size: 24px;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}
header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}
header nav ul li a:hover {
    color: #B0C4DE; /* 铜绿点缀色 */
}

/* 主视觉区样式 */
.hero {
    margin-top: 80px;
    position: relative;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}
.hero h1 {
    font-family: 'Baskerville', serif;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 18px;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* 内容区样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.card img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card h3 {
    font-family: 'Baskerville', serif;
    color: #5D4037;
    margin-top: 15px;
}
.card p {
    font-size: 16px;
    color: #333;
}

/* 顶部提示样式 */
.banner {
    background: linear-gradient(45deg, #B0C4DE, #4682B4);
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
    margin-bottom: 30px;
}

/* 文章内容样式 */
article {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
article h2 {
    font-family: 'Baskerville', serif;
    font-size: 28px;
    color: #5D4037;
    margin-bottom: 20px;
}
article section {
    margin-bottom: 20px;
}
article section h3 {
    font-size: 22px;
    color: #4682B4;
    margin-bottom: 10px;
}
article section p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}
article section pre {
    background-color: #F0F0F0;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
article section code {
    background-color: #F0F0F0;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 底部样式 */
footer {
    background-color: #5D4037;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
footer a {
    color: #B0C4DE;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}
footer a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav ul {
        flex-direction: column;
        width: 100%;
    }
    .hero {
        height: 300px;
    }
    .hero h1 {
        font-size: 24px;
    }
    .container {
        grid-template-columns: 1fr;
    }
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #B0C4DE, #4682B4);
    border: none;
    border-radius: 20px;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}
.button:hover {
    background: linear-gradient(45deg, #4682B4, #B0C4DE);
}

/* 导航悬停效果 */
nav ul li a:hover {
    border-bottom: 2px solid #B0C4DE;
}

/* 图片悬停阴影效果 */
.card img:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 固定导航栏悬停背景变化 */
header nav ul li a:hover {
    background-color: rgba(176, 196, 222, 0.2);
    border-radius: 5px;
}


