/* ============================================
   奥顿电气集团 - 主样式文件
   ============================================ */

:root {
  --primary: #008cd6;
  --primary-dark: #1c398e;
  --text-dark: #101828;
  --text-body: #364153;
  --text-muted: #4a5565;
  --text-light: #99a1af;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --footer-bg: #101828;
  --footer-border: #1e2939;
  --container-width: 1336px;
  --section-padding: 100px 0;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0px 1px 3px rgba(0,0,0,0.1), 0px 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0px 10px 15px -3px rgba(0,0,0,0.1), 0px 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-lg: 0px 20px 25px -5px rgba(0,0,0,0.1), 0px 8px 10px -6px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
.sol-overview-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.sol-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: #008cd6;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.sol-btn-primary img {
  width: 16px;
  height: 16px;
}

.sol-btn-primary:hover {
  background: #0077b6;
}

.sol-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  text-decoration: none;
  transition: all 0.3s;
}

.sol-btn-outline:hover {
  border-color: #008cd6;
  color: #008cd6;
}
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  /*background: var(--bg-white);*/
  background: #0A1F44;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1), 0px 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.logo .logo-white {
  display: none;
}

/* Transparent Header Mode */
.site-header.header-transparent {
  /*background: transparent;*/
  background: rgba(0,0,0,0.2);
  box-shadow: none;
}

.site-header.header-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.site-header.header-transparent .nav-link:hover,
.site-header.header-transparent .nav-link.active {
  color: #fff;
}

.site-header.header-transparent .nav-link::after {
  background: #fff;
}

.site-header.header-transparent .logo .logo-default {
  display: none;
}

.site-header.header-transparent .logo .logo-white {
  display: block;
}

.site-header.header-transparent .mobile-menu-btn span {
  background: #fff;
}

/* When scrolled, revert to solid white */
.site-header.header-transparent.scrolled {
  /*background: var(--bg-white);*/
  background: #0A1F44;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1), 0px 2px 4px rgba(0,0,0,0.1);
}

.site-header.header-transparent.scrolled .nav-link {
  /*color: var(--text-body);*/
  color: #fff;
}

.site-header.header-transparent.scrolled .nav-link:hover,
.site-header.header-transparent.scrolled .nav-link.active {
  color: var(--primary);
  font-weight: 500;
}

.site-header.header-transparent.scrolled .nav-link::after {
  background: var(--primary);
}

.site-header.header-transparent.scrolled .logo .logo-default {
  display: block;
}

.site-header.header-transparent.scrolled .logo .logo-white {
  display: none;
}

.site-header.header-transparent.scrolled .mobile-menu-btn span {
  background: var(--text-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  /*color: var(--text-body);*/
  color: #fff;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}
/* Transparent header hover: show solid background for readability */
.site-header.header-transparent:not(.scrolled):hover {
  background: #0A1F44;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1), 0px 2px 4px rgba(0,0,0,0.1);
}

.site-header.header-transparent:not(.scrolled):hover .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.site-header.header-transparent:not(.scrolled):hover .nav-link:hover,
.site-header.header-transparent:not(.scrolled):hover .nav-link.active {
  color: var(--primary);
}

.site-header.header-transparent:not(.scrolled):hover .nav-link::after {
  background: var(--primary);
}

.site-header.header-transparent:not(.scrolled):hover .logo .logo-default {
  display: block;
}

.site-header.header-transparent:not(.scrolled):hover .logo .logo-white {
  display: none;
}

.site-header.header-transparent:not(.scrolled):hover .mobile-menu-btn span {
  background: var(--text-dark);
}

/* ============================================
   Banner Section
   ============================================ */
.banner-section {
  position: relative;
  width: 100%;
  height: 37.5vw;
  /*min-height: 600px;*/
  /*max-height: 720px;*/
  overflow: hidden;
  /* margin-top: 80px; */
}

.banner-swiper {
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide .banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,57,142,0.8), rgba(0,140,214,0.6));
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 768px;
  z-index: 2;
}

.banner-tag {
  font-size: 14px;
  color: #bedbff;
  letter-spacing: 1.4px;
  margin-bottom: 20px;
}

.banner-title {
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
}

.banner-subtitle {
  font-size: 24px;
  color: #dbeafe;
  margin-bottom: 24px;
}

.banner-desc {
  font-size: 18px;
  color: #eff6ff;
  line-height: 1.625;
}

.banner-pagination {
  bottom: 40px !important;
}

.banner-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
}

.banner-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 32px;
  border-radius: 6px;
}

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #0077b6;
}

.btn-outline {
  background: var(--bg-white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline:hover .btn-icon {
  filter: brightness(0) invert(1);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: #f0f7ff;
}

.btn-ghost {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--border-color);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  background: var(--bg-light);
}

.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.about-image {
  flex: 0 0 636px;
  width: 636px;
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  flex: 1;
}

.about-content .section-title {
  margin-bottom: 32px;
}

.about-item {
  margin-bottom: 24px;
}

.about-item:last-child {
  margin-bottom: 32px;
}

.about-item h4 {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 28px;
}

.about-item p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 26px;
  white-space: break-spaces;
}

/* ============================================
   Product Section
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card-img {
  position: relative;
  height: 256px;
  background: var(--border-light);
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.9);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.product-card-body {
  padding: 32px;
}

.product-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 28px;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.product-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 22.75px;
  margin-bottom: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================================
   Company News Section
   ============================================ */
.news-section {
  background: var(--bg-light);
}

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

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-date {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 24px;
}

.news-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 25px;
  margin-bottom: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 26px;
  margin-bottom: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card .read-more {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-card .read-more:hover {
  text-decoration: underline;
}

.news-card .read-more img {
  width: 16px;
  height: 16px;
}

/* ============================================
   R&D Section
   ============================================ */
.rd-section {
  background: var(--primary);
  position: relative;
}

.rd-inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.rd-content {
  flex: 0 0 636px;
  width: 636px;
}

.rd-content .section-title {
  color: #fff;
  margin-bottom: 32px;
}

.rd-item {
  margin-bottom: 24px;
}

.rd-item h4 {
  font-size: 20px;
  font-weight: 500;
  color: #dbeafe;
  margin-bottom: 12px;
  line-height: 28px;
}

.rd-item p {
  font-size: 16px;
  color: #eff6ff;
  line-height: 26px;
}

.rd-image {
  flex: 1;
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.rd-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Industry Dynamics Section
   ============================================ */
.dynamics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.dynamics-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.dynamics-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dynamics-card-date {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 24px;
}

.dynamics-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 25px;
  margin-bottom: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dynamics-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ============================================
   Solutions Section
   ============================================ */
.solutions-section {
  background: var(--bg-light);
}

.solutions-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ececf0;
  border-radius: var(--radius-lg);
  padding: 3.5px 3px;
  margin-bottom: 56px;
}

.solutions-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 57px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  background: transparent;
}

.solutions-tab:hover {
  background: rgba(0,140,214,0.1);
}

.solutions-tab.active {
  background: var(--primary);
  color: #fff;
}

.solutions-content {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.solutions-image {
  flex: 0 0 636px;
  width: 636px;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.solutions-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solutions-info {
  flex: 1;
  padding-top: 40px;
}

.solutions-info h3 {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 36px;
  margin-bottom: 24px;
}

.solutions-info p {
  font-size: 18px;
  color: var(--text-body);
  line-height: 29.25px;
  margin-bottom: 40px;
}

/* ============================================
   Knowledge Section
   ============================================ */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.knowledge-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.knowledge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.knowledge-card-cover {
  height: 288px;
  background: linear-gradient(156deg, #008cd6 0%, #22adf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.knowledge-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.knowledge-card-body {
  padding: 24px;
}

.knowledge-card-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--footer-bg);
  padding-top: 64px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.footer-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 24px;
  line-height: 28px;
}

.footer-qr-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-qr-label {
  font-size: 14px;
  color: #d1d5dc;
  margin-bottom: 8px;
}

.footer-qr-img {
  width: 128px;
  height: 128px;
  border-radius: 4px;
  object-fit: cover;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-label {
  font-size: 14px;
  color: var(--text-light);
  line-height: 20px;
}

.footer-contact-value {
  font-size: 14px;
  color: #d1d5dc;
  line-height: 20px;
  margin-top: 4px;
}

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

.footer-links a {
  font-size: 14px;
  color: #d1d5dc;
  line-height: 20px;
  transition: color 0.3s;
}

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

.footer-info .footer-contact-label {
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 33px 0 20px;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  line-height: 20px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination li span,
.pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-body);
}

.pagination li a {
  cursor: pointer;
  text-decoration: none;
}

.pagination li a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination li.active span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination li.disabled span {
  background: var(--bg-light);
  color: var(--text-light);
  border-color: var(--border-light);
  cursor: not-allowed;
}

/* ============================================
   Animations
   ============================================ */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.banner-section,
.page-banner {
  opacity: 1;
  transform: none;
}

.site-header.scrolled {
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

.banner-content .banner-tag,
.banner-content .banner-title,
.banner-content .banner-subtitle,
.banner-content .banner-desc {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.banner-content .banner-tag { animation-delay: 0.2s; }
.banner-content .banner-title { animation-delay: 0.4s; }
.banner-content .banner-subtitle { animation-delay: 0.6s; }
.banner-content .banner-desc { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width:768px){
    .banner-content {
        display: none;
    }
    .sol-overview-actions {
        flex-direction: column;
        align-items: stretch;
      }
      .banner-section {
          height: 100vh;
      }
}