/*
Theme Name: 登士柏节能科技官网
Theme URI: https://www.densply.cn
Author: 登士柏节能科技
Author URI: https://www.densply.cn
Description: 登士柏节能科技官方网站WordPress主题，专业照明节能服务商
Version: 1.0.7
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: denspar
Domain Path: /languages
Tags: 企业官网, 照明节能, 响应式, 商务风格
*/

/* 引入页面样式 */
@import url('css/page-styles.css');

/* 引入响应式样式 */
@import url('css/responsive.css');

/* ========================================
   登士柏节能科技 - WordPress主题样式
   蓝色科技风 · 简约现代 · 响应式设计
======================================== */

/* ---------- CSS 变量定义 ---------- */
:root {
  /* 主色系 - 科技蓝 */
  --primary: #0066CC;
  --primary-dark: #004C99;
  --primary-light: #3399FF;
  --primary-bg: #E6F2FF;
  
  /* 辅助色 */
  --secondary: #00A878;
  --secondary-dark: #007A56;
  --secondary-bg: #E6F7F2;
  
  /* 中性色 */
  --dark: #1A1A2E;
  --gray-900: #2D2D3A;
  --gray-700: #4A4A5A;
  --gray-500: #6B6B7B;
  --gray-300: #B8B8C8;
  --gray-100: #F0F0F5;
  --white: #FFFFFF;
  
  /* 功能色 */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* 字体 */
  --font-zh: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-en: "Inter", "SF Pro Display", -apple-system, sans-serif;
  
  /* 间距 */
  --section-padding: 48px;
  --container-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  
  /* 过渡 */
  --transition: all 0.3s ease;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-zh);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ---------- 通用布局类 ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- 导航栏 ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-left: 0;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 40px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: #4a4a5a;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066CC;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0066CC;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  flex-shrink: 0;
  background: #0066CC;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #004C99;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

/* 移动端菜单 */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: auto;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #0a1628;
  color: #fff;
  z-index: 10001;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 0;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #4a4a5a;
  border-bottom: 1px solid #f0f0f5;
}

.mobile-menu a:hover {
  color: #0066CC;
}

.mobile-cta {
  display: block;
  margin-top: 16px;
  background: #0066CC;
  color: white;
  padding: 14px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

/* ---------- 轮播图 Hero 区域 ---------- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 95vh;
  min-height: 600px;
  overflow: hidden;
  padding-top: 72px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.6) 40%, rgba(26,58,92,0.3) 70%, transparent 100%);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-content {
  position: absolute;
  left: calc((100vw - 1200px) / 2);
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
  max-width: 550px;
  z-index: 2;
}

.carousel-content * {
  text-align: left;
}

.carousel-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.carousel-content p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.6;
}

.carousel-content .btn {
  font-size: 0.85rem;
  padding: 10px 24px;
}

.carousel-content .btn-hero {
  background: #0066CC;
  color: #fff;
}

.carousel-content .btn-hero:hover {
  background: #004C99;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,102,204,0.4);
}

.carousel-content .btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.carousel-content .btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.carousel-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.carousel-tag {
  display: inline-block;
  background: rgba(0,102,204,0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.carousel-stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.4);
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 24px;
}

.carousel-stat .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #00A878;
}

.carousel-stat .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* 轮播控制 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ---------- 核心数据区 ---------- */
.stats-section {
  background: #fff;
  padding: 40px 0;
  margin-top: -40px;
  position: relative;
  z-index: 20;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f5;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,102,204,0.12);
  border-color: transparent;
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  background: #e6f2ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0066CC;
  margin: 0 auto 16px;
}

.stat-card .stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0066CC;
  font-family: "Inter", "SF Pro Display", sans-serif;
  line-height: 1.2;
}

.stat-card .stat-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #0066CC;
}

.stat-card .stat-desc {
  font-size: 0.9rem;
  color: #6b6b7b;
  margin-top: 6px;
}

/* ---------- 产品领域区 ---------- */
.products-section {
  background: #f0f0f5;
}

.products-section .section-title {
  color: #1a1a2e;
}

.product-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-domain-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0f0f5;
  transition: all 0.3s ease;
}

.product-domain-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}

.product-domain-header {
  height: 120px;
  background: linear-gradient(135deg, #e6f2ff, #d4e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #0066CC;
}

.product-domain-content {
  padding: 28px;
}

.product-domain-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.product-domain-list {
  font-size: 0.9rem;
  color: #6b6b7b;
  line-height: 1.8;
  margin-bottom: 10px;
}

.product-domain-rate {
  display: inline-block;
  background: #e6f7f2;
  color: #00A878;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- 技术优势区 ---------- */
.tech-section {
  background: #fff;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-card {
  padding: 40px 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0f0f5;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: #0066CC;
}

.tech-icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
}
.tech-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 28px;
  opacity: 0.15;
  z-index: -1;
}
.icon-glow { background: linear-gradient(135deg, #FFF7E6, #FFE8CC); }
.icon-glow::after { background: linear-gradient(135deg, #FFB800, #FF6B00); }
.icon-mesh { background: linear-gradient(135deg, #E6F2FF, #CCE5FF); }
.icon-mesh::after { background: linear-gradient(135deg, #0088FF, #0044CC); }
.icon-cloud { background: linear-gradient(135deg, #E6FFF8, #CCF5EC); }
.icon-cloud::after { background: linear-gradient(135deg, #00C9A7, #008B74); }
.icon-sensor { background: linear-gradient(135deg, #F3E8FF, #E9D5FF); }
.icon-sensor::after { background: linear-gradient(135deg, #A855F7, #7C3AED); }

.tech-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.tech-desc {
  font-size: 0.9rem;
  color: #6b6b7b;
  line-height: 1.7;
}

/* ---------- 客户案例区 ---------- */
.cases-section {
  background: #f0f0f5;
}

.cases-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-preview-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.case-preview-image {
  height: 120px;
  background: linear-gradient(135deg, #e6f7f2, #d0f0e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #00A878;
}

.case-preview-content {
  padding: 16px;
}

.case-preview-industry {
  font-size: 0.8rem;
  color: #00A878;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.case-preview-desc {
  font-size: 0.85rem;
  color: #6b6b7b;
  line-height: 1.6;
  margin-bottom: 10px;
}

.case-preview-result {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f5;
}

.case-result-item {
  text-align: center;
}

.case-result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0066CC;
}

.case-result-label {
  font-size: 0.75rem;
  color: #6b6b7b;
}

/* ---------- 服务承诺区 ---------- */
.service-section {
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f5;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #0066CC;
  box-shadow: 0 8px 30px rgba(0,102,204,0.08);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: #e6f2ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0066CC;
  flex-shrink: 0;
}

.service-card-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.service-card-text p {
  font-size: 0.85rem;
  color: #6b6b7b;
  line-height: 1.6;
}

/* ---------- CTA行动号召区 ---------- */
.cta-section {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
  padding: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(0,102,204,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(0,168,120,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-cta-primary {
  background: #fff;
  color: #0066CC;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.cta-actions .btn-cta-primary:hover {
  background: #e6f2ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}

.cta-actions .btn-cta-secondary {
  background: transparent;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cta-actions .btn-cta-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ---------- 页脚 ---------- */
.footer {
  background: #1a1a2e;
  color: #fff;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #0066CC;
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-links-bottom {
  display: flex;
  gap: 16px;
}

.footer-links-bottom a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-links-bottom a:hover {
  color: #fff;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: #0066CC;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,102,204,0.3);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #004C99;
  transform: translateY(-3px);
}

/* ---------- 响应式设计 ---------- */






/* ---------- WordPress 兼容性 ---------- */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #f0f0f5;
  border-radius: 6px;
  color: #4a4a5a;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #0066CC;
  color: #fff;
  border-color: #0066CC;
}

.pagination .current {
  background: #0066CC;
  color: #fff;
  border-color: #0066CC;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: #f8f9fa;
  padding: 16px 0;
  font-size: 0.9rem;
  color: #6b6b7b;
}

.breadcrumb a {
  color: #0066CC;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #b8b8c8;
}

/* ---------- 页面标题 ---------- */
.page-header {
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  padding: 140px 0 60px;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #6b6b7b;
}

/* ========== 手机端适配 - 完整重写 ========== */

/* === 移动端遮罩 === */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === 移动端 Header === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #0a1628;
    color: #fff;
    z-index: 10001;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 0;
    display: none;
    flex-direction: column;
}
.mobile-menu.open { right: 0; }
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.mobile-menu-brand { display: flex; align-items: center; gap: 10px; }
.mobile-menu-brand-text { font-size: 0.9rem; font-weight: 700; color: #fff; }
.mobile-menu-close {
    background: none; border: none; color: #fff; font-size: 1.3rem;
    cursor: pointer; width: 52px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.2s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.1); }
.mobile-menu-social {
    display: flex; gap: 10px; padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu-social a {
    width: 52px; height: 36px; background: rgba(255,255,255,0.08);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; color: rgba(255,255,255,0.7);
    font-size: 0.85rem; transition: all 0.2s;
}
.mobile-menu-social a:hover { background: rgba(0,102,204,0.3); color: #fff; }
.mobile-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu-col { padding: 16px 20px; }
.mobile-menu-col:first-child { border-right: 1px solid rgba(255,255,255,0.08); }
.mobile-menu-col-title { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.mobile-menu-col a { display: block; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; padding: 8px 0; transition: color 0.2s; }
.mobile-menu-col a:hover { color: #4da6ff; }
.mobile-menu-contact { padding: 16px 20px; }
.mobile-menu-contact a { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; padding: 6px 0; }
.mobile-menu-contact a i { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* === 移动端遮罩 === */
.mobile-menu-overlay {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 10000;
    opacity: 0; visibility: hidden; transition: all 0.35s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

/* === 移动端主样式 768px === */
@media (max-width: 768px) {
    /* Header */
    .header {
        position: fixed; top: 0; left: 0; right: 0;
        z-index: 9999; background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    .header-inner { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
    .logo img { height: 42px !important; }
    .logo-text { font-size: 1.15rem !important; }
    .nav { display: none !important; }
    .mobile-toggle {
        display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
    }
    .mobile-toggle span {
        display: block; width: 22px; height: 2px;
        background: #333; border-radius: 2px; transition: all 0.3s;
    }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* 全局 */
    body { padding-top: 56px !important; overflow-x: hidden; }
    .container { padding: 0 16px !important; max-width: 100% !important; }
    .section { padding: 24px 0 !important; }
    .section-header { margin-bottom: 16px !important; }
    .section-title { font-size: 1.2rem !important; line-height: 1.3 !important; }
    .section-subtitle { font-size: 0.8rem !important; line-height: 1.4 !important; }
    .section-footer { margin-top: 16px !important; }

    /* 轮播区 */
    .hero-carousel { min-height: 50vh !important; }
    .carousel-slide { min-height: 50vh !important; }
    .carousel-content {
        max-width: 100% !important;
        padding: 24px 16px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    .carousel-content * { word-break: break-word !important; overflow-wrap: break-word !important; }
    .carousel-content h2 { font-size: 1.2rem !important; line-height: 1.35 !important; margin-bottom: 8px !important; }
    .carousel-content p { font-size: 0.75rem !important; line-height: 1.45 !important; margin-bottom: 12px !important; }
    .carousel-tag { font-size: 0.65rem !important; padding: 3px 8px !important; margin-bottom: 8px !important; }
    .carousel-stat { display: none !important; }
    .carousel-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    .carousel-buttons .btn,
    .carousel-buttons a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 180px !important;
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .carousel-arrow { width: 28px !important; height: 28px !important; font-size: 11px !important; }
    .carousel-prev { left: 8px !important; }
    .carousel-next { right: 8px !important; }
    .carousel-dots { bottom: 10px !important; }
    .carousel-dot { width: 7px !important; height: 7px !important; }

    /* 产品领域 */
    .product-domain-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    .product-domain-header { height: 80px !important; font-size: 2.2rem !important; line-height: 80px !important; }
    .product-domain-content { padding: 12px !important; }
    .product-domain-title { font-size: 0.95rem !important; }
    .product-domain-list { font-size: 0.75rem !important; line-height: 1.4 !important; }
    .product-domain-rate { font-size: 1.3rem !important; }

    /* 技术优势 */
    .tech-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .tech-card { padding: 12px 10px !important; }
    .tech-icon-wrap { width: 52px !important; height: 52px !important; margin: 0 auto 10px !important; }
    .tech-icon-wrap svg { width: 46px !important; height: 46px !important; }
    .tech-title { font-size: 0.9rem !important; margin-bottom: 4px !important; line-height: 1.3 !important; }
    .tech-desc { font-size: 0.78rem !important; line-height: 1.45 !important; margin-bottom: 6px !important; }
    .tech-highlight { font-size: 0.7rem !important; padding: 2px 6px !important; }

    /* 案例区 */
    .cases-preview-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    .case-preview-image { height: 110px !important; font-size: 2.5rem !important; }
    .case-preview-content { padding: 12px !important; }
    .case-preview-industry { font-size: 0.7rem !important; }
    .case-preview-title { font-size: 0.95rem !important; }
    .case-preview-desc { font-size: 0.78rem !important; line-height: 1.4 !important; }
    .case-result-value { font-size: 0.95rem !important; }
    .case-result-label { font-size: 0.65rem !important; }

    /* 数据统计 */
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .stat-item { padding: 12px !important; }
    .stat-number { font-size: 1.4rem !important; }
    .stat-label { font-size: 0.78rem !important; }

    /* CTA区 */
    .cta-section { padding: 24px 16px !important; }
    .cta-section h2 { font-size: 1.1rem !important; line-height: 1.3 !important; margin-bottom: 8px !important; }
    .cta-section p { font-size: 0.8rem !important; line-height: 1.5 !important; margin-bottom: 16px !important; }
    .cta-content { text-align: center !important; }
    .cta-actions, .cta-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .cta-actions .btn, .cta-actions a,
    .cta-buttons .btn, .cta-buttons a,
    .btn-cta-primary, .btn-cta-secondary {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 220px !important;
        padding: 10px 14px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* 服务承诺 */
    .service-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .service-card { padding: 12px !important; display: flex !important; align-items: flex-start !important; gap: 10px !important; }
    .service-card-icon { font-size: 1.4rem !important; flex-shrink: 0 !important; }
    .service-card-text h4 { font-size: 0.88rem !important; line-height: 1.3 !important; margin-bottom: 2px !important; }
    .service-card-text p { font-size: 0.75rem !important; line-height: 1.35 !important; }

    /* 页脚 */
    .footer { padding: 24px 0 !important; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 16px 20px !important; }
    .footer-brand { margin-bottom: 12px !important; grid-column: 1 / -1 !important; }
    .footer-column:last-child { grid-column: 1 / -1 !important; }
    .footer-column { margin-bottom: 0 !important; }
    .footer-brand p { font-size: 0.75rem !important; line-height: 1.4 !important; }
    .footer-social { justify-content: flex-start !important; margin-top: 12px !important; }
    .footer-column { padding: 0 !important; }
    .footer-links a { font-size: 0.8rem !important; padding: 4px 0 !important; }
    .footer-bottom {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
        padding-top: 16px !important;
        margin-top: 16px !important;
    }

    /* 子页面通用 */
    .page-header { padding: 80px 0 24px !important; }
    .page-title { font-size: 1.3rem !important; margin-bottom: 6px !important; }
    .page-subtitle { font-size: 0.8rem !important; }

    /* 关于页面 */
    .about-section { padding: 20px 0 !important; }
    .about-intro-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .about-intro-content h2 { font-size: 1.1rem !important; }
    .about-intro-content p { font-size: 0.8rem !important; line-height: 1.55 !important; }
    .about-highlights { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .highlight-item { padding: 10px !important; }
    .highlight-num { font-size: 1.2rem !important; }
    .highlight-text { font-size: 0.7rem !important; }
    .about-intro-image { order: -1 !important; margin-bottom: 12px !important; }
    .about-timeline { margin-top: 20px !important; }
    .timeline { padding-left: 40px !important; }
    .timeline::before { left: 16px !important; }
    .timeline-item { padding-left: 40px !important; margin-bottom: 16px !important; }
    .timeline-year { left: 16px !important; font-size: 0.8rem !important; width: 46px !important; height: 46px !important; line-height: 32px !important; }
    .timeline-content { padding: 10px !important; }
    .timeline-content h3 { font-size: 0.9rem !important; }
    .timeline-content p { font-size: 0.75rem !important; line-height: 1.4 !important; }
    .honors-grid, .culture-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .honor-card, .culture-item { padding: 12px !important; }

    /* 联系页面 */
    .contact-section { padding: 20px 0 !important; }
    .contact-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .contact-info-card { padding: 14px !important; }
    .contact-info-card h3 { font-size: 1rem !important; margin-bottom: 10px !important; }
    .contact-item { padding: 6px 0 !important; font-size: 0.8rem !important; }
    .contact-form-panel { padding: 16px !important; }
    .contact-form { padding: 0 !important; }
    .form-title { font-size: 1rem !important; }
    .form-row { grid-template-columns: 1fr !important; gap: 12px !important; }
    .form-group { margin-bottom: 12px !important; }
    .form-group label { font-size: 0.8rem !important; margin-bottom: 4px !important; }
    .form-group input, .form-group textarea, .form-group select {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }
    .btn-submit { padding: 12px 20px !important; font-size: 0.85rem !important; }

    /* 产品页面 */
    .products-section { padding: 20px 0 !important; }
    .products-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .product-categories { grid-template-columns: 1fr !important; gap: 10px !important; }
    .product-category { padding: 12px !important; }
    .product-category h3 { font-size: 0.95rem !important; }
    .product-category p { font-size: 0.75rem !important; }

    /* 合作页面 */
    .cooperation-section { padding: 20px 0 !important; }
    .cooperation-content h2 { font-size: 1.1rem !important; }
    .cooperation-content p { font-size: 0.8rem !important; line-height: 1.55 !important; }
    .emc-features, .partner-benefits { grid-template-columns: 1fr !important; gap: 10px !important; }
    .emc-feature, .benefit-card { padding: 12px !important; }
    .process-steps { flex-wrap: wrap !important; gap: 12px !important; justify-content: center !important; }
    .process-step { width: calc(50% - 6px) !important; padding: 12px !important; }
    .cooperation-cta { padding: 20px !important; margin-top: 20px !important; }
    .cooperation-cta h2 { font-size: 1.1rem !important; }
    .cooperation-cta p { font-size: 0.8rem !important; }
    .cta-buttons { flex-direction: row !important; align-items: center !important; flex-wrap: wrap !important; gap: 10px !important; justify-content: center !important; }

    /* 项目列表 */
    .projects-section { padding: 20px 0 !important; }
    .projects-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .project-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .project-stat { padding: 8px !important; }
    .project-stat-value { font-size: 1.1rem !important; }
    .project-stat-label { font-size: 0.7rem !important; }

    /* 新闻列表 */
    .news-section { padding: 20px 0 !important; }
    .news-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

    /* 通用按钮 - 关键修复：不拉伸 */
    .btn, a.btn,
    .btn-hero, .btn-hero-outline, .btn-outline,
    .btn-cta-primary, .btn-cta-secondary,
    button.btn, input.btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 280px !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    /* 文字溢出修复 */
    h1, h2, h3, h4, h5, h6, p, span, a, div, li {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* 链接和图标 */
    a { word-break: break-word !important; overflow-wrap: break-word !important; }
    i, .fas, .fab, .far, .fal { flex-shrink: 0 !important; }

    /* === 移动端菜单显示修复 === */
    .mobile-toggle { display: flex !important; }
    .mobile-menu.open { display: flex !important; }
    .mobile-menu-overlay.active { display: block !important; }
    .carousel-content {
        left: 16px !important;
        right: 16px !important;
        transform: none !important;
        top: auto !important;
        bottom: 80px !important;
    }
}

/* === 更小屏幕 480px === */
@media (max-width: 480px) {
    .container { padding: 0 12px !important; }
    .section { padding: 20px 0 !important; }
    .section-title { font-size: 1.1rem !important; }
    .section-subtitle { font-size: 0.75rem !important; }

    .hero-carousel { min-height: 45vh !important; }
    .carousel-slide { min-height: 45vh !important; }
    .carousel-content { padding: 20px 12px !important; }
    .carousel-content h2 { font-size: 1.05rem !important; }
    .carousel-content p { font-size: 0.7rem !important; }
    .carousel-buttons .btn, .carousel-buttons a {
        max-width: 150px !important;
        padding: 7px 10px !important;
        font-size: 0.7rem !important;
    }

    .tech-grid { grid-template-columns: 1fr !important; }
    .service-grid { grid-template-columns: 1fr !important; }
    .product-domain-header { height: 70px !important; font-size: 1.8rem !important; line-height: 70px !important; }
    .product-domain-grid { gap: 8px !important; }
    .cases-preview-grid { gap: 8px !important; }
    .stats-grid { gap: 8px !important; }
    .stat-item { padding: 10px !important; }
    .stat-number { font-size: 1.2rem !important; }

    .cta-section { padding: 20px 12px !important; }
    .cta-section h2 { font-size: 1rem !important; }
    .cta-actions .btn, .cta-actions a {
        max-width: 180px !important;
        padding: 9px 12px !important;
        font-size: 0.75rem !important;
    }

    .page-header { padding: 70px 0 20px !important; }
    .page-title { font-size: 1.2rem !important; }
    .about-highlights { grid-template-columns: 1fr !important; }
    .process-step { width: 100% !important; }
    .honors-grid { grid-template-columns: 1fr !important; }

    .project-stats { grid-template-columns: 1fr !important; }
    .cta-buttons { flex-direction: column !important; }
}
