/* ================ Base & Reset ================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }

.container-full { width: 100%; max-width: 1440px; margin: 0 auto; }

/* ================ Header ================ */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  height: 80px;
  display: flex; align-items: center;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
.header-inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 60px;
  display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 50px; width: auto; }

.nav-menu { display: flex; align-items: center; height: 80px; }
.nav-menu > ul {
  display: flex; list-style: none; margin: 0; padding: 0; height: 100%;
}
.nav-menu > ul > li {
  position: relative; height: 100%;
  display: flex; align-items: center;
  padding: 0 14px;
}
.nav-menu > ul > li > a {
  font-size: 15px; color: #333; font-weight: 400;
  transition: color 0.3s; position: relative;
  display: flex; align-items: center; height: 100%;
  white-space: nowrap;
}
.nav-menu > ul > li::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px; background: #CC0000;
  transition: width 0.4s, left 0.4s;
}
.nav-menu > ul > li:hover::after {
  width: 50px; left: calc(50% - 25px);
}
.nav-menu > ul > li:hover > a,
.nav-menu > ul > li.active > a { color: #CC0000; }
.nav-menu > ul > li.active::after {
  width: 50px; left: calc(50% - 25px);
}

.nav-sub {
  position: absolute; top: 80px; left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  pointer-events: none;
}
.nav-menu > ul > li:hover > .nav-sub {
  max-height: 500px; opacity: 1;
  pointer-events: auto;
}
.nav-sub a {
  display: block; padding: 10px 24px;
  font-size: 14px; color: #666;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-sub a:hover { background: #CC0000; color: #fff; }
.nav-sub.wide {
  min-width: 580px; display: flex; padding: 20px 30px; gap: 28px;
  left: 50%; transform: translateX(-50%);
}
.nav-sub.wide-lg { min-width: 720px; }
.nav-sub.wide .sub-col { flex: 1; }
.nav-sub.wide .sub-col-title {
  font-size: 13px; font-weight: 700; color: #CC0000;
  padding-bottom: 7px; margin-bottom: 6px;
  border-bottom: 2px solid #f0f0f0;
  letter-spacing: 0.04em;
}
.nav-sub.wide a { padding: 5px 0; font-size: 13px; }
.nav-sub.wide a:hover { background: none; color: #CC0000; }

.nav-toggle {
  display: none; cursor: pointer; width: 44px; height: 44px;
  position: relative; z-index: 3;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #333;
  position: absolute; left: 10px;
  transition: all 0.4s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ================ Page Banner ================ */
.page-banner {
  position: relative;
  width: 100%; height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; overflow: hidden;
}
.page-banner::before {
  content:''; position:absolute; inset:0;
  background-image: url('../../assets/ss.media.yidingyi.com.cn/site_res/223/20240625094624_Gdy6FOvc.jpg');
  background-size: cover; background-position: center;
  z-index: 0;
}
.page-banner::after {
  content:''; position:absolute; inset:0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.page-banner > * { position: relative; z-index: 2; }
.page-banner.gallery::before {
  background-image: url('../../assets/ss.media.yidingyi.com.cn/site_res/223/20250819110732_mgcI0E1i.jpg');
}
.page-banner.gallery::after { background: rgba(0,0,0,0.44); }
.page-banner.gallery { height: 360px; }
.page-banner h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}
.page-banner .banner-sub {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 12px;
  font-size: 14px; letter-spacing: 3px;
  color: rgba(255,255,255,0.85);
}
.page-banner .banner-sub::before,
.page-banner .banner-sub::after {
  content:''; display:block; width: 48px; height: 2px; background: #CC0000;
}
.page-banner .banner-cn-sub {
  margin-top: 14px;
  max-width: 760px;
  padding: 0 24px;
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}

/* ================ Section Headers ================ */
.sec-header { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sec-kicker { display: inline-flex; align-items: center; gap: 14px; color: #CC0000; font-size: 13px; font-weight: 600; letter-spacing: 3px; }
.sec-kicker::before, .sec-kicker::after {
  content:''; display:block; width:40px; height:2px; background:#CC0000;
}
.sec-title { font-size: 36px; font-weight: 800; color: #1A1A1A; }
.sec-sub { color: #6B7280; font-size: 15px; }

/* ================ CTA Button base ================ */
.btn-pill-red {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: #CC0000; color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none; cursor: pointer;
}
.btn-pill-red:hover { background: #a30000; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(204,0,0,.25); }
.btn-pill-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: #fff; color: #CC0000;
  border: 1px solid #CC0000; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: all .2s;
}
.btn-pill-outline:hover { background: #CC0000; color: #fff; }

/* ================ Footer (matches index.html) ================ */
.site-footer {
  position: relative;
  background: #111118;
  padding: 64px 120px 32px;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, #CC0000 25%, #CC0000 75%, transparent 100%);
}
.footer-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 48px;
}
.footer-top { display: flex; gap: 40px; }
.footer-brand { width: 260px; flex-shrink: 0; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 22px; }
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,0.85);
  line-height: 1.75;
}
.footer-nav-cols { flex: 1; display: flex; gap: 28px; }
.footer-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact {
  width: 290px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.contact-list {
  display: flex; flex-direction: column; gap: 10px;
}
.contact-list li {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.85);
  display: flex; gap: 4px; align-items: baseline;
}
.contact-list li.ct-multi { align-items: flex-start; }
.contact-list .ct-label {
  color: rgba(255,255,255,0.85);
  flex-shrink: 0; font-size: 14px;
}
.contact-list a { color: inherit; transition: color 0.2s; }
.contact-list a:hover { color: #CC0000; }
.footer-col-title {
  position: relative;
  font-size: 16px; font-weight: 700; color: #fff;
  padding-bottom: 14px;
  letter-spacing: 0.5px;
}
.footer-col-title::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 28px; height: 3px;
  background: #CC0000;
  border-radius: 2px;
}
.footer-col a {
  position: relative;
  font-size: 14px; color: rgba(255,255,255,0.78);
  transition: color 0.25s, padding-left 0.25s;
}
.footer-col a::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 0; height: 1px; background: #CC0000;
  transform: translateY(-50%);
  transition: width 0.25s;
}
.footer-col a:hover {
  color: #fff;
  padding-left: 14px;
}
.footer-col a:hover::before { width: 10px; }
.footer-divider {
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.18);
}
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-copyright a { color: inherit; }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social svg { width: 18px; height: 18px; color: rgba(255,255,255,0.6); transition: color 0.2s; cursor: pointer; }
.footer-social i:hover svg { color: #fff; }
.ewm-item {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background .2s;
}
.ewm-item:hover { background: rgba(255,255,255,0.18); }
.ewm-icon {
  width: 16px; height: 16px; object-fit: contain;
  filter: brightness(0) invert(1) opacity(.55);
  transition: filter .2s;
}
.ewm-item:hover .ewm-icon { filter: brightness(0) invert(1) opacity(.9); }
.ewm-popup {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #fff; padding: 6px; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
.ewm-popup::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #fff;
}
.ewm-popup img { display: block; width: 110px; height: 110px; object-fit: contain; }
.ewm-item:hover .ewm-popup { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ===== Footer Media Matrix (matches index.html) ===== */
.footer-media-bar { display: flex; align-items: center; gap: 14px; }
.media-icon {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: all 0.3s ease;
  cursor: pointer;
}
.media-icon:hover {
  background: #CC0000;
  border-color: #CC0000;
  color: #fff;
  transform: translateY(-2px);
}
.media-icon svg.icon-svg { width: 17px; height: 17px; }
.media-qr {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  width: 144px;
  z-index: 50;
}
.media-qr img { width: 124px; height: 124px; display: block; margin: 0 auto; }
.media-qr .qr-label {
  display: block;
  font-size: 12px; color: #333;
  text-align: center;
  margin-top: 6px;
  font-weight: 500;
}
.media-qr::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
}
.media-icon:hover .media-qr {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================ Animations ================ */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ================ Responsive ================ */
@media (max-width: 1200px) {
  .header-inner { padding: 0 24px; }
  .site-footer { padding: 48px 24px 24px; }
}
@media (max-width: 960px) {
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-brand { width: 100%; }
  .footer-contact { width: 100%; }
  .footer-nav-cols { flex-wrap: wrap; gap: 24px; }
  .footer-col { min-width: 120px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: block;
    position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; height: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .nav-menu.open > ul { flex-direction: column; height: auto; }
  .nav-menu.open > ul > li {
    height: auto; padding: 0;
    border-bottom: 1px solid #f0f0f0;
    flex-direction: column; align-items: stretch;
  }
  .nav-menu.open > ul > li > a { color: #333; padding: 14px 24px; height: auto; }
  .nav-menu.open > ul > li::after { display: none; }
  .nav-menu.open .nav-sub {
    position: static; transform: none;
    box-shadow: none; border-radius: 0;
    max-height: 0; opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }
  .nav-menu.open > ul > li.sub-open > .nav-sub {
    max-height: 800px; opacity: 1; pointer-events: auto;
  }
  .nav-menu.open .nav-sub a { padding: 10px 40px; }
  .nav-sub.wide, .nav-sub.wide-lg {
    min-width: unset; flex-direction: column; padding: 10px 24px; gap: 8px;
  }
  .page-banner { height: 240px; padding: 0 24px; }
  .page-banner h1 { font-size: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .ewm-popup { left: 0; transform: translateX(0) translateY(4px); }
  .ewm-popup::after { left: 15px; transform: none; }
  .ewm-item:hover .ewm-popup { transform: translateX(0) translateY(0); }
  .footer-media-bar { justify-content: center; }
  .media-icon { width: 34px; height: 34px; }
  .media-icon svg.icon-svg { width: 16px; height: 16px; }
  .media-qr { width: 130px; }
  .media-qr img { width: 110px; height: 110px; }
  .sec-title { font-size: 28px; }
  .site-footer { padding: 40px 20px 20px; }
}
