/* Font Awesome 字体图标 - 公共组件只加载一次 */
@import url(../assets/font-awesome/css/all.min.css);

/* 基础样式模块 */
:root {
    --primary-color: #3b82f6;
    --primary-color-bg: #dbeafe;
    --secondary-color: #667eea;
    --tertiary-color: #764ba2;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #64748b;
    --background-color: #fff;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.3);
    --active-color: #3b82f6;
    --inactive-color: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff !important;
}
.mg-top-5{
    margin-top: 5rem;
}


/* 主要内容区域 */
main {
    flex: 1;
    width: 100%;
}
/* 顶部导航栏样式模块 */
nav {
    background: white;
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
#mainNav{
    display: flex;
    height: 80px;
}
.h-16{
    height: 4rem;
}

.nav-container {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 40px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    border-bottom: 3px solid rgb(255 255 255 / 0.1)
}

.nav-links a:hover {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.nav-links a.active {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}
.child-nav a.child-active{
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.section {
    min-height: 60vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section > .section-content > p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}
/**
 * 首页
*/
        .btn-transparent {
            background: transparent;
            color: white;
            border-left: 1px solid white;
            border-right: 1px solid white;
            border-bottom: 1px solid white;
            border-top: none;
            padding: 12px 24px;
            border-radius: 0;
            text-decoration: none;
            display: inline-block;
            transition: background-color 0.3s ease, color 0.3s ease;
            cursor: pointer;
        }

        .btn-transparent:hover {
            background-color: orange;
            color: white;
        }

        .btn-transparent.active {
            background-color: orange;
            color: white;
        }

        /* Footer 样式 */
        .footer-container {
            background: #1f2937;
            padding: 3rem 2rem;
            color: #e5e7eb;
        }

        .footer-content {
            max-width: 80rem;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-section h4 {
            font-weight: 700;
            color: white;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        .footer-section p {
            font-size: 0.9rem;
            line-height: 1.7;
            margin-bottom: 1rem;
        }

        .footer-section ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-section ul li {
            margin-bottom: 0.75rem;
        }

        .footer-section a {
            color: #d1d5db;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: white;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .footer-logo img {
            height: 2rem;
            width: auto;
        }

        .footer-social {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .footer-social i {
            font-size: 1.25rem;
            color: #d1d5db;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .footer-social i:hover {
            color: white;
        }

        .footer-bottom {
            border-top: 1px solid #374151;
            padding-top: 2rem;
            text-align: center;
            color: #9ca3af;
            font-size: 0.9rem;
        }
        .footer-server{
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
.hero-subtitle{
    color: #fff;
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}
.stat-number{
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
}
.common-icon{
    color: var(--primary-color);
    background-color: var(--primary-color-bg);
}


/**
*内容修改样式
*/
.hero-text{
    width: 100% !important;
    text-align: center;
}
.service-card-item p{
    text-align: left;
}
.card-icon{
   margin: 0 auto;
}
.card-title{
    text-align: center;
}
.center-btn{
    text-align: center;
}
/**
*服务项目图标
*/
.pro-blue-icon{
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}
.pro-yellow-icon{
    background: linear-gradient(135deg, #eab308 0%, #f97316 100%);
}
.pro-green-icon{
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}
.pro-purple-icon{
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}
.pro-orange-icon{
   background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}
.pro-green2-icon{
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}
.pro-purple2-icon{
   background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%)
}
.pro-red-icon{
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%)
}
/**
 * 新闻资讯
 */
.news-card {
    cursor: pointer;
    transition: all 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}
.tab-active {
    border-bottom: 3px solid #3b82f6;
    color: #3b82f6;
}
.tab-inactive {
    color: #64748b;
}
.tab-inactive:hover {
    color: #475569;
}
.detail-content{
    border-top: 1px solid #e5e7eb;
}
.detail-content p{
    padding: 0.3rem 0;
}
.news-banner{
    height: auto !important;
}
.news-detail-container{

}


/* 泛用 */
.mg-top-5{
    margin-top: 5rem;
}

.contact-info-item{
    margin-bottom: 0;
}

/* ==================== 移动端触摸优化 ==================== */

/* 移除移动设备的高亮和点击延迟 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 优化触摸目标大小（至少44x44像素） */
button,
input[type="button"],
input[type="submit"],
input[type="checkbox"],
input[type="radio"],
.tab-btn,
.services-tab-btn,
.mobile-nav-item,
.mobile-submenu-btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation; /* 移除双击缩放 */
}

/* 优化移动端滚动 */
html {
    -webkit-overflow-scrolling: touch;
}

body {
    overscroll-behavior-y: contain; /* 防止过度滚动 */
}

/* 优化移动端输入框 */
input,
textarea,
select {
    font-size: 16px !important; /* 防止iOS自动缩放 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 移除移动端输入框的默认样式 */
input[type="search"] {
    -webkit-appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* 优化移动端按钮的活动状态 */
button:active,
a:active,
.tab-btn:active,
.services-tab-btn:active,
.mobile-nav-item:active {
    opacity: 0.7;
    transform: scale(0.98);
}

/* 平滑滚动 */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* 移动端焦点状态优化 */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}
.mobile-menu{
    position: relative;
}
#mobileMenuBtn{
    position: absolute;
    top: -10px;
    right: 10px;
}
.mobile-menu-panel{
    position: absolute;
    width: 140px;
    top: 20px;
    right: 0px;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-menu-hidden{
    display: none;
}
/* 移动端菜单面板优化 */
#mobileMenuPanel {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* 汉堡菜单按钮动画 */
#mobileMenuBtn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#mobileMenuBtn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 触摸反馈动画 */
@keyframes touchFeedback {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.touch-feedback:active {
    animation: touchFeedback 0.2s ease;
}
.mobile-nav{
    z-index: 1000;
}
@media (max-width: 768px) {
    .pc-nav{
        display: none !important;
    }
}

/* 移动端卡片hover状态禁用（使用active代替） */
@media (hover: none) and (pointer: coarse) {
    .card-hover:hover,
    .achievement-card:hover,
    .plan-card:hover,
    .vision-card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .card-hover:active,
    .achievement-card:active,
    .plan-card:active,
    .vision-card:active {
        transform: scale(0.98);
    }
}

/* 分屏Logo样式 */
.split-screen-logo-container {
    position: absolute;
    left: 2rem;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.split-screen-logo-img {
    height: 120px;
    width: auto;
}

.split-screen-logo-text {
    font-size: 3rem;
    color: white;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.1rem;
}

/* 响应式 - 1200px以下 */
@media (max-width: 1200px) {
    .split-screen-logo-img {
        height: 60px;
    }

    .split-screen-logo-text {
        font-size: 1.2rem;
    }
}

/* 服务卡片图标和标题对齐 */
.service-card-front,
.service-card-top,
.service-card-bottom,
.service-card-left,
.service-card-right {
    display: grid !important;
    grid-template-rows: auto auto 1fr !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    align-items: start !important;
    justify-items: center !important;
    padding: 2rem !important;
}

.service-icon {
    grid-row: 1;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-card-front h3,
.service-card-top h3,
.service-card-bottom h3,
.service-card-left h3,
.service-card-right h3 {
    grid-row: 2;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem 0;
}

.service-card-front p,
.service-card-top p,
.service-card-bottom p,
.service-card-left p,
.service-card-right p {
    grid-row: 3;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

/* 服务卡片懒加载样式 */
.service-card-wrapper.lazy-load {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card-wrapper.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}
