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

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-strong: #f1f3f6;
  --border: #e1e5ea;
  --text: #1f2a37;
  --muted: #5b6776;
  --accent: #2b6bff;
  --accent-strong: #1f4ed8;
}

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

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

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

.container {
  width: min(1440px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 247, 249, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-left: 10px;
}

.lang-btn {
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  background: var(--panel);
  color: var(--muted);
  border: none;
  transition: all 0.2s;
}

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

/* 语言显示控制 */
.en {
  display: none;
}

body.lang-en .zh {
  display: none;
}

body.lang-en .en {
  display: block;
}

/* 兼容 inline-block 等布局 */
body.lang-en span.en {
  display: inline;
}

body.lang-en div.en {
  display: block;
}

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

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
}

.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at top, #e9eef7 0%, transparent 55%);
  position: relative;
}

.hero-with-bg {
  background-image: linear-gradient(to right, rgba(246, 247, 249, 0.98) 35%, rgba(246, 247, 249, 0.6) 100%), url('images/intro-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 12px 0 16px;
  letter-spacing: 0.4px;
}

.lead {
  color: var(--muted);
  font-size: 16px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.ghost {
  background: transparent;
  color: var(--text);
}

.hero-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
}

.panel-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-list {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 64px 0;
}

.section-dark {
  background: var(--panel-strong);
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.one {
  grid-template-columns: 1fr;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 22px;
  min-height: 180px;
}

.media {
  margin: 0 0 14px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  overflow: hidden;
}

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

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card.outline {
  background: transparent;
  border: 1px dashed var(--border);
}

.model-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.list {
  padding-left: 18px;
  color: var(--muted);
  margin: 12px 0 0;
}

.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(43, 107, 255, 0.12), transparent);
}

.carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  animation: slide 18s infinite;
}

.carousel-slide {
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(31, 78, 216, 0.08), transparent);
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.slide-title {
  font-size: 20px;
  font-weight: 600;
}

@keyframes slide {
  0%,
  26% {
    transform: translateX(0);
  }
  33%,
  59% {
    transform: translateX(-100%);
  }
  66%,
  92% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(-200%);
  }
}

.contact-panel {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.contact-row:last-child {
  border-bottom: none;
}

.label {
  color: var(--text);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer-contact {
  margin-top: 8px;
}

.footer-contact p {
  margin: 4px 0;
  line-height: 1.4;
}

.footer-title {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-meta {
  display: flex;
  gap: 16px;
}

/* 高端 PDF 翻页器样式 */
.pdf-viewer-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 0;
}

.pdf-canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  aspect-ratio: 210 / 297; /* A4 比例 */
  border: 1px solid var(--border);
}

.pdf-btn-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border: none;
  width: 50px;
  height: 80px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0.6;
}

.pdf-btn-side:hover:not(:disabled) {
  opacity: 1;
  background: rgba(58, 121, 255, 0.6);
}

.pdf-btn-side:disabled {
  display: none;
}

#prev-page {
  left: 0;
  border-radius: 0 8px 8px 0;
}

#next-page {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.pdf-bottom-info {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.page-info {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  background: var(--panel-strong);
  padding: 4px 12px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .pdf-viewer-wrapper {
    padding: 20px 10px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    flex-direction: row;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0;
    text-align: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: center;
  }

  .carousel-slide {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .carousel-slide img {
    aspect-ratio: 16 / 9;
  }

  .section {
    padding: 40px 0;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

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

  .brand-tagline {
    display: none;
  }

  .site-nav a {
    padding: 4px 6px;
    font-size: 12px;
  }

  .lang-btn {
    padding: 3px 6px;
    font-size: 11px;
  }

  .contact-row {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }
}
