/* =========================================================
   安徒生文学社官网 · 公共基础样式
   由各页面 <link> 引入；页面独有样式保留在页内 <style>
   主色：#32B16C  响应式断点：768px
   ========================================================= */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* 禁止横向滚动条 */
    font-family: "微软雅黑", "江城圆体", sans-serif; /* 增加回退栈 */
    line-height: 1.8;
    color: #333;
    background: #fff;
}

/* 链接 / 图片 */
a {
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}

/* 页面内容容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===================== 头部导航（PC + 手机） ===================== */
.header {
    width: 100%;
    height: 70px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    background: #fff;
    z-index: 999;
}
.logo-img {
    height: 48px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}
.nav {
    display: flex;
    gap: 26px;
    align-items: center;
}
.nav a {
    color: #555;
    font-size: 15px;
    font-family: "江城圆体", "微软雅黑", sans-serif; /* 回退栈 */
}
.nav a:hover {
    color: #32B16C;
}
.nav a.active {
    color: #32B16C;
    font-weight: bold;
}
.btn-green {
    background: #32B16C;
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 2px;
}
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
}
.mobile-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    display: none;
    flex-direction: column;
}
.mobile-nav a {
    padding: 14px 20px;
    color: #555;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-family: "江城圆体", "微软雅黑", sans-serif; /* 回退栈 */
}
.mobile-nav .btn-green {
    text-align: center;
}

/* ===================== 通用区块 / 标题 / 正文 ===================== */
.section {
    padding: 60px 0;
}
.bg-light {
    background: #f7fbf9;
}
.page-wrap {
    padding: 60px 0;
}
.sec-title {
    text-align: center;
    margin-bottom: 40px;
}
.sec-title h1,
.sec-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    font-family: "江城圆体", "微软雅黑", sans-serif; /* 回退栈 */
}
.sec-title span {
    color: #999;
    margin-top: 6px;
    font-size: 15px;
    display: block;
    font-family: "江城圆体", "微软雅黑", sans-serif; /* 回退栈 */
}
.text-content {
    font-size: 16px;
    color: #555;
    text-align: justify;
    text-indent: 2em;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 2;
}
.content-img {
    width: 100%;
    border-radius: 6px;
    margin: 25px auto;
    display: block;
}

/* 电话样式 */
.tel-info {
    text-align: center;
    font-size: 20px;
    color: #32B16C;
    font-weight: bold;
    margin-top: 30px;
}
.tel-info a {
    color: #32B16C;
    text-decoration: none;
}

/* ===================== 二维码通用样式 ===================== */
.qrcode-wrap {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 25px 0 10px;
}
.qrcode-item {
    text-align: center;
}
.qrcode-item img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.qrcode-item p {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

/* ===================== 页脚样式 ===================== */
.footer {
    padding: 35px 15px;
    background: #f5f5f5;
    text-align: center;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
}

/* ===================== 手机端响应式（768px 以下） ===================== */
@media (max-width: 768px) {
    .header {
        height: 65px;
        padding: 0 15px;
    }
    .logo-img {
        height: 40px;
        max-width: 200px;
    }
    /* 手机端隐藏 PC 导航，显示菜单按钮 */
    .nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .section {
        padding: 40px 0;
    }
    .page-wrap {
        padding: 40px 0;
    }
    .sec-title h1,
    .sec-title h2 {
        font-size: 22px;
    }
    .text-content {
        font-size: 15px;
        padding: 0 10px;
    }
    .tel-info {
        font-size: 18px;
    }
    .qrcode-wrap {
        gap: 20px;
    }
    .qrcode-item img {
        width: 100px;
        height: 100px;
    }
}
