:root {
    /* 现代科技风格配色方案 */
    --primary-color: #2563EB;
    /* 鲜亮科技蓝 */
    --primary-dark: #1E40AF;
    --secondary-color: #06B6D4;
    /* 活力青色 */
    --text-color: #1E293B;
    /* 深岩灰 */
    --text-light: #64748B;
    --light-gray: #F8FAFC;
    /* 极淡蓝灰背景 */
    --white: #FFFFFF;
    --accent-color: #F59E0B;
    /* 活力橙作为点缀 */

    /* 现代阴影体系 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);

    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部信息栏样式 */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 5px 0;
}

/* 导航栏样式 */
.header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    gap: 10px;
}

.main-nav li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 20px;
    display: block;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 章节通用样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* 核心业务样式 */
.core-services {
    padding: 100px 0;
    background: white;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.1);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    transform: rotate(-5deg);
    transition: all 0.4s ease;
}

.service-item:hover .service-icon {
    transform: rotate(0deg) scale(1.1);
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-item h3 {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 25px;
    }
}

.footer {
    background: #0f172a;
    padding: 60px 0;
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-top: 20px;
}

.copyright a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: var(--secondary-color);
}

.phone-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.phone-link:hover {
    opacity: 0.8;
}

.phone-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../images/icons/phone.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 5px;
    padding: 0;
    border-radius: 4px;
    height: 45px;
    display: flex;
    align-items: center;
    background: transparent;
    transition: all 0.3s ease;
}

nav ul li:hover {
    background: rgba(26, 95, 122, 0.05);
    transform: translateY(-2px);
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 导航菜单样式优化 */
nav ul li {
    margin: 0 2px;
}

nav ul li:hover {
    background: rgba(0, 86, 210, 0.08);
    transform: translateY(0);
    /* 移除位移，保持稳重 */
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0 16px;
}

/* 移除彩虹背景，统一风格 */
nav ul li:nth-child(n) {
    background-color: transparent;
}

nav ul li:nth-child(n):hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

nav ul li:nth-child(n) a {
    color: var(--text-color);
}

nav ul li:nth-child(n):hover a {
    color: var(--primary-color);
}

.logo {
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    /* 旧样式保留或覆盖 */
    display: none;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-icon {
    height: 50px !important;
    /* 覆盖旧样式 */
    width: auto !important;
    display: block !important;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 2px;
}

/* 调整导航菜单样式使其与 logo 协调 */
.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

/* 轮播图样式优化 */
.banner {
    width: 100%;
    overflow: hidden;
    background: var(--light-gray);
}

.slider {
    position: relative;
    max-height: 600px;
    /* 控制最大高度 */
}

.slider-container {
    width: 100%;
    height: 600px;
    /* 固定高度 */
}

.slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 确保图片填充整个容器 */
    object-position: center;
    /* 居中显示 */
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 1200px;
    z-index: 2;
}

/* 核心业务滚动容器 */
.services-scroll-container {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    padding: 20px 0;
}

.services-scroll {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 10px 0;
}

.services-scroll-container::before,
.services-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.services-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.services-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* 公司优势样式 */
.advantages {
    background: var(--light-gray);
    padding: 100px 0;
}

.advantages .section-title {
    color: var(--primary-color);
}

.advantages .section-title:after {
    background: var(--accent-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 182, 212, 0.2);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.4s ease;
}

.advantage-item:hover .advantage-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.advantage-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 成功案例样式 */
.cases {
    padding: 100px 0;
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.case-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

/* 案例展示 - 更多按钮 */
.case-category {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.case-item:hover .case-content h3 {
    color: var(--primary-color);
}

.case-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.view-more {
    margin-top: 60px;
    text-align: center;
}

.btn-more {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    border: none;
    letter-spacing: normal;
    text-transform: none;
}

.btn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

/* 新闻动态样式 */
.news {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 182, 212, 0.2);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-content {
    padding: 30px;
}

.news-content h3 {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.news-item:hover .news-content h3 {
    color: var(--primary-color);
}

.news-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* 工具集区域样式 */
.tools-section {
    padding: 100px 0;
    background: #1e293b;
    position: relative;
    overflow: hidden;
}

/* 添加一个科技感背景装饰 */
.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 20%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tool-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.tool-card:hover .tool-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.tool-card h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tool-card p {
    color: #94a3b8;
    font-size: 15px;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #005bb9;
    transform: translateX(5px);
}

/* 添加全局动画效果 */
.fade-in {
    display: none;
}

/* 工具集区域样式 */
.tools-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon i {
    font-size: 24px;
    color: white;
}

.tool-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 响应式调整 */
@media screen and (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 访客计数器样式 */
.visitor-counter {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.visitor-counter i {
    margin-right: 5px;
    color: #666;
}

.visitor-counter .separator {
    margin: 0 15px;
    color: #666;
}

.visitor-counter span {
    margin-right: 5px;
}

#busuanzi_value_site_pv,
#busuanzi_value_site_uv {
    color: var(--primary-color);
    font-weight: 500;
}

/* 计数器加载时的占位样式 */
#busuanzi_container_site_pv,
#busuanzi_container_site_uv {
    display: none;
}

/* 计数器加载完成后显示 */
#busuanzi_container_site_pv.busuanzi-loaded,
#busuanzi_container_site_uv.busuanzi-loaded {
    display: inline;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
}