/* ========== 基础重置 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a2b40;
  background: #f4f7fb;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ========== 主页面 ========== */
.hero {
  position: relative;
  padding: 56px 20px 64px;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(46, 142, 255, 0.55), transparent 60%),
    radial-gradient(900px 360px at 0% 100%, rgba(110, 70, 220, 0.45), transparent 60%),
    linear-gradient(135deg, #0a2540 0%, #14386b 50%, #1e4ba0 100%);
  z-index: -1;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 14px 0 8px;
  background: linear-gradient(180deg, #fff 0%, #c5d8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px calc(40px + 60px);
}

.grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #14386b;
  position: relative;
  padding-left: 12px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2e8eff, #6e46dc);
}
.grid-count {
  font-size: 12px;
  color: #6b7d99;
  background: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(20,56,107,0.06);
}

/* ========== 搜索 ========== */
.search-sticky {
  position: sticky;
  top: 8px;
  z-index: 20;
  margin: 8px -16px 16px;
  padding: 10px 32px 14px;
  background: rgba(244,247,251,0.2);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    0 1px 2px rgba(20,56,107,0.06),
    0 8px 24px rgba(20,56,107,0.12),
    0 24px 48px rgba(20,56,107,0.06);
  transition: box-shadow 0.25s ease, margin 0.25s ease;
}
.search-sticky.is-scrolled {
  margin: 12px -16px 18px;
  box-shadow:
    0 1px 2px rgba(20,56,107,0.08),
    0 12px 32px rgba(20,56,107,0.16),
    0 32px 64px rgba(20,56,107,0.08);
}
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(20,56,107,0.08);
  border-radius: 12px;
  padding: 0 12px;
  box-shadow: 0 2px 10px rgba(20,56,107,0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-bar:focus-within {
  border-color: rgba(46,142,255,0.5);
  box-shadow: 0 2px 14px rgba(46,142,255,0.18);
}
.search-icon {
  color: #8a9ab5;
  flex-shrink: 0;
}
#searchInput {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: #1a2b40;
  padding: 12px 10px;
  min-width: 0;
}
#searchInput::placeholder { color: #a3b3cc; }
#searchInput::-webkit-search-cancel-button { display: none; }
.search-clear {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef2f8;
  color: #6b7d99;
  font-size: 16px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-bar.has-value .search-clear { display: flex; }
.search-clear:active { background: #dde5f0; }

.search-empty {
  text-align: center;
  padding: 48px 20px;
  color: #8a9ab5;
  font-size: 14px;
}
.search-empty button {
  margin-top: 12px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2e8eff, #6e46dc);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(46,142,255,0.3);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20,56,107,0.16), 0 3px 8px rgba(20,56,107,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(20,56,107,0.06);
}
.product-card:active {
  transform: scale(0.985);
  box-shadow: 0 4px 14px rgba(20,56,107,0.18), 0 1px 4px rgba(20,56,107,0.12);
}
.card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef2f8;
  overflow: hidden;
  position: relative;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-cover img {
  transform: scale(1.04);
}
.card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a3b3cc;
  background: linear-gradient(135deg, #eef2f8, #e2e9f5);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.card-body {
  padding: 14px 14px 12px;
  position: relative;
}
.card-index {
  display: inline-block;
  font-size: 11px;
  color: #2e8eff;
  background: rgba(46,142,255,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a2b40;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e8eff, #6e46dc);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(46,142,255,0.3);
}

.footer {
  text-align: center;
  padding: 36px 20px calc(48px + 60px);
  font-size: 12px;
  color: #8a9ab5;
  letter-spacing: 0.05em;
}
.footer p { margin: 2px 0; }
.footer p:first-child {
  color: #5a6b86;
  font-weight: 600;
}
.footer .copyright {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(20,56,107,0.08);
  color: #a3b3cc;
  font-size: 11px;
}

/* ========== 详情页 ========== */
#page-detail {
  background: #f4f7fb;
  min-height: 100vh;
  min-height: 100dvh;
}
.detail-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20,56,107,0.06);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}
.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(20,56,107,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #14386b;
  flex-shrink: 0;
}
.back-btn:active {
  background: #eef2f8;
}
.detail-title {
  font-size: 16px;
  font-weight: 600;
  color: #14386b;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

.product-index-banner {
  background: linear-gradient(135deg, #0a2540 0%, #1e4ba0 100%);
  color: #fff;
  padding: 22px 20px 26px;
  position: relative;
  overflow: hidden;
}
.product-index-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 200px at 100% 0%, rgba(46,142,255,0.4), transparent 60%);
}
.product-index-banner .container {
  padding: 0;
  position: relative;
}
.banner-id {
  display: inline-block;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}
.banner-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.35;
  color: #fff;
}

.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding: 16px 16px 8px;
  margin: 0 -16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 88%;
  max-width: 360px;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f8;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 8px rgba(20,56,107,0.06);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px 16px;
}
.gallery-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #cdd6e5;
  transition: width 0.2s, background 0.2s;
}
.gallery-dots .dot.active {
  width: 18px;
  background: linear-gradient(90deg, #2e8eff, #6e46dc);
  border-radius: 3px;
}

.product-intro, .product-specs {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 14px;
  box-shadow: 0 10px 28px rgba(20,56,107,0.16), 0 3px 8px rgba(20,56,107,0.08);
}
.intro-title {
  font-size: 15px;
  font-weight: 600;
  color: #14386b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.intro-title::before {
  content: "";
  width: 3px; height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2e8eff, #6e46dc);
}
.intro-content {
  color: #5a6b86;
  font-size: 14px;
  line-height: 1.75;
}
.intro-content p { margin: 6px 0; }
.intro-content strong { color: #14386b; }
.intro-content .marker {
  color: #2e8eff;
  font-weight: 700;
  font-size: 1em;
  margin-right: 6px;
  position: relative;
  top: 2px;
}

/* ========== Lightbox ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 18, 36, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.dot {
    font-size: 1.9em;
}

/* ========== 智能化所简介 ========== */
.about-hero {
  position: relative;
  padding: 80px 20px 88px;
  color: #fff;
  overflow: hidden;
}
.about-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 360px at 80% -10%, rgba(110, 70, 220, 0.5), transparent 60%),
    radial-gradient(900px 320px at 0% 100%, rgba(46, 142, 255, 0.4), transparent 60%),
    linear-gradient(135deg, #0a2540 0%, #14386b 50%, #1e4ba0 100%);
  z-index: -1;
}
.about-hero-inner { max-width: 1100px; margin: 0 auto; }
.about-badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.about-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 14px 0 8px;
  background: linear-gradient(180deg, #fff 0%, #c5d8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
}
.about-intro-card,
.about-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(20,56,107,0.16), 0 3px 8px rgba(20,56,107,0.08);
}
.about-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-fields li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: #1a2b40;
  line-height: 1.6;
}
.about-fields .field-label {
  flex-shrink: 0;
  min-width: 72px;
  color: #6b7d99;
  font-size: 13px;
}
.about-fields .field-value {
  flex: 1;
}
.about-empty {
  color: #a3b3cc;
  font-size: 14px;
  padding: 8px 0;
}
.about-empty::before {
  content: "▪ ";
  color: #c5d2e3;
}

/* ========= 简介正文排版 ========== */
.about-intro-card .intro-content p {
  margin: 10px 0;
  color: #2a3a52;
  line-height: 1.85;
  font-size: 14.5px;
}
.about-intro-card .intro-content p:first-child {
  margin-top: 0;
}
.about-intro-card .intro-content h4 {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #14386b;
  padding-left: 10px;
  position: relative;
}
.about-intro-card .intro-content h4::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2e8eff, #6e46dc);
}
.about-intro-card .intro-content strong {
  color: #14386b;
  font-weight: 600;
}
.about-tasks {
  list-style: none;
  counter-reset: task;
  padding: 0;
  margin: 6px 0 4px;
}
.about-tasks li {
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: 14px;
  color: #2a3a52;
  line-height: 1.8;
  counter-increment: task;
}
.about-tasks li::before {
  content: counter(task);
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e8eff, #6e46dc);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(46,142,255,0.3);
}

/* ========= 主要科研成果 ========== */
.achievement-list {
  list-style: none;
  counter-reset: ach;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.achievement-item {
  position: relative;
  padding: 14px 14px 14px 60px;
  background: linear-gradient(135deg, rgba(46,142,255,0.06), rgba(110,70,220,0.06));
  border: 1px solid rgba(46,142,255,0.12);
  border-radius: 12px;
  counter-increment: ach;
}
.achievement-item::before {
  content: counter(ach, decimal-leading-zero);
  position: absolute;
  left: 16px; top: 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #2e8eff, #6e46dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.04em;
}
.achievement-title {
  font-size: 15px;
  font-weight: 600;
  color: #14386b;
  margin-bottom: 6px;
}
.achievement-content {
  font-size: 13.5px;
  color: #4a5a72;
  line-height: 1.75;
}

/* ========== 底部 Tab 栏 ========== */
.bottom-tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(20,56,107,0.08);
  box-shadow: 0 -4px 18px rgba(20,56,107,0.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-tabs .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 0 10px;
  color: #8a9ab5;
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: color 0.18s ease, transform 0.12s ease;
}
.bottom-tabs .tab svg { transition: color 0.18s ease; }
.bottom-tabs .tab.active {
  color: #2e8eff;
}
.bottom-tabs .tab:active {
  transform: scale(0.96);
}

/* ========== 平板及桌面 ========== */
@media (min-width: 600px) {
  .hero { padding: 72px 32px 80px; }
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 16px; }
  .about-hero { padding: 96px 32px 104px; }
  .about-title { font-size: 48px; }
  .about-sub { font-size: 16px; }
  .container { padding: 0 24px 60px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .gallery-item { flex: 0 0 70%; }
  .banner-title { font-size: 26px; }
  .detail-header { padding: 14px 24px; }
}

@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .gallery-item { flex: 0 0 60%; }
}

/* ========== 安全区 (iPhone) ========== */
@supports (padding: max(0px)) {
  .container { padding-bottom: max(40px, calc(60px + env(safe-area-inset-bottom))); }
  .detail-header { padding-top: max(14px, env(safe-area-inset-top)); }
  .footer { padding-bottom: max(48px, calc(60px + env(safe-area-inset-bottom))); }
}
