/* ========== 导航栏 ========== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.logo span {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
}

.logo a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}


.logo .tagline {
    font-size: 14px;
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* 蒙版 */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
    /* 低于侧栏 */
}

/* 蒙版显示 */
#overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-nav ul {
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    flex-wrap: nowrap;
}

.nav-item {
    padding: 8px 6px;
    font-weight: 500;
    font-size: clamp(14px, 1.5vw, 16px);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
}

.search-box form {
    display: flex;
}

.search-input {
    padding: 8px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    width: 250px;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #c5000f;
}

/* ========== 主要内容区 ========== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* ========== Hero Section ========== */
.hero-section {
    /* background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); */
    color: var(--secondary-color);
    text-align: center;
    border-radius: 15px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-intro-box {
    background: var(--bg-light);
    padding: 20px 24px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 30px;
    text-align: left;
}

.hero-intro-box p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 12px;
    text-align: justify;
}

.hero-intro-box p:last-child {
    margin-bottom: 0;
}

.hero-intro-box .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-intro-box .section-label {
    font-size: 16px;
    color: var(--primary-color);
    display: inline-block;
    margin-right: 4px;
}

.home-search-box {
    display: none;
}


/* ========== Section 通用样式 ========== */
section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
}

.view-more {
    color: var(--text-color);
    font-weight: 400;
    font-size: 16px;
    transition: color 0.3s;
}

.view-more:hover {
    color: var(--accent-color);
}

/* ========== 页脚 ========== */
.footer {
    background-color: var(--bg-light);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 28px;
    color: var(--primary-color);
}

.footer-logo p {
    opacity: 0.8;
    font-size: 14px;
    color: var(--accent-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    /* color: rgba(255, 255, 255, 0.7); */
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
    color: var(--text-light);
}


/* ========== 响应式设计 ========== */
@media (max-width: 768px) {

    .header {
        box-shadow: none;
        /* background-image: url("../img/bg.webp");
        background-size: cover;
        background-repeat: no-repeat;
        height: 76vw;
        z-index: 1; */
    }

    /* .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-content .header-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
    } */

    .header-content {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
    }

    .header-content .header-right {
        display: flex;
        flex-direction: row;
        gap: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100%;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        padding: 60px 20px;
        z-index: 1001;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav a {
        display: block;
        font-size: 18px;
        color: #333;
        text-decoration: none;
        transition: color 0.3s;
    }

    .main-nav a:hover {
        color: var(--primary-color);
    }

    .search-btn {
        display: none;
    }

    .mob-search-box {
        display: none;
    }

    .hero-title {
        font-size: 1.6rem;
        font-weight: 700;
    }

    .hero-intro-box {
        padding: 16px 18px;
        margin-bottom: 20px;
    }

    .hero-intro-box p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .search-input {
        width: 96px;
        height: 40px;
        padding: 10px 15px 10px 32px;
        border-radius: 30px;
        transition: width 0.3s ease;
        background: url("../img/search.svg") no-repeat 8px center;
        background-size: 24px 24px;
    }

    .search-input:focus {
        width: 200px;
    }

    .home-search-box {
        display: block;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin: 24px auto;
        border-radius: 30px;
    }

    .home-search-input {
        width: 100%;
        height: 56px;
        padding: 10px 15px 10px 40px;
        border-radius: 30px;
        transition: width 0.3s ease;
        background: url("../img/search.svg") no-repeat 16px center;
        background-size: 24px 24px;
        border: 2px solid var(--border-color);
        font-size: 16px;
        outline: none;
    }

    .home-search-input:focus {
        border-color: var(--primary-color);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 16px;
        gap: 12px;
    }

    .footer-col {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-col h4 {
        margin-bottom: 0px;
        width: 100px;
    }

    .footer-col ul {
        columns: 2;
        /* 分两列 */
        -webkit-columns: 2;
        /* Safari 支持 */
        -moz-columns: 2;
        /* Firefox 支持 */
        column-gap: 20px;
        /* 两列间距 */
    }

    .footer-col li {
        break-inside: avoid;
        /* 防止断裂 */
        margin-bottom: 6px;
    }

    .social-icon {
        display: inline-block;
        width: 32px;
        height: 32px;
        text-indent: -9999px;
        /* 隐藏文字但保留可访问性 */
        overflow: hidden;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .social-icon.facebook {
        background-image: url("../img/fb.svg");
    }

    .social-icon.twitter {
        background-image: url("../img/x.svg");
    }

    .social-icon.instagram {
        background-image: url("../img/insta.svg");
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

}