/* =========================================================
 * index.css - 首页完整样式文件
 * 整合了所有首页相关的CSS模块
 * ======================================================= */


/* =========================================================
 * 模块2: 首屏关键样式（Header & Hero 顶部区域）
 * 对应模块：页面头部导航 .header + 首屏英雄区 .hero
 * ======================================================= */

.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 8px 0;
	background: transparent;
}



.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
}

/* Hero 背景：渐变叠加背景图片 */
.hero {
	background: linear-gradient(135deg, rgba(10, 40, 75, .78), rgba(24, 48, 90, .92)), url('../img/Back.webp') no-repeat center center/cover;
}

/* 首页按钮关键样式（柔和版） */
.hero .btn {
	border-radius: 25px;
	padding: 16px 32px;
	transition: all .3s ease;
	animation: none;
}


/* =========================================================
 * 模块3: 骨架屏效果（Skeleton）
 * 对应模块：图片 / 图标加载占位 .skeleton
 * ======================================================= */

.skeleton {
	position: relative;
	background: #1a2e4a;
	overflow: hidden;
}

.skeleton::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
	animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(100%);
	}
}


/* =========================================================
 * 模块4: 无障碍偏好：降低动效时移除动画
 * ======================================================= */

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}


/* =========================================================
 * 模块5: 核心业务模块（services）
 * 布局、卡片、标题装饰等
 * 对应模块：#services 区域
 * ======================================================= */

.services {
	padding: 80px 0;
}

/* 核心业务主列表容器 */
.core-services {
	display: flex;
	flex-direction: column;
	gap: 150px;
}

/* 单个核心业务卡片 */
.core-service {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	/* gap: 32px; */
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: #f8fafc;
	box-shadow: none;
	position: relative;
	overflow: visible;
}

.core-service::before {
	content: none;
}

/* 卡片内部左右布局容器：左文案 / 右图片 */
.core-service-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
}

/* 左侧文案区 */
.core-service-text {
	flex: 1 1 320px;
	max-width: 620px;
}

/* 业务类型小标签（芯片） - 位于容器顶部居中 */
.core-service-tag-1,
.core-service-tag-2 {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #93c5fd;
	background: rgba(37, 99, 235, .12);
	border: 1px solid rgba(59, 130, 246, .35);
	margin-bottom: 20px;
	margin-top: 0;
	position: relative;
	z-index: 2;
}

.core-service-title {
	font-size: 24px;
	line-height: 1.35;
	margin: 0 0 12px;
}

.core-service-subtitle {
	font-size: 16px;
	color: #cbd5f5;
	margin: 0 0 18px;
}

/* 卖点列表容器 */
.core-service-bullets {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
}

.core-service-bullets li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #e5e7eb;
	margin-bottom: 8px;
}

/* 列表左侧圆形 check 图标 */
.core-service-bullet-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(59, 130, 246, .12);
	border: 1px solid rgba(59, 130, 246, .45);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.core-service-bullet-icon::before {
	content: '';
	display: block;
	width: 8px;
	height: 4px;
	border-left: 2px solid #60a5fa;
	border-bottom: 2px solid #60a5fa;
	transform: rotate(-45deg) translateY(-1px);
}

.core-service-bullet-text {
	flex: 1;
}

/* 按钮区域 */
.core-service-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* 右侧图片总体容器 */
.core-service-media {
	flex: 1 1 320px;
	max-width: 600px;
	display: flex;
	justify-content: center;
}

/* 图片卡片：参考新建文本文档中的 rounded + shadow + hover 风格 */
.core-service-media-inner {
	position: relative;
	width: 100%;
	max-width: 550px;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	background: #1a1f2e;
	box-shadow: 0 16px 30px rgba(15, 23, 42, .8);
	display: block;
	transition: transform .3s ease, box-shadow .3s ease;
}

.core-service-media-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.core-service-media-inner:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 45px rgba(15, 23, 42, .9);
}

/* 桌面端偶数项左右交错布局（劳务外包 / AI 数据外包） */
.core-service:nth-child(even) .core-service-inner {
	flex-direction: row-reverse;
}

@media (max-width: 1024px) {
	.core-service {
		padding: 26px 22px;
	}
}

@media (max-width: 768px) {
	.core-service {
		padding: 22px 18px;
	}

	.core-service-inner {
		flex-direction: column;
	}

	.core-service-title {
		font-size: 20px;
	}

	.core-service-subtitle {
		font-size: 14px;
	}
}


/* =========================================================
 * 模块6: 核心业务标题装饰（section title）
 * 对应模块：#services 上方标题区域
 * ======================================================= */

.section-title-kicker {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #2563eb;
	background: rgba(37, 99, 235, .08);
	border: 1px solid rgba(37, 99, 235, .35);
	margin-bottom: 10px;
}

.section-title-underline {
	width: 80px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb, #22c55e);
	margin: 10px auto 0;
}


/* =========================================================
 * 模块7: 客户Logo两栏布局样式
 * 来源: client-logos-layout.css
 * 对应模块：客户展示区域
 * ======================================================= */

/* 客户logo两栏布局 */
.client-logos-container {
	display: flex;
	gap: 30px;
	padding: 20px 0;
}

.client-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	position: relative;
	padding: 18px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
	backdrop-filter: blur(10px);
}

/* 左侧：互联网公司 - 蓝色系 */
.client-column:first-child {
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 45, 75, 0.3));
	border: 2px solid rgba(14, 165, 233, 0.3);
	box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 右侧：制造厂 - 青色/绿色系 */
.client-column:last-child {
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(6, 45, 75, 0.3));
	border: 2px solid rgba(5, 150, 105, 0.3);
	box-shadow: 0 4px 20px rgba(5, 150, 105, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.client-column-title {
	font-size: 1.3em;
	font-weight: bold;
	margin-bottom: 18px;
	text-align: center;
	padding: 10px 16px;
	border-radius: 8px;
	position: relative;
	display: inline-block;
	margin-left: auto;
	margin-right: auto;
}

/* 标题下方的装饰线 */
.client-column-title::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	border-radius: 2px;
}

.client-column:first-child .client-column-title::after {
	background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
	box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.client-column:last-child .client-column-title::after {
	background: linear-gradient(90deg, transparent, #10b981, transparent);
	box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

/* 左侧标题样式 - 蓝色 */
.client-column:first-child .client-column-title {
	color: #0ea5e9;
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
	border: 1px solid rgba(14, 165, 233, 0.4);
	box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
	text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

/* 右侧标题样式 - 青色 */
.client-column:last-child .client-column-title {
	color: #10b981;
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(5, 150, 105, 0.05));
	border: 1px solid rgba(5, 150, 105, 0.4);
	box-shadow: 0 2px 10px rgba(5, 150, 105, 0.2);
	text-shadow: 0 0 10px rgba(5, 150, 105, 0.3);
}

.client-logos-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(3, auto);
	gap: 16px;
}

.client-logo-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: transparent;
	border-radius: 8px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

/* 左侧卡片边框和悬停效果 - 蓝色 */
.client-column:first-child .client-logo-item {
	border-color: rgba(14, 165, 233, 0.2);
}

.client-column:first-child .client-logo-item:hover {
	transform: translateY(-5px);
	background: transparent;
	border-color: rgba(14, 165, 233, 0.5);
	box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* 右侧卡片边框和悬停效果 - 青色 */
.client-column:last-child .client-logo-item {
	border-color: rgba(5, 150, 105, 0.2);
}

.client-column:last-child .client-logo-item:hover {
	transform: translateY(-5px);
	background: transparent;
	border-color: rgba(5, 150, 105, 0.5);
	box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.client-logo img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
	max-height: 60px;
}

.client-name {
	font-weight: bold;
	margin: 8px 0 4px;
	font-size: 0.9em;
	color: #f8fafc;
}

.client-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	font-size: 0.8em;
	color: #cbd5e1;
}

/* 左侧信息标签颜色 */
.client-column:first-child .client-type {
	background: rgba(14, 165, 233, 0.2);
	color: #7dd3fc;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid rgba(14, 165, 233, 0.3);
}

.client-column:first-child .cooperation-years {
	background: rgba(14, 165, 233, 0.15);
	color: #bae6fd;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid rgba(14, 165, 233, 0.25);
}

/* 右侧信息标签颜色 */
.client-column:last-child .client-type {
	background: rgba(5, 150, 105, 0.2);
	color: #6ee7b7;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid rgba(5, 150, 105, 0.3);
}

.client-column:last-child .cooperation-years {
	background: rgba(5, 150, 105, 0.15);
	color: #a7f3d0;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid rgba(5, 150, 105, 0.25);
}

/* 小屏幕设备调整 */
@media (max-width: 768px) {
	.client-logos-container {
		flex-direction: column;
		gap: 30px;
		padding: 20px 0;
	}

	.client-column {
		padding: 20px 15px;
	}

	.client-column-title {
		font-size: 1.3em;
		padding: 10px 16px;
	}

	.client-logos-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto;
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.client-column {
		padding: 15px 10px;
	}

	.client-column-title {
		font-size: 1.2em;
		padding: 8px 12px;
	}

	.client-logos-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}


/* =========================================================
 * 模块8: 设备响应式设计 - 基于设备检测的优化样式
 * 来源: device-responsive.css
 * 注意：此模块包含通用设备检测样式，可能被其他页面使用
 * ======================================================= */

/* ========================================
   设备类型基础样式
   ======================================== */

/* 移动设备基础样式 */
.device-mobile {
    --base-font-size: 14px;
    --heading-scale: 1.2;
    --spacing-unit: 12px;
    --border-radius: 8px;
    --shadow-intensity: 0.1;
    --animation-speed: 0.2s;
}

/* 平板设备基础样式 */
.device-tablet {
    --base-font-size: 15px;
    --heading-scale: 1.3;
    --spacing-unit: 16px;
    --border-radius: 12px;
    --shadow-intensity: 0.15;
    --animation-speed: 0.3s;
}

/* 桌面设备基础样式 */
.device-desktop {
    --base-font-size: 16px;
    --heading-scale: 1.4;
    --spacing-unit: 20px;
    --border-radius: 16px;
    --shadow-intensity: 0.2;
    --animation-speed: 0.4s;
}

/* ========================================
   操作系统特定优化
   ======================================== */

/* iOS设备优化 */
.os-ios {
    /* iOS Safari特定样式 */
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

.os-ios .btn,
.os-ios .nav-link {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none; /* 标准属性，实现兼容性 */
}

/* Android设备优化 */
.os-android {
    /* Android Chrome特定样式 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* Firefox支持 */
}

/* ========================================
   触摸设备优化
   ======================================== */

/* 触摸设备基础样式 */
.touch-device .btn,
.touch-device .nav-link,
.touch-device .case-nav-btn,
.touch-device .case-indicator {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
}

/* 非触摸设备样式 */
.no-touch .btn:hover,
.no-touch .nav-link:hover,
.no-touch .case-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 198, 255, 0.3);
}

/* ========================================
   高DPI屏幕优化
   ======================================== */

.high-dpi {
    /* 高DPI屏幕使用更清晰的字体渲染 */
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.high-dpi img {
    /* 高DPI屏幕使用更高质量的图片 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ========================================
   设备特定的交互优化
   ======================================== */

/* 禁用hover效果（移动设备） */
.no-hover .btn:hover,
.no-hover .nav-link:hover,
.no-hover .case-nav-btn:hover,
.no-hover .service-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 有限的hover效果（平板设备） */
.limited-hover .btn:hover,
.limited-hover .nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 198, 255, 0.2);
}

/* 完整交互效果（桌面设备） */
.full-interaction .btn:hover,
.full-interaction .nav-link:hover,
.full-interaction .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.4);
}

/* ========================================
   网络连接优化
   ======================================== */

/* 慢速连接优化 */
.slow-connection {
    /* 禁用非关键动画 */
    --animation-speed: 0s;
}

.slow-connection .service-card,
.slow-connection .advantage-card,
.slow-connection .annotation-card,
.slow-connection .area-card {
    transition: none !important;
    animation: none !important;
}

/* 慢速连接时图片优化 - 注意：loading属性应在HTML的img标签中设置，CSS无法控制 */
/* .slow-connection img { loading: lazy; } - 已移除，这是HTML属性，不是CSS属性 */

/* ========================================
   设备特定的布局调整
   ======================================== */

/* 移动设备布局 */
.device-mobile .container {
    padding: 0 var(--spacing-unit);
}

.device-mobile .service-card {
    flex: 0 0 100%;
    margin-bottom: var(--spacing-unit);
}

.device-mobile .cases-track {
    gap: var(--spacing-unit);
}

.device-mobile .case-card {
    flex: 0 0 280px;
    padding: var(--spacing-unit);
}

/* 平板设备布局 */
.device-tablet .service-card {
    flex: 0 0 calc(50% - var(--spacing-unit));
    margin-bottom: var(--spacing-unit);
}

.device-tablet .case-card {
    flex: 0 0 320px;
    padding: calc(var(--spacing-unit) * 1.5);
}

/* 桌面设备布局 */
.device-desktop .service-card {
    flex: 0 0 calc(25% - var(--spacing-unit));
    margin-bottom: var(--spacing-unit);
}

.device-desktop .case-card {
    flex: 0 0 370px;
    padding: calc(var(--spacing-unit) * 2);
}

/* ========================================
   字体大小响应式调整
   ======================================== */

.device-mobile h1 {
    font-size: calc(1.8rem * var(--heading-scale));
}

.device-mobile h2 {
    font-size: calc(1.5rem * var(--heading-scale));
}

.device-mobile h3 {
    font-size: calc(1.2rem * var(--heading-scale));
}

.device-tablet h1 {
    font-size: calc(2.2rem * var(--heading-scale));
}

.device-tablet h2 {
    font-size: calc(1.8rem * var(--heading-scale));
}

.device-tablet h3 {
    font-size: calc(1.4rem * var(--heading-scale));
}

.device-desktop h1 {
    font-size: calc(2.5rem * var(--heading-scale));
}

.device-desktop h2 {
    font-size: calc(2rem * var(--heading-scale));
}

/* .device-desktop h3 {
    font-size: calc(1.6rem * var(--heading-scale));
} */

/* ========================================
   性能优化
   ======================================== */

/* 移动设备性能优化 */
.device-mobile * {
    will-change: auto;
}

.device-mobile .service-card,
.device-mobile .advantage-card,
.device-mobile .annotation-card,
.device-mobile .area-card {
    will-change: transform;
}

/* 桌面设备性能优化 */
.device-desktop .service-card:hover,
.device-desktop .advantage-card:hover,
.device-desktop .annotation-card:hover,
.device-desktop .area-card:hover {
    will-change: transform, box-shadow;
}

/* ========================================
   媒体查询备用方案
   ======================================== */

/* 为不支持JavaScript的设备提供备用方案 */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .service-card {
        flex: 0 0 100%;
        margin-bottom: 12px;
    }
    
    .case-card {
        flex: 0 0 280px;
        padding: 12px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .service-card {
        flex: 0 0 calc(50% - 8px);
        margin-bottom: 16px;
    }
    
    .case-card {
        flex: 0 0 320px;
        padding: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .service-card {
        flex: 0 0 calc(33.333% - 12px);
        margin-bottom: 20px;
    }
    
    .case-card {
        flex: 0 0 340px;
        padding: 20px;
    }
}

@media (min-width: 1025px) {
    .service-card {
        flex: 0 0 calc(25% - 15px);
        margin-bottom: 24px;
    }
    
    .case-card {
        flex: 0 0 360px;
        padding: 24px;
    }
}

/* ========================================
   调试样式（开发环境）
   ======================================== */

/* 开发环境下显示设备信息 */
.device-debug::before {
    content: attr(data-device-info);
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    font-family: monospace;
}
