
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #87CEEB, #90EE90);
    color: #333333;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #2F4F4F;
}

h1.custom-title {
    font-family: 'Roboto Slab', serif;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 40px;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #FF6347;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.core-content {
    flex: 2;
    min-width: 300px;
    padding: 20px;
}

.side-modules {
    flex: 1;
    min-width: 200px;
    padding: 20px;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

.hexagon {
    width: 100px;
    height: 57.74px;
    background-color: #FFD700;
    margin: 20px auto;
    position: relative;
}

.hexagon::before,
.hexagon::after {
    content: '';
    position: absolute;
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.hexagon::before {
    bottom: 100%;
    border-bottom: 28.87px solid #FFD700;
}

.hexagon::after {
    top: 100%;
    border-top: 28.87px solid #FFD700;
}

/* 按钮样式 */
.button {
    padding: 10px 20px;
    border-radius: 50px;
    background-color: #FFA500;
    color: #fff;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background-color: #FF6347;
    transform: scale(1.1);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #d14;
}

/* 图片覆盖效果 */
.image-overlay {
    position: relative;
    display: inline-block;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* 动画效果 */
@keyframes leaf-float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.leaf {
    width: 50px;
    animation: leaf-float 5s infinite ease-in-out;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    h1.custom-title {
        font-size: 2.5rem;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    h1.custom-title {
        font-size: 2rem;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* 提示文本样式 */
.reference-note {
    text-align: center;
    font-style: italic;
    color: #555;
    margin: 40px 0;
}

