/* ================================================================
   index.css — 首页专属样式
   仅首页使用：About、Products、News、Links 模块
   ================================================================ */

/* ----- ABOUT 模块 ----- */
.about-section {
  padding: 70px 2rem 80px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.about-wrapper {
  display: flex;
  align-items: stretch;
  gap: 60px;
}
.about-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-title-group { margin-bottom: 24px; }
.about-title-group .section-title-en { color: #1a1a1a; }
.about-title-group .section-title-cn { color: #999; }
.about-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #444;
  margin-top: 16px;
  max-width: 600px;
  text-align: justify;
}
.about-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 10px 28px;
  border: 1.5px solid #e00505;
  color: #e00505;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  width: fit-content;
  letter-spacing: 0.5px;
}
.about-more i { font-size: 0.85rem; transition: transform 0.25s ease; }
.about-more:hover { background: #e00505; color: #fff; }
.about-more:hover i { transform: translateX(4px); }
.about-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-right img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

/* ----- 产品模块 PRODUCTS ----- */
.products-section {
  width: 100%;
  background: #ffffff;
  padding-bottom: 70px;
}
.products-header-wrap {
  background: #383B42;
  padding: 80px 2rem 60px;
}
.products-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.products-title-group { flex-shrink: 0; }
.products-title-group .section-title-en { color: #ffffff; }
.products-title-group .section-title-cn { color: rgba(255, 255, 255, 0.5); }
.products-title-group .section-divider { background: #e00505; }

.products-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 6px;
  flex-shrink: 0;
}
.products-categories span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.products-categories span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #e00505;
  transition: width 0.25s ease;
}
.products-categories span:hover { color: #ffffff; }
.products-categories span:hover::after { width: 100%; }

.products-categories a { text-decoration:none;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.products-categories a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #e00505;
  transition: width 0.25s ease;
}
.products-categories a:hover { color: #ffffff; }
.products-categories a:hover::after { width: 100%; }

.products-grid-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-top: -20px;
}
.products-grid-outer {
  border: 2px solid #e8ecf0;
  background: #ffffff;
  padding: 30px 30px 20px;
  border-radius: 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  border: 1.5px solid #e8ecf0;
  background: #ffffff;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  border-color: #383B42;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.product-card .product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 0;
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.product-card .product-img .placeholder-icon { font-size: 3.2rem; color: #c0c8d4; }
.product-card .product-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .product-more {
  margin-top: 10px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #888;
  background: transparent;
  border: 1.5px solid #e8ecf0;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}
.product-card .product-more i { font-size: 0.65rem; transition: transform 0.2s; }
.product-card .product-more:hover { background: #e00505; color: #ffffff; }
.product-card .product-more:hover i { transform: translateX(4px); }

/* ----- 新闻模块 NEWS ----- */
.news-section {
  background: #f9f9f9;
  padding: 70px 2rem 80px;
}
.news-container {
  max-width: 1240px;
  margin: 0 auto;
}
.news-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}
.news-title-group .section-title-en { color: #1a1a1a; }
.news-title-group .section-title-cn { color: #999; }
.news-title-group .section-divider { background: #e00505; }
.news-more-link {
  font-size: 0.95rem;
  color: #888;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.news-more-link:hover {
  color: #e00505;
  border-bottom-color: #e00505;
}
.news-more-link i {
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.news-more-link:hover i { transform: translateX(4px); }

.news-outer {
  background: #ffffff;
  border: 2px solid #e0e4e8;
  padding: 30px 30px 20px;
  border-radius: 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  border: 1.5px solid #e8ecf0;
  background: #ffffff;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.news-card:hover {
  border-color: #383B42;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.news-body {
  padding: 18px 18px 18px;
  position: relative;
}
.news-date {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #393c43;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-align: center;
  border-radius: 0;
  min-width: 48px;
}
.news-date .year { display: block; font-size: 0.8rem; font-weight: 700; }
.news-date .day { display: block; font-size: 0.6rem; font-weight: 400; opacity: 0.85; }
.news-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-right: 56px;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

/* ----- 友情链接模块 FRIENDLY LINKS ----- */
.links-section {
  background: #ffffff;
  padding: 60px 2rem 70px;
}
.links-container {
  max-width: 1240px;
  margin: 0 auto;
}
.links-header { margin-bottom: 32px; }
.links-header .section-title-en { color: #1a1a1a; }
.links-header .section-title-cn { color: #999; }
.links-header .section-divider { background: #e00505; }
.links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-top: 4px;
}
.links-list a {
  font-size: 0.95rem;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.links-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #e00505;
  transition: width 0.25s ease;
}
.links-list a:hover { color: #e00505; }
.links-list a:hover::after { width: 100%; }

/* ----- 首页专属响应式 ----- */
@media (max-width: 1024px) {
  .about-wrapper { gap: 40px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .products-header-wrap { padding: 60px 1.5rem 50px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .about-wrapper { flex-direction: column; gap: 30px; }
  .about-left { order: 1; }
  .about-right { order: 0; }
  .about-right img { max-height: 260px; }
  .about-desc { max-width: 100%; }
  .about-section { padding: 50px 1.5rem 60px; }

  .products-header-wrap { padding: 50px 1.5rem 40px; }
  .products-header-inner { flex-direction: column; gap: 20px; }
  .products-categories { gap: 8px 18px; }
  .products-grid-wrap { padding: 0 1.5rem; margin-top: -10px; }
  .products-grid-outer { padding: 20px 16px 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .news-section { padding: 50px 1.5rem 60px; }
  .news-outer { padding: 20px 16px 16px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .news-header { flex-direction: column; gap: 12px; }

  .links-section { padding: 50px 1.5rem 60px; }
  .links-list { gap: 14px 22px; }
}

@media (max-width: 520px) {
  .about-section { padding: 40px 1rem 50px; }
  .about-desc { font-size: 0.88rem; line-height: 1.8; }
  .about-more { padding: 8px 22px; font-size: 0.88rem; }
  .about-right img { max-height: 200px; }

  .products-header-wrap { padding: 40px 1rem 30px; }
  .products-grid-wrap { padding: 0 1rem; margin-top: -6px; }
  .products-grid-outer { padding: 14px 10px 12px; border-width: 1.5px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-categories span { font-size: 0.8rem; }

  .product-card { padding: 12px 10px 12px; }
  .product-card .product-name { font-size: 0.8rem; min-height: 36px; }
  .product-card .product-more { font-size: 0.7rem; padding: 4px 14px; }
  .product-card .product-img .placeholder-icon { font-size: 2.2rem; }

  .news-section { padding: 40px 1rem 50px; }
  .news-outer { padding: 14px 10px 12px; border-width: 1.5px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-card-title { font-size: 0.88rem; padding-right: 50px; }
  .news-card-excerpt { font-size: 0.8rem; }
  .news-date { font-size: 0.6rem; padding: 3px 8px; min-width: 40px; top: 10px; right: 10px; }
  .news-date .year { font-size: 0.7rem; }
  .news-date .day { font-size: 0.55rem; }
  .news-body { padding: 14px 14px 14px; }

  .links-section { padding: 40px 1rem 50px; }
  .links-list { gap: 12px 18px; }
  .links-list a { font-size: 0.85rem; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}