:root {
  --primary: #dc2424;          /* 原站主色红 */
  --primary-dark: #b31c1c;
  --accent: #F0B323;           /* 原站金色点缀 */
  --dark: #1f1f1f;
  --dark2: #2c2c2c;
  --text: #333;
  --muted: #667;
  --bg: #f5f5f5;
  --white: #fff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部联系条（原版深色） ===== */
.topbar {
  background: rgba(0, 0, 0, 0.92);
  color: #bbb;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 24px; }
.topbar span b { color: var(--white); font-weight: 600; margin-right: 6px; }
.topbar a { color: var(--white); }

/* ===== 页头（原版白底 + 红色 active） ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark2);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img { height: 48px; width: auto; }
.logo small { display: block; font-size: 10px; color: #999; font-weight: 400; letter-spacing: 2px; }
nav.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; }
nav.main-nav li { position: relative; }
nav.main-nav > ul > li > a {
  display: block;
  padding: 18px 18px;
  color: var(--dark2);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li > a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
nav.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-top: 2px solid var(--primary);
  z-index: 99;
}
nav.main-nav li:hover .dropdown { display: block; }
nav.main-nav .dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}
nav.main-nav .dropdown a:hover { background: var(--bg); color: var(--primary); }

/* ===== 轮播 Banner（原版全屏大图） ===== */
.banner { position: relative; overflow: hidden; }
.banner .slide { display: none; }
.banner .slide.on { display: block; animation: fade 0.8s; }
.banner .slide img { width: 100%; height: 640px; object-fit: cover; display: block; }
@keyframes fade { from { opacity: 0.4; } to { opacity: 1; } }
.banner .dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.banner .dot {
  width: 34px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  cursor: pointer;
}
.banner .dot.on { background: var(--primary); }
.banner .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  line-height: 1;
  z-index: 5;
}
.banner .arrow:hover { background: var(--primary); }
.banner .arrow.prev { left: 12px; }
.banner .arrow.next { right: 12px; }

/* ===== 数据计数条（原版） ===== */
.stats { background: var(--bg); padding: 44px 0; }
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 42px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}
.stat b i { font-style: normal; color: var(--accent); }
.stat p { color: var(--dark2); font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }

/* ===== 通用板块 ===== */
section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.section-title {
  text-align: center;
  font-size: 30px;
  margin-bottom: 8px;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 14px auto 0;
  border-radius: 2px;
}
.section-sub { text-align: center; color: var(--muted); max-width: 760px; margin: 20px auto 40px; }

/* ===== 公司简介 ===== */
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.intro-grid h2 { color: var(--dark2); font-size: 28px; margin-bottom: 18px; }
.intro-grid h2 span { color: var(--primary); }
.intro-grid p { color: var(--muted); margin-bottom: 14px; }
.intro-img { border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.intro-img img { width: 100%; display: block; }
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 3px;
  font-weight: 600;
  transition: 0.2s;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--dark2); color: var(--dark2); margin-left: 10px; }
.btn-outline:hover { background: var(--dark2); color: var(--white); }

/* ===== 产品卡片 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(220, 36, 36, 0.16);
  border-color: var(--primary);
}
.product-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f2f2f2, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
}
.product-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: 0.3s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-card h3 { padding: 16px 18px 6px; font-size: 17px; color: var(--dark2); text-transform: uppercase; }
.product-card p { padding: 0 18px 14px; color: var(--muted); font-size: 14px; flex: 1; }
.product-card .card-link {
  padding: 12px 18px;
  border-top: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

/* ===== 特性 ===== */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.feature {
  background: var(--white);
  padding: 30px 24px;
  border: 1px solid #e8e8e8;
  text-align: center;
  border-top: 3px solid var(--primary);
  position: relative;
}
.feature .feat-no {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  line-height: 32px;
}
.feature h3 { font-size: 16px; margin-bottom: 8px; color: var(--dark2); }
.feature p { color: var(--muted); font-size: 14px; }

/* ===== FAQ ===== */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-left: 3px solid var(--primary);
  margin-bottom: 12px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--dark2);
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--primary);
  font-size: 20px;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 14px; color: var(--muted); }

/* ===== 社媒板块（替代原 EVENT & NEWS / Facebook 墙） ===== */
.social-section { background: var(--dark2); padding: 56px 0; }
.social-section .section-title { color: var(--white); }
.social-section .section-sub { color: #a8a8a8; }

.social-list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 38px;
}
.social-item { text-align: center; }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.social-btn svg { width: 34px; height: 34px; fill: currentColor; display: block; }

.social-btn.facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 10px 24px rgba(24, 119, 242, 0.4); }
.social-btn.tiktok:hover { background: #010101; border-color: #25f4ee; box-shadow: 0 10px 24px rgba(37, 244, 238, 0.28); }
.social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(220, 39, 67, 0.4);
}
a.social-btn:hover { transform: translateY(-6px); }

.social-btn.is-pending { opacity: 0.45; cursor: default; }
.social-btn.is-pending:hover { transform: none; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }

.social-name {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #b4b4b4;
}

/* ===== 内页 ===== */
.page-head {
  background: var(--dark2) url() center/cover;
  color: var(--white);
  text-align: center;
  padding: 56px 20px;
  border-bottom: 4px solid var(--primary);
}
.page-head h1 { font-size: 32px; text-transform: uppercase; letter-spacing: 1px; }
.content { padding: 54px 0; }
.content h2 { color: var(--dark2); margin: 26px 0 10px; font-size: 22px; text-transform: uppercase; }
.content h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--primary); margin-top: 8px; }
.content p, .content li { color: #445; }
.content ul { margin: 10px 0 10px 22px; }

/* ===== 图集 ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 30px; }
.gallery-item { border: 1px solid #e8e8e8; overflow: hidden; background: var(--white); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }

/* 证书区：竖版 A4 比例，contain 保证整张完整显示，不裁切 */
.gallery--cert { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery--cert .gallery-item { background: var(--white); }
.gallery--cert .gallery-item img {
  aspect-ratio: 1 / 1.414;
  object-fit: contain;
  padding: 8px;
  background: var(--white);
  cursor: zoom-in;
}
.gallery--cert .gallery-item:hover img { transform: none; }

/* 图片放大查看 */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.93); padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: var(--white); cursor: default; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16);
  color: var(--white); font-size: 28px; line-height: 1; cursor: pointer;
  transition: 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.32); }
body.lb-open { overflow: hidden; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card { background: var(--bg); padding: 26px; margin-bottom: 20px; border-left: 3px solid var(--primary); }
.contact-card h3 { color: var(--dark2); margin-bottom: 8px; text-transform: uppercase; }
.contact-card a { font-weight: 600; }

/* ===== CTA 条（原版红色） ===== */
.cta-strip { background: var(--primary); color: var(--white); text-align: center; padding: 50px 20px; }
.cta-strip h2 { margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.cta-strip .btn-outline { border-color: var(--white); color: var(--white); }
.cta-strip .btn-outline:hover { background: var(--white); color: var(--primary); }

/* ===== 页脚（原版深灰） ===== */
.site-footer { background: var(--dark); color: #9aa0a6; padding: 50px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; padding-bottom: 34px; }
.site-footer h4 { color: var(--white); margin-bottom: 14px; text-transform: uppercase; font-size: 16px; }
.site-footer h4::after { content: ""; display: block; width: 36px; height: 3px; background: var(--primary); margin-top: 8px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #9aa0a6; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { background: #050507; padding: 16px 0; text-align: center; font-size: 13px; color: #777; }
.footer-bottom a { color: #999; }

@media (max-width: 860px) {
  /* banner 图为 1920x953，按原始比例显示，避免文字被左右裁掉 */
  .banner .slide img { height: auto; aspect-ratio: 1920 / 953; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .contact-grid, .intro-grid { grid-template-columns: 1fr; }
  nav.main-nav > ul > li > a { padding: 12px 10px; font-size: 14px; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
}

/* ===== 新闻资讯 ===== */
.page-head-sub { max-width: 720px; margin: 12px auto 0; color: #c9c9c9; font-size: 15px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.news-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.news-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
.news-card-cover { display: block; overflow: hidden; background: var(--bg); }
.news-card-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 0.4s; }
.news-card:hover .news-card-cover img { transform: scale(1.05); }
.news-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.news-tag { background: var(--primary); color: #fff; padding: 2px 9px; font-size: 11px; letter-spacing: 0.6px; }
.news-card h3 { font-size: 18px; line-height: 1.45; margin-bottom: 10px; }
.news-card h3 a { color: var(--dark2); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { font-size: 14px; color: #667; flex: 1; }
.news-more { margin-top: 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }
.news-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* 文章详情 */
.breadcrumb { font-size: 13px; color: #b9b9b9; margin-bottom: 16px; }
.breadcrumb a { color: #d8d8d8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; }
.article-title { font-size: 30px; text-transform: none; line-height: 1.35; max-width: 900px; margin: 0 auto; letter-spacing: 0; }
.article-meta { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; font-size: 13px; color: #b9b9b9; }
.article-container { max-width: 820px; }
.article-cover { margin-bottom: 30px; }
.article-cover img { width: 100%; display: block; }
.article-body h2 { text-transform: none; font-size: 24px; }
.article-body h3 { color: var(--dark2); font-size: 19px; margin: 24px 0 8px; }
.article-body p { margin-bottom: 16px; font-size: 16px; color: #3d4450; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; font-size: 16px; }
.article-body blockquote { border-left: 3px solid var(--primary); background: var(--bg); padding: 14px 18px; margin: 18px 0; color: #556; }
.article-body img { margin: 12px 0; }
.article-body a { font-weight: 600; }

.article-cta { background: var(--dark2); color: #ddd; padding: 32px 28px; margin: 40px 0 34px; text-align: center; }
.article-cta h3 { color: #fff; font-size: 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.article-cta p { margin-bottom: 12px; font-size: 15px; }
.article-cta .btn-outline { border-color: #999; color: #eee; }
.article-cta .btn-outline:hover { background: var(--white); color: var(--dark2); }

.related-wrap { border-top: 1px solid #e8e8e8; padding-top: 34px; }
.related-wrap h2 { text-transform: uppercase; font-size: 20px; }

@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 23px; }
  .page-head { padding: 40px 16px; }
  .article-cta { padding: 26px 18px; }
  .article-cta .btn-outline { margin-left: 0; margin-top: 10px; }
}

/* 手机端证书：两列，保证缩略图可辨认 */
@media (max-width: 640px) {
  .gallery--cert { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery--cert .gallery-item img { padding: 4px; }
  .lightbox { padding: 12px; }
  .lightbox-close { top: 8px; right: 10px; width: 40px; height: 40px; font-size: 24px; }
}
