/* Main header and navigation styles */
.header {
  background: rgba(14, 31, 61, 1.8)
}

.logo h2 {
  width: 145px;
  height: 34px;
  background: url(../images/logo.svg) no-repeat 0 0
}

a#login_default_face {
  color: #FFFFFF !important
}

.menu ul li a {
  color: #FFFFFF
}

.menu ul li.a a {
  color: #FFFFFF
}

.elecom_user_info .avatar a {
  color: #FFFFFF
}

.footerx {
  margin: 0 !important
}

/* Service section responsive styles */
@media (max-width: 1024px) {
  .service-items-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .service-items-container {
    grid-template-columns: 1fr !important;
  }

  .service-item {
    padding: 20px !important;
  }

  .service-header {
    flex-direction: column !important;
    text-align: center !important;
  }

  .service-header img {
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }
}

/* Brand gallery styles */
.brand-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.brand-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
}

.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brand-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.brand-item:hover .brand-image {
  transform: scale(1.05);
}

/* Modal styles for image enlargement */
.brand-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.brand-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive design for brand gallery */
@media (max-width: 1200px) {
  .brand-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .brand-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .brand-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .brand-image {
    height: 150px;
    padding: 15px;
  }

  .list_nav_ts {
    font-size: 24px !important;
  }

  .list_nav_ts font {
    font-size: 24px !important;
  }
}

/* 新闻横排布局样式 */
.news-horizontal-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin: 0 -10px;
}

.news-item {
  flex: 0 0 calc(20% - 20px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 10px;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 15px;
}

.news-title {
  margin-bottom: 10px;
}

.news-title a {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-title a:hover {
  color: #bc1a3d;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: #999;
}

.news-meta time,
.news-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-meta i {
  color: #bc1a3d;
}

.news-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .news-item {
    flex: 0 0 calc(25% - 20px);
  }
}

@media (max-width: 992px) {
  .news-item {
    flex: 0 0 calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .news-item {
    flex: 0 0 calc(50% - 20px);
  }
  
  .news-image {
    height: 140px;
  }
  
  .news-content {
    padding: 12px;
  }
  
  .news-title a {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .news-horizontal-layout {
    gap: 15px;
    margin: 0 -5px;
  }
  
  .news-item {
    flex: 0 0 calc(100% - 10px);
    margin: 5px;
  }
  
  .news-image {
    height: 120px;
  }
  
  .news-content {
    padding: 10px;
  }
  
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* noscript fallback styles */
noscript style {
  .lazyload {
    display: none;
  }
}
