/* --- 全局内容限制和居中 --- */
html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
main {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* 解决固定导航栏遮挡问题 */
body {
    font-family: 'Noto Sans SC', "Microsoft YaHei", sans-serif;
    font-size: 16px;
    overflow-x: hidden; 
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
    color: #333;
    background-color: #ffffff;
    overscroll-behavior-y: smooth;
    display: flex;
    flex-flow: row wrap;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden; 
    text-align: center;
    margin-top: 0;
}

/* 导航栏样式 */
.navbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 20% !important;
    background: transparent;
    color: white;
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; 
    z-index: 99; 
    box-sizing: border-box;
}

.navbar nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* --- 导航栏 CTA 按钮样式 --- */
.cta-button-nav {
    padding: 15px 50px!important; 
    border: none;
    border-radius: 30px;
    background-color: #147aff;
    margin-left: 25px; 
    color: white !important; 
    transition: all 0.3s ease; 
    font-size: 0.8em;
    line-height: 1; 
    vertical-align: middle; 
    display: inline-block; 
}

.cta-button-nav:hover {
    background-color: #0066cc; 
    color: white !important; 
}

/* 滚动状态 CTA */
.navbar.scrolled .cta-button-nav {
    background-color: white; 
    color: #147aff !important;
    border: 2px solid #147aff;
    padding: 15px 40px; 
    border-radius: 25px;
}

.navbar.scrolled .cta-button-nav:hover {
    background-color: #0066cc;
    color: white !important;
}

/* Logo */
.navbar .logo {
    text-decoration: none;
}

.navbar .logo img {
    height: 60px;
    width: auto;
    vertical-align: middle; 
    transition: opacity 0.3s ease; 
}

.navbar .logo .logo-scrolled { display: none; opacity: 0; }
.navbar .logo .logo-default { display: block; opacity: 1; }

.navbar.scrolled .logo .logo-default { display: none; opacity: 0; }
.navbar.scrolled .logo .logo-scrolled { display: block; opacity: 1; }

/* 导航链接样式 (统一对齐) */
.navbar nav a {
    font-size: 0.8em; 
    color: white;
    text-decoration: none;
    margin-left: 25px; 
    transition: color 0.3s;
    display: inline-block; 
    line-height: 1; 
    vertical-align: middle; 
    padding: 15px 0;
}

.navbar nav a:hover { color: #00bcd4; }

/* --- 导航栏下拉菜单样式 --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 25px;
}

.nav-dropdown .dropdown-toggle {
    font-size: 0.8em;
    color: white;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    vertical-align: middle;
    padding: 15px 0;
    margin-left: 0;
    transition: color 0.3s;
}

.nav-dropdown .dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-bottom: 0;
    margin-top: 3px;
}

.nav-dropdown .dropdown-toggle:hover {
    color: #00bcd4;
}

/* 下拉菜单容器 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 下拉菜单顶部小三角 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 下拉菜单链接 */
.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #555 !important;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin-left: 0 !important;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, #147aff 0%, #3b8eff 100%);
    color: #ffffff !important;
    transform: translateX(0);
}

/* 滚动后的下拉菜单样式 */
.navbar.scrolled .nav-dropdown .dropdown-toggle {
    color: #333333;
}

.navbar.scrolled .nav-dropdown .dropdown-toggle:hover {
    color: #147aff;
}

/* 滚动后的导航栏样式 */
.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 5px rgb(214, 214, 214);
}
.navbar.scrolled nav a { color: #333333; }
.navbar.scrolled nav a:hover { color: #147aff; }

/* 滚动内容包裹层样式 */
.scroll-content-wrapper {
    background-color: white; 
    z-index: 5; 
    position: relative; 
    width: 100%;
    margin-top: 0; 
    overflow-x: hidden;
}

/* 视频容器 */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.video-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}
.video-item.active { opacity: 1; z-index: 2; }
.video-item video { width: 100%; height: 100%; object-fit: cover; }

/* 视频加载占位图 */
.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000;
}
.video-poster.hidden {
    display: none;
}
.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 视频控制 */
.video-controls {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.video-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2em;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}
.video-controls button:hover { background: rgba(255, 255, 255, 0.5); }
#video-indicators { display: flex; gap: 10px; min-height: 0; min-width: 0; }
.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.indicator-dot.active { background-color: white; transform: scale(1.2); }

/* 英雄内容 */
.hero-content {
    position: fixed; 
    left: 50%;
    transform: translateX(-50%);
    bottom: 150px; 
    z-index: 3; 
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    max-width: 80%; 
    width: 100%;
}


/* --- 英雄区域按钮组布局 (垂直堆叠) --- */

.hero-btn-group {
    display: flex;
    /* ❗ 关键：改为垂直排列 */
    flex-direction: column; 
    align-items: center; /* 居中对齐 */
    gap: 30px; /* 两个按钮之间的间距 */
    margin-top: 60px; /* 距离上方文字稍微远一点，留出呼吸感 */
}

/* 确保按钮在手机上也能良好显示 */
@media (max-width: 768px) {
    .hero-btn-group {
        flex-direction: column; /* 手机上垂直排列 */
        gap: 15px;
        padding: 0 40px; /* 增加左右内边距防止贴边 */
    }
    
    .hero-btn-group .cta-button {
        width: 100%; /* 手机上按钮占满宽度 */
        box-sizing: border-box;
        text-align: center;
    }
}

/* --- 主按钮：开始绘图 (边缘发光跟随鼠标) --- */
.cta-button.primary-btn {
    /* 尺寸控制 */
    font-size: 2em;
    padding: 25px 80px;
    font-weight: bold;
    
    /* 蓝色渐变填充 */
    background: linear-gradient(180deg, #4a90e2 0%, #2563eb 50%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    
    /* 定位用于伪元素 */
    position: relative;
    overflow: visible;
    z-index: 1;
    
    /* 基础阴影 */
    box-shadow: 
        0 4px 15px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    /* 动画过渡 */
    transition: all 0.3s ease;
    
    /* 鼠标位置变量 */
    --mouse-x: 50%;
    --mouse-y: 50%;
    --glow-opacity: 0;
}

/* 边缘发光层 - 跟随鼠标位置 */
.cta-button.primary-btn::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 120px;
    background: radial-gradient(
        ellipse 200px 100px at var(--mouse-x) var(--mouse-y),
        rgba(100, 180, 255, 0.8) 0%,
        rgba(59, 130, 246, 0.4) 30%,
        rgba(37, 99, 235, 0.1) 60%,
        transparent 80%
    );
    opacity: var(--glow-opacity);
    z-index: -1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    filter: blur(8px);
}

/* 主按钮悬停效果 */
.cta-button.primary-btn:hover {
    /* 稍微变亮 */
    background: linear-gradient(180deg, #5a9bec 0%, #3b82f6 50%, #2563eb 100%);
    
    /* 悬停时轻微放大 */
    transform: scale(1.03) translateY(-2px);
    
    /* 增强阴影 */
    box-shadow: 
        0 8px 25px rgba(37, 99, 235, 0.5),
        0 0 60px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 点击效果 */
.cta-button.primary-btn:active {
    transform: scale(1.01) translateY(0);
    box-shadow: 
        0 4px 15px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* --- 次要按钮：了解更多 (低调、位于下方) --- */
.cta-button.secondary-btn {
    font-size: 1.1em;
    padding: 10px 30px;
    
    /* 幽灵按钮风格：透明背景，细边框 */
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    text-decoration: none;
    
    transition: all 0.3s ease;
}

/* 次要按钮悬停效果 */
.cta-button.secondary-btn:hover {
    background-color: white;
    color: #147aff;
    border-color: white;
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .hero-btn-group {
        margin-top: 40px;
    }

    /* 在手机上稍微减小主按钮尺寸，防止爆屏 */
    .cta-button.primary-btn {
        font-size: 1.5em;
        padding: 20px 60px;
        width: 80%;
        text-align: center;
        box-sizing: border-box;
        /* 移动端显示明亮状态 */
        background: linear-gradient(180deg, #5a9bec 0%, #3b82f6 50%, #2563eb 100%);
        color: #ffffff;
        box-shadow: 
            0 8px 25px rgba(37, 99, 235, 0.5),
            0 0 40px rgba(59, 130, 246, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    
    /* 移动端始终显示柔和发光 */
    .cta-button.primary-btn::before {
        opacity: 0.6;
        --mouse-x: 50%;
        --mouse-y: 50%;
    }
    
    .cta-button.secondary-btn {
        font-size: 1em;
    }
}
.hero-content h1 { font-size: 6em; margin: 0; }
.hero-content p { font-size: 1.5em; margin-bottom: 50px; margin-top: 0; }
.cta-button {
    display: inline-block;
    padding: 20px 40px;
    background-color: #147aff;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s;
}
.cta-button:hover { background-color: #4595ff; }

/* 内容区通用 */
.content-section {
    width: 100%;
    padding: 0;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #147aff;
}
.content-section:nth-child(even) { background-color: #f4f4f4; }
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 5%;
    text-align: left;
}
.content-container h2 { text-align: center; font-size: 2em; }
.section-description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    font-size: 1.1em;
    color: #666;
}

/* 作品画廊 (横向拖拽) */
.portfolio-grid {
    display: flex; 
    flex-wrap: nowrap;
    overflow-x: scroll; 
    overflow-y: hidden;
    gap: 20px;
    padding-bottom: 20px; 
    width: 100%; 
    -webkit-overflow-scrolling: touch; 
    
    /* ❗ 关键：禁用平滑滚动，确保拖拽流畅 */
    scroll-behavior: auto !important;
    
    /* 鼠标拖拽样式 */
    cursor: grab;
    user-select: none; /* 防止选中文字图片 */
    
    /* 优化滚动性能 */
    will-change: scroll-position;
    -ms-overflow-style: none; /* IE/Edge 隐藏滚动条 */
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
}
.portfolio-grid.active { cursor: grabbing; }
.portfolio-grid::-webkit-scrollbar { display: none; }

.portfolio-wrapper {
    position: relative;
    margin: 0 -5%; 
    padding: 0 5%;
    z-index: 1;
}
/* --- 画廊渐变蒙版样式 --- */

/* 1. 确保包裹层是定位基准 */
.portfolio-wrapper {
    position: relative;
    /* 保持之前的全宽延伸设置 */
    margin: 0 -5%; 
    padding: 0 5%;
    z-index: 1;
}

/* 2. 定义蒙版通用样式 */
.portfolio-wrapper::before,
.portfolio-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px; /* 蒙版的宽度，根据需要调整 */
    height: 100%;
    z-index: 10; /* 确保在图片之上 */
    
    /* ❗ 关键：允许鼠标穿透蒙版进行拖拽和点击 */
    pointer-events: none; 
}

/* 3. 左侧蒙版 (白色 -> 透明) */
.portfolio-wrapper::before {
    left: 0;
    /* 0% 到 30% 是实心白，平滑过渡到透明 */
    background: linear-gradient(to right, #ffffff 0%, #ffffff 20%, rgba(255, 255, 255, 0) 100%);
}

/* 4. 右侧蒙版 (透明 -> 白色) */
.portfolio-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, #ffffff 20%, rgba(255, 255, 255, 0) 100%);
}

/* 5. 移动端调整 (可选：手机屏幕较窄，可以减小蒙版宽度) */
@media (max-width: 768px) {
    .portfolio-wrapper::before,
    .portfolio-wrapper::after {
        width: 50px; /* 手机上改窄一点，避免遮挡太多内容 */
    }
}

.work-card {
    flex-shrink: 0; 
    width: 360px; 
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
    padding: 0; 
    text-align: center; 
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px; 
}
.work-card:hover .work-image { transform: scale(1.1); }
.work-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 数据亮点区 */
.stats-section { position: relative; padding: 100px 0; color: white; }
.stats-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0;
}
.stats-background img { width: 100%; height: 100%; object-fit: cover; }
.stats-background::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.1);
}
.stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 10;
}
.stat-box {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px 15px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}
.stat-number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0px;
}
.stat-label { font-size: 1em; margin: 0; }

/* 平铺网格 - 固定3列，等比缩放 */
.image-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 0;
    width: 100%;
}
.grid-item {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 10px;
}
.gallery-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.grid-item:hover .gallery-image { transform: scale(1.05); }
.grid-item figcaption {
    display: none;
    color: #666;
    border-top: 1px solid #eee;
}

/* 图片放大弹窗 Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, transform 0.3s ease;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 联系我们 */
.contact-layout { display: flex; gap: 50px; align-items: flex-start; margin-top: 40px; }
.contact-info { flex: 1; min-width: 300px; padding: 20px; border-right: 1px solid #eee; font-size: 1.1em; }
.contact-info h3 { color: #147aff; font-size: 1.4em; margin-bottom: 20px; }
.contact-info ul { list-style: none; padding: 0; line-height: 2; }
.contact-info li { margin-bottom: 12px; font-size: 1.1em; }
.contact-form { flex: 2; max-width: 600px; padding: 20px; }
.contact-form h3 { color: #333; font-size: 1em; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label { font-weight: bold; margin-bottom: 5px; color: #555; font-size: 0.8em; }
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea {
    padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 1em; width: 100%; box-sizing: border-box; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #147aff; outline: none; box-shadow: 0 0 5px rgba(20, 122, 255, 0.2);
}
.submit-button {
    background-color: #147aff; color: white; border: none; padding: 12px 25px; border-radius: 25px; cursor: pointer; font-size: 1em; font-weight: bold; transition: background-color 0.3s;
}
.submit-button:hover { background-color: #0066cc; }

/* 页脚 */
.full-width-footer.dark-footer { background-color: #0d0d0d; color: #999999; padding: 60px 0 0 0; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding-bottom: 40px; }
.footer-column { flex-basis: 15%; min-width: 140px; margin-bottom: 30px; }
.footer-column.brand-info { flex-basis: 30%; min-width: 250px; }
.footer-logo img { width: 150px; height: auto; margin-bottom: 50px; }
.company-tagline { font-size: 1.1em; color: #f0f0f0; margin-top: 0; margin-bottom: 20px; }
.footer-column h4 { color: #ffffff; font-size: 1.1em; margin-bottom: 20px; font-weight: bold; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: #999999; text-decoration: none; transition: color 0.3s; }
.footer-column ul li a:hover { color: #147aff; }
.social-links a { color: #999999; font-size: 1.2em; margin-right: 15px; transition: color 0.3s; }
.social-links a:hover { color: #147aff; }
.footer-bottom { border-top: 1px solid #1a1a1a; padding: 20px 0; }
.footer-bottom-container { max-width: 1000px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; padding: 0 5%; margin: 0 auto; flex-wrap: wrap; gap: 10px; }
.privacy-links a { color: #999999; margin-right: 20px; text-decoration: none; transition: color 0.3s; }
.privacy-links a:hover { color: #147aff; }
.copyright-text { margin: 0; }

/* 备案信息样式 */
.beian-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0 10px;
    gap: 8px;
    flex-wrap: wrap;
}
.beian-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.85em;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.beian-link:hover { color: #999999; }
.beian-divider { color: #444444; font-size: 0.8em; }
.gongan-icon { width: 14px; height: 14px; vertical-align: middle; }
.gongan-link { display: inline-flex; align-items: center; gap: 4px; }

/* 业务介绍图标对齐 */
.service-item h3 {
    font-size: 1em; color: #333; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 0;
    display: flex; align-items: center; gap: 8px; 
}

/* 响应式调整 */

/* PC 端隐藏汉堡按钮 */
.menu-toggle { display: none !important; border: none; z-index: 101; }
.menu-toggle span { display: block; width: 25px; height: 3px; background: white; margin: 5px 0; transition: 0.4s; }
.navbar.scrolled .menu-toggle span { background: #147aff !important; }

@media (min-width: 1025px) {
    .navbar nav { transform: none !important; visibility: visible !important; }
}

/* 小屏幕 (max-width: 1024px) */
@media (max-width: 1024px) {
    .navbar { padding: 15px 20px; gap: 10px; justify-content: space-between; }
    .menu-toggle { 
        display: block !important; 
        background: transparent !important; 
        border: none !important; 
        z-index: 101; 
        flex-shrink: 0;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    .menu-toggle span { background: black !important; }
    
    /* Logo 绝对定位，防止挤压 */
    .navbar .logo {
        position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
        z-index: 102; margin: 0; padding: 0; max-width: 40vw;
    }
    .navbar .logo img { height: 30px !important; margin: 0; width: auto; }

    .navbar nav {
        position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
        background-color: rgba(0, 0, 0, 0.95); flex-direction: column;
        justify-content: center; align-items: center; gap: 30px; z-index: 90;
        visibility: hidden; transform: translateX(100%);
        transition: transform 0.3s ease-in-out, visibility 0.3s;
        box-sizing: border-box; padding: 40px 0;
    }
    .navbar nav.active { transform: translateX(0); visibility: visible; }
    .navbar nav a { font-size: 1.5em; margin: 0; color: white; display: block; width: 100%; text-align: center; padding: 10px 0; }
    .navbar nav a.cta-button-nav { margin-left: 0; margin-top: 10px; display: block; max-width: 250px; }
    
    /* 移动端下拉菜单样式 */
    .navbar nav .nav-dropdown {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .navbar nav .nav-dropdown .dropdown-toggle {
        font-size: 1.5em;
        color: white;
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
    }
    
    .navbar nav .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        border-radius: 12px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        border: none;
        margin: 0 20px;
        gap: 0;
    }
    
    .navbar nav .nav-dropdown .dropdown-menu::before {
        display: none;
    }
    
    .navbar nav .nav-dropdown:hover .dropdown-menu,
    .navbar nav .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 8px;
    }
    
    .navbar nav .dropdown-menu a {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 1.1em;
        padding: 14px 20px;
        background: transparent;
        border-radius: 8px;
        text-align: center;
    }
    
    .navbar nav .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        color: white !important;
    }
    .footer-bottom-container { padding: 0 20px; }
    
    /* 隐藏画廊左右渐变 */
    .portfolio-wrapper::before, .portfolio-wrapper::after { display: none !important; }
}

/* 更小屏幕 (max-width: 768px) */
@media (max-width: 768px) {
    .content-container { padding: 30px 15px !important; }
    .portfolio-wrapper { margin: 0; padding: 0; }
    .portfolio-grid { padding-left: 15px; padding-right: 15px; }
    .work-card { width: 60vw; height: auto; max-height: 70vh; }
    .work-image { aspect-ratio: 21 / 28; width: 100%; height: 100%; max-height: 70vh; object-fit: contain; }
    
    /* Stats Grid: 2x2 布局 */
    .stats-grid { flex-direction: row; flex-wrap: wrap !important; justify-content: space-between; gap: 15px; }
    .stat-box { flex: 1 1 calc(50% - 7.5px); min-width: unset; box-sizing: border-box; padding: 15px 15px; }
    .stat-number { font-size: 1.8em; margin-bottom: 3px; }
    .stat-label { font-size: 0.8em; }
    
    .services-list, .contact-layout, .footer-container { flex-direction: column; gap: 20px; }
    .service-item, .footer-column { flex: 1 1 100%; min-width: unset; }
    .hero-content h1 { font-size: 2.2em !important; }
    .hero-content p { font-size: 1em !important; }
    .image-grid-container { grid-template-columns: repeat(3, 1fr); gap: 2px; }
    .work-card, .service-item { margin-bottom: 20px; }
}

/* 最小屏幕 (max-width: 480px) */
@media (max-width: 480px) {
    /* 保持 2x2 但更小 */
    .stats-grid { flex-direction: row; flex-wrap: wrap !important; gap: 8px; justify-content: center; }
    .stat-box { flex: 1 1 calc(50% - 4px); padding: 5px 8px; box-sizing: border-box; }
    .stat-number { font-size: 1.2em; margin-bottom: 0px; }
    .stat-label { font-size: 0.6em; }
    .stats-section { padding: 40px 0; }
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 100;
    background-color: rgba(20, 122, 255, 0.8); color: white; border: none;
    padding: 12px 18px; border-radius: 5px; cursor: pointer; font-size: 1.2em; line-height: 1;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
#back-to-top:hover { background-color: #147aff; }
#back-to-top.show { opacity: 1; visibility: visible; }

/* ========== 子页面专用样式 ========== */
/* 子页面内容包裹层 - 不同于首页的滚动包裹层 */
.subpage-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 100px; /* 为固定导航栏留出空间 */
    background-color: #fff;
}

/* 子页面主内容区 - 自动填充剩余空间 */
.subpage-main {
    flex: 1;
    width: 100%;
}

/* 子页面标题横幅 */
.subpage-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.subpage-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.subpage-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 子页面响应式调整 */
@media (max-width: 768px) {
    .subpage-wrapper {
        padding-top: 70px;
    }
    
    .subpage-hero {
        padding: 40px 15px;
    }
    
    .subpage-hero h1 {
        font-size: 1.8rem;
    }
    
    .subpage-hero p {
        font-size: 1rem;
    }
}