/* ===================================================================
   common.css — shared by ALL pages (~950 lines, optimized from ~1400)
   =================================================================== */

/* ---- Iconfont (全站共用) ---- */
@import url('//at.alicdn.com/t/c/font_5212563_0vj898wnn8w.css');

/* ---- CSS Variables (trimmed: 19 unused --fs-* removed) ---- */
:root {
  --red: #dd262f;
  --blue: #0e355f;
  --deep: #071b33;
  --gold: #d4af37;
  --text: #162233;
  --muted: #68727f;
  --line: rgba(14, 53, 95, .12);
  --shell: 66.40625vw;
  --shadow: 0 1.4583vw 3.6458vw rgba(8, 28, 51, .12);
  --pill-radius: 52.0312vw;
  /* Used --fs-* values only */
  --fs-14: 0.546875vw;
  --fs-16: 0.625vw;
  --fs-18: 0.703125vw;
  --fs-20: 0.78125vw;
  --fs-22: 0.859375vw;
  --fs-24: 0.9375vw;
  --fs-26: 1.015625vw;
  --fs-28: 1.09375vw;
  --fs-30: 1.171875vw;
  --fs-32: 1.25vw;
  --fs-36: 1.40625vw;
  --fs-44: 1.71875vw;
  --fs-54: 2.109375vw;
  --fs-55: 2.1484375vw;
  --fs-56: 2.1875vw;
  --fs-60: 2.34375vw;
  --fs-80: 3.125vw;
  --header-h: 8.1226vh;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Heiti SC", Arial, sans-serif;
  background: #fff;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 0.5859vw; }
button, input { font: inherit; }
.shell { width: var(--shell); margin: auto; }
.topline { height: 0.3704vh; background: linear-gradient(90deg, var(--red), var(--gold), var(--blue)); }

/* ---- Scrollbar-hide utility ---- */
.hero-slider::-webkit-scrollbar,
.partner-track::-webkit-scrollbar,
.about-cert-row::-webkit-scrollbar { display: none; }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  background: transparent; backdrop-filter: none;
  border-bottom: 0.0521vw solid #505457;
  height: var(--header-h); overflow: hidden; box-shadow: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom: 0.0521vw solid #505457;
  backdrop-filter: blur(0.5208vw);
  box-shadow: 0 0.5208vw 1.6667vw rgba(8, 28, 51, .08);
}
.site-header .main-nav a,
.site-header .brand { color: #fff; }
.site-header.is-scrolled .main-nav a,
.site-header.is-scrolled .brand { color: var(--deep); }
.site-header .main-nav a.active,
.site-header.is-scrolled .main-nav a.active { color: #ff0204; }
.site-header .brand-name { filter: brightness(0) invert(1); }
.site-header.is-scrolled .brand-name { filter: none; }
.site-header .language { background: #dd262f; color: #fff; }

.header-inner { display: flex; align-items: center; gap: 0; }
.brand {
  display: flex; align-items: center; gap: 0.7292vw;
  flex: none; flex-wrap: nowrap;
}
.brand > img:first-child { width: 2.851vw; height: auto; max-width: none; flex: none; }
.brand-name { width: 10.74vw; height: auto; max-width: none; flex: none; }
.main-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 2.1484vw; margin-left: 13vw; margin-right: auto;
  font-size: 0.78125vw; font-weight: 700;
}
.main-nav a {
  position: relative; display: flex; align-items: center;
  height: 8.1226vh; white-space: nowrap;
}
.main-nav a.active { color: #ff0204; }
.language {
  flex: none; margin-left: 0.5208vw;
  width: 5.86vw; height: 3.9815vh;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pill-radius);
  background: var(--red); color: #fff;
  font-size: 0.625vw; white-space: nowrap;
  box-shadow: 0 0.625vw 1.3542vw rgba(203, 36, 49, .18);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  position: relative; height: 64.2912vh;
  padding: 9.2593vh 0 0.9375vw; box-sizing: border-box;
  color: #8ca0b4;
  background: #082f58 url('/img/foot_bg.png') center bottom/cover no-repeat;
}
.site-footer::after { content: none; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.8125vw; align-items: start;
}
.footer-grid nav,
.footer-contact-card { box-sizing: border-box; }
.footer-about { display: flex; flex-direction: column; align-items: start; gap: 1.4583vw; }
.footer-about-top { display: flex; flex-direction: row; align-items: start; gap: 1.25vw; }
.footer-about-top > img { width: 3.9583vw; margin-bottom: 0; flex: none; }
.footer-about p { margin: 0 0 1.8519vh; font-size: 0.6771vw; line-height: 2; }
.footer-contact-card {
  position: relative; width: 18.75vw; height: 16.8582vh; min-height: 16.8582vh;
  padding: 2.2222vh 1.6667vw; border-radius: 0.625vw;
  background: linear-gradient(180deg, #0e2e55 0%, #12345d 100%);
  box-shadow: 0 0.9375vw 2.1875vw rgba(3, 17, 34, .22);
  margin-right: auto;
}
.footer-contact-card h3 { margin-bottom: 1.6667vh; }
.footer-contact-card p { margin: 0 0 1.6667vh; font-size: var(--fs-18); line-height: 1.8; color: #9aadbd; }
.footer-grid nav h3,
.footer-contact-card h3,
.contact-form h3 { margin: 0 0 2.037vh; color: #dbe5ed; font-size: var(--fs-24); font-weight: 400; }
.footer-social-block { display: flex; flex-direction: column; align-items: start; }
.footer-social-block h3 { margin: 0 0 1.6667vh; color: #dbe5ed; font-size: var(--fs-24); font-weight: 400; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.625vw; align-items: flex-start; }
.footer-grid nav a { font-size: var(--fs-20); color: #8da0b1; }

/* Footer inline contact form */
.contact-form {
  width: 16.796875vw; height: 30.6513vh; min-height: 30.6513vh;
  padding: 2.5926vh 1.6667vw; border-radius: 0.625vw;
  background: linear-gradient(180deg, #0e2e55 0%, #123259 100%);
  box-shadow: 0 0.9375vw 2.1875vw rgba(3, 17, 34, .22);
  box-sizing: border-box; justify-self: end;
}
.contact-form p { margin: 0 0 2.037vh; font-size: var(--fs-18); color: #7cb4ef; }
.contact-form input {
  width: 100%; height: 2.4609vw; margin-bottom: 1.5326vh;
  padding: 0 1.171875vw; box-sizing: border-box;
  border: 0.0521vw solid #154074; border-radius: 0.3125vw;
  background: rgba(255, 255, 255, .05); color: #fff; font-size: var(--fs-20);
}
.contact-form input:last-of-type { margin-bottom: 1.9923vh; }
.contact-form input::placeholder { color: #7cadbd; font-size: var(--fs-20); }
.contact-form button {
  width: 100%; height: 2.5586vw; box-sizing: border-box;
  border: 0; border-radius: 0.7292vw; background: #0767a7;
  color: #fff; font-size: var(--fs-20); font-weight: 400; cursor: pointer;
}

.socials { display: flex; flex-wrap: wrap; gap: 0.5208vw; margin: 0; }
.social-link {
  position: relative; width: 2.1484vw; height: 4.2146vh;
  display: grid; place-items: center; border-radius: 50%;
  background: #1a385e; color: #43a4d2; text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.social-link.is-active { background: #0867a7; }
.social-link:hover,
.social-link:focus-visible {
  background: #0867a7; transform: translateY(-0.0926vh);
  box-shadow: 0 0.625vw 1.25vw rgba(8, 103, 167, .28);
}
.social-link:hover img:not(.social-qr),
.social-link:focus-visible img:not(.social-qr) { opacity: 1; }
.social-link > img:not(.social-qr) {
  width: 43.6364%; height: 43.6364%; max-width: none; max-height: none;
  display: block; opacity: .3; object-fit: contain;
}
.social-link span { position: absolute; width: 0.0521vw; height: 0.0926vh; overflow: hidden; clip: rect(0 0 0 0); }
.social-qr {
  position: absolute; left: 50%; bottom: calc(100% + 1.1111vh);
  width: 6.1458vw; height: 10.9259vh; padding: 0.7407vh; border-radius: 0.5208vw;
  background: #fff; box-shadow: 0 0.625vw 1.4583vw rgba(0, 0, 0, .22);
  opacity: 0; pointer-events: none; transform: translate(-50%, 0.7407vh);
  transition: .2s ease; object-fit: contain; z-index: 5;
}
.social-link:hover .social-qr,
.social-link:focus-visible .social-qr { opacity: 1; transform: translate(-50%, 0); }
.footer-qrcode {
  position: absolute; right: 1.6667vw; bottom: 2.2222vh;
  width: 4.4792vw; height: 7.963vh; padding: 0.7407vh; border-radius: 0.625vw;
  background: #fff; object-fit: contain;
}
.copyright {
  position: absolute; left: 0; right: 0; bottom: 3.0651vh;
  margin: 0; padding-top: 0.6130vh;
  border-top: 0.0521vw solid rgba(255, 255, 255, .1);
  text-align: center; font-size: var(--fs-20); color: #69839c;
}

/* ===================================================================
   SHARED SUB-NAV (merged .design-subnav + .about-subnav — were identical)
   =================================================================== */
.design-subnav,
.about-subnav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 7.5926vh; background: rgba(7, 24, 42, .9);
}
.design-subnav.is-fixed,
.about-subnav.is-fixed {
  position: fixed; top: var(--header-h); bottom: auto; z-index: 99;
}
.design-subnav-inner,
.about-subnav-inner {
  height: 7.5926vh; display: flex; align-items: center; gap: 3.6458vw;
  color: rgba(255, 255, 255, .86); font-size: var(--fs-24); font-weight: 400;
}
.design-subnav a,
.about-subnav a {
  position: relative; min-width: 5vw; text-align: center; font-weight: 400;
}
.design-subnav a.active,
.about-subnav a.active { color: var(--red); }
.design-subnav span,
.about-subnav span {
  margin-left: auto; color: #cbdad7; font-size: 0.8333vw; font-weight: 400;
}

/* ===================================================================
   DESIGN HERO (shared by Contact, Services, Events, News)
   =================================================================== */
.inner-design-page { background: #fff; }
.design-hero {
  position: relative; min-height: 66.6667vh; color: #fff;
  background-position: center top; background-size: cover; background-repeat: no-repeat;
}
.design-hero-services {
  min-height: 84.6743vh;
  background-image: linear-gradient(90deg, rgba(5, 20, 38, .7), rgba(5, 20, 38, .38)), url('/img/hxyw_banner.jpg');
}
.design-hero-events {
  min-height: 84.6743vh;
  background-image: linear-gradient(90deg, rgba(5, 20, 38, .62), rgba(5, 20, 38, .35)), url('/img/hdjs_banner.jpg');
}
.design-hero-news {
  min-height: 84.6743vh;
  background-image: linear-gradient(90deg, rgba(5, 20, 38, .66), rgba(5, 20, 38, .36)), url('/img/zxdt_banner.jpg');
}
.design-hero-contact {
  min-height: 84.6743vh;
  background-image: linear-gradient(90deg, rgba(5, 20, 38, .54), rgba(5, 20, 38, .22)), url('/img/lxwm_banner.jpg');
}
.design-hero-inner {
  min-height: 59.2593vh; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 4.4792vw;
}
.page-hero-copy { margin-top: 27.5862vh; transform: none; }
.design-hero-copy {
  max-width: 26.9375vw; flex: 0 0 31.25vw;
  position: relative; z-index: 2;
}
.page-hero-title,
.design-hero-title {
  margin: 0; font-size: 2.7344vw; line-height: 1.08; font-weight: 900; color: #fff;
}
.page-hero-kicker,
.design-hero-kicker { margin: 1.1111vh 0 10.8812vh; color: #fff; font-size: 0.9375vw; font-weight: 900; }
.page-hero-accent,
.design-hero-accent { color: var(--red); }
.page-hero-line,
.design-hero-line {
  display: block; width: 4.0625vw; height: 0.3704vh;
  margin-bottom: 2.963vh; background: #d8b33e;
}
.page-hero-desc,
.design-hero-desc {
  display: block; max-width: 33.3333vw; font-size: 1.25vw;
  font-weight: 400; color: #fff;
}
.page-hero-card { margin-top: calc(26.5594vh - 20px); align-self: flex-start; }
.banner-bg {
  position: absolute;
  left: calc((100vw - var(--shell)) / 2);
  bottom: 9.9074vh;
  width: var(--shell);
  height: 11.5709vh;
  transform: none;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  filter: brightness(1.9);
  opacity: .95;
}

/* ===================================================================
   TEXT-TRANSFORM CARD (used by Contact page + TextTransform demo page)
   =================================================================== */
.banner-text-transform-block {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 29.1406vw; height: 50.5747vh;
}
.text-transform-clip-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.text-transform-card {
  position: relative; z-index: 1;
  width: 26.3672vw; height: 45.977vh; overflow: hidden;
  -webkit-clip-path: url(#text-transform-round-clip);
  clip-path: url(#text-transform-round-clip);
  box-shadow: 0 2.7586vh 4.6875vw rgba(0, 0, 0, .62);
  transform: perspective(46.875vw); transform-origin: center;
  background: #ddd;
  animation: textTransformBaseIn 1.0s ease-out both;
}
.text-transform-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .52) 0%, rgba(0, 0, 0, .36) 46%, rgba(0, 0, 0, .62) 100%),
              rgba(0, 0, 0, .28);
}
.text-transform-card img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.text-transform-layer-pair {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 29.1406vw; height: 50.5747vh;
  transform: translate(calc(-50% - 6.3672vw), calc(-50% - 6.8966vh)) perspective(46.875vw);
}
.text-transform-layer-shadow {
  position: absolute; left: 0.4167vw; top: 0.7407vh; z-index: 1;
  width: 100%; height: 100%; overflow: hidden;
  -webkit-clip-path: url(#text-transform-layer-clip);
  clip-path: url(#text-transform-layer-clip);
  animation: textTransformFadeIn 1.0s ease-in-out 1.6s both;
}
.text-transform-layer-image {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; overflow: hidden;
  -webkit-clip-path: url(#text-transform-layer-clip);
  clip-path: url(#text-transform-layer-clip);
  animation: textTransformFadeIn 1.2s ease-in-out 0.8s both;
}
.text-transform-layer-shadow img,
.text-transform-layer-image img {
  display: block; object-fit: cover; transform: scale(1.04);
  width: 29.1406vw; height: 50.5747vh;
}
.text-transform-page-shell { background: #12171c; }
.text-transform-page {
  min-height: calc(100vh - var(--header-h)); padding-top: var(--header-h);
  background: radial-gradient(circle at 20% 85%, rgba(181, 44, 29, .42), transparent 28vw),
              radial-gradient(circle at 72% 12%, rgba(255, 255, 255, .14), transparent 22vw),
              #15191d;
}
.text-transform-stage {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center; padding: 7.6628vh 0;
}
@keyframes textTransformBaseIn {
  from { opacity: 0; transform: perspective(46.875vw) scale(.985); }
  to   { opacity: 1; transform: perspective(46.875vw); }
}
@keyframes textTransformFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===================================================================
   INNER HERO & CONTENT (Category + Partners pages)
   =================================================================== */
.inner-hero {
  min-height: 36.1111vh; display: flex; align-items: center; color: #fff;
  background: linear-gradient(120deg, #071f3a, #123d68);
  background-size: cover; background-position: center;
}
.inner-hero small { color: var(--gold); font-size: 0.7813vw; font-weight: 800; letter-spacing: .08em; }
.inner-hero h1 { margin: 1.6667vh 0 0; font-size: 2.9167vw; line-height: 1.12; }
.inner-hero p {
  max-width: 37.5vw; margin: 2.037vh 0 0;
  color: rgba(255, 255, 255, .82); font-size: 0.9375vw; line-height: 1.8;
}
.inner-section,
.article-page { padding: 7.963vh 0 6.25vw; background: #f6f8fb; }
.inner-main,
.article-shell { max-width: 54.1667vw; }
.rich-content { color: #324256; font-size: 0.8854vw; line-height: 1.9; }
.rich-content p { margin: 0 0 1.6667vh; }
.rich-content img { max-width: 100%; border-radius: 0.9375vw; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25vw; margin-top: 4.0741vh; }
.content-card {
  display: block; min-height: 100%; overflow: hidden; border-radius: 0.9375vw;
  background: #fff; color: inherit; text-decoration: none;
  box-shadow: 0 0.625vw 1.875vw rgba(30, 48, 72, .08);
}
.content-card img { display: block; width: 100%; height: 17.5926vh; object-fit: cover; }
.content-card div { padding: 2.037vh; }
.content-card time,
.article-head small,
.article-head p { color: var(--red); font-size: 0.7292vw; font-weight: 700; }
.content-card h2 { margin: 1.1111vh 0 0; color: var(--blue); font-size: 1.0938vw; line-height: 1.45; }
.content-card p { margin: 1.1111vh 0 0; color: #667386; font-size: 0.7292vw; line-height: 1.7; }
.contact-info-panel {
  max-width: 39.5833vw; padding: 3.3333vh; border-radius: 1.25vw;
  background: #fff; box-shadow: 0 0.625vw 1.875vw rgba(30, 48, 72, .08);
}
.contact-info-panel p { margin: 0 0 1.2963vh; }
.contact-info-panel b { color: var(--blue); }
.contact-info-qrcode { width: 7.7083vw; height: 13.7037vh; margin-top: 1.6667vh; object-fit: contain; }
body.about-page-shell main.about-page { margin-top: 0; padding-top: 0; }

/* ===================================================================
   SHARED UTILITY (used by home page sections)
   =================================================================== */
.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 3.0833vw;
}
.section-heading h2 { margin: 0.9259vh 0 0; font-size: var(--fs-54); line-height: 1.22; color: var(--deep); }
.section-heading p { margin: 0; max-width: 39.5833vw; color: var(--deep); font-size: var(--fs-20); line-height: 2; }
.section-heading small,
.hero-slider-head small { color: #dd262f; font-size: 1.25vw; }
.section-heading h2 span { color: var(--red); }
.centered { text-align: center; }
.light h2 { color: #fff; }
.gold { color: var(--gold); }
.red { color: var(--red); }

/* ---- Pill button (shared by Index hero .outline-btn, Contact .contact-submit) ---- */
.pill-btn,
.outline-btn,
.contact-submit,
.news-feature a { border-radius: var(--pill-radius); }
