/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 基础样式复用
body { font-family: 'Noto Sans KR', sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 0; background: #fafafa; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; } */
.section { padding: 60px 0; }
.section-gray { background: #f4f4f4; }
.section-dark { background: #003366; color: #fff; }
.text-center { text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 40px; color: #003366; }

/* 网格系统 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* 导航栏 - 基础样式 */
.navbar {
    height: 70px;
    background: #fff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #003366;
}

/* 桌面端导航 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #0055aa;
}

/* 隐藏手机端特有菜单 */
.mobile-only {
    display: none;
}

/* 汉堡菜单按钮 (默认隐藏) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #003366;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 450px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: #003366;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.btn:hover {
    opacity: 0.9;
    transform: scale(1.05); /* 按钮轻微放大 */
}
.btn-primary {
    background: #0055aa;
    color: #fff;
}

.btn-outline {
    border: 2px solid #0055aa;
    color: #0055aa;
    margin-top: 20px;
}


/* --- 核心动画卡片 --- */
.card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

/* 悬停动态效果 */
.card:hover {
   /* transform: translateY(-10px);  向上移动10像素 */
    /*  box-shadow: 0 10px 25px rgba(0,0,0,0.1);阴影变大变深 */

    top: -10px; /* 向上浮动 */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transform: scale(1.02);
}

.card i.icon {
    font-size: 3rem;
    color: #0055aa;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover i.icon {
    transform: rotateY(180deg);
    transform: scale(1.1); /* 图标轻微放大 */
    transition: transform 0.3s ease;
}

/* --- 实景展示画廊 --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 10px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* 按钮动画 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0055aa;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,85,170,0.3);
}
.icon { font-size: 2rem; color: #0055aa; margin-bottom: 15px; }
.text-center { text-align: center; }

/* 页脚 */
.footer {
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

/* --- 手机端适配 (关键) --- */
@media (max-width: 768px) {
    /* 1. 显示汉堡菜单 */
    .menu-toggle {
        display: block;
    }

    /* 2. 导航栏变为侧滑/下拉 */
    nav {
        position: fixed;
        top: 70px;
        left: -100%; /* 默认隐藏在左侧 */
        width: 70%;
        height: calc(100vh - 70px);
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
		z-index: 2500; /* 确保层级高于 navbar(2000) 和页面其他内容 */
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 30px;
    }

    nav ul li {
        margin: 0 0 20px 0;
    }

    nav ul li a {
        font-size: 1.1rem;
        display: block;
    }

    .mobile-only {
        display: block;
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    /* 3. 布局调整 */
    .grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
}
