/* === CSS Variables & Reset === */
:root {
  --primary: #1a237e;
  --primary-light: #0d47a1;
  --primary-dark: #0d1b6b;
  --secondary: #ff6f00;
  --accent: #00bcd4;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(26,35,126,0.3); }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
.btn-link { color: var(--primary); font-weight: 600; font-size: 14px; }
.btn-link:hover { color: var(--secondary); }

/* === Top Bar === */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left span, .top-bar-right span { margin-right: 20px; }
.top-bar i { margin-right: 5px; }

/* === Header === */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 1000;
}
.header-wrapper { display: flex; align-items: center; justify-content: center; height: 70px; }
.header-wrapper .nav { margin-left: 40px; }
.logo { flex-shrink: 0; }
.logo a { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 22px; }
.logo-text h1, .logo-text .logo-title { font-size: 22px; color: var(--primary); font-weight: 800; }
.logo-text span { font-size: 12px; color: var(--text-light); }
.nav ul { display: flex; gap: 4px; }
.nav > ul > li > a { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; transition: var(--transition); position: relative; white-space: nowrap; }
.nav > ul > li > a:hover, .nav > ul > li > a.active { color: var(--primary); background: rgba(26,35,126,0.06); }
.nav > ul > li > a.active { color: var(--primary); font-weight: 700; }
.sub-arrow { font-size: 10px; margin-left: 4px; }
.has-submenu { position: relative; }
.submenu { display: none !important; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; box-shadow: var(--shadow-hover); border-radius: var(--radius-sm); padding: 8px 0; z-index: 100; }
.has-submenu:hover > .submenu { display: block !important; }
.submenu li { display: block !important; }
.submenu li a { display: block; padding: 10px 20px; font-size: 14px; color: var(--text); transition: var(--transition); white-space: nowrap; }
.submenu li a:hover { background: rgba(26,35,126,0.06); color: var(--primary); padding-left: 28px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.menu-toggle span { width: 28px; height: 3px; background: var(--primary); border-radius: 3px; transition: var(--transition); }
/* 汉堡动画 */
.menu-toggle.animatable span { transition: all .28s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* 移动端菜单遮罩 (仅 768px 以下生效, 见 responsive.css) */
.nav-mask { display: none; }
/* 移动端电话胶囊按钮 (仅 768px 以下生效, 见 responsive.css) */
.header-tel { display: none; }

/* === Hero Section === */
.hero { min-height: 650px; position: relative; overflow: hidden; }
.hero-slide .container { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; padding: 0 30px; }
.hero-content { flex: 1; color: var(--white); padding: 80px 0; }
.hero-content h1, .hero-content h2 { font-size: 42px; font-weight: 800; margin-bottom: 28px; line-height: 1.3; white-space: nowrap; }
.hero-content p { font-size: 17px; opacity: 0.9; margin-bottom: 36px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-image { flex: 0 0 300px; position: relative; height: 300px; margin-left: 80px; }
.hero-float-icon { position: absolute; width: 60px; height: 60px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--white); animation: float 3s ease-in-out infinite; }
.icon1 { top: 20px; right: 80px; animation-delay: 0s; }
.icon2 { top: 120px; right: 0; animation-delay: 0.5s; }
.icon3 { top: 230px; right: 60px; animation-delay: 1s; }
.hero-device-preview { position: absolute; bottom: 60px; right: 40px; background: rgba(255,255,255,0.95); padding: 20px 30px; border-radius: 16px; color: var(--primary); text-align: center; box-shadow: var(--shadow-hover); }
.hero-device-preview i { font-size: 32px; display: block; margin-bottom: 8px; }
.hero-device-preview span { font-size: 14px; font-weight: 600; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* === Hero Carousel === */
.hero-slider { position: relative; overflow: hidden; min-height: 650px; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; min-height: 650px; display: flex; align-items: center; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.slide-anim { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.hero-slide.active .slide-anim { opacity: 1; transform: translateY(0); }
.hero-slide.active .slide-anim:nth-child(1) { transition-delay: 0.1s; }
.hero-slide.active .slide-anim:nth-child(2) { transition-delay: 0.3s; }
.hero-slide.active .slide-anim:nth-child(3) { transition-delay: 0.5s; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.hero-dots .dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s ease; border: 2px solid rgba(255,255,255,0.6); }
.hero-dots .dot.active { background: var(--white); border-color: var(--white); transform: scale(1.2); }
.hero-dots .dot:hover { background: rgba(255,255,255,0.7); }

/* === Stats Section === */
.stats-section { background: var(--white); padding: 50px 0; margin-top: -60px; position: relative; z-index: 10; border-radius: 20px 20px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item { padding: 25px; }
.stat-icon { width: 60px; height: 60px; margin: 0 auto 15px; background: linear-gradient(135deg, rgba(26,35,126,0.08), rgba(13,71,161,0.08)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary); }
.stat-number { font-size: 42px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 15px; color: var(--text-light); margin-top: 5px; }

/* === Section Common === */
.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 12px; position: relative; display: inline-block; }
.section-header h2:after { content: ''; display: block; width: 50px; height: 3px; background: var(--secondary); margin: 12px auto 0; border-radius: 2px; }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* === Categories Grid === */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.category-card { background: var(--white); padding: 35px 25px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 2px solid transparent; }
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.category-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--white); transition: var(--transition); }
.category-card:hover .category-icon { transform: scale(1.1) rotate(5deg); }
.category-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--primary); }
.category-card p { font-size: 13px; color: var(--text-light); margin-bottom: 15px; }
.category-link { font-size: 13px; color: var(--primary); font-weight: 600; }

/* === Products Grid === */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card-img { aspect-ratio: 1; background: linear-gradient(135deg, #e8eaf6, #c5cae9); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-icon { font-size: 52px; color: var(--primary); opacity: 0.5; }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--secondary); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 17px; margin-bottom: 6px; color: var(--primary); }
.product-subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.product-desc { font-size: 13px; color: var(--text-light); margin-bottom: 15px; }

/* === Solutions Grid === */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.solution-card { background: var(--white); padding: 35px 25px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.solution-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--secondary), #ff8f00); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--white); }
.solution-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--primary); }
.solution-card p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.solution-card-lg { text-align: left; display: flex; flex-direction: column; }
.solution-card-lg .solution-icon { margin: 0 0 20px; }

/* === News Grid === */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.news-card { background: var(--white); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); display: flex; gap: 20px; transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-card-date { text-align: center; min-width: 60px; }
.news-card-date .day { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.news-card-date .month { font-size: 12px; color: var(--text-light); text-transform: uppercase; }
.news-category { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.news-category.company { background: #e8eaf6; color: var(--primary); }
.news-category.industry { background: #fff3e0; color: var(--secondary); }
.news-card-body h3 { font-size: 16px; margin-bottom: 8px; }
.news-card-body h3 a { color: var(--text); transition: var(--transition); }
.news-card-body h3 a:hover { color: var(--primary); }
.news-card-body p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* === CTA Section === */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 80px 0; text-align: center; }
.cta-content h2 { font-size: 36px; color: var(--white); margin-bottom: 15px; }
.cta-content p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }

/* === Footer === */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin-bottom: 15px; }
.footer-logo i { color: var(--secondary); }
.footer-logo span { color: var(--white); }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); color: rgba(255,255,255,0.6); }
.footer-social a:hover { border-color: var(--secondary); color: var(--secondary); }
.footer-col h4 { color: var(--white); font-size: 17px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.footer-contact li i { margin-top: 4px; color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; margin-top: 40px; text-align: center; font-size: 13px; }

/* === Back to Top === */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: var(--primary); color: var(--white); border: none; border-radius: 50%; font-size: 20px; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 999; transition: var(--transition); }
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* === Page Banner === */
.page-banner { padding: 60px 0; color: var(--white); text-align: center; }
.page-banner h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.breadcrumb { font-size: 14px; opacity: 0.8; }
.breadcrumb a { color: var(--white); }
.breadcrumb .sep { margin: 0 8px; }

/* === Page Layout === */
.page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.content-wrapper { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }
.sidebar-widget { background: var(--white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 25px; }
.sidebar-widget h3 { font-size: 17px; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e8eaf6; }
.sidebar-menu li { margin-bottom: 5px; }
.sidebar-menu li a { display: block; padding: 10px 15px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); transition: var(--transition); }
.sidebar-menu li a:hover, .sidebar-menu li a.active { background: #e8eaf6; color: var(--primary); font-weight: 600; }

/* === Product Detail === */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.product-main-image { height: 400px; background: var(--bg-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.product-detail-right h2 { font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.product-actions { display: flex; gap: 15px; margin-top: 25px; }
.product-features h3 { font-size: 18px; margin-bottom: 12px; }
.product-features ul li { padding: 8px 0; font-size: 14px; }
.product-features ul li i { color: #4caf50; margin-right: 10px; }
.product-specs { margin: 40px 0; }
.product-specs h3 { font-size: 22px; margin-bottom: 20px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid #e0e0e0; }
.specs-table td { padding: 14px 20px; font-size: 14px; }
.spec-key { font-weight: 600; color: var(--text); background: var(--bg-light); width: 200px; }

/* === About === */
.about-preview-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-preview-content h2 { font-size: 32px; color: var(--primary); margin-bottom: 20px; }
.about-preview-content p { font-size: 15px; color: var(--text-light); margin-bottom: 15px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.about-feature { font-size: 14px; color: var(--text); }
.about-feature i { color: #4caf50; margin-right: 8px; }
.about-image-placeholder { background: linear-gradient(135deg, #e8eaf6, #c5cae9); height: 350px; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary); }
.about-image-placeholder i { font-size: 64px; margin-bottom: 15px; opacity: 0.5; }
.about-image-placeholder span { font-size: 20px; font-weight: 700; }

/* === Forms === */
.form-group { margin-bottom: 18px; flex: 1; }
.form-row { display: flex; gap: 15px; }
.form-control { width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: var(--radius-sm); font-size: 15px; transition: var(--transition); font-family: inherit; }
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(26,35,126,0.1); }

/* === Alerts === */
.alert { padding: 15px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-danger { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* === Pagination === */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a { padding: 8px 16px; border: 1px solid #e0e0e0; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); transition: var(--transition); }
.pagination a.active, .pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* === Rich Content === */
.rich-content { line-height: 2; font-size: 15px; }
.rich-content h3 { font-size: 20px; color: var(--primary); margin: 25px 0 15px; }
.rich-content p { margin-bottom: 15px; }
.rich-content ul, .rich-content ol { margin: 10px 0 15px 20px; }
.rich-content li { margin-bottom: 8px; }
.rich-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 15px 0; }

/* === Contact === */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-item i { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 20px; flex-shrink: 0; }
.contact-item h4 { font-size: 15px; color: var(--primary); margin-bottom: 3px; }
.contact-item p { font-size: 14px; color: var(--text-light); }

/* === Cases Grid === */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.case-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); overflow: hidden; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-card-body { padding: 25px; }
.case-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.case-icon i { font-size: 22px; color: var(--white); }
.case-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.case-client { font-size: 13px; color: var(--secondary); margin-bottom: 10px; }
.case-client i { margin-right: 5px; }
.case-summary { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 15px; }

/* === Card Fixed Height === */
.solution-card, .case-card, .product-card { min-height: 380px; }
.solution-card p, .case-summary, .product-desc { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* === Card Alignment === */
.solutions-grid > *, .cases-grid > *, .products-grid > *, .categories-grid > *, .news-grid > * { display: flex; flex-direction: column; height: 100%; }
.solution-card p, .category-card p { max-height: 65px; overflow: hidden; margin-bottom: 15px; }
.case-card-body, .product-card-body, .news-card-body { flex: 1; margin-bottom: 15px; display: flex; flex-direction: column; }
.case-card { min-height: 300px; }
.solution-card .btn, .solution-card .btn-link, .case-card-body .btn, .product-card-footer, .product-card-body .btn, .category-card .category-link, .news-card-body .btn-link { margin-top: auto; }

/* === Utility === */
.text-center { text-align: center; }
.mt-4 { margin-top: 30px; }
