@charset "utf-8";
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", serif;
    background: #f6f3ec;
    color: #222;
    line-height: 1.7;
    padding: 0 12px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* 头部外层：上下padding缩小，水平垂直居中 */
header {
    margin: 16px 0 24px;
    padding: 8px 16px;
    border: 1px solid #d8d2c4;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* logo与导航垂直间距缩小 */
.header-inner {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

/* Logo文字容器 强制居中 */
.brand-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-name {
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 500;
    text-align: center;
}

/* 导航栏 整行居中 */
.nav-wrap {
    width: 100%;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.nav-wrap a {
    text-decoration: none;
    color: inherit;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.25s;
    -webkit-transition: 0.25s;
}
.nav-wrap a:hover {
    color: #588c58;
    background: transparent;
}

/* 主标语区域 */
.hero-box {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px 12px;
    border-left: 3px solid #588c58;
}

.slogan-main {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.slogan-sub {
    font-size: 15px;
    opacity: 0.78;
    margin-bottom: 22px;
}

.btn-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 5px;
    font-size: 15px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}
.btn-green {
    background: #588c58;
    color: #fff;
}
.btn-green:hover {
    background: #477547;
}
.btn-line {
    border: 1px solid #222;
    color: inherit;
}
.btn-line:hover {
    border-color: #588c58;
    color: #588c58;
}

/* 栏目卡片列表 */
.section-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.section-card {
    border: 1px solid #d8d2c4;
    border-radius: 6px;
    padding: 16px;
    transition: 0.25s;
}
.section-card:hover {
    border-color: #588c58;
}
.section-title a {
    font-size: 17px;
    text-decoration: none;
    color: inherit;
}
.section-title a:hover {
    color: #588c58;
}
.section-desc {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.75;
}

/* 页脚版权区域 */
footer {
    margin-top: 60px;
    padding: 18px 0;
    border-top: 1px solid #d8d2c4;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.8;
}
footer a {
    color: inherit;
    text-decoration: none;
}
footer a:hover {
    color: #588c58;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    html {
        font-size: 13px;
    }
    body {
        padding: 0 6px;
    }
    header {
        margin: 10px 0 18px;
        padding: 6px 12px;
    }
    .header-inner {
        gap: 4px;
    }
    .site-name {
        font-size: 18px;
    }
    .nav-wrap {
        gap: 2px;
    }
    .nav-wrap a {
        padding: 3px 5px;
        font-size: 12px;
    }
    .hero-box {
        margin-bottom: 24px;
        padding: 14px 8px;
    }
    .slogan-main {
        font-size: 19px;
    }
    .slogan-sub {
        font-size: 14px;
    }
    .btn-group {
        gap: 10px;
    }
    .btn {
        width: 100%;
        text-align: center;
        padding: 8px 0;
        font-size: 14px;
    }
    .section-list {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 28px;
    }
    .section-card {
        padding: 12px;
    }
    footer {
        margin-top: 36px;
        padding: 12px 0;
    }
}