/* ================= 全局重置与变量 ================= */
:root {
    --primary-blue: #0f2542; /* 深蓝色 */
    --text-main: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-gray: #f8f9fa;
    --border-color: #eaeaea;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= 锚点定位偏移 (防止被导航栏遮挡) ================= */
#home, #facilities, #rooms, #about, #contact {
    scroll-margin-top: 90px;
}

/* ================= 顶部欢迎栏 ================= */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--text-white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ================= 头部导航 ================= */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background-color: var(--primary-blue);
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
    border-radius: 4px;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    font-size: 15px;
}

.nav-menu a {
    color: var(--text-main);
    padding-bottom: 4px;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-blue);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-blue);
}

.btn-online {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.btn-online:hover {
    opacity: 0.9;
}

/* ================= Hero Banner ================= */
.hero-section {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 80px 0;
}

.breadcrumb {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary-blue);
    font-weight: 600;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.btn-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ================= 通用 Section ================= */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 50px;
}

/* ================= 业务/设施范围 (6张图布局) ================= */
.business-section {
    background-color: #ffffff;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列布局，完美容纳6张图 */
    gap: 30px;
}

.business-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 保证图片整齐不变形 */
    display: block;
}

.business-card h3 {
    font-size: 18px;
    color: var(--primary-blue);
    padding: 20px 20px 10px;
}

.business-card p {
    font-size: 14px;
    color: var(--text-light);
    padding: 0 20px 20px;
    line-height: 1.7;
}

/* ================= 客房展示 ================= */
.team-section {
    background-color: var(--bg-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.team-card h3 {
    font-size: 18px;
    color: var(--primary-blue);
    padding: 20px 20px 10px;
}

.team-card p {
    font-size: 14px;
    color: var(--text-light);
    padding: 0 20px 20px;
    line-height: 1.7;
}

/* ================= 公司概况 ================= */
.about-section {
    background-color: #ffffff;
}

.about-inner {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

.contact-list {
    margin-top: 30px;
}

.contact-list li {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list li span {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 50%;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* ================= 底部 ================= */
.footer {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 50px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background-color: #ffffff;
    color: var(--primary-blue);
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 600;
}

.footer-warning {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.8;
    max-width: 900px;
}

/* ================= 响应式适配 ================= */
@media (max-width: 992px) {
    .business-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板显示2列 */
    }
    .about-inner {
        flex-direction: column;
    }
    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        font-size: 13px;
    }
    .business-grid, .team-grid {
        grid-template-columns: 1fr; /* 手机显示1列 */
    }
    .hero-btns {
        flex-direction: column;
    }
    .btn {
        text-align: center;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
}/* ================= 联系我们弹窗样式 ================= */
.modal-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px); /* 背景轻微模糊效果 */
}

.modal-box {
    background-color: #ffffff;
    width: 90%;
    max-width: 480px;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

/* 弹窗出现动画 */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-blue);
}

.modal-box h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.modal-content ul {
    background-color: var(--bg-gray);
    padding: 20px;
    border-radius: 6px;
}

.modal-content ul li {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.5;
}

.modal-content ul li:last-child {
    margin-bottom: 0;
}

.modal-content ul li strong {
    color: var(--primary-blue);
}