/* 企业官网静态样式 — 简洁、易读、适合备案展示 */
:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-muted: #5c6b7e;
  --color-accent: #0d5c8c;
  --color-accent-hover: #094a73;
  --color-border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(13, 92, 140, 0.08);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.header-auth__guest a {
  color: var(--color-muted);
  font-weight: 600;
  text-decoration: none;
}

.header-auth__guest a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.header-auth__sep {
  margin: 0 0.15rem;
  color: #cbd5e1;
  user-select: none;
}

.header-auth__user {
  color: var(--color-text);
  font-weight: 600;
  max-width: min(10rem, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-auth__out {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.header-auth__out:hover {
  background: rgba(13, 92, 140, 0.08);
}

.logo {
  font-weight: 700;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
  max-width: min(100%, 20rem);
}
.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: var(--color-muted);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0;
}
.nav-main a:hover,
.nav-main a.active {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  background: linear-gradient(135deg, #0d5c8c 0%, #0a4a6e 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

.hero p {
  margin: 0;
  opacity: 0.92;
  max-width: 36em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.page-lead {
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 42em;
}

.content-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.content-block h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--color-text);
}

.content-block h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.content-block p,
.content-block li {
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

.content-block ul {
  margin: 0;
  padding-left: 1.25rem;
}

.form-page {
  max-width: 420px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(13, 92, 140, 0.35);
  border-color: var(--color-accent);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  background: var(--color-accent);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 1rem;
  text-align: center;
}

.form-legal {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
  text-align: center;
}

.form-legal a {
  font-weight: 600;
}

.footer-legal {
  margin: 0.5rem 0 0 !important;
}

.footer-legal a {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

.form-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.form-msg--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-msg--ok {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-inner p {
  margin: 0.35rem 0;
}

/* 产品列表 */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  border-color: rgba(13, 92, 140, 0.35);
  box-shadow: 0 8px 28px rgba(13, 92, 140, 0.12);
  text-decoration: none;
}

.product-card__thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: #e8eef4;
}

.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.03);
}

.product-card__cat {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__sku {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: ui-monospace, Consolas, monospace;
}

.product-card__name {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.35;
}

.product-card__spec {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
}

.product-card__summary {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  flex: 1;
}

.product-card__cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.product-card:hover .product-card__cta {
  text-decoration: underline;
}

/* 产品详情 */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.detail-article {
  margin-bottom: 2rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.detail-hero__visual {
  position: relative;
  min-height: 220px;
  background: #e8eef4;
  overflow: hidden;
}

.detail-hero__img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.detail-hero__meta {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(13, 92, 140, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.detail-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.25;
}

.detail-sku {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.detail-sku code {
  font-size: 0.9em;
  background: var(--color-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.detail-lead {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.detail-body h2 {
  margin-top: 0;
}

.detail-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.5rem;
}

.detail-specs dt {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

.detail-specs dd {
  margin: 0;
  color: var(--color-muted);
}

.detail-disclaimer {
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-bottom: 0 !important;
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent) !important;
  border: 2px solid var(--color-accent);
}

.btn--ghost:hover {
  background: rgba(13, 92, 140, 0.08);
}

.detail-not-found .page-title {
  margin-bottom: 0.75rem;
}

@media (max-width: 720px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero__visual {
    min-height: 160px;
  }

  .detail-hero__img {
    min-height: 160px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

  .nav-main.is-open {
    display: flex;
  }

  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
