:root {
  --bg: #eef3f8;
  --bg-2: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --surface-strong: #0f274a;
  --line: rgba(16, 36, 61, 0.10);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #10243d;
  --muted: #607089;
  --muted-light: rgba(255, 255, 255, 0.72);
  --primary: #123e78;
  --primary-2: #ff8a1f;
  --accent: #0fb5a5;
  --shadow: 0 20px 50px rgba(16, 36, 61, 0.10);
  --shadow-strong: 0 26px 70px rgba(7, 18, 36, 0.28);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 31, 0.12), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(15, 181, 165, 0.10), transparent 25%),
    linear-gradient(180deg, #eef3f8 0%, #f7f9fc 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

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

::selection {
  background: rgba(255, 138, 31, 0.24);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #0b1d38;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.topbar-left,
.topbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(247, 249, 252, 0.82);
  border-bottom: 1px solid rgba(16, 36, 61, 0.08);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2b67bc);
  box-shadow: 0 16px 32px rgba(18, 62, 120, 0.28);
}

.brand-text strong,
.footer-brand h3 {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 10px 2px;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-cta,
.btn,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta,
.btn {
  background: linear-gradient(135deg, var(--primary), #2c68bc);
  color: #fff;
  box-shadow: 0 16px 28px rgba(18, 62, 120, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: rgba(16, 36, 61, 0.18);
}

.nav-cta:hover,
.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(16, 36, 61, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
}

.hero {
  padding: 28px 0 22px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.hero-board {
  border-radius: 30px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  padding: 38px;
  background:
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #0d2447 0%, #123e78 52%, #0d274e 100%);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -90px -95px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 138, 31, 0.25), transparent 66%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-desc {
  margin: 18px 0 0;
  max-width: 40rem;
  font-size: 1.06rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.trust-item strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.hero-board {
  display: grid;
  gap: 18px;
}

.hero-board-card,
.about-card,
.form-card,
.product-card,
.feature-card,
.service-card,
.project-card,
.review-card,
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-board-card {
  padding: 26px;
  border-radius: 30px;
}

.hero-board-card h3 {
  margin: 8px 0 10px;
  font-size: 1.34rem;
}

.hero-board-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  line-height: 1.6;
}

.check-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 181, 165, 0.12);
  color: var(--accent);
  font-weight: 900;
}

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

.hero-board-chip {
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(18, 62, 120, 0.05), rgba(18, 62, 120, 0.02)),
    #fff;
  border: 1px solid rgba(16, 36, 61, 0.08);
}

.hero-board-chip strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.hero-board-chip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  position: relative;
  z-index: 1;
  padding: 18px 0 54px;
  scroll-margin-top: 110px;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(240, 245, 250, 0.74));
}

.section-quote {
  background:
    radial-gradient(circle at top right, rgba(255, 138, 31, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.40));
}

.feature-strip {
  padding-top: 10px;
}

.feature-grid,
.grid-3,
.news-grid,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

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

.feature-card,
.product-card,
.service-card,
.project-card,
.review-card,
.news-card,
.form-card,
.about-card {
  border-radius: var(--radius);
}

.feature-card {
  padding: 22px;
  min-height: 174px;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -48px -58px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18, 62, 120, 0.10), transparent 64%);
}

.feature-index,
.section-pill,
.data-chip,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  border: 1px solid rgba(16, 36, 61, 0.10);
  background: rgba(16, 36, 61, 0.04);
}

.feature-card h3,
.product-card h3,
.service-card h3,
.project-card h3,
.review-card h3,
.news-card h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}

.feature-card p,
.product-card p,
.service-card p,
.project-card p,
.review-card p,
.news-card p,
.section-head p,
.section-lead {
  color: var(--muted);
  line-height: 1.8;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.section-head p {
  margin: 0;
  max-width: 44rem;
}

.section-lead {
  max-width: 50rem;
  margin: 0 0 18px;
}

.product-card,
.service-card,
.project-card,
.review-card,
.news-card,
.form-card,
.about-card {
  padding: 22px;
}

.product-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.card-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.product-center-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.product-workbench,
.product-detail-panel {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-workbench {
  padding: 22px;
}

.product-workbench-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.product-workbench-head h3 {
  margin: 10px 0 0;
  font-size: 1.32rem;
}

.product-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.product-tab {
  flex: 1 1 180px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.product-tab strong {
  display: block;
  font-size: 1rem;
}

.product-tab span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.product-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 62, 120, 0.24);
}

.product-tab.active {
  background: linear-gradient(135deg, rgba(18, 62, 120, 0.1), rgba(255, 138, 31, 0.1));
  border-color: rgba(18, 62, 120, 0.32);
  box-shadow: 0 18px 30px rgba(18, 62, 120, 0.1);
}

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

.product-picker-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-picker-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 62, 120, 0.22);
}

.product-picker-card.active {
  border-color: rgba(18, 62, 120, 0.34);
  box-shadow: 0 22px 44px rgba(18, 62, 120, 0.14);
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.product-card-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 62, 120, 0.06);
  color: var(--primary);
  font-size: 0.8rem;
}

.product-detail-panel {
  position: sticky;
  top: 126px;
  padding: 24px;
}

.product-detail-card h3 {
  margin: 12px 0 10px;
  font-size: 1.52rem;
}

.product-detail-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
}

.spec-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 36, 61, 0.08);
  background: var(--surface-soft);
}

.spec-box span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.spec-box strong {
  display: block;
  margin-top: 7px;
  font-size: 1rem;
  line-height: 1.4;
}

.product-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.product-feature-list span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 181, 165, 0.1);
  color: #0d6e64;
  font-size: 0.88rem;
}

.product-detail-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(18, 62, 120, 0.08), rgba(255, 138, 31, 0.08));
  color: var(--primary);
  font-weight: 700;
  line-height: 1.6;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.product-detail-page {
  margin-top: 20px;
}

.product-detail-page-shell {
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.96));
  box-shadow: var(--shadow);
}

.product-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.product-detail-breadcrumb {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.product-detail-hero h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.product-detail-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.product-detail-hero-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-detail-hero-specs > div {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(16, 36, 61, 0.08);
}

.product-detail-hero-specs strong {
  display: block;
  font-size: 1.05rem;
}

.product-detail-hero-specs span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.product-detail-main,
.product-detail-side {
  display: grid;
  gap: 16px;
}

.detail-block {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(16, 36, 61, 0.08);
}

.detail-block h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.related-product-list {
  display: grid;
  gap: 10px;
}

.related-product-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(16, 36, 61, 0.08);
  color: var(--text);
  cursor: pointer;
}

.related-product-card strong {
  display: block;
  font-size: 0.98rem;
}

.related-product-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.timeline-grid {
  display: grid;
  gap: 14px;
}

.timeline-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.timeline-number {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2b67bc);
}

.timeline-card h3 {
  margin: 3px 0 6px;
  font-size: 1.04rem;
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-panel {
  display: grid;
  gap: 18px;
}

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

.stat-box {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(16, 36, 61, 0.08);
}

.stat-box strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.stat-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

.service-card {
  min-height: 188px;
}

.service-step {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 62, 120, 0.08), rgba(255, 138, 31, 0.10));
  color: var(--primary);
  font-weight: 900;
}

.project-card {
  min-height: 238px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(18, 62, 120, 0.06);
  color: var(--primary);
  font-size: 0.8rem;
}

.project-result {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 181, 165, 0.08);
  color: #0d6e64;
  font-weight: 700;
}

.quote {
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
}

.quote-author {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.quote-author strong {
  display: block;
  font-size: 1rem;
}

.quote-author small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.inquiry-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
}

.contact-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid rgba(16, 36, 61, 0.08);
  color: var(--text);
  line-height: 1.7;
}

.helper-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.admin-input,
.admin-textarea {
  width: 100%;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea,
.admin-textarea {
  min-height: 126px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-input:focus,
.admin-textarea:focus {
  border-color: rgba(18, 62, 120, 0.5);
  box-shadow: 0 0 0 4px rgba(18, 62, 120, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.news-card h3 {
  min-height: 3rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, #0b1d38 0%, #081427 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.footer-brand .brand-mark {
  flex: none;
}

.footer-brand p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

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

.copyright {
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.admin-link {
  color: #fff;
  font-weight: 700;
}

.tag {
  color: var(--primary);
  font-weight: 700;
}

.data-chip {
  color: var(--primary);
  font-weight: 700;
}

.section[id] {
  scroll-margin-top: 110px;
}

.admin-page {
  padding: 28px 0 56px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar,
.admin-main,
.admin-box,
.admin-preview {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 36, 61, 0.10);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.admin-sidebar {
  padding: 20px;
}

.admin-sidebar h2 {
  margin: 0 0 10px;
}

.admin-menu {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-menu button,
.admin-mini-actions button {
  border: 1px solid rgba(16, 36, 61, 0.12);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
}

.admin-menu button.active {
  background: linear-gradient(135deg, var(--primary), #2b67bc);
  color: #fff;
  border-color: transparent;
}

.admin-main {
  padding: 20px;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-box,
.admin-preview {
  padding: 18px;
}

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

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 36, 61, 0.10);
  background: rgba(247, 249, 252, 0.90);
}

.admin-item-top,
.admin-array-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-mini-actions button {
  padding: 8px 10px;
}

.admin-preview {
  margin-top: 18px;
}

.preview-area {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 61, 0.12);
  background: #fff;
}

.preview-frame {
  width: 100%;
  min-height: 520px;
  border: 0;
}

.helper-note,
.preview-note {
  color: var(--muted);
}

.admin-input,
.admin-textarea {
  background: #fff;
}

@media (max-width: 1100px) {
  .hero-shell,
  .about-grid,
  .inquiry-shell,
  .footer-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .grid-3,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
    padding: 12px 0 6px;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero-copy {
    padding: 28px;
  }

  .feature-grid,
  .grid-3,
  .grid-2,
  .news-grid,
  .field-row,
  .stats-grid,
  .hero-board-grid,
  .product-center-shell,
  .product-collection,
  .product-spec-grid,
  .product-detail-page-shell,
  .product-detail-hero,
  .product-detail-layout,
  .product-detail-hero-specs {
    grid-template-columns: 1fr;
  }

  .product-workbench-head,
  .product-detail-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-tab {
    flex-basis: 100%;
  }

  .product-detail-panel {
    position: static;
  }

  .product-detail-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .copyright {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .hero {
    padding-top: 16px;
  }

  .hero-copy,
  .hero-board-card,
  .feature-card,
  .product-card,
  .service-card,
  .project-card,
  .review-card,
  .news-card,
  .form-card,
  .about-card,
  .timeline-card {
    padding: 18px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .nav-cta {
    width: 100%;
    margin-left: 0;
  }

  .topbar-left,
  .topbar-right {
    gap: 8px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .product-workbench,
  .product-detail-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .product-detail-page-shell {
    padding: 18px;
    border-radius: 18px;
  }
}


/* 门户卡片现在连接数据库生成的列表页与详情页 */
.portal-link-card {
  color: inherit;
  text-decoration: none;
}

.portal-link-card:hover h3,
.portal-link-card:hover strong {
  color: var(--accent, #f26a21);
}
