/* ============================================================
   全局重置与基础变量
   ============================================================ */
body, .hero-section, #home, main, .main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}   
:root {
    --primary-color: #2C2C2C;
    --secondary-color: #F0F7FF;
    --accent-color: #2f6fb8;
    --accent-color-rgb: 47, 111, 184;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --white: #FFFFFF;
    --gradient-overlay: linear-gradient(135deg, rgba(44, 44, 44, 0.8), rgba(74, 144, 226, 0.3));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
    color: var(--text-dark);
    padding-top: 0;

    
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
}

/* ============================================================
   预加载动画 (Preloader)
   ============================================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s, visibility 0.8s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: var(--white);
}

.logo-text {
    display: block;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: 1.5s forwards logoFadeIn;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    opacity: 0;
    animation: 1s 1s forwards logoFadeIn;
}

.logo-line {
    width: 0;
    height: 2px;
    background: var(--accent-color);
    margin: 1rem auto;
    animation: 1s 0.5s forwards lineExpand;
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lineExpand {
    to { width: 100px; }
}

/* ============================================================
   导航栏 (Navbar) - 
   ============================================================ */
.navbar {
    padding: 1rem;   /* 从 1rem 改为更小的值，或直接改为 0 */
    transition: 0.4s;
    background: transparent;
}

.navbar.scrolled {
    padding: 0;                    
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    color: var(--white);
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color);
}

.brand-text {
    display: block;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

/* 导航链接基础样式（顶部透明时） */
.navbar-nav .nav-link {
    font-weight: 500;
    margin: 1.4rem 0.4rem !important;
    position: relative;
    border-radius: 0 !important;
    overflow: hidden;
    transition: color 0.35s ease;
    margin-top: -1rem;             /* 与顶部导航栏的 padding 匹配 */
    margin-bottom: -1rem;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--white);
}

/* 滚动后导航链接：不再需要负 margin，用内边距直接控制高度 */
.navbar.scrolled .navbar-nav .nav-link {
    color: var(--text-dark);
    margin: 0 !important;          /* 清除负 margin */
    padding: 1.9rem 1rem !important;  /* 上下内边距决定导航栏高度，可按需调整 */
    line-height: 1.2;
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0.4rem !important;   /* 与透明状态保持一致 */
    margin-right: 0.4rem !important;    
}

/* 透明导航栏 - 底部横线效果 */
.navbar:not(.scrolled) .navbar-nav .nav-link::after {
    display: block !important;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--accent-color), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.navbar:not(.scrolled) .navbar-nav .dropdown > .nav-link::after {
    display: none !important;
}

.navbar:not(.scrolled) .navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar:not(.scrolled) .navbar-nav .nav-link:hover {
    color: var(--white) !important;
    background-color: transparent !important;
}

.navbar.scrolled .navbar-nav .nav-link::after {
    display: none !important;
}

.navbar.scrolled .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.35s ease;
    z-index: -1;
    border-radius: 0 !important;
}

.navbar.scrolled .navbar-nav .nav-link:hover::before {
    height: 100%;
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* 下拉菜单 */
.navbar .dropdown-toggle::after {
    display: none !important;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.85);   /* 半透明白色，数值越低越透明 */
    border-radius: 0  0 8px 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;           /* 减小下拉菜单上下留白 */
    margin-top: 0;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* 桌面端 hover 展开二级菜单 */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* 汉堡菜单图标 */
.navbar-toggler {
    position: relative;
    width: 30px;
    height: 20px;
    border: none;
    background: transparent !important;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    height: 2px;
    width: 100%;
    background-color: var(--white);
    transition: 0.3s;
}

.navbar.scrolled .navbar-toggler-icon {
    background-color: var(--primary-color);
}

.navbar-toggler-icon::after,
.navbar-toggler-icon::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: inherit;
    transition: 0.3s;
}

.navbar-toggler-icon::before { top: -8px; }
.navbar-toggler-icon::after { bottom: -8px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* LOGO 图片 */
.navbar-logo {
    height: 55px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    content: url('/images/logo.png');
}

/* 移动端侧边栏 */
.offcanvas {
    background: var(--primary-color);
    color: var(--white);
    z-index: 99999999 !important;
}

.offcanvas-body .nav-link {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0.75rem 1rem !important;
}

.offcanvas .nav-link {
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 移动端侧边栏适配 */
@media (max-width: 991.98px) {
    .dropdown-menu {
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    .dropdown-item {
        color: var(--white);
        padding: 0.6rem 1rem;
    }
    .dropdown-item:hover {
        background: rgba(var(--accent-color-rgb), 0.1);
        color: var(--white);
    }
    .navbar-nav .nav-link {
        color: var(--white) !important;
        margin: 0;
        padding: 0.75rem 0;
    }
    .navbar.scrolled {
        background-color: transparent !important;
        box-shadow: none !important;
    }
    .offcanvas.offcanvas-end {
        width: 300px;
    }
    body.offcanvas-open {
        overflow: hidden;
    }


   .navbar > .container {
        flex-wrap: nowrap;         /* 禁止换行 */
    }
    .navbar-brand {
        flex: 1 1 auto;           /* 允许品牌区域弹性收缩 */
        min-width: 0;             /* 关键：允许flex子元素缩小 */
        overflow: visible;        /* 不裁切内容 */
    }
    .navbar-brand img {
        max-height: 40px;         /* 限制高度，宽度自动适配 */
        width: auto;
        display: block;
    }
    .navbar-toggler {
        flex-shrink: 0;           /* 按钮不缩小 */
        margin-left: auto;        /* 推到最右侧 */
    }
}



/* ============================================================
   Hero 区域 / 轮播
   ============================================================ */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('/images/architecture.jpg') center/cover no-repeat;
    z-index: -2;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient-overlay);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 100%;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.accent-text {
    color: var(--accent-color);
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: 2s infinite bounce;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--white);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 轮播内元素调整 */
#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

#heroCarousel .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#heroCarousel .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

#heroCarousel .hero-title {
    white-space: normal;
    max-width: 100% !important;
}

#heroCarousel .hero-subtitle {
    max-width: 100% !important;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    z-index: 3;
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
    padding: 0.875rem 2rem;
    font-weight: 500;
    border-radius: 0;
    border: 2px solid transparent;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    border-width: 1px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================================
   通用区块
   ============================================================ */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header .section-subtitle {
    margin-bottom: 1rem !important;
    display: block;
}

.section-description {
    white-space: nowrap;
    max-width: none;
}

.bg-light { background: var(--secondary-color); }
.bg-dark { background: var(--primary-color); }

/* ============================================================
   简介区块 (About)
   ============================================================ */
#about .section-subtitle { color: var(--accent-color); font-weight: 600; }
#about .section-title { color: var(--accent-color); font-weight: 700; }
#about p { color: #555; line-height: 1.8; }
#about .stat-item h3 { color: var(--accent-color); font-weight: 700; }
#about .stat-item p { color: #888; font-size: 0.9rem; }
#about .about-image img { border-radius: 0 !important; }

.about-image { position: relative; overflow: hidden; border-radius: 8px; }
.about-image img { transition: transform 0.6s; }
.about-image:hover img { transform: scale(1.05); }

.stats-row { display: flex; gap: 2rem; margin-top: 2rem; }
.stat-item h3 { font-size: 2.5rem; font-weight: 600; color: var(--accent-color); margin-bottom: 0.5rem; }
.stat-item p { color: var(--text-light); margin: 0; }

/* ============================================================
   服务卡片 / 入口卡片
   ============================================================ */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.service-icon { margin: 0 auto 1.5rem; overflow: hidden; }
.service-icon img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color); }

.detail-system-card { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.detail-system-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.detail-system-card:hover img { transform: scale(1.00); transition: transform 0.6s ease; }

/* ============================================================
   流程步骤
   ============================================================ */
.process-step { text-align: center; color: var(--white); padding: 2rem 1rem; }
.step-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 600; color: var(--accent-color); margin-bottom: 1rem; position: relative; }
.step-number::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background: var(--accent-color); }
.process-step h4 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--white); }
.process-step p { color: rgba(255,255,255,0.8); }

/* ============================================================
   案例筛选 / 作品集
   ============================================================ */
.portfolio-filter { margin-bottom: 3rem; }
.filter-btn {
    background: transparent; border: 1px solid #ddd; color: var(--text-light);
    padding: 0.75rem 1.5rem; margin: 0 0.5rem 0.5rem 0;
    border-radius: 0; font-weight: 500; cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.05em; transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent-color); border-color: var(--accent-color); color: var(--white); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }
.portfolio-card { position: relative; overflow: hidden; border-radius: 8px; height: 250px; }  /* 卡片高度调小 */
.portfolio-image { position: relative; height: 100%; overflow: hidden; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }

.portfolio-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44,44,44,0.8); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-card:hover .portfolio-image img { transform: scale(1.1); }

.portfolio-content { text-align: center; color: var(--white); transform: translateY(20px); transition: transform 0.4s; }
.portfolio-card:hover .portfolio-content { transform: translateY(0); }
.portfolio-content h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.portfolio-content p { color: var(--accent-color); margin-bottom: 1rem; font-weight: 500; }
.portfolio-link { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--accent-color); padding-bottom: 2px; transition: 0.3s; }
.portfolio-link:hover { color: var(--accent-color); }

/* ============================================================
   博客卡片
   ============================================================ */
.blog-card { height: 100%; transition: transform 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.05); background: var(--white); border-radius: 8px; overflow: hidden; }
.blog-card:hover { transform: translateY(-5px); }
.blog-image { height: 250px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-content { padding: 2rem; }
.blog-content h3 { font-size: 1.125rem; line-height: 1.4; margin-bottom: 1rem; color: var(--primary-color); }
.blog-content p { font-size: 0.875rem; color: var(--text-light); margin-bottom: 1.5rem; }
.blog-meta { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: 0.75rem; }
.blog-date, .blog-category { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }
.blog-link { color: var(--accent-color); text-decoration: none; border-bottom: 2px solid var(--accent-color); padding-bottom: 2px; transition: 0.3s; font-size: 0.8125rem; font-weight: 500; }
.blog-link:hover { color: var(--primary-color); border-color: var(--primary-color); }

/* ============================================================
   页脚
   ============================================================ */
.footer { padding: 4rem 0 2rem; color: var(--white); font-size: 0.875rem; }
.footer-logo { height: 50px; width: auto; margin-bottom: 1rem; }
.footer-description { color: rgba(255,255,255,0.8); max-width: 100%; margin-bottom: 1.5rem; }
.footer h5 { font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--white); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links li a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; font-size: 0.8125rem; }
.footer-links li a:hover { color: var(--accent-color); }
.footer-divider { border-color: rgba(255,255,255,0.2); margin: 2rem 0 1.5rem; }
.footer-copyright { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.75rem;}
/* Footer 移动端折叠样式 */
@media (max-width: 767.98px) {
    .footer-toggle {
        cursor: pointer;
        user-select: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 0;
    }
    .footer-toggle:hover {
        color: var(--accent-color);
    }
    .toggle-icon {
        font-size: 1.2rem;
        transition: transform 0.3s;
    }
    .footer-toggle[aria-expanded="true"] .toggle-icon {
        transform: rotate(45deg);
    }
    .collapse:not(.show) {
        display: none;
    }
}

/* ============================================================
   滚动到顶部 / 微信 / 资质等
   ============================================================ */
.scroll-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    border-radius: 50%; background: var(--accent-color); border: none; cursor: pointer;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: var(--white);
}
.scroll-to-top.show { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--primary-color); transform: translateY(-3px); }

.wechat-float { position: fixed; bottom: 100px; right: 30px; z-index: 999; }
.wechat-icon {
    width: 50px; height: 50px; background: linear-gradient(135deg, #07C160, #06AD56);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 15px rgba(7,193,96,0.4); transition: all 0.3s ease; position: relative; z-index: 2;
}
.wechat-icon:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(7,193,96,0.5); }
.wechat-popup {
    position: absolute; bottom: 65px; right: 0; width: 220px; background: #fff;
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; overflow: hidden;
}
.wechat-float:hover .wechat-popup { opacity: 1; visibility: visible; transform: translateY(0); }
.wechat-popup-header { background: linear-gradient(135deg, #07C160, #06AD56); color: #fff; text-align: center; padding: 12px; font-size: 0.95rem; font-weight: 500; }
.wechat-popup-body { padding: 20px; text-align: center; }
.wechat-popup-body img { width: 160px; height: 160px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; }
.wechat-popup-body p { margin: 5px 0; color: #333; font-size: 0.85rem; }
.wechat-phone { color: #07C160 !important; font-weight: 600; font-size: 0.9rem !important; }

.qualification-card { text-align: center; padding: 2rem 1.5rem; }
.qualification-image { width: 100%; height: 280px; margin-bottom: 1.5rem; overflow: hidden; border-radius: 4px; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; background: #fafafa; }
.qualification-image img { width: auto; height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.4s ease; }
.qualification-card:hover .qualification-image img { transform: scale(1.05); }
.qualification-card h5 { font-size: 1.1rem; font-weight: 600; color: var(--primary-color); margin-bottom: 0.75rem; }
.qualification-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* 证书滚动 */
.qualification-scroll-container { width: 100%; max-width: 1320px; margin: 0 auto; overflow: hidden; position: relative; margin-top: 2rem; padding: 0 15px; }
@media (min-width: 1200px) { .qualification-scroll-container { max-width: 1140px; } }
@media (min-width: 1400px) { .qualification-scroll-container { max-width: 1320px; } }
.qualification-scroll-wrapper { overflow: hidden; width: 100%; }
.qualification-scroll-track { display: flex; gap: 0; width: fit-content; animation: scrollQualification 20s linear infinite; }
@keyframes scrollQualification { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.qualification-scroll-container:hover .qualification-scroll-track { animation-play-state: paused; }
.qualification-scroll-item { flex: 0 0 auto; width: 280px; padding: 0 12px; }
.qualification-scroll-item .qualification-card { margin: 0; height: 100%; background: #fff; border-radius: 0; padding: 1.5rem; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.qualification-scroll-item .qualification-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

/* ============================================================
   分页
   ============================================================ */
.pagination-wrapper { margin-top: 3rem; }
.pagination { display: flex; justify-content: center; gap: 0.25rem; flex-wrap: wrap; }
.pagination .page-link { color: var(--text-dark); border: 1px solid #ddd; padding: 0.65rem 1.1rem; border-radius: 0; transition: all 0.3s ease; font-size: 0.9rem; text-decoration: none; }
.pagination .page-link:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.pagination .page-item.active .page-link { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

/* ============================================================
   其他辅助
   ============================================================ */
.contact-card-sm { padding: 1.5rem 1.5rem; }
.contact-card-icon-sm { width: 45px; height: 45px; margin-bottom: 0.8rem; }
.contact-card-icon-sm svg { width: 20px; height: 20px; }
.vent-feature-card img { transition: transform 0.5s ease; }
.vent-feature-card:hover img { transform: scale(1.08); }
.antiblast-feature-card { background: #fff; border-radius: 0; padding: 2.5rem 2rem; height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.3s ease; border: 1px solid #f0f0f0; text-align: center; }
.antiblast-feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--secondary-color); }
::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }
.loading { pointer-events: none; opacity: 0.6; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 767.98px) {
    .hero-title { font-size: 2.2rem; max-width: 100%; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-padding { padding: 2rem 0; }
    .section-title { font-size: 2rem; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    .wechat-float { bottom: 80px; right: 20px; }
    .wechat-icon { width: 48px; height: 48px; }
    .wechat-popup { width: 200px; }
    .wechat-popup-body img { width: 100px; height: 100px; }
    .qualification-image { height: 240px; }
    .qualification-scroll-item { width: 260px; padding: 0 8px; }
    .qualification-image { height: 150px; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 1.9rem; }
    .btn { border-radius: 0 !important; }
    .hero-buttons .btn:last-child { margin-bottom: 0; }
    .filter-btn { font-size: 0.85rem; padding: 0.6rem 1rem; }
    .qualification-scroll-item { width: 240px; padding: 0 6px; }
    .qualification-image { height: 130px; }
}