/* ================= 基础重置 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================= 顶部导航栏 (通用) ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.logo img {
    height: 60px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-menu li a:hover {
    color: #000000;
    font-weight: 700;
}

.contact-btn {
    background-color: #0077b6;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #005f92;
}

.contact-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* ================= 页脚 Footer (通用) ================= */
.footer {
    background-color: #ffffff;
    padding: 80px 8% 60px;
    color: #333333;
    border-top: 1px solid #eeeeee; /* 增加一点顶部边框区分 */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* 左侧：Logo + 文本 + 支付图标 */
.footer-left img.footer-logo {
    height: 90px;
    object-fit: contain;
    margin-bottom: 25px;
}

.footer-left p {
    font-size: 15px;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 30px;
    max-width: 450px;
}

.payment-icons {
    display: flex;
    gap: 12px;
}

.payment-icons img {
    height: 24px;
    width: auto;
    display: block;
}

/* 中间：导航 */
.footer-nav ul li {
    margin-bottom: 18px;
}

.footer-nav ul li a {
    font-size: 16px;
    color: #333333;
    transition: color 0.2s;
}

.footer-nav ul li a:hover {
    color: #0077b6;
    font-weight: 600;
}

/* 右侧：联系方式 */
.footer-contact p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 25px;
}

.footer-contact a.email-link {
    font-size: 16px;
    color: #333333;
    transition: color 0.2s;
    display: inline-block;
    margin-top: 5px;
}

.footer-contact a.email-link:hover {
    color: #0077b6;
    text-decoration: underline;
}

/* ================= 通用响应式 (导航及页脚) ================= */
@media screen and (max-width: 992px) {
    /* 导航 */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav-links.active { display: flex; }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
    }

    .nav-menu li { width: 100%; }
    .nav-menu li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    .nav-menu li a:hover { background-color: #f9f9f9; }

    .contact-btn {
        margin: 20px auto 0;
        width: 80%;
        justify-content: center;
    }

    .hamburger { display: flex; }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* 页脚 */
    .footer { padding: 60px 5% 40px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-left { grid-column: 1 / -1; }
    .footer-left p { max-width: 100%; }
}

@media screen and (max-width: 576px) {
    /* 页脚 */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ================= 联系方式弹窗 (Contact Modal) ================= */
.contact-modal {
    border: none;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    /* 兼容性居中 (现代浏览器默认居中) */
    margin: auto;
}

/* 弹窗遮罩层 (原生 dialog::backdrop) */
.contact-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px); /* 背景模糊效果，提升高级感 */
}

.contact-modal-content {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
}

/* 关闭按钮 (右上角 ×) */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}
.modal-close-btn:hover {
    background-color: #e0e0e0;
    color: #000;
    transform: rotate(90deg);
}

/* 弹窗标题 */
.contact-modal-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* 联系方式条目 */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

/* 图标 (圆形背景) */
.contact-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e8f4fa;
    color: #0077b6;
    flex-shrink: 0;
}
.contact-item .icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 联系方式文本 */
.contact-item a {
    color: #0077b6;
    font-weight: 500;
    transition: color 0.2s;
}
.contact-item a:hover {
    color: #005f92;
    text-decoration: underline;
}

/* 弹窗底部的关闭按钮 (可选) */
.contact-modal-footer-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #0077b6;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.contact-modal-footer-btn:hover {
    background-color: #005f92;
}