/* 雅青社全站样式 | 国风自适应 | 雅青色主调 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
    scroll-behavior: smooth;
}
:root {
    --green: #1E6F5C;
    --gold: #D4B16A;
    --black: #121212;
    --light: #F8F5F0;
    --gray: #333;
    --gray2: #777;
}
body {
    color: var(--gray);
    background: #fff;
    line-height: 1.8;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18,18,18,0.95);
    z-index: 999;
    padding: 15px 0;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: var(--gold);
    font-size: 24px;
    font-weight: bold;
}
.nav {
    display: flex;
    gap: 25px;
    color: #fff;
}
.nav a {
    transition: 0.3s;
}
.nav a:hover {
    color: var(--gold);
}
.mobile-menu {
    display: none;
    color: #fff;
    font-size: 26px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    margin: 0 8px;
    border: none;
    cursor: pointer;
}
.btn.green {
    background: var(--green);
    color: #fff;
}
.btn.gold {
    background: var(--gold);
    color: #000;
}
.btn.big {
    padding: 15px 45px;
    font-size: 16px;
}
.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 板块 */
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--green);
    margin-bottom: 50px;
    position: relative;
}
.section-title.white {
    color: #fff;
}
.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--gold);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
.bg-light {
    background: var(--light);
}
.bg-green {
    background: var(--green);
    color: #fff;
}

/* 首屏 */
.banner {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('/static/images/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}
.banner h1 {
    font-size: 52px;
    color: var(--gold);
    margin-bottom: 15px;
}
.banner p {
    font-size: 20px;
    margin-bottom: 40px;
}
.btns {
    margin-top: 20px;
}

/* 品牌 */
.brand-wrap {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.brand-left, .brand-right {
    flex: 1;
    min-width: 300px;
}
.brand-left img {
    border-radius: 12px;
}

/* 实力 */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}
.strength-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.strength-item:hover {
    transform: translateY(-5px);
}
.strength-item h3 {
    color: var(--green);
    margin-bottom: 10px;
}

/* 加盟 */
.join-wrap {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.join-box {
    flex: 1;
    min-width: 300px;
    padding: 40px 30px;
    border-radius: 12px;
    color: #fff;
}
.join-box.green {
    background: var(--green);
}
.join-box.black {
    background: var(--black);
}
.join-box h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 24px;
}

/* 优势 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 20px;
    text-align: center;
}
.adv-item {
    padding: 20px;
}

/* 招商横幅 */
.contact-banner {
    background: var(--black);
    color: #fff;
    text-align: center;
    padding: 100px 0;
}
.contact-banner h2 {
    color: var(--gold);
    font-size: 32px;
    margin-bottom: 15px;
}
.contact-banner p {
    font-size: 18px;
    margin-bottom: 35px;
}

/* 底部 */
.footer {
    background: #000;
    color: #aaa;
    padding: 50px 0;
    text-align: center;
}
.footer-info {
    margin-bottom: 20px;
}
.footer-info p {
    margin: 5px 0;
}

/* -------------------------- */
/* 以下为【修复+增强】新增样式 */
/* -------------------------- */

/* 关键修复：子页面不被顶部导航遮挡 */
.main {
    padding-top: 120px !important;
    padding-bottom: 60px;
}

/* 子页面 Banner 标题修复（完全显示、不遮挡、不裁切）*/
.page-banner {
    padding: 40px 0;
    background: var(--light);
    margin-bottom: 30px;
    padding-top:120px;
}
.page-banner h1 {
    font-size: 38px;
    color: var(--green);
    margin-bottom: 8px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}
.page-banner p {
    font-size: 18px;
    color: var(--gray2);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* 通用布局增强 */
.text-center {
    text-align: center;
}
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.red { color: #c0392b; }

/* 表单样式统一（招商/游学/关于我们）*/
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}
.form-item.full {
    grid-column: 1 / -1;
}
.form-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--black);
}
.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border 0.3s;
}
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-item textarea {
    resize: vertical;
    min-height: 140px;
}
.form-submit {
    margin-top: 20px;
}

/* 响应式表单 */
@media (max-width:768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* 自适应增强 */
@media (max-width:992px) {
    .strength-grid {grid-template-columns: repeat(2,1fr);}
    .advantage-grid {grid-template-columns: repeat(2,1fr);}
}
@media (max-width:768px) {
    .nav {display: none;}
    .mobile-menu {display: block;}
    .banner h1 {font-size: 36px;}
    .section-title {font-size: 28px;}
    .strength-grid,.advantage-grid {grid-template-columns: 1fr;}
    
    .page-banner h1 {
        font-size: 28px;
    }
}