:root {
  --red: #e21d24;
  --orange: #f0a020;
  --ink: #142033;
  --muted: #697586;
  --line: #edf0f5;
  --bg: #f6f8fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  padding-bottom: 72px;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

html.preview-open,
body.preview-open {
  overflow: hidden;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(237, 240, 245, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand span {
  color: #111;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
}

.top-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  white-space: nowrap;
}

.top-phone .phone-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.top-phone em {
  display: grid;
  gap: 1px;
  min-width: 92px;
  color: #555;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-align: left;
}

.top-phone em span {
  display: block;
}

.hero {
  position: relative;
  min-height: 0;
  aspect-ratio: 1920 / 640;
  overflow: hidden;
  margin: 12px 18px;
  border-radius: 14px;
  --hero-text-left: 20px;
  --hero-text-right: 20px;
  --hero-text-bottom: 34px;
  background:
    radial-gradient(circle at 82% 10%, rgba(226, 29, 36, 0.18), transparent 30%),
    linear-gradient(145deg, #fff 0%, #eef5fb 68%, #e7eef6 100%);
}

.hero-bg,
.hero-bg .slide {
  position: absolute;
  inset: 0;
}

.hero-bg .slide {
  opacity: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 0.45s ease;
}

.hero-bg .slide.active {
  opacity: 1;
}

.hero-content {
  position: absolute;
  z-index: 2;
  right: var(--hero-text-right);
  bottom: var(--hero-text-bottom);
  left: var(--hero-text-left);
  display: block;
  padding: 0;
}

.hero-content p {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-content span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  background: rgba(226, 29, 36, 0.25);
  border-radius: 999px;
  cursor: pointer;
}

.hero-dots span.active {
  width: 24px;
  background: var(--red);
}

.section {
  padding: 30px 16px 6px;
}

.section-title {
  position: relative;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-title h2 {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.more-link {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
}

.more-link span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: #a9adb3;
  border-radius: 50%;
  line-height: 1;
}

.about-card,
.contact-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(31, 45, 61, 0.07);
}

.about-card {
  color: #334155;
  font-size: 15px;
  line-height: 1.9;
}

.about-card p {
  margin: 0 0 10px;
  text-indent: 2em;
}

.about-panel,
.contact-panel {
  display: none;
}

.about-panel.active,
.contact-panel.active {
  display: block;
}

.about-video-carousel,
.about-honor-carousel {
  position: relative;
  min-height: 300px;
  margin-top: 18px;
  padding: 8px 0 34px;
  overflow: hidden;
}

.about-honor-carousel {
  margin-top: 0;
}

.about-media-stage {
  position: relative;
  height: 250px;
}

.about-media-item {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 62vw;
  min-height: 210px;
  overflow: hidden;
  opacity: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(31, 45, 61, 0.07);
  transform: translateX(-50%) scale(0.82);
  transition: all 0.35s ease;
  z-index: 1;
}

.about-media-item.is-active {
  top: 0;
  width: 72vw;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  z-index: 3;
}

.about-media-item.is-prev {
  opacity: 0.32;
  transform: translateX(-112%) scale(0.82);
  z-index: 2;
}

.about-media-item.is-next {
  opacity: 0.32;
  transform: translateX(12%) scale(0.82);
  z-index: 2;
}

.about-media-item img,
.about-media-item video {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #f5f7fa;
}

.about-video-item h3 {
  margin: 10px 12px 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.about-video-carousel .product-arrow,
.about-honor-carousel .product-arrow {
  top: 98px;
}

.about-video-prev,
.about-honor-prev {
  left: 0;
}

.about-video-next,
.about-honor-next {
  right: 0;
}

.mobile-map-card p {
  margin: 8px 0 0;
  color: var(--muted);
  text-indent: 0;
}

.map-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.map-actions a {
  padding: 10px 12px;
  color: var(--red);
  background: rgba(226, 29, 36, 0.08);
  border-radius: 12px;
  text-align: center;
}

.scroll-list {
  display: flex;
  gap: 14px;
  margin: 0 -16px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.mobile-product-tabs {
  display: flex;
  gap: 0;
  margin: 0 -16px 16px;
  padding-left: 16px;
  overflow-x: auto;
  background: #f1f1f1;
}

.about-tabs,
.contact-tabs {
  background: transparent;
}

.mobile-product-tabs button {
  flex: 0 0 auto;
  min-width: 98px;
  height: 48px;
  padding: 0 18px;
  color: #111827;
  background: transparent;
  border: 0;
  border-bottom: 0;
  font-size: 15px;
  box-shadow: inset 0 -2px 0 transparent;
}

.mobile-product-tabs button.active {
  color: var(--red);
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--red);
}

.mobile-product-carousel {
  position: relative;
  min-height: 330px;
  padding: 10px 0 38px;
  overflow: hidden;
}

.mobile-product-stage {
  position: relative;
  height: 252px;
}

.mobile-product-item {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 62vw;
  overflow: hidden;
  opacity: 0;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(31, 45, 61, 0.07);
  transform: translateX(-50%) scale(0.82);
  transition: all 0.35s ease;
  z-index: 1;
}

.mobile-product-item.is-active {
  top: 0;
  width: 76vw;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  z-index: 3;
}

.mobile-product-item.is-prev {
  opacity: 0.42;
  transform: translateX(-112%) scale(0.82);
  z-index: 2;
}

.mobile-product-item.is-next {
  opacity: 0.42;
  transform: translateX(12%) scale(0.82);
  z-index: 2;
}

.mobile-product-item .card-title {
  display: block;
  height: 40px;
  padding: 11px 14px 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-product-item .cover {
  height: 212px;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: #fff;
}

.mobile-product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mobile-product-item .body {
  display: none;
  padding: 14px;
  background: #fff;
  border-radius: 0 0 18px 18px;
}

.mobile-solution-carousel,
.mobile-news-carousel {
  min-height: 302px;
}

.mobile-solution-carousel .mobile-product-stage,
.mobile-news-carousel .mobile-product-stage {
  height: 252px;
}

.mobile-solution-item,
.mobile-news-item {
  min-height: 0;
}

.mobile-solution-item .cover,
.mobile-news-item .cover {
  height: 212px;
}

.mobile-solution-item .body,
.mobile-news-item .body {
  min-height: 152px;
}

.mobile-solution-item p,
.mobile-news-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mobile-news-item time {
  display: block;
  margin-top: 10px;
  color: #9aa3af;
  font-size: 12px;
}

.mobile-solution-item.is-prev .body,
.mobile-solution-item.is-next .body,
.mobile-news-item.is-prev .body,
.mobile-news-item.is-next .body {
  opacity: 0;
}

.mobile-solution-item.is-prev,
.mobile-solution-item.is-next,
.mobile-news-item.is-prev,
.mobile-news-item.is-next {
  opacity: 0;
  pointer-events: none;
}

.mobile-solution-carousel .mobile-product-item.is-active,
.mobile-news-carousel .mobile-product-item.is-active {
  width: 70vw;
}

.mobile-solution-carousel .solution-prev,
.mobile-news-carousel .news-prev {
  left: 0;
}

.mobile-solution-carousel .solution-next,
.mobile-news-carousel .news-next {
  right: 0;
}

.mobile-product-item h3,
.solution-card h3,
.news-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.mobile-product-item p,
.solution-card p,
.news-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.mobile-product-item:not(.mobile-solution-item):not(.mobile-news-item) p {
  max-height: none;
  overflow: visible;
}

.product-arrow {
  position: absolute;
  top: 112px;
  z-index: 6;
  width: 34px;
  height: 64px;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  border: 0;
  border-radius: 4px;
  font-size: 42px;
  line-height: 1;
}

.product-prev {
  left: 0;
}

.product-next {
  right: 0;
}

.mobile-product-dots {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mobile-product-dots span {
  width: 14px;
  height: 4px;
  background: #c7c7c7;
  border-radius: 99px;
}

.mobile-product-dots span.active {
  width: 24px;
  background: var(--red);
}

.solution-section {
  padding-top: 34px;
}

.solution-list,
.news-list {
  display: grid;
  gap: 12px;
}

.solution-card,
.news-card {
  display: block;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.news-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
}

.news-card .cover {
  height: 86px;
  overflow: hidden;
  background: linear-gradient(135deg, #d8e0e8, #f7f8fa);
  border-radius: 14px;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card time {
  display: block;
  margin-top: 10px;
  color: #9aa3af;
  font-size: 12px;
}

.contact-card p {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card p:last-child {
  border-bottom: 0;
}

.contact-card strong {
  color: #111827;
}

.contact-card span,
.contact-card a {
  color: var(--muted);
}

.message-form {
  display: none;
}

.message-form.active {
  display: grid;
  gap: 12px;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.message-form textarea {
  min-height: 120px;
  resize: vertical;
}

.message-form button {
  height: 44px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 12px;
  font-size: 15px;
}

.message-form span {
  color: var(--muted);
  font-size: 13px;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(237, 240, 245, 0.95);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(31, 45, 61, 0.16);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  padding: 13px 0;
  color: #4b5563;
  text-align: center;
  font-size: 12px;
}

.bottom-nav a.active {
  color: var(--red);
  font-weight: 700;
  background: rgba(226, 29, 36, 0.06);
}

.empty {
  padding: 18px;
  color: var(--muted);
  background: #fff;
  border-radius: 16px;
}

.detail-page {
  display: none;
}

.detail-page.is-active {
  display: block;
}

.breadcrumb {
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.8;
}

.breadcrumb a {
  color: var(--ink);
}

.detail-content {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(31, 45, 61, 0.07);
}

.detail-content h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
}

.detail-content img,
.detail-content video {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #f5f7fa;
  border-radius: 14px;
}

.detail-content p,
.detail-content .rich-text {
  color: #334155;
  font-size: 15px;
  line-height: 1.9;
}

.product-image-gallery {
  margin: 18px 0;
}

.product-image-gallery h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
}

.detail-content .product-image-gallery img {
  display: block;
  width: 100%;
  max-height: none;
  margin-bottom: 12px;
  cursor: zoom-in;
}

.detail-content > img {
  cursor: zoom-in;
}

.mobile-image-preview {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 2147483647 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.86);
}

.mobile-image-preview.is-open {
  display: flex !important;
}

.mobile-image-preview img {
  display: block;
  width: 100%;
  max-width: 100vw;
  max-height: 92vh;
  object-fit: contain;
  background: transparent;
  touch-action: none;
  transform-origin: center center;
}

.mobile-image-preview button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 34px;
}

.mobile-toast {
  position: fixed;
  right: 24px;
  bottom: 92px;
  left: 24px;
  z-index: 90;
  padding: 12px 14px;
  color: #fff;
  text-align: center;
  background: rgba(20, 32, 51, 0.88);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.detail-content time {
  display: block;
  margin-bottom: 14px;
  color: #9aa3af;
  font-size: 13px;
}
