
/* 页面全局样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #605C3C, #8A2E24);
    color: #fff;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    color: #FFD700;
    margin-top: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}
ul, ol {
    margin-left: 20px;
}
li {
    margin-bottom: 10px;
}
a {
    color: #00FFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFD700;
}
pre {
    background: #333;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    color: #0F0;
}
code {
    font-family: 'Courier New', monospace;
    color: #0F0;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #fff;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #8A2E24;
    color: #FFD700;
}
td {
    color: #fff;
}
/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.navbar a {
    color: #fff;
    margin-right: 20px;
    font-size: 18px;
    position: relative;
}
.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFD700;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.navbar a:hover::after {
    transform: scaleX(1);
}
/* 模块化布局样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 80px;
}
.grid-item {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-10px);
}
.grid-item img {
    max-width: 100%;
    border-radius: 8px;
}
/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 2s ease-in-out;
}
.glow {
    animation: glow 2s infinite alternate;
}
@keyframes glow {
    from { box-shadow: 0 0 10px #FFD700; }
    to { box-shadow: 0 0 20px #FFD700; }
}
/* 特殊区块样式 */
.featured-section {
    background: linear-gradient(135deg, #8A2E24, #605C3C);
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 15px;
    position: relative;
}
.featured-section h2 {
    text-align: center;
    margin-bottom: 20px;
}
.featured-section p {
    text-align: center;
    font-size: 18px;
}
.cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #FFA500;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar a {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

