:root {
  --primary-color: #007acc;
  --primary-dark: #005fa3;
  --secondary-color: #00a8e8;
  --accent-color: #00d4aa;
  --text-dark: #1a1a2e;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
  background: var(--bg-dark);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info span {
  margin-right: 25px;
}

.contact-info i {
  color: var(--secondary-color);
  margin-right: 5px;
}

.social-links a {
  color: var(--white);
  margin-left: 15px;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--secondary-color);
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 36px;
  color: var(--primary-color);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 122, 204, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 16px;
}

.btn-block {
  display: block;
  width: 100%;
}

.text-center {
  text-align: center;
  margin-top: 50px;
}

/* 首页横幅 */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.slide-content h1 {
  font-size: 52px;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 核心优势 */
.features {
  padding: 80px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 40px 20px;
  border-radius: 10px;
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--bg-light);
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--white);
  font-size: 32px;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-item p {
  color: var(--text-light);
  font-size: 14px;
}

/* 通用板块标题 */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.light {
  color: var(--white);
}

.section-header.light .section-desc {
  color: rgba(255, 255, 255, 0.8);
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-tag.light {
  color: var(--secondary-color);
}

.section-title {
  font-size: 38px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.section-header.light .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* 产品中心 */
.products {
  padding: 100px 0;
  background: var(--bg-light);
}

.product-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 12px 25px;
  border: 2px solid #ddd;
  background: var(--white);
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 60px;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 122, 204, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-view {
  padding: 12px 30px;
  background: var(--white);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

.product-info {
  padding: 25px;
}

.product-category {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-color);
  background: rgba(0, 122, 204, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.product-info p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.product-model {
  font-size: 13px;
  color: var(--text-light);
}

.btn-inquiry {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* 解决方案 */
.solutions {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg-dark), #16213e);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.solution-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 40px 30px;
  color: var(--white);
  transition: var(--transition);
}

.solution-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.solution-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 25px;
}

.solution-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.solution-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 20px;
}

.solution-card ul {
  list-style: none;
  margin-bottom: 25px;
}

.solution-card li {
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 20px;
  position: relative;
}

.solution-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.solution-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.solution-link:hover {
  gap: 15px;
}

/* 数据统计 */
.stats {
  padding: 80px 0;
  background: var(--primary-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-icon {
  font-size: 40px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-size: 32px;
  font-weight: 700;
  display: inline;
}

.stat-label {
  font-size: 16px;
  margin-top: 10px;
  opacity: 0.9;
}

/* 工程案例 */
.cases {
  padding: 100px 0;
  background: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-image {
  height: 220px;
  overflow: hidden;
}

.case-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 60px;
}

.case-content {
  padding: 25px;
}

.case-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-color);
  background: rgba(0, 122, 204, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.case-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.case-content p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.case-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.case-meta i {
  color: var(--primary-color);
  margin-right: 5px;
}

/* 关于我们 */
.about {
  padding: 100px 0;
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-main {
  position: relative;
  z-index: 1;
}

.about-image-sub {
  position: absolute;
  bottom: -30px;
  right: -30px;
  z-index: 2;
}

.image-placeholder {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.image-placeholder.large {
  width: 100%;
  height: 400px;
  font-size: 100px;
}

.image-placeholder.small {
  width: 200px;
  height: 200px;
  font-size: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.about-feature i {
  color: var(--accent-color);
  font-size: 18px;
}

/* 新闻资讯 */
.news {
  padding: 100px 0;
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.news-card {
  background: var(--bg-light);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-card.featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.news-image {
  height: 250px;
}

.news-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 60px;
}

.news-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.news-category {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-color);
  background: rgba(0, 122, 204, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  width: fit-content;
}

.news-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
  line-height: 1.4;
}

.news-card.featured h3 {
  font-size: 24px;
}

.news-content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  transition: var(--transition);
}

.read-more:hover {
  gap: 15px;
}

/* 合作伙伴 */
.partners {
  padding: 60px 0;
  background: var(--bg-light);
}

.partners-title {
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 400;
}

.partners-slider {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-logo {
  font-size: 18px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-logo i {
  font-size: 32px;
}

/* 联系我们 */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg-dark), #16213e);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-panel {
  color: var(--white);
}

.contact-info-panel h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-info-panel > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.contact-form-panel {
  background: var(--white);
  padding: 50px;
  border-radius: 15px;
}

.contact-form-panel h3 {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  width: 100%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* 页脚 */
.footer {
  background: #0f0f1a;
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo i {
  font-size: 36px;
  color: var(--primary-color);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 25px;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .features-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid,
  .solutions-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .slide-content h1 {
    font-size: 32px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .features-grid,
  .stats-grid,
  .products-grid,
  .solutions-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .about-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-image-sub {
    display: none;
  }

  .news-card.featured {
    grid-row: auto;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo,
  .footer-social {
    justify-content: center;
  }

  .footer-contact p {
    justify-content: center;
  }
}
