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

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

/* Top Bar */
.top-bar {
  background: #1e3c72;
  color: white;
  padding: 10px 0;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .phone {
  font-weight: bold;
  color: #ffd700;
}

/* Header */
.header {
  background: white;
  padding: 25px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo h1 {
  font-size: 32px;
  color: #1e3c72;
  font-weight: bold;
  margin-bottom: 5px;
}

.logo p {
  font-size: 14px;
  color: #666;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

/* Main Navigation */
.main-nav {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

.main-nav li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 18px 35px;
  font-size: 16px;
  transition: all 0.3s;
}

.main-nav li a:hover,
.main-nav li a.active {
  background: rgba(255,255,255,0.2);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-banner p {
  font-size: 18px;
  opacity: 0.9;
}

/* Banner Section */
.banner {
  position: relative;
  height: 450px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text {
  text-align: center;
  color: white;
}

.banner-text h2 {
  font-size: 56px;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-text p {
  font-size: 24px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.6);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 35px;
  background: transparent;
  color: #1e3c72;
  text-decoration: none;
  border: 2px solid #1e3c72;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #1e3c72;
  color: white;
}

/* Section */
.section {
  padding: 80px 0;
}

.bg-gray {
  background: #f8f9fa;
}

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

.section-title {
  font-size: 42px;
  color: #1e3c72;
  margin-bottom: 10px;
  font-weight: bold;
}

.section-subtitle {
  font-size: 16px;
  color: #999;
  letter-spacing: 2px;
}

/* Products Layout - Sidebar + Content */
.products-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

.products-sidebar {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 30px 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar-title {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.sidebar-title h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 5px;
}

.sidebar-title p {
  font-size: 12px;
  color: #999;
  letter-spacing: 1px;
}

.category-list {
  list-style: none;
  margin-bottom: 20px;
}

.category-list li {
  margin-bottom: 5px;
  cursor: pointer;
}

.category-list li a {
  display: block;
  padding: 12px 15px;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s;
  border-left: 3px solid transparent;
  background: white;
  margin-bottom: 8px;
  border-radius: 4px;
}

.category-list li a:hover,
.category-list li.active a {
  color: #1e3c72;
  background: white;
  border-left-color: #1e3c72;
  font-weight: bold;
}

.category-list li a::before {
  content: '▸';
  margin-right: 8px;
  font-size: 12px;
}

.sidebar-more {
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn-view-all {
  display: block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  transition: all 0.3s;
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Product Category Content */
.product-category-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.product-category-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Products Content */
.product-section {
  margin-bottom: 60px;
  padding-top: 20px;
}

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

.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.product-card:hover {
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.product-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 20px;
  background: white;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.product-card h4 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}

.btn-detail {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid #ddd;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s;
  background: white;
}

.btn-detail:hover {
  border-color: #1e3c72;
  color: #1e3c72;
}

/* Product Categories on Home */
.product-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.category-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.btn-view {
  padding: 10px 25px;
  background: white;
  color: #1e3c72;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-view:hover {
  background: #1e3c72;
  color: white;
}

.category-card h3 {
  padding: 20px;
  text-align: center;
  font-size: 20px;
  color: #1e3c72;
}

/* About Home */
.about-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-home-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-home-img img {
  width: 100%;
  height: auto;
  display: block;
}

.about-home-text h3 {
  font-size: 28px;
  color: #1e3c72;
  margin-bottom: 20px;
}

.about-home-text p {
  font-size: 16px;
  line-height: 2;
  color: #666;
  margin-bottom: 15px;
  text-indent: 2em;
}

/* Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.case-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.case-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s;
}

.case-item:hover img {
  transform: scale(1.1);
}

.case-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 20px 15px 15px;
  font-size: 18px;
  font-weight: bold;
}

.view-more {
  text-align: center;
}

/* Contact Home */
.contact-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-item-home {
  text-align: center;
  padding: 40px 30px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s;
}

.contact-item-home:hover {
  background: #1e3c72;
  color: white;
  transform: translateY(-5px);
}

.contact-icon-home {
  font-size: 50px;
  margin-bottom: 20px;
}

.contact-item-home h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.contact-item-home p {
  font-size: 16px;
  line-height: 1.8;
}

.big-phone {
  font-size: 32px !important;
  font-weight: bold;
  color: #f5576c;
}

/* About Detail */
.about-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-detail-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}

.about-detail-text h2 {
  font-size: 32px;
  color: #1e3c72;
  margin-bottom: 20px;
}

.about-detail-text p {
  font-size: 16px;
  line-height: 2;
  color: #666;
  margin-bottom: 15px;
  text-indent: 2em;
}

.about-detail-text strong {
  color: #1e3c72;
  font-weight: bold;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-box {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-num {
  font-size: 56px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-text {
  font-size: 18px;
  color: #666;
}

/* Photos Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.photo-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.photo-item:hover img {
  transform: scale(1.1);
}

/* Cases Detail */
.cases-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-detail-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.case-detail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.case-detail-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.case-detail-info {
  padding: 25px;
  background: white;
}

.case-detail-info h3 {
  font-size: 22px;
  color: #1e3c72;
  margin-bottom: 15px;
}

.case-detail-info p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* Contact Detail */
.contact-info-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

.contact-card {
  text-align: center;
  padding: 40px 25px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s;
}

.contact-card:hover {
  background: #1e3c72;
  color: white;
  transform: translateY(-5px);
}

.contact-icon-large {
  font-size: 60px;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #1e3c72;
}

.contact-card:hover h3 {
  color: white;
}

.contact-phone {
  font-size: 32px;
  font-weight: bold;
  color: #f5576c;
  margin: 15px 0;
}

.contact-address,
.contact-products,
.contact-time {
  font-size: 16px;
  line-height: 1.8;
  margin: 15px 0;
}

.contact-desc {
  font-size: 14px;
  color: #999;
  margin-top: 10px;
}

.contact-card:hover .contact-desc {
  color: rgba(255,255,255,0.8);
}

.contact-map-section {
  margin-top: 60px;
}

.map-title {
  font-size: 28px;
  color: #1e3c72;
  margin-bottom: 30px;
  text-align: center;
}

.map-iframe {
  display: block;
  border: none;
  outline: none;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
  pointer-events: auto;
}

.map-container:focus-within {
  outline: none;
}

.map-placeholder {
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.map-info {
  text-align: center;
}

.map-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.map-info p {
  font-size: 18px;
  margin: 10px 0;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #667eea 100%);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding: 50px 0 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-info h3 {
  font-size: 24px;
  margin-bottom: 18px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 12px;
}

.footer-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 1px;
}

.footer-info p {
  font-size: 14px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  transition: all 0.3s ease;
  padding-left: 0;
}

.footer-info p:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(3px);
}

.footer-nav h4,
.footer-products h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 12px;
}

.footer-nav h4::after,
.footer-products h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 1px;
}

.footer-nav ul,
.footer-products ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-products li {
  padding: 8px 0 8px 18px;
  position: relative;
  transition: all 0.3s ease;
}

.footer-nav li::before,
.footer-products li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: rgba(102, 126, 234, 0.6);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-nav li:hover,
.footer-products li:hover {
  padding-left: 22px;
}

.footer-nav li:hover::before,
.footer-products li:hover::before {
  background: #f093fb;
  width: 6px;
  height: 6px;
  box-shadow: 0 0 8px rgba(240, 147, 251, 0.5);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
  line-height: 1.6;
}

.footer-nav a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-products li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.8;
  transition: all 0.3s ease;
}

.footer-products li:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.footer-bottom p:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media only screen and (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }

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

  .product-categories,
  .cases-grid,
  .stats-grid,
  .photos-grid,
  .contact-info-box {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-home,
  .about-detail {
    grid-template-columns: 1fr;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media only screen and (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .logo h1 {
    font-size: 22px;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }

  .main-nav li a {
    padding: 12px 20px;
    font-size: 14px;
  }

  .banner {
    height: 400px;
  }

  .banner-text h2 {
    font-size: 32px;
  }

  .banner-text p {
    font-size: 18px;
  }

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

  /* 产品中心移动端适配 */
  .products-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .category-list li a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .product-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card {
    padding: 15px;
  }

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

  .product-card h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .btn-detail {
    padding: 8px 20px;
    font-size: 14px;
  }

  .product-categories,
  .cases-grid,
  .stats-grid,
  .photos-grid,
  .contact-home,
  .contact-info-box,
  .product-grid-3 {
    grid-template-columns: 1fr;
  }

  .cases-detail-grid {
    grid-template-columns: 1fr;
  }

  .page-banner {
    padding: 50px 0;
  }

  .page-banner h1 {
    font-size: 36px;
  }
}

/* 超小屏幕适配 */
@media only screen and (max-width: 480px) {
  .product-preview-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

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

  .sidebar-title h3 {
    font-size: 18px;
  }

  .category-list li a {
    padding: 12px;
    font-size: 15px;
  }
}
