/* ============================================
   common.css - 公共样式（头部、导航栏、页脚）
   ============================================ */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- 头部大图区域 --- */
.hero-section {
    width: 100%;
    height: 492px;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
}

.hero-text {
    z-index: 2;
    color: #2c5282;
    position: relative;
    width: 100%;
}

.title-group {
    display: inline-block;
}

.title-group h1 {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
    line-height: 1.1;
}

.title-group p {
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-left: 2.2em;
    color: #2c5282;
}

.title-group p::before {
    content: "——";
    margin-right: 5px;
    color: #2c5282;
    font-weight: bold;
}

/* --- 导航栏区域 (PC端) --- */
.navbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1000;
    border-top: 2px solid #5477BB;
    border-bottom: 2px solid #5477BB;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    padding: 0 20px;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-links li a {
    text-decoration: none;
    color: #073763;
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: inline-block;
    position: relative;
}

.nav-links li a:hover {
    color: #073763;
    text-decoration: none;
}

.nav-links li a.active {
    color: #073763;
    border-bottom: 2px solid #000000;
}

/* 汉堡菜单按钮 (默认隐藏，PC端不显示) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #073763;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- 页脚 Footer 模块 --- */
.footer-section {
    background-color: #5b9bd5;
    padding: 25px 20px;
    width: 100%;
    text-align: center;
}

.footer-section p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    color: #000000;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   手机端响应式（公共部分）
   ============================================ */
@media screen and (max-width: 768px) {
    /* 头部调整 */
    .hero-section {
        height: 300px;
        padding-left: 5%;
        padding-right: 5%;
        justify-content: center;
    }

    .hero-text {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .title-group h1 {
        font-size: 2.2rem;
    }

    .title-group p {
        font-size: 0.8rem;
        padding-left: 1.5em;
    }

    /* 汉堡按钮显示 */
    .hamburger {
        display: flex;
    }

    /* 导航栏 */
    .navbar {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: transparent !important;
        border-top: none;
    }

    .nav-container {
        justify-content: flex-end;
        height: auto;
        padding: 0;
    }

    /* 手机端下拉菜单 */
    .nav-links {
        position: absolute;
        top: 0;
        right: 5%;
        width: 180px;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        backdrop-filter: blur(5px);
        border-radius: 8px;
        margin-top: 45px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px dashed #cccccc;
        width: 100%;
        font-size: 20px;
        color: #073763;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links li a:hover {
        color: #073763;
        background-color: #f9f9f9;
    }

    .nav-links li a.active {
        color: #073763;
        border-bottom: 2px solid #000000;
    }

    .nav-links.active {
        max-height: 400px;
    }

    /* 汉堡按钮动画 */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* 页脚调整 */
    .footer-section {
        padding: 20px 15px;
    }

    .footer-section p {
        font-size: 0.85rem;
    }
}

.nav-links li a.selected,
.nav-links li.selected > a {
    color: #073763;
    border-bottom: 2px solid #000000;
}