/* ============================================================
   凌阳科技（LYAI）官网 - 现代美化升级版
   ============================================================ */

/* ===== CSS 变量定义 ===== */
:root {
  /* 主色系统 */
  --primary: #c0392b;
  --primary-dark: #a93226;
  --primary-light: #e74c3c;
  --primary-color: #c0392b; /* 兼容子页面中的 var(--primary-color) 引用 */
  --primary-gradient: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
  --primary-gradient-subtle: linear-gradient(135deg, #fdf2f2 0%, #fef5e7 100%);

  /* 辅助色 */
  --secondary: #2c3e50;
  --secondary-light: #34495e;
  --secondary-dark: #1a252f;
  --accent: #3498db;
  --accent-light: #5dade2;

  /* 中性色 */
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --text-light: #999;
  --bg-light: #f8f9fa;
  --bg-section: #f5f6fa;
  --bg-white: #fff;
  --border-light: #e8e8e8;
  --border-muted: #ddd;

  /* 字体 */
  --font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-alt: Arial, "Helvetica Neue", sans-serif;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-button: 0 4px 15px rgba(192,57,43,0.3);
  --shadow-button-hover: 0 6px 25px rgba(192,57,43,0.4);

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-round: 50%;

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* 导航 */
  --header-height: 80px;
  --nav-glow: rgba(255,255,255,0.7);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

::selection {
  background: var(--primary);
  color: #fff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-divider {
  text-align: center;
  padding: 30px 0;
  font-size: 24px;
  color: var(--text-secondary);
}

.section-divider .divider-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-secondary);
  border-radius: var(--radius-round);
  position: relative;
}

.section-divider .divider-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--text-secondary);
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border-light), var(--shadow-sm);
  height: var(--header-height);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header .container {
  display: flex;
  align-items: center;
  height: var(--header-height);
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  height: 60px;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.02);
}

#logo-img {
  width: 160px;
  height: auto;
  max-width: 270px;
  max-height: 60px;
  object-fit: contain;
}

.logo-text {
  display: none; /* Removed in favor of real image logo */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu li a {
  display: block;
  padding: 0 18px;
  font-size: 15px;
  color: var(--text-primary);
  line-height: var(--header-height);
  white-space: nowrap;
  transition: color var(--transition-base), background-color var(--transition-base);
  position: relative;
}

/* 导航项下划线动画 */
.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary);
}

.search-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 10px;
}

.search-box input {
  width: 140px;
  height: 38px;
  border: 2px solid var(--border-light);
  border-right: none;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  border-radius: 6px 0 0 6px;
  transition: border-color var(--transition-base), width var(--transition-base);
  background: var(--bg-light);
}

.search-box input:focus {
  border-color: var(--primary);
  width: 180px;
  background: var(--bg-white);
}

.search-box button {
  width: 40px;
  height: 38px;
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-button);
}

/* ===== Hero Carousel ===== */
.hero {
  margin-top: var(--header-height);
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #0a1628;
}

/* 满铺banner：无深色遮罩 */
.hero-slide--full .slide-bg::after {
  background: none;
}

.hero-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  animation: heroBgZoom 8s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-slide .slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

.hero-slide .slide-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide-text {
  max-width: 500px;
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-text .slide-label {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.slide-text h2 {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 30px;
  font-family: var(--font-alt);
  letter-spacing: 2px;
  text-shadow: 0 2px 20px rgba(192,57,43,0.3);
}

.slide-features {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.slide-feature {
  text-align: center;
  color: #fff;
  transition: transform var(--transition-base);
}

.slide-feature:hover {
  transform: translateY(-5px);
}

.slide-feature .feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-feature .feature-icon svg {
  width: 50px;
  height: 50px;
  fill: var(--primary);
  filter: drop-shadow(0 2px 8px rgba(192,57,43,0.3));
}

.slide-feature p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.slide-feature .feature-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.slide-image {
  max-width: 400px;
  flex-shrink: 0;
  animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-image img {
  max-height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 15px 40px rgba(0,0,0,0.6));
  animation: floatImage 3s ease-in-out infinite;
}

/* 纯产品图slide: 无文字叠层, 产品居中展示 */
.hero-slide--product .slide-bg::after {
  background: none;
}
.hero-slide--product .slide-image img {
  max-height: 420px;
  mix-blend-mode: normal;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-round);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.1);
}

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

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

.hero-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-round);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  position: relative;
}

.hero-dots .dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}

.hero-dots .dot:hover {
  background: rgba(255,255,255,0.6);
}

.home-hero.hero { height: 400px; }
.home-hero .hero-slides { transition-duration: 1s; }
.home-hero-art { background: #e7ebef; }
.home-hero-art:nth-child(2) { background: #14253a; }
.home-hero-art a, .home-hero-art img { display: block; width: 100%; height: 100%; }
.home-hero-art img { object-fit: cover; }
.home-hero-rv1126 { background: #eef1f5 url('../images/hero/home-rv1126-bg.webp') center bottom/cover; }
.home-hero-board { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1200px, 100% - 120px); margin: auto; color: #333; }
.home-hero-board h2 { font-size: 42px; line-height: 1.2; margin: 8px 0 22px; }
.home-hero-board em { color: #c0392b; font-style: normal; }
.home-hero-board ul { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.home-hero-board img { width: min(39%, 451px); height: auto; }
.home-hero-brand { background: #040f29 url('../images/hero/home-brand.webp') center/cover; color: #fff; }
.home-hero-brand-copy { width: min(1200px, 100% - 120px); margin: auto; text-shadow: 0 2px 6px #040f29; }
.home-hero-brand-copy h2 { font-size: 48px; line-height: 1.2; margin-bottom: 14px; }
.home-hero .hero-arrow, .hero-playback { background-color: rgba(15,23,42,.68); color: white; }
.hero-playback { position: absolute; z-index: 10; right: 16px; bottom: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; }
.home-hero .hero-dots { padding: 7px 10px; background: rgba(15,23,42,.6); border-radius: 24px; bottom: 18px; }
.home-hero a:focus-visible, .home-hero button:focus-visible { outline: 3px solid #1760a5; outline-offset: 2px; }
.home-hero-art a:focus-visible { outline-offset: -4px; }
@media (max-width: 900px) {
  .home-hero.hero { height: 270px; }
  .home-hero-art img { object-fit: contain; }
  .home-hero-board h2, .home-hero-brand-copy h2 { font-size: 30px; }
  .home-hero .hero-arrow { width: 36px; height: 36px; }
  .home-hero .hero-arrow.prev { left: 8px; }
  .home-hero .hero-arrow.next { right: 8px; }
}
@media (max-width: 520px) {
  .home-hero.hero { height: 246px; }
  .home-hero-board { width: calc(100% - 100px); text-align: center; flex-direction: column-reverse; gap: 4px; padding-bottom: 28px; }
  .home-hero-board h2 { font-size: 19px; margin: 3px 0; }
  .home-hero-board img { width: 115px; }
  .home-hero-board ul { justify-content: center; font-size: 12px; gap: 0 8px; }
  .home-hero-brand-copy { width: calc(100% - 100px); }
  .home-hero-brand-copy h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-slides { transition: none; }
}

/* ===== Products Section ===== */
.products-section {
  padding: 80px 0 70px;
  background: var(--bg-light);
  position: relative;
}

.product-tabs {
  display: flex;
  border: 1px solid var(--border-light);
  margin: 40px 0 30px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-base);
  border-right: 1px solid var(--border-light);
  font-family: inherit;
  font-weight: 500;
  position: relative;
}

.product-tabs .tab:last-child {
  border-right: none;
}

.product-tabs .tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.product-tabs .tab:hover::after,
.product-tabs .tab.active::after {
  transform: translateX(-50%) scaleX(1);
}

.product-tabs .tab:hover,
.product-tabs .tab.active {
  color: var(--primary);
  background: var(--primary-gradient-subtle);
}

.products-carousel {
  position: relative;
}

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

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 24px 20px 20px;
  text-align: center;
  transition: all var(--transition-slow);
  cursor: pointer;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.product-card .product-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  transition: background var(--transition-base);
}

.product-card:hover .product-img {
  background: var(--primary-gradient-subtle);
}

.product-card .product-img img {
  max-width: 90%;
  max-height: 180px;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-card h4 {
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 600;
}

.product-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.products-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-round);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.products-carousel .carousel-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-button);
  transform: translateY(-50%) scale(1.1);
}

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

/* ===== Solutions Section ===== */
.solutions-section {
  padding: 0 0 80px;
  background: var(--bg-white);
}

.solutions-tabs {
  display: flex;
  border: 1px solid var(--border-light);
  margin: 40px 0 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.solutions-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 16px 10px;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-base);
  border-right: 1px solid var(--border-light);
  font-family: inherit;
  font-weight: 600;
  position: relative;
}

.solutions-tabs .tab:last-child {
  border-right: none;
}

.solutions-tabs .tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.solutions-tabs .tab:hover::after,
.solutions-tabs .tab.active::after {
  transform: translateX(-50%) scaleX(1);
}

.solutions-tabs .tab:hover,
.solutions-tabs .tab.active {
  color: var(--primary);
  background: var(--primary-gradient-subtle);
}

.solution-content {
  display: none;
  padding: 50px 0;
  animation: fadeInUp 0.6s ease-out;
}

.solution-content.active {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.solution-image {
  flex: 0 0 340px;
  max-width: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.solution-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.solution-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-slow);
}

.solution-image:hover img {
  transform: scale(1.03);
}

.solution-text {
  flex: 1;
}

.solution-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 25px;
}

.solution-icons {
  display: flex;
  gap: 50px;
  margin: 25px 0;
}

.solution-icon-item {
  text-align: center;
  transition: transform var(--transition-base);
}

.solution-icon-item:hover {
  transform: translateY(-4px);
}

.solution-icon-item .icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--primary-gradient-subtle);
  transition: all var(--transition-base);
}

.solution-icon-item:hover .icon-wrap {
  background: var(--primary);
  box-shadow: var(--shadow-button);
}

.solution-icon-item .icon-wrap svg {
  width: 50px;
  height: 50px;
  fill: var(--primary);
  transition: all var(--transition-base);
}

.solution-icon-item:hover .icon-wrap svg {
  fill: #fff;
}

.solution-icon-item span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.solution-icon-item:hover span {
  color: var(--primary);
}

/* ===== Buttons ===== */
.btn-more {
  display: inline-block;
  padding: 14px 60px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  margin-top: 15px;
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: var(--shadow-button);
  position: relative;
  overflow: hidden;
}

.btn-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.btn-more:hover::before {
  left: 100%;
}

.btn-more:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

.btn-more:active {
  transform: translateY(0);
}

/* ===== News Section ===== */
.news-section {
  padding: 0;
}

.news-banner {
  background: linear-gradient(135deg, #1a2a4a 0%, #0d1b2e 50%, #162d50 100%);
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1.2" fill="rgba(255,255,255,0.06)"/><circle cx="80" cy="70" r="1.8" fill="rgba(255,255,255,0.04)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="35" cy="80" r="0.8" fill="rgba(255,255,255,0.04)"/><circle cx="70" cy="20" r="1.5" fill="rgba(255,255,255,0.03)"/></svg>');
  opacity: 0.6;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.4; }
  to { opacity: 0.8; }
}

.news-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(192,57,43,0.08) 0%, transparent 60%);
  animation: newsGlow 8s ease-in-out infinite alternate;
}

@keyframes newsGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(5%, 3%); }
}

.news-banner .section-title {
  color: #fff;
  position: relative;
  z-index: 2;
}

.news-banner .section-title::after {
  background: var(--primary-gradient);
}

.news-banner .section-divider {
  color: rgba(255,255,255,0.6);
}

.news-banner .divider-icon {
  border-color: rgba(255,255,255,0.6) !important;
}

.news-banner .divider-icon::after {
  border-top-color: rgba(255,255,255,0.6) !important;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0 70px;
}

.news-card {
  background: var(--bg-white);
  overflow: hidden;
  transition: all var(--transition-slow);
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.news-card .news-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.news-card .news-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.news-card:hover .news-img::after {
  opacity: 1;
}

.news-card .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-img img {
  transform: scale(1.1);
}

.news-card .news-info {
  padding: 20px;
}

.news-card h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  transition: color var(--transition-base);
}

.news-card:hover h4 {
  color: var(--primary);
}

.news-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== About Section ===== */
.about-section {
  padding: 80px 0;
  background: var(--bg-light);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0.3;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin-top: 40px;
}

.about-image {
  flex: 0 0 380px;
  max-width: 380px;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* CSS gradient fallback for about image */
.about-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3498db 0%, #2c3e50 50%, #1a5276 100%);
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(52,152,219,0.3), transparent);
}

.about-image-placeholder::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 80%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
  transform: skewX(-5deg);
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2.1;
  text-indent: 2em;
  margin-bottom: 18px;
}

.about-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 40px 0;
}

.about-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-round);
  background: var(--border-light);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.about-dots .dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}

.about-btn-wrap {
  text-align: center;
  margin-top: 10px;
}

/* ===== Partners Section ===== */
.partners-section {
  padding: 70px 0;
  background: var(--bg-white);
  position: relative;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: nowrap;
  gap: 15px;
  margin-top: 50px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  opacity: 1;
  transition: all var(--transition-base);
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid transparent;
}

.partner-logo:hover {
  opacity: 1;
  background: var(--bg-white);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.partner-logo .partner-text {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 2px;
  font-family: var(--font-alt);
}

.partner-logo .partner-sub {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  padding: 60px 0 0;
  color: rgba(255,255,255,0.85);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.footer-left {
  text-align: left;
  max-width: 400px;
}

.footer-center {
  text-align: left;
}

.footer-center .info-line {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 2.2;
  transition: color var(--transition-base);
  padding: 2px 0;
}

.footer-center .info-line:hover {
  color: #fff;
}

.footer-center .info-line strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.footer-left p {
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,0.65);
  margin-top: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: center;
}

#footer-logo-img {
  width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  max-height: 68px;
}

.footer-right {
  flex: 0 0 120px;
  text-align: center;
}

.qr-code {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.qr-code:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--primary-light);
  box-shadow: 0 0 20px rgba(192,57,43,0.2);
}

#qr-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.qr-code-pattern {
  width: 80px;
  height: 80px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 1px;
}

.qr-code-pattern span {
  background: #333;
  border-radius: 1px;
}

.qr-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 5px;
}

.footer-icp {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-icp a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-base);
}

.footer-icp a:hover {
  color: var(--primary-light);
}

/* ===== News Image Placeholders ===== */
.news-img-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-img-placeholder {
  transform: scale(1.05);
}

.news-img-placeholder.tech1 {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 40%, #1565c0 100%);
}

.news-img-placeholder.tech1::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(100,181,246,0.3), transparent 70%);
}

.news-img-placeholder.tech2 {
  background: linear-gradient(135deg, #263238 0%, #37474f 50%, #455a64 100%);
}

.news-img-placeholder.tech2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 8px, rgba(255,255,255,0.04) 8px, rgba(255,255,255,0.04) 9px);
}

.news-img-placeholder.tech3 {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
}

.news-img-placeholder.tech3::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.06) 50%);
}

.news-img-placeholder.tech4 {
  background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #7b1fa2 100%);
}

.news-img-placeholder.tech4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
}

/* ===== 动画关键帧 ===== */
/* fadeInUp - 从下方淡入 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* fadeInDown - 从上方淡入 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* fadeInLeft - 从左淡入 */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* fadeInRight - 从右淡入 */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* fadeIn - 纯淡入 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* scaleIn - 缩放进入 */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* slideInUp - 滑入（无透明度） */
@keyframes slideInUp {
  from { transform: translateY(40px); }
  to { transform: translateY(0); }
}

/* pulse - 脉冲 */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* shimmer - 光效 */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ===== Scroll Animation 基础类 ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.active,
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Sub-page Global Styles ===== */
.page-hero {
  height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: var(--header-height);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  animation: fadeInUp 0.6s ease-out;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

/* Category Nav */
.product-category-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  box-shadow: var(--shadow-sm);
}

.category-tabs {
  display: flex;
  list-style: none;
  justify-content: center;
}

.category-tabs li a {
  display: block;
  padding: 16px 30px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
}

.category-tabs li.active a,
.category-tabs li a:hover {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

/* News List */
.news-list-item {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 40px;
  transition: all var(--transition-base);
  border-radius: var(--radius-md);
  padding: 20px;
}

.news-list-item:hover {
  transform: translateX(8px);
  background: var(--bg-light);
}

.news-list-item h3 a:hover {
  color: var(--primary);
}

/* Product Detail */
.breadcrumbs {
  background: var(--bg-light);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-light);
}

.detail-tabs .tabs-header {
  border-bottom: 2px solid var(--border-light);
  display: flex;
  gap: 40px;
}

.detail-tabs .tabs-header div {
  padding: 15px 0;
  cursor: pointer;
  color: var(--text-muted);
  position: relative;
  font-weight: 500;
  transition: color var(--transition-base);
}

.detail-tabs .tabs-header div:hover {
  color: var(--primary);
}

.detail-tabs .tabs-header div.active-tab {
  color: var(--primary);
  font-weight: bold;
}

.detail-tabs .tabs-header div.active-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* ===== Mobile Hamburger Menu ===== */
.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav-menu li a {
    padding: 0 10px;
    font-size: 13px;
  }

  .search-box input {
    width: 100px;
  }

  .slide-text h2 {
    font-size: 38px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    line-height: 50px;
    padding: 0 24px;
    font-size: 15px;
  }

  .nav-menu li a::after {
    display: none;
  }

  .hero {
    height: 320px;
  }

  .hero-slide .slide-content {
    padding: 0 30px;
  }

  .slide-text h2 {
    font-size: 30px;
  }

  .slide-text .slide-label {
    font-size: 16px;
  }

  .slide-features {
    gap: 20px;
    flex-wrap: wrap;
  }

  .slide-feature {
    flex: 1;
    min-width: 80px;
  }

  .slide-image {
    display: none;
  }

  .section-title {
    font-size: 28px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card .product-img {
    height: 150px;
  }

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

  .solution-content.active {
    flex-direction: column;
  }

  .solution-image {
    flex: none;
    max-width: 100%;
  }

  .solution-icons {
    gap: 30px;
    flex-wrap: wrap;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    max-width: 100%;
    flex: none;
    height: 220px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-left {
    flex: none;
  }

  .footer-right {
    flex: none;
  }

  .partners-logos {
    gap: 16px;
  }

  .partner-logo {
    padding: 12px 20px;
  }

  .partner-logo .partner-text {
    font-size: 22px;
  }

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

  .btn-more {
    padding: 12px 40px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header .container {
    padding: 0 12px;
  }

  #logo-img {
    max-width: 140px;
  }

  .search-box input {
    width: 80px;
  }

  .search-box input:focus {
    width: 120px;
  }

  .hero {
    height: 280px;
  }

  .slide-text h2 {
    font-size: 26px;
  }

  .slide-features {
    gap: 12px;
  }

  .slide-feature .feature-icon {
    width: 44px;
    height: 44px;
  }

  .slide-feature .feature-icon svg {
    width: 38px;
    height: 38px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    padding: 16px 12px;
  }

  .product-card .product-img {
    height: 120px;
  }

  .product-card h4 {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .product-tabs .tab,
  .solutions-tabs .tab {
    font-size: 13px;
    padding: 10px 6px;
  }

  .page-hero {
    height: 240px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero p {
    font-size: 14px;
  }
}
