/* 确港贸易 — 全局样式 PRD 5.x / 6.x */
:root {
  --color-primary: #1e3a5f;
  --color-primary-dark: #152a45;
  --color-bg: #ffffff;
  --color-bg-muted: #f5f7fa;
  --color-accent: #ff6b35;
  --color-accent-hover: #e55a2b;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-white: #ffffff;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-btn: 200ms;
  --dur-card: 300ms;
  --dur-reveal: 400ms;
  --header-h: 72px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
  --shadow-hover: 0 12px 40px rgba(30, 58, 95, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-btn) var(--ease);
}

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  margin: 0 0 1em;
  color: var(--color-text);
}

small,
.text-sm {
  font-size: 14px;
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.login-page {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.staff-procurement-entry {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--color-bg-muted);
  border: 1px solid rgba(30, 58, 95, 0.1);
  text-align: center;
}

.staff-procurement-entry p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.staff-procurement-entry .text-sm {
  margin-top: 12px;
  margin-bottom: 0;
}

.auth-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-card {
  padding: 28px 24px 32px;
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.08);
}

.auth-tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--color-bg-muted);
  border-radius: var(--radius);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  color: var(--color-text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--dur-btn) var(--ease), color var(--dur-btn) var(--ease),
    box-shadow var(--dur-btn) var(--ease);
}

.auth-tab:hover {
  color: var(--color-primary);
}

#auth-mode-login:checked ~ .auth-tab-bar .auth-tab--login,
#auth-mode-register:checked ~ .auth-tab-bar .auth-tab--register {
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(30, 58, 95, 0.1);
}

.auth-panel--register {
  display: none;
}

#auth-mode-register:checked ~ .auth-panels .auth-panel--login {
  display: none;
}

#auth-mode-register:checked ~ .auth-panels .auth-panel--register {
  display: block;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-card) var(--ease), box-shadow var(--dur-card) var(--ease);
}

.site-header.is-scrolled {
  background: var(--color-primary);
  box-shadow: var(--shadow);
}

.site-header:not(.is-scrolled) {
  background: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--color-white);
  opacity: 0.92;
}

.logo__img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
  }
}

.header-phone {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform var(--dur-btn) var(--ease), opacity var(--dur-btn) var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--color-primary);
  padding: 24px 20px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  overflow-y: auto;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--color-white);
  padding: 16px;
  font-size: 17px;
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.nav-mobile .btn {
  margin-top: 16px;
  text-align: center;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--dur-btn) var(--ease), color var(--dur-btn) var(--ease),
    transform var(--dur-btn) var(--ease), box-shadow var(--dur-btn) var(--ease);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--color-bg-muted);
  color: var(--color-primary);
}

.btn--ghost:hover {
  background: #e8ecf2;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn--block {
  width: 100%;
}

/* —— Hero（首页多图轮播） —— */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 48px) 20px 88px;
  position: relative;
  background-color: var(--color-primary);
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(
      ellipse 120% 80% at 70% 20%,
      rgba(255, 107, 53, 0.12),
      transparent 55%
    ),
    linear-gradient(
      120deg,
      rgba(30, 58, 95, 0.82) 0%,
      rgba(30, 58, 95, 0.62) 50%,
      rgba(21, 42, 69, 0.78) 100%
    ),
    linear-gradient(185deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%);
  background-size: cover;
  background-position: center;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.hero__chrome {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 30, 52, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__arrow:hover {
  background: rgba(15, 30, 52, 0.65);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero__arrow--prev {
  left: max(12px, env(safe-area-inset-left));
}

.hero__arrow--next {
  right: max(12px, env(safe-area-inset-right));
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 30, 52, 0.45);
}

.hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.hero__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 767px) {
  .hero__arrow {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  .hero__arrow--prev {
    left: 6px;
  }

  .hero__arrow--next {
    right: 6px;
  }
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 0.35em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 767px) {
  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }
}

/* —— Sections —— */
.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--color-bg-muted);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section__head p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* —— Trust —— */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-bottom: 48px;
}

@media (max-width: 767px) {
  .trust-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.stat-card {
  background: var(--color-bg);
  padding: 28px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-accent);
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 15px;
  color: var(--color-text-muted);
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.partner-badge {
  min-width: 120px;
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* —— Value cards —— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur-card) var(--ease), transform var(--dur-card) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

.value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(30, 58, 95, 0.12));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
}

.value-card h3 {
  margin-bottom: 8px;
}

.value-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 16px;
}

/* —— Category / product grid —— */
.grid-cats {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur-card) var(--ease), transform var(--dur-card) var(--ease);
}

.cat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.cat-card__img {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-muted);
  object-fit: cover;
}

.cat-card__body {
  padding: 20px;
}

.cat-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.cat-card__meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* Products page layout */
.layout-products {
  display: grid;
  gap: 32px;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .layout-products {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.sidebar-cats {
  background: var(--color-bg-muted);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.sidebar-cats h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.sidebar-cats a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 15px;
}

.sidebar-cats a:hover,
.sidebar-cats a.is-active {
  background: var(--color-bg);
  color: var(--color-accent);
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .cat-tabs {
    display: none;
  }
}

.cat-tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

.cat-tab:hover,
.cat-tab.is-active {
  background: var(--color-primary);
  color: var(--color-white);
}

.grid-products {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur-card) var(--ease), transform var(--dur-card) var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-card__img {
  aspect-ratio: 1;
  background: var(--color-bg-muted);
  object-fit: cover;
}

.product-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.product-card__spec {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.product-card__body p {
  font-size: 15px;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 16px;
}

/* Product detail */
.product-detail {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 64px;
}

.product-detail__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .product-detail__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-muted);
  box-shadow: var(--shadow);
}

.product-detail__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0 24px;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e8ecf2;
}

.spec-table th {
  width: 120px;
  color: var(--color-text-muted);
  font-weight: 500;
  background: var(--color-bg-muted);
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur-card) var(--ease), transform var(--dur-card) var(--ease);
}

@media (min-width: 768px) {
  .news-item {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}

.news-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.news-item__thumb {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg-muted);
}

.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item__date {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-item h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.article-cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--color-bg-muted);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta p {
  margin-bottom: 16px;
}

/* About page */
.about-block {
  margin-bottom: 48px;
}

.qual-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .qual-grid:not(.qual-grid--two) {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 仅两项资质：两列等宽并整体居中 */
.qual-grid--two {
  max-width: min(100%, 520px);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 32px);
}

@media (min-width: 768px) {
  .qual-grid.qual-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
    gap: 32px;
  }
}

.qual-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(30, 58, 95, 0.1);
  background: var(--color-bg-muted);
  box-shadow: var(--shadow);
}

/* 虚拟证件底图：多层色块模拟纸张与印章，整体模糊 */
.qual-item__mock {
  position: absolute;
  inset: -12%;
  z-index: 0;
  transform: scale(1.06);
  filter: blur(11px);
  opacity: 0.92;
  pointer-events: none;
  background-color: #f3efe6;
  background-image: radial-gradient(
      ellipse 70% 45% at 50% 18%,
      rgba(30, 58, 95, 0.09),
      transparent 55%
    ),
    radial-gradient(circle at 78% 22%, rgba(255, 107, 53, 0.18), transparent 28%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, transparent 35%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 10px,
      rgba(30, 58, 95, 0.045) 10px,
      rgba(30, 58, 95, 0.045) 11px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 36px,
      rgba(180, 170, 150, 0.12) 36px,
      rgba(180, 170, 150, 0.12) 37px
    );
}

.qual-item--v3 .qual-item__mock {
  background-color: #eceef5;
  filter: blur(10px);
  background-image: radial-gradient(
      ellipse 55% 38% at 50% 28%,
      rgba(30, 58, 95, 0.1),
      transparent 58%
    ),
    linear-gradient(120deg, rgba(255, 255, 255, 0.45) 0%, transparent 45%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 8px,
      rgba(30, 58, 95, 0.035) 8px,
      rgba(30, 58, 95, 0.035) 9px
    ),
    repeating-linear-gradient(
      84deg,
      transparent,
      transparent 22px,
      rgba(100, 120, 180, 0.06) 22px,
      rgba(100, 120, 180, 0.06) 23px
    );
}

.qual-item__label {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(30, 58, 95, 0.08);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 40px;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 32px;
  border-radius: var(--radius);
}

.contact-info h2 {
  color: var(--color-white);
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 20px;
  margin-bottom: 4px;
}

.contact-info dd {
  margin: 0;
  font-size: 16px;
}

.contact-info a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.form-group label .req {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #d8dee8;
  border-radius: var(--radius);
  transition: border-color var(--dur-btn) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: none;
  font-size: 15px;
}

.form-feedback.is-success {
  display: block;
  background: #e8f5e9;
  color: #1b5e20;
}

.form-feedback.is-error {
  display: block;
  background: #ffebee;
  color: #b71c1c;
}

.contact-map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(30, 58, 95, 0.12);
  background: var(--color-bg-muted);
}

.contact-map__link {
  display: block;
  line-height: 0;
  outline-offset: 2px;
}

.contact-map__link:hover .contact-map__img,
.contact-map__link:focus-visible .contact-map__img {
  opacity: 0.95;
}

.contact-map__img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--dur-btn) var(--ease);
}

.contact-map__hint {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-top: 1px solid rgba(30, 58, 95, 0.08);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 58, 95, 0.55);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--color-bg);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-hover);
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal__close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg-muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 0 24px;
  font-size: 15px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--color-white);
}

/* 覆盖全局 p / .text-sm 的深色，避免页脚正文与版权条看不清 */
.site-footer p {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer .text-sm {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    /* 三等分：左侧品牌、中间「快速链接」居中、右侧联系方式左对齐 */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: 40px;
  }

  /* 首列收缩为内容宽并靠单元格右侧，缩小与「快速链接」之间的空白，使三列视觉间距更均衡 */
  .footer-grid > div:nth-child(1) {
    justify-self: end;
    width: max-content;
    max-width: 100%;
  }

  .footer-grid > div:nth-child(2) {
    justify-self: center;
    text-align: center;
  }

  .footer-grid > div:nth-child(3) {
    justify-self: start;
    text-align: left;
  }
}

/* 页脚地址单行显示（略缩字号以适配常见屏宽） */
.site-footer .footer-address {
  margin-bottom: 0;
  font-size: clamp(12px, 1.05vw, 14px);
}

@media (min-width: 768px) {
  .site-footer .footer-address {
    white-space: nowrap;
  }
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.page-hero {
  padding: calc(var(--header-h) + 48px) 0 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a5082 100%);
  color: var(--color-white);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* 联系页副标题：单行（窄屏略缩字，仍过宽时可横向轻滑） */
.page-hero p.page-hero__lead--nowrap {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(11px, 1.85vw, 17px);
  padding-left: 12px;
  padding-right: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Utility */
.mt-0 {
  margin-top: 0;
}

.text-center {
  text-align: center;
}

.mb-lg {
  margin-bottom: 32px;
}
