:root {
  --primary: #0e2a66;
  --secondary: #00a8c9;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

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

.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 128px;
}

.brand img {
  height: 108px;
  width: auto;
}

.nav {
  display: flex;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.nav a.active,
.nav a:hover {
  color: #fff;
  background: var(--primary);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 30px 0;
}

.hero-content,
.hero-image {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-content {
  padding: 28px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.2;
  color: var(--primary);
}

.hero p {
  margin: 0 0 12px;
  color: var(--muted);
}

.btn-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
}

.btn.ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.section {
  margin: 20px 0;
}

#home-contact {
  scroll-margin-top: 140px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section h2 {
  margin: 0;
  color: var(--primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #fff;
}

.card-body {
  padding: 12px 14px 14px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.detail h1 {
  margin-top: 0;
  color: var(--primary);
}

.meta {
  margin: 8px 0 16px;
  color: var(--muted);
}

.spec-list {
  margin: 0;
  padding-left: 16px;
}

.spec-list li {
  margin-bottom: 8px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.media-grid img {
  border-radius: 10px;
  border: 1px solid var(--line);
}

.media-single img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.contact-list p {
  margin: 10px 0;
}

.home-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 560px;
}

.home-contact p {
  margin: 8px 0;
}

.footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  padding: 18px 0 24px;
}

.footer p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer .icp a {
  color: var(--muted);
}

.contact-rail {
  position: fixed;
  right: 12px;
  top: 42%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  z-index: 45;
}

.contact-rail button,
.rail-trigger {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
}

.contact-rail button:hover,
.rail-trigger:hover {
  background: var(--secondary);
}

.rail-item {
  position: relative;
}

.rail-trigger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  padding: 0;
}

.rail-popup {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.16);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.rail-popup p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text);
  word-break: break-word;
}

.rail-item:hover .rail-popup,
.rail-item:focus-within .rail-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(-2px);
}

.placeholder {
  border: 1px dashed #9ca3af;
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  padding: 12px;
}

.table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.table-card h3 {
  margin: 4px 0 10px;
  color: var(--primary);
}

.table-scroll {
  overflow: auto;
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 13px;
}

.catalog-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  background: #fff;
  white-space: pre-wrap;
}

@media (max-width: 960px) {
  .hero,
  .detail,
  .about-layout,
  .home-contact {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-end;
  }

  .brand img {
    height: 86px;
  }
}
