/* ==========================================================================
   上海沪玻门业站点主样式
   加载顺序在 Bootstrap 之后；移动端优先，768px 起覆盖桌面布局。
   ========================================================================== */

:root {
  --bs-primary: #0a8fd8;
  --bs-primary-rgb: 10, 143, 216;
  --brand: #0a8fd8;
  --brand-dark: #086fa8;
  --brand-deep: #0b3d5b;
  --text-main: #1a1a1a;
  --text-sub: #666;
  --bg-soft: #f5f8fb;
  --border-color: #e3e8ee;
  --footer-bg: #0d2738;
  --mobile-nav-height: 62px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin-top: 0;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  color: #ffffff;
  background: var(--brand-dark);
  border-radius: 2px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
  color: #ffffff;
}

.site-main {
  min-height: 50vh;
}

/* 保留与 Bootstrap .container 一致的基础水平留白。
   Bootstrap CDN 偶尔加载失败时，站点依然保持居中，不会贴边或横向错位。 */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}

/* --------------------------------------------------------------------------
   通用按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-brand {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #ffffff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-brand {
  color: var(--brand-dark);
  background: #ffffff;
  border-color: var(--brand);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn-white {
  color: var(--brand-dark);
  background: #ffffff;
  border-color: #ffffff;
}

.btn-white:hover,
.btn-white:focus {
  color: var(--brand-dark);
  background: #eef6fb;
  border-color: #eef6fb;
}

/* --------------------------------------------------------------------------
   顶部信息栏与导航
   -------------------------------------------------------------------------- */
.site-topbar {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--text-main);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--text-main);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-sub {
  margin-top: 3px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--brand-dark);
}

.header-phone:hover {
  color: var(--brand);
}

.header-phone-text {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  cursor: pointer;
}

.menu-toggle-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 19px;
  height: 14px;
}

.menu-toggle-box span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-header.is-menu-open .menu-toggle-box span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle-box span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle-box span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: none;
}

.site-header.is-menu-open .site-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.site-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  border-top: 1px solid #eef1f4;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  color: var(--brand-dark);
  background: var(--bg-soft);
}

/* --------------------------------------------------------------------------
   首屏
   -------------------------------------------------------------------------- */
.home-hero {
  padding: 28px 0 34px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding-left: 10px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-left: 3px solid var(--brand);
}

.hero-title {
  max-width: 700px;
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-slogan {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.hero-intro {
  max-width: 600px;
  margin: 0 0 22px;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.8;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid #dbe4eb;
}

.hero-facts div {
  min-width: 0;
  padding: 0 10px;
  border-right: 1px solid #dbe4eb;
}

.hero-facts div:first-child {
  padding-left: 0;
}

.hero-facts div:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero-facts dt {
  margin-bottom: 2px;
  color: #778692;
  font-size: 14px;
  font-weight: 400;
}

.hero-facts dd {
  margin: 0;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
}

.hero-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  background-color: #dfe8ef;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid #d5e0e8;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero-media-empty {
  background-color: #e6edf2;
}

.hero-note {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -34px 12px 0;
  padding: 13px 15px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--brand);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero-note-label {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

.hero-note strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-note > span:last-child {
  color: var(--text-sub);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   服务保障条
   -------------------------------------------------------------------------- */
.trust-bar {
  padding: 22px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-item + .trust-item {
  padding-top: 15px;
  border-top: 1px solid #eef1f4;
}

.trust-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  background: #f2f8fc;
  border: 1px solid #d5e8f4;
  border-radius: 2px;
}

.trust-item h2 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
}

.trust-item p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   通用区块
   -------------------------------------------------------------------------- */
.section {
  padding: 44px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}

.section-title {
  position: relative;
  margin: 0 0 7px;
  padding-left: 13px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.section-title::before {
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 4px;
  background: var(--brand);
  content: "";
}

.section-sub {
  max-width: 660px;
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.section-more:hover {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   首页：服务卡片
   -------------------------------------------------------------------------- */
.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.capability-card {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--brand);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.capability-no {
  display: block;
  margin-bottom: 13px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.capability-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 700;
}

.capability-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   首页：产品分类
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.category-card:hover {
  color: var(--text-main);
  border-color: #cbdbe6;
}

.category-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f5;
}

.category-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.category-heading-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.category-heading-line strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.category-heading-line svg {
  flex: 0 0 auto;
  color: var(--brand);
}

.category-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   首页：常见问题
   -------------------------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.faq-contact {
  margin-top: 20px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--brand);
}

.faq-contact p {
  margin: 0 0 2px;
  color: var(--text-sub);
  font-size: 14px;
}

.faq-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.faq-contact span {
  display: block;
  color: #7b8994;
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--border-color);
}

.faq-item {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #c5d4df;
  border-radius: 2px;
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  background: var(--brand-dark);
  content: "";
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 0.15s ease;
}

.faq-item[open] .faq-icon::after {
  opacity: 0;
}

.faq-answer {
  padding: 0 28px 18px 0;
}

.faq-answer p {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   咨询条
   -------------------------------------------------------------------------- */
.contact-strip {
  padding: 30px 0;
  color: #ffffff;
  background: var(--brand-deep);
}

.contact-strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-strip-kicker {
  margin: 0 0 5px;
  color: #9ccbe6;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.contact-strip h2 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-strip p {
  max-width: 720px;
  margin: 0;
  color: #c8dce8;
  font-size: 14px;
  line-height: 1.75;
}

.contact-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.contact-strip-actions > span {
  color: #c8dce8;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 36px 0 calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 16px);
  color: #ffffff;
  background: var(--footer-bg);
  border-top: 4px solid var(--brand);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* 移动端已有固定底部导航，页脚只保留公司信息与联系方式，避免重复堆叠 */
.footer-column {
  display: none;
}

.footer-column.footer-contact {
  display: block;
}

.footer-logo-line {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.footer-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-slogan {
  margin: 2px 0 0;
  color: #9fb9c7;
  font-size: 14px;
  line-height: 1.5;
}

.footer-desc {
  margin: 14px 0;
  color: #b8c9d4;
  font-size: 14px;
  line-height: 1.8;
}

.footer-phone {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 7px 14px;
  color: #ffffff;
  border: 1px solid #37536a;
  border-radius: 3px;
}

.footer-phone:hover {
  color: #ffffff;
  border-color: #6fa3c0;
}

.footer-phone span {
  color: #9fb9c7;
  font-size: 14px;
  line-height: 1.4;
}

.footer-phone strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-heading {
  margin: 0 0 10px;
  padding-bottom: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid #2d4658;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c3d3dd;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact address {
  margin: 0;
  font-style: normal;
}

.footer-contact p {
  margin: 0;
  color: #b8c9d4;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d3e1e9;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 26px;
  padding-top: 16px;
  color: #91a8b7;
  font-size: 14px;
  border-top: 1px solid #294152;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #a9bdc9;
  font-size: 14px;
}

.safe-area-bottom {
  height: env(safe-area-inset-bottom);
  background: var(--footer-bg);
}

/* --------------------------------------------------------------------------
   移动端底部导航
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.06);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: var(--mobile-nav-height);
  color: #667783;
  font-size: 14px;
  line-height: 1.2;
}

.mobile-nav-item:hover {
  color: var(--brand-dark);
}

.mobile-nav-item.is-active {
  color: var(--brand);
  font-weight: 600;
}

.mobile-nav-item svg {
  width: 23px;
  height: 23px;
}

body.lightbox-open .mobile-bottom-nav {
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   面包屑与内页标题
   -------------------------------------------------------------------------- */
.breadcrumb-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.breadcrumb-list li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
  color: #6e7f8b;
  line-height: 1.5;
}

.breadcrumb-list li + li::before {
  margin: 0 4px;
  color: #9bacb7;
  content: "/";
}

.breadcrumb-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: #536572;
}

.breadcrumb-list a:hover {
  color: var(--brand-dark);
}

.breadcrumb-list li[aria-current="page"] {
  display: block;
  flex: 0 1 auto;
  max-width: none;
  overflow: hidden;
  color: #86949e;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  padding: 24px 0 27px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.page-hero-intro {
  max-width: 820px;
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.page-hero-meta {
  margin: 12px 0 0;
  color: #7c8a94;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   产品分类页
   -------------------------------------------------------------------------- */
.products-section {
  padding: 20px 0 48px;
}

.products-main {
  min-width: 0;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: calc(44px * 4 + 8px * 3);
  margin-bottom: 18px;
  padding-bottom: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.category-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 3px;
}

.category-tab:hover {
  color: var(--brand-dark);
  border-color: #b9d4e5;
}

.category-tab.is-active {
  color: #ffffff;
  font-weight: 600;
  background: var(--brand);
  border-color: var(--brand);
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #7b8994;
  font-size: 14px;
}

.products-toolbar p {
  margin: 0;
  color: var(--text-sub);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-thumb {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: zoom-in;
}

.product-thumb:focus-visible {
  outline-offset: 3px;
}

.product-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumb:hover .product-media {
  border-color: #bcd3e2;
}

@supports not (aspect-ratio: 4 / 3) {
  .hero-media,
  .category-media,
  .about-media,
  .product-media {
    position: relative;
    height: 0;
    min-height: 0;
    padding-top: 75%;
  }

  .category-media img,
  .product-media img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

.products-empty {
  padding: 44px 20px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
}

.products-empty p {
  margin: 0 0 8px;
  color: var(--text-sub);
  font-size: 15px;
}

.products-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.products-sidebar {
  display: none;
}

.mobile-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 46px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 3px;
}

.pager-btn:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
}

.pager-btn.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.desktop-pager {
  display: none;
}

/* 灯箱 */
.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  touch-action: pan-y pinch-zoom;
}

.lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  background: #111111;
}

.lightbox-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 56px;
  padding: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 6px;
}

.lightbox-next {
  right: 6px;
}

.lightbox.is-single .lightbox-nav {
  display: none;
}

.lightbox-info {
  position: absolute;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  pointer-events: none;
}

.lightbox-counter {
  font-weight: 600;
}

.lightbox-tip {
  color: #b9c5cc;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   服务流程页
   -------------------------------------------------------------------------- */
.process-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
}

.process-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 23px 0;
  border-bottom: 1px solid var(--border-color);
}

.process-caption {
  display: block;
  color: #8c9aa4;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.process-number strong {
  display: block;
  color: var(--brand);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.process-content h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.process-content p {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.service-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 900px;
  margin: 28px auto 0;
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
}

.service-note h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.service-note p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   关于我们
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.about-copy > p {
  margin: 0 0 14px;
  color: #485762;
  font-size: 15px;
  line-height: 1.9;
}

.about-facts {
  margin: 24px 0;
  border-top: 1px solid var(--border-color);
}

.about-facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.about-facts dt {
  color: #7a8994;
  font-size: 14px;
  font-weight: 400;
}

.about-facts dd {
  margin: 0;
  color: #34434e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.about-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 2px;
}

.about-contact-line span {
  color: var(--text-sub);
  font-size: 14px;
}

.about-contact-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 700;
}

.about-visual {
  position: relative;
}

.about-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #e5edf2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.about-address {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -26px 12px 0;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--brand);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.about-address span {
  color: #7b8994;
  font-size: 14px;
}

.about-address strong {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.principle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.principle-item {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--brand);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.principle-no {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.principle-item h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.principle-item p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   新闻列表
   -------------------------------------------------------------------------- */
.news-section {
  padding: 28px 0 48px;
}

.news-container {
  max-width: 960px;
}

.news-list {
  border-top: 1px solid var(--border-color);
}

.news-item {
  border-bottom: 1px solid var(--border-color);
}

.news-item-link {
  display: block;
  padding: 22px 0;
  color: var(--text-main);
}

.news-item-link:hover {
  color: var(--text-main);
}

.news-date {
  display: inline-flex;
  align-items: center;
  color: #7e8d98;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.news-copy {
  display: block;
  margin-top: 5px;
}

.news-copy h2 {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-wrap: balance;
  transition: color 0.15s ease;
}

.news-item-link:hover h2 {
  color: var(--brand-dark);
}

.news-summary {
  display: block;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 3px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

.news-empty {
  padding: 48px 0;
  color: var(--text-sub);
  font-size: 15px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   新闻详情
   -------------------------------------------------------------------------- */
.article-section {
  padding: 28px 0 50px;
}

.article-container {
  max-width: 860px;
}

.article-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  color: #7c8a95;
  font-size: 14px;
}

.article-meta time {
  font-variant-numeric: tabular-nums;
}

.article-lead {
  margin: 18px 0 0;
  padding-left: 14px;
  color: #4d5e69;
  font-size: 16px;
  line-height: 1.85;
  border-left: 3px solid var(--brand);
}

.article-cover {
  margin: 24px 0;
  overflow: hidden;
  background: #f3f5f7;
  border: 1px solid var(--border-color);
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article-content {
  color: #33424d;
  font-size: 16px;
  line-height: 1.95;
}

.article-content h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.article-content h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.article-content p {
  margin: 0 0 17px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content img {
  height: auto;
}

.article-content blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  color: #52626d;
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
}

.article-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

.article-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
}

.article-contact span {
  color: var(--text-sub);
  font-size: 14px;
}

.article-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   平板及桌面布局
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .site-topbar {
    display: block;
    color: #ffffff;
    background: var(--brand-dark);
    font-size: 14px;
  }

  .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
  }

  .topbar-inner p {
    margin: 0;
  }

  .topbar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .topbar-contact a {
    color: #ffffff;
    font-weight: 600;
  }

  .topbar-contact a:hover {
    color: #d9f0fc;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-name {
    font-size: 20px;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 2px;
    margin-left: auto;
  }

  .site-nav-link {
    position: relative;
    min-height: 44px;
    padding: 0 11px;
    color: #34434e;
    font-size: 15px;
    font-weight: 500;
    border-top: 0;
    border-bottom: 2px solid transparent;
  }

  .site-nav-link:hover,
  .site-nav-link.is-active {
    color: var(--brand-dark);
    background: transparent;
    border-bottom-color: var(--brand);
  }

  .header-actions {
    margin-left: 8px;
  }

  .header-phone {
    width: auto;
    min-width: 44px;
    padding: 0 9px;
  }

  .header-phone-text {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: 36px;
  }

  .home-hero {
    padding: 40px 0 44px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-slogan {
    font-size: 18px;
  }

  .hero-note {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    margin: 0;
  }

  .trust-bar {
    padding: 24px 0;
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .trust-item {
    padding: 0 24px;
  }

  .trust-item:first-child {
    padding-left: 0;
  }

  .trust-item:last-child {
    padding-right: 0;
  }

  .trust-item + .trust-item {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--border-color);
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 29px;
    padding-left: 15px;
  }

  .section-sub {
    font-size: 15px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .capability-card {
    padding: 22px;
  }

  .category-grid {
    gap: 18px;
  }

  .category-body {
    padding: 16px;
  }

  .category-heading-line strong {
    font-size: 18px;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
    gap: 48px;
  }

  .faq-item summary {
    font-size: 16px;
  }

  .contact-strip {
    padding: 36px 0;
  }

  .contact-strip-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
  }

  .contact-strip-actions {
    justify-content: flex-end;
  }

  .contact-strip-actions > span {
    flex-basis: 100%;
    text-align: right;
  }

  .site-footer {
    padding: 42px 0 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-column {
    display: block;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding: 14px 0;
  }

  .footer-bottom a {
    min-height: 32px;
  }

  .mobile-bottom-nav {
    display: none;
  }

  .safe-area-bottom {
    height: 0;
  }

  .breadcrumb-list a {
    min-height: 36px;
  }

  .page-hero {
    padding: 34px 0 38px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero-intro {
    font-size: 16px;
  }

  .products-section {
    padding: 32px 0 62px;
  }

  .products-layout {
    display: grid;
    grid-template-columns: 2fr 8fr;
    align-items: start;
    gap: 24px;
  }

  .category-tabs {
    display: none;
  }

  .products-sidebar {
    position: sticky;
    top: 88px;
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .sidebar-title {
    margin: 0;
    padding: 13px 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    background: var(--brand-dark);
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 46px;
    padding: 0 14px;
    color: #3b4b56;
    font-size: 14px;
    border-bottom: 1px solid #eef1f4;
  }

  .sidebar-link svg {
    flex: 0 0 auto;
    color: #91a4b1;
  }

  .sidebar-link:hover {
    color: var(--brand-dark);
    background: var(--bg-soft);
  }

  .sidebar-link.is-active {
    color: var(--brand-dark);
    font-weight: 600;
    background: var(--bg-soft);
    box-shadow: inset 3px 0 0 var(--brand);
  }

  .sidebar-link.is-active svg {
    color: var(--brand);
  }

  .sidebar-consult {
    padding: 14px;
    background: #fafcfd;
  }

  .sidebar-consult strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
  }

  .sidebar-consult span {
    display: block;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.6;
  }

  .sidebar-consult a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--brand-dark);
    font-size: 17px;
    font-weight: 700;
  }

  .products-toolbar {
    margin-bottom: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .mobile-pager {
    display: none;
  }

  .desktop-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
  }

  .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    color: #3d4d58;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 3px;
  }

  .page-number:hover {
    color: var(--brand-dark);
    border-color: var(--brand);
  }

  .page-number.is-current {
    color: #ffffff;
    font-weight: 600;
    background: var(--brand);
    border-color: var(--brand);
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
  }

  .lightbox-prev {
    left: 20px;
  }

  .lightbox-next {
    right: 20px;
  }

  .lightbox-image {
    max-height: calc(100vh - 150px);
  }

  .lightbox-info {
    bottom: 20px;
  }

  .process-step {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 26px;
    padding: 28px 0;
  }

  .process-number strong {
    font-size: 52px;
  }

  .process-caption {
    font-size: 14px;
  }

  .process-content h2 {
    font-size: 22px;
  }

  .service-note {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 48px;
  }

  .about-copy > p {
    font-size: 16px;
  }

  .about-visual {
    position: sticky;
    top: 96px;
  }

  .about-address {
    margin: -30px 18px 0;
  }

  .principle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .news-section {
    padding: 36px 0 62px;
  }

  .news-item-link {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0;
  }

  .news-date {
    padding-top: 4px;
  }

  .news-copy {
    margin-top: 0;
  }

  .news-copy h2 {
    font-size: 22px;
  }

  .news-summary {
    font-size: 15px;
  }

  .article-section {
    padding: 36px 0 64px;
  }

  .article-header h1 {
    font-size: 34px;
  }

  .article-lead {
    font-size: 17px;
  }

  .article-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .article-contact {
    width: auto;
  }
}

@media (min-width: 992px) {
  .header-phone-text {
    display: inline;
    margin-left: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }

  .header-phone {
    padding: 0 11px;
    border: 1px solid #d7e7f1;
    background: #f7fbfe;
    border-radius: 3px;
  }

  .header-actions {
    margin-left: 18px;
  }

  .site-nav-link {
    padding: 0 14px;
  }

  .hero-title {
    font-size: 38px;
  }

  .home-hero {
    padding: 48px 0 52px;
  }

  .capability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-card:hover .category-heading-line svg {
    color: var(--brand-dark);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
  }

  .lightbox-stage {
    padding: 0 72px;
  }

  .lightbox-prev {
    left: 28px;
  }

  .lightbox-next {
    right: 28px;
  }

  .lightbox-nav {
    width: 48px;
    height: 64px;
  }
}

/* 页面进入时为键盘用户保留清晰焦点，不使用大幅动画 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
