:root {
  --ink: #13202d;
  --ink-2: #243442;
  --paper: #f5f3ee;
  --paper-2: #eae7df;
  --amber: #d3a448;
  --amber-soft: #f3e3c3;
  --amber-text: #a57621;
  --text: #2b3642;
  --text-muted: #5c6b7a;
  --line: #d7d2c6;
  --white: #ffffff;
  --ok: #2e7d4f;
  --radius: 14px;
  --shadow: 0 16px 42px rgba(19, 32, 45, .09);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 32, 45, .96);
  backdrop-filter: blur(14px);
  color: #e8e6e0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.brand-name { line-height: 1.2; }
.brand-name strong { display: block; font-size: 17px; letter-spacing: .3px; color: #fff; }
.brand-name small { font-size: 11.5px; color: #9fb0c0; letter-spacing: 1.5px; }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a {
  font-size: 14px;
  letter-spacing: .15px;
  color: #cfd8e0;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; border-color: var(--amber); }

/* Products 下拉分类 */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-links a.nav-parent { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.nav-item:hover .nav-caret,
.nav-item.is-open .nav-caret { transform: translateY(1px) rotate(225deg); }
.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 120;
  width: 232px;
  padding: 10px;
  border: 1px solid rgba(19, 32, 45, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(11, 23, 34, .22);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu,
.nav-item.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.nav-menu-label {
  display: block;
  padding: 4px 12px 8px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.nav-menu-sep { display: block; height: 1px; margin: 8px 6px; background: var(--line); }
.nav-links .nav-menu a {
  display: block;
  padding: 9px 12px;
  border-bottom: 0;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0;
  transition: background .16s ease, color .16s ease;
}
.nav-links .nav-menu a:hover,
.nav-links .nav-menu a:focus-visible {
  color: #7a5410;
  background: var(--paper);
  border-color: transparent;
}
.nav-menu-all { font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

.lang-switch { display: flex; gap: 5px; align-items: center; }
.lang-flag {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  line-height: 1;
  padding: 3px 4px;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lang-flag:hover { opacity: 1; }
.lang-flag.active { opacity: 1; border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.lang-flag svg { display: block; }

.btn {
  display: inline-block;
  padding: 13px 25px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease;
  border: 2px solid transparent;
}

.btn-tesla { background: var(--amber); color: var(--ink); box-shadow: 0 10px 24px rgba(211, 164, 72, .22); }
.btn-tesla:hover { background: #e1b65d; transform: translateY(-2px); }
.btn-more { border: 1px solid rgba(255, 255, 255, .48); background: transparent; color: #fff; }
.btn-more:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }

.hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  color: #e8e6e0;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(11, 21, 30, .95) 0%, rgba(16, 29, 40, .83) 45%, rgba(17, 31, 43, .34) 100%),
    var(--hero-image, url("../images/hero-bg.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(660px 400px at 85% 26%, rgba(211, 164, 72, .18), transparent 66%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 24px 104px;
  max-width: 780px;
  width: 100%;
}

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2.1px;
  color: #f0c870;
  border-left: 2px solid var(--amber);
  padding: 0 0 0 13px;
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -.045em;
  line-height: 1.13;
  color: #fff;
  margin-bottom: 25px;
}

.hero h1 em { font-style: normal; color: var(--amber); }

.hero p {
  font-size: 17px;
  line-height: 1.8;
  color: #b9c4ce;
  max-width: 600px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13.5px;
  color: #93a4b3;
}

.hero-meta span { padding: 0 22px; border-left: 1px solid rgba(255, 255, 255, .2); }
.hero-meta span:first-child { padding-left: 0; border-left: 0; }

.section { padding: 104px 0; }
.section-alt { background: var(--paper-2); }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head .kicker {
  color: var(--amber-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 43px);
  letter-spacing: -.035em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-head p { color: var(--text-muted); font-size: 16px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  border: 0;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 38px rgba(19, 32, 45, .14);
}

.product-thumb {
  aspect-ratio: 1.13;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.product-card:hover .product-thumb img { transform: scale(1.045); }

.product-body {
  padding: 21px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-thumb a { display: block; width: 100%; height: 100%; }
.product-body h3 { font-size: 20px; color: var(--ink); }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body h3 a:hover { color: var(--amber-text); }
.product-body .en {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: var(--amber-text);
}
.product-body p { font-size: 14.5px; color: var(--text-muted); flex: 1; }
.product-body .link { margin-top: 4px; font-size: 14px; font-weight: 600; color: #8d641c; }
.product-body .link:hover { color: var(--amber-text); }
.product-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; }
.product-actions .link { margin-top: 0; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  background: var(--white);
  border: 0;
  border-radius: 0;
  padding: 36px 30px;
  transition: background .2s ease;
}

.feature:hover { background: #fffdfa; }
.feature .num {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--amber);
  margin-bottom: 10px;
}
.feature h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text-muted); }

.cta {
  padding: 110px 0;
  background-image:
    linear-gradient(rgba(12, 23, 33, .87), rgba(12, 23, 33, .9)),
    var(--cta-image, url("../images/cta-bg.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #e8e6e0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 14px;
}

.cta p { color: #b9c4ce; max-width: 560px; margin: 0 auto 32px; }

.site-footer { background: #0f1923; color: #8fa0ae; padding: 54px 0 30px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #e8e6e0;
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: .5px;
}

.footer-grid p, .footer-grid li { font-size: 14px; line-height: 2; }
.footer-grid p.cl { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.footer-grid p.cl .ico { width: 18px; flex: none; text-align: center; }
.footer-grid a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #66798a;
}

.assist-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #3366cc;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform .25s ease, background .25s ease;
}

.assist-fab:hover { background: #2a52a8; transform: scale(1.06); }
.assist-fab[hidden],
.assist-panel[hidden] { display: none !important; }

.assist-fab .assist-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #4caf50;
  border: 2px solid #fff;
}

.assist-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 999;
  width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font);
  color: #222;
}

.assist-panel.open { display: flex; }

.assist-head {
  background: #3366cc;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.assist-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; display: inline-block; }
.assist-head .st { font-size: 12px; font-weight: 400; opacity: .9; margin-left: auto; }

.assist-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  padding: 2px 5px;
  transition: opacity .2s ease;
}
.assist-close:hover { opacity: 1; }

.assist-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f4f6f9;
}

.msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-line;
}

.msg.ai { background: #fff; border: 1px solid #e5e9f0; border-bottom-left-radius: 3px; align-self: flex-start; }
.msg.user { background: #3366cc; color: #fff; border-bottom-right-radius: 3px; align-self: flex-end; }

.assist-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 12px;
  background: #f4f6f9;
}

.assist-quick button {
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #2a52a8;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.assist-quick button:hover { background: #eaf0fb; border-color: #3366cc; }

.assist-foot {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eef1f5;
  background: #fff;
}

.assist-foot input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d7dee8;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
  font-family: var(--font);
}
.assist-foot input:focus { border-color: #3366cc; }

.assist-foot button {
  background: #3366cc;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
}
.assist-foot button:hover { background: #2a52a8; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background: rgba(19, 32, 45, .96);
  color: #fff;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .nav-links.open { display: flex; }
  .nav-item { display: block; width: 100%; }
  .nav-links a.nav-parent { width: 100%; justify-content: space-between; }
  .nav-menu {
    position: static;
    display: none;
    width: 100%;
    margin: 2px 0 6px;
    padding: 4px 0 6px 12px;
    border: 0;
    border-left: 2px solid rgba(211, 164, 72, .45);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-item.is-open .nav-menu {
    display: block;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-menu::before { display: none; }
  .nav-menu-label { display: none; }
  .nav-menu-sep { margin: 4px 0; background: rgba(255, 255, 255, .12); }
  .nav-links .nav-menu a { padding: 10px 12px; color: #cfd8e0; background: transparent; }
  .nav-links .nav-menu a:hover,
  .nav-links .nav-menu a:focus-visible { color: #fff; background: rgba(255, 255, 255, .06); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); width: 100%; }
  .lang-switch { padding: 12px 0; border: none; justify-content: center; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 590px; }
  .hero-meta { gap: 16px; }
  .hero-meta span { padding: 0; border: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .nav-wrap { height: 68px; }
  .nav-links { top: 68px; }
  .brand-name small { display: none; }
  .hero { min-height: 590px; background-position: 60% center; }
  .hero-inner { padding: 76px 24px; }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 15.5px; }
  .products-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .assist-panel { width: auto; left: 12px; right: 12px; max-width: none; bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 后台发布后的动态内容状态 */
.lang-flag.is-off { opacity: .32; }
.lang-flag.is-off:hover { opacity: .55; }
.products-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-muted);
  text-align: center;
  font-size: 15px;
}

/* 服务客群与合作伙伴 */
.audience-section { background: var(--paper); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.audience-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(19, 32, 45, .04);
}
.audience-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--amber-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
}
.audience-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -.02em;
}
.audience-card p { color: var(--text-muted); font-size: 15.5px; line-height: 1.8; }
.partners-section {
  padding: 38px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.partners-title {
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.partners-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 42px;
}
.partners-list span {
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .86;
}
.partners-list .partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  opacity: .78;
  transition: opacity .2s ease;
}
.partners-list .partner-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter .2s ease;
}
.partners-list .partner-logo:hover { opacity: 1; }
.partners-list .partner-logo:hover img { filter: none; }
@media (max-width: 760px) {
  .audience-grid { grid-template-columns: minmax(0, 1fr); }
  .audience-card { padding: 22px 20px; }
  .partners-list { gap: 14px 26px; }
  .partners-list span { font-size: 14px; }
  .partners-list .partner-logo { height: 28px; }
  .partners-list .partner-logo img { max-width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .partners-list .partner-logo,
  .partners-list .partner-logo img { transition: none; }
}

/* --------------------------------------------------------- 品牌 LOGO 形式 */
.brand-logo {
  display: block;
  height: var(--brand-logo-height, 40px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.brand-is-image,
.brand-is-svg { gap: 0; }
.brand-svg {
  display: flex;
  align-items: center;
  height: var(--brand-logo-height, 40px);
}
.brand-svg svg {
  display: block;
  height: 100%;
  width: auto;
  max-width: 220px;
}
@media (max-width: 900px) {
  .brand-logo,
  .brand-svg,
  .brand-svg svg { max-width: 170px; }
}
@media (max-width: 560px) {
  .brand-logo { height: auto; max-height: 40px; max-width: 132px; }
  .brand-svg { height: 34px; max-width: 132px; }
  .brand-svg svg { max-width: 132px; }
}
