
/* 全局样式设置 */
body {
    /* 设置渐变背景，避免纯白色 */
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #333333;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    /* 使用黄金比例布局 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    background: #5b86e5;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #36d1dc;
}

/* 主内容区域 */
.container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章内容样式 */
article {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

article h2, article h3 {
    color: #333333;
}

article h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

article h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 图片样式 */
.decorative-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

/* 提示信息样式 */
.promo-banner {
    background: #36d1dc;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #5b86e5;
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #36d1dc, #5b86e5);
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(45deg, #5b86e5, #36d1dc);
    transform: scale(1.05);
}

/* 加载动画样式 */
.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #36d1dc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页脚样式 */
.footer {
    background: #5b86e5;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

/* 链接样式，确保所有外部链接添加 rel="nofollow" */
a[nofollow] {
    color: #36d1dc;
    text-decoration: none;
}

a[nofollow]:hover {
    text-decoration: underline;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .container {
        padding: 20px;
    }

    article {
        padding: 20px;
    }
}

/* 章节导航系统样式 */
.chapter-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chapter-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-nav li {
    margin-bottom: 10px;
}

.chapter-nav a {
    color: #5b86e5;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.chapter-nav a:hover {
    color: #36d1dc;
}

/* 卡片式设计样式 */
.card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 20px;
    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 8px 12px rgba(0,0,0,0.2);
}

/* 过渡效果 */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 按需添加更多CSS3高级特性 */

/* 按钮动画 */
@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.button-pulse:hover {
    animation: buttonPulse 1s infinite;
}

/* 背景阴影 */
.shadow-bg {
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* 三维变换示例 */
.card-3d {
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.6s;
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(10deg);
}

/* 字体过渡 */
.text-transition {
    transition: all 0.3s ease;
}

.text-transition:hover {
    color: #5b86e5;
    font-weight: bold;
}

