
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Futura', sans-serif; /* 正文字体 */
    background: linear-gradient(135deg, #F5F5DC, #FFD700); /* 背景渐变色 */
    color: #333333; /* 文字颜色 */
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #78614D; /* 棕色背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5em;
    color: #F5F5DC; /* logo 颜色 */
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    color: #F5F5DC;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #FFA500; /* 橙色悬停效果 */
}

/* 提示信息样式 */
.banner {
    margin-top: 80px; /* 导航栏高度 */
    padding: 20px;
    text-align: center;
    background-color: rgba(120, 97, 77, 0.8); /* 半透明背景 */
    color: #FFFFFF;
    font-size: 1.2em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 主内容区样式 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章部分样式 */
.article {
    flex: 2;
    min-width: 300px;
    margin: 20px;
    background-color: #FFFFF0; /* 象牙白背景 */
    padding: 20px;
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    animation: fadeIn 1s ease-in-out;
}

.article h2 {
    font-family: 'Bodoni', serif; /* 标题字体 */
    font-size: 1.8em;
    color: #78614D;
    margin-bottom: 15px;
}

.article h3 {
    font-size: 1.5em;
    color: #829356;
    margin-top: 20px;
}

.article p {
    font-size: 1em;
    color: #333333;
    margin-bottom: 15px;
}

/* 图片装饰样式 */
.images {
    flex: 1;
    min-width: 200px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.images img {
    width: 100%;
    border-radius: 15px; /* 圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    transition: transform 0.3s, box-shadow 0.3s; /* 动画 */
}

.images img:hover {
    transform: scale(1.05); /* 放大效果 */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* 阴影变化 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        background-color: #78614D;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
    }
    .navbar ul.active {
        display: flex;
    }
    .navbar .menu-toggle {
        display: block;
        cursor: pointer;
    }
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    color: #F5F5DC;
}

/* 渐变背景效果 */
.gradient-background {
    background: linear-gradient(135deg, #87CEEB, #FFA500);
    transition: background 0.5s ease-in-out;
}

.gradient-background:hover {
    background: linear-gradient(135deg, #FFA500, #87CEEB);
}

/* 加载动画样式 */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.loading-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #FFA500;
    animation: typewriter 4s steps(40) 1s forwards;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮反馈效果 */
.button-press {
    background-color: #829356;
    border: none;
    padding: 10px 20px;
    color: #FFFFF0;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-press:active {
    transform: scale(0.95);
    box-shadow: 0 2px #666;
    background-color: #78614D;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #829356;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: #78614D;
}

/* 卡片式布局 */
.card {
    background-color: #F5F5F5;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* 手绘插画样式 */
.hand-drawn {
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.hand-drawn:hover {
    transform: rotate(2deg);
}

/* 扁平化图标样式 */
.flat-icon {
    width: 50px;
    height: 50px;
    transition: background-color 0.3s;
}

.flat-icon:hover {
    background-color: #FFA500;
}

/* 文章过渡效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 面包屑导航 */
.breadcrumb {
    margin: 20px;
    font-size: 0.9em;
    color: #829356;
}

.breadcrumb a {
    color: #FFA500;
    text-decoration: none;
    margin: 0 5px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

