/* ===========================
   辉宏电子科技 - 企业官网样式
   =========================== */

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

:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2540;
  --navy-light: #2d5a8e;
  --gold: #c8a84b;
  --gold-light: #e8c96a;
  --bg: #f7f9fc;
  --bg-white: #ffffff;
  --text-primary: #1a2332;
  --text-secondary: #5a6882;
  --text-muted: #8a96a8;
  --border: #e0e6ef;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(26, 58, 92, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 58, 92, 0.13);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === 导航 === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

#header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: default;
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-icon img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-icon.small img {
  height: 36px;
}

.logo-main {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-phone svg {
  color: var(--gold);
}

.header-phone a {
  color: inherit;
  text-decoration: none;
}

.header-phone a:hover {
  color: var(--navy-light);
  text-decoration: underline;
}

#nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-block;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: rgba(26, 58, 92, 0.07);
}

.nav-link.active {
  color: var(--navy);
  font-weight: 700;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 101;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-btn:active {
  background: rgba(26, 58, 92, 0.06);
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* 汉堡菜单 X 动画 */
.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === 通用区块 === */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* === Hero 区块 === */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(155deg, #0f2540 0%, #1a3a5c 40%, #2d5a8e 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(200, 168, 75, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 20% 70%, rgba(45, 90, 142, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(200, 168, 75, 0.18);
  border: 1px solid rgba(200, 168, 75, 0.4);
  border-radius: 100px;
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 36px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 44px;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* === 关于我们 === */
.about-section {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.about-card-main {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 20px;
}

.about-icon-wrap {
  flex-shrink: 0;
}

.about-card-label {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.about-card-en {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  line-height: 1.5;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.highlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.highlight-dot.blue { background: var(--navy); }
.highlight-dot.gold { background: var(--gold); }

.about-contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.about-contact-row svg {
  flex-shrink: 0;
  color: var(--navy);
}

.about-para {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  transition: all 0.25s;
}

.value-card:hover {
  border-color: var(--navy-light);
  background: rgba(26, 58, 92, 0.04);
  transform: translateY(-2px);
}

.value-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.value-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.value-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* === 产品中心 === */
.products-section {
  background: var(--bg);
}

.products-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.prod-tab {
  padding: 7px 22px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.prod-tab:hover {
  border-color: var(--navy-light);
  color: var(--navy);
}

.prod-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(26, 58, 92, 0.2);
}

.product-card.featured {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.07);
}

.product-card.hidden {
  display: none;
}

.product-img {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.product-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover .product-img img {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-card.has-image {
  padding: 20px;
}

.product-card.has-image .product-img {
  margin: -20px -20px 18px -20px;
}

.product-card.has-image .product-img img {
  border-radius: 12px 12px 0 0;
  aspect-ratio: auto;
  border: none;
  box-shadow: none;
}

.product-card.has-image:hover .product-img img {
  transform: none;
}

/* === 产品轮播 === */
.product-carousel {
  position: relative;
  overflow: hidden;
  margin: -20px -20px 18px -20px;
  border-radius: 12px 12px 0 0;
  min-height: 200px;
  aspect-ratio: 4/3;
}

.product-carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-carousel .carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}

.product-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s, background 0.25s, box-shadow 0.25s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.product-carousel:hover .carousel-prev,
.product-carousel:hover .carousel-next {
  opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.25s;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.carousel-dot.active {
  background: var(--navy);
  border-color: var(--navy);
  transform: scale(1.25);
}

/* 轮播卡片上不覆盖原 product-img hover */
.product-card.has-image .product-carousel {
  margin-bottom: 18px;
}

/* featured 轮播卡片圆角适配 */
.product-card.featured.has-image .product-carousel {
  border-radius: 12px 12px 0 0;
}

.product-badge {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(26, 58, 92, 0.08);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  align-self: flex-start;
}

.product-badge.gold {
  background: rgba(200, 168, 75, 0.15);
  color: #8a6a1a;
}

.product-badge.teal {
  background: rgba(0, 121, 107, 0.1);
  color: #00695c;
}

.product-badge.green {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.product-badge.blue {
  background: rgba(25, 118, 210, 0.1);
  color: #1565c0;
}

.product-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* 产品副标题标语 */
.product-tagline {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 1;
}

.product-desc {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ===== 规格参数两列网格 ===== */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  background: #f3f6fa;
  border-radius: 7px;
  border-left: 3px solid var(--navy);
  min-height: 48px;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
}

.spec-item:hover {
  background: #e8eef6;
  box-shadow: 0 2px 8px rgba(26, 58, 92, 0.08);
}

.spec-item-empty {
  visibility: hidden;
}

.spec-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #7a8fa8;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
  line-height: 1.3;
}

.spec-value {
  font-size: 13px;
  font-weight: 700;
  color: #1a2a3a;
  line-height: 1.45;
  word-break: break-word;
}

/* ===== 产品亮点标签行 ===== */
.product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  background: rgba(26, 58, 92, 0.07);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.highlight-tag.gold {
  background: rgba(200, 168, 75, 0.12);
  color: #7a5c10;
}

.highlight-tag.blue {
  background: rgba(25, 118, 210, 0.1);
  color: #1455a8;
}

.highlight-tag.teal {
  background: rgba(0, 121, 107, 0.1);
  color: #00695c;
}

/* 兼容旧 product-features（保留不删）*/
.product-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.product-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.product-btn {
  display: block;
  text-align: center;
  padding: 11px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.22s;
}

.product-btn:hover,
.product-btn.gold:hover {
  background: var(--navy);
  color: #fff;
}

.product-btn.gold {
  border-color: var(--gold);
  color: #8a6a1a;
}

/* ===== 产品下载区域 ===== */
.product-download {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #1e4d7a 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.22s;
  box-shadow: 0 2px 8px rgba(26, 58, 92, 0.18);
  white-space: nowrap;
}

.download-btn:hover {
  background: linear-gradient(135deg, #0e2a47 0%, var(--navy) 100%);
  box-shadow: 0 4px 14px rgba(26, 58, 92, 0.3);
  transform: translateY(-1px);
}

.download-btn svg {
  flex-shrink: 0;
}

.download-count {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.download-count b {
  font-weight: 800;
  color: var(--navy);
  font-size: 14px;
}

/* 服务承诺 */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.promise-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s;
}

.promise-item:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow);
}

.promise-num {
  font-size: 36px;
  font-weight: 800;
  color: rgba(26, 58, 92, 0.1);
  line-height: 1;
  margin-bottom: 12px;
}

.promise-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.promise-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === 客户案例 === */
.cases-section {
  background: var(--bg-white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(26, 58, 92, 0.2);
}

.case-img {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.case-img svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.case-body {
  padding: 20px 24px 24px;
}

.case-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  background: rgba(26, 58, 92, 0.08);
  color: var(--navy);
  margin-bottom: 10px;
}

.case-tag.green {
  background: rgba(42, 122, 59, 0.1);
  color: #2a7a3b;
}

.case-tag.blue {
  background: rgba(26, 90, 142, 0.1);
  color: var(--navy-light);
}

.case-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.case-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

/* === 案例轮播 === */
.case-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 4/3;
}

.case-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}

.case-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s, background 0.25s, box-shadow 0.25s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1;
}

.case-carousel:hover .case-carousel-btn {
  opacity: 1;
}

.case-carousel-btn:hover {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

.case-carousel-prev { left: 8px; }
.case-carousel-next { right: 8px; }

.case-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.case-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.25s;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.case-carousel-dot.active {
  background: var(--navy);
  border-color: var(--navy);
  transform: scale(1.25);
}

/* 只有一张图片时隐藏箭头和 dots */
.case-carousel.no-carousel .case-carousel-btn,
.case-carousel.no-carousel .case-carousel-dots {
  display: none !important;
}

/* === 资料下载 === */
.downloads-section {
  background: var(--bg);
}

.dl-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.dl-filter-btn {
  padding: 7px 22px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.dl-filter-btn:hover {
  border-color: var(--navy-light);
  color: var(--navy);
}

.dl-filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.dl-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all 0.25s;
  position: relative;
  z-index: 1;
}

.dl-card.dl-card-dropdown-open {
  z-index: 100;
}

.dl-card:hover {
  border-color: rgba(26, 58, 92, 0.25);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.dl-card.hidden {
  display: none;
}

.dl-icon {
  flex-shrink: 0;
}

.dl-info {
  flex: 1;
  min-width: 0;
}

.dl-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.dl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.dl-tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  background: rgba(26, 58, 92, 0.08);
  color: var(--navy);
  letter-spacing: 1px;
}

.dl-tag.green {
  background: rgba(42, 122, 59, 0.1);
  color: #2a7a3b;
}

.dl-tag.gold {
  background: rgba(200, 168, 75, 0.15);
  color: #8a6a1a;
}

.dl-tag.blue {
  background: rgba(25, 118, 210, 0.1);
  color: #1976d2;
}

.dl-tag.red {
  background: rgba(198, 40, 40, 0.1);
  color: #c62828;
}

.dl-tag.purple {
  background: rgba(106, 27, 154, 0.1);
  color: #6a1b9a;
}

.dl-tag.teal {
  background: rgba(0, 121, 107, 0.1);
  color: #00796b;
}

.dl-tag.indigo {
  background: rgba(63, 81, 181, 0.1);
  color: #3f51b5;
}

.dl-tag.orange {
  background: rgba(230, 81, 0, 0.1);
  color: #e65100;
}

.dl-ver {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  background: rgba(25, 118, 210, 0.1);
  color: #1565c0;
  letter-spacing: 0.5px;
}

.dl-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dl-size {
  font-size: 12px;
  color: var(--text-muted);
}

.dl-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}

.count-num {
  display: inline-block;
  background: rgba(26, 58, 92, 0.08);
  color: var(--navy);
  font-weight: 700;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
}

.dl-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition: all 0.22s;
  flex-shrink: 0;
}

.dl-btn:hover {
  background: var(--navy);
  color: #fff;
}

.dl-btn.green {
  border-color: #2a7a3b;
  color: #2a7a3b;
}
.dl-btn.green:hover { background: #2a7a3b; color: #fff; }

.dl-btn.gold {
  border-color: var(--gold);
  color: #8a6a1a;
}
.dl-btn.gold:hover { background: var(--gold); color: #fff; }

.dl-btn.blue {
  border-color: #1976d2;
  color: #1976d2;
}
.dl-btn.blue:hover { background: #1976d2; color: #fff; }

.dl-btn.red {
  border-color: #c62828;
  color: #c62828;
}
.dl-btn.red:hover { background: #c62828; color: #fff; }

.dl-btn.purple {
  border-color: #6a1b9a;
  color: #6a1b9a;
}
.dl-btn.purple:hover { background: #6a1b9a; color: #fff; }

.dl-btn.teal {
  border-color: #00796b;
  color: #00796b;
}
.dl-btn.teal:hover { background: #00796b; color: #fff; }

.dl-btn.indigo {
  border-color: #3f51b5;
  color: #3f51b5;
}
.dl-btn.indigo:hover { background: #3f51b5; color: #fff; }

.dl-btn.orange {
  border-color: #e65100;
  color: #e65100;
}
.dl-btn.orange:hover { background: #e65100; color: #fff; }

/* === 备用下载（网盘直链）=== */
.dl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}

.dl-backup-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  background: var(--bg-white);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.dl-backup-btn:hover {
  border-color: var(--navy-light);
  border-style: solid;
  color: var(--navy);
  background: rgba(26, 58, 92, 0.04);
}

.dl-backup-btn.active {
  border-color: var(--navy);
  border-style: solid;
  color: var(--navy);
  background: rgba(26, 58, 92, 0.06);
}

.dl-backup-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  z-index: 50;
  overflow: hidden;
  animation: backupDropdownIn 0.18s ease;
}

.dl-backup-dropdown.open {
  display: block;
}

@keyframes backupDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dl-backup-dropdown-header {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #f8f9fb;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.dl-cloud-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
  cursor: pointer;
}

.dl-cloud-link:last-child {
  border-bottom: none;
}

.dl-cloud-link:hover {
  background: #f8f9fb;
}

.dl-cloud-initial {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.dl-cloud-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dl-cloud-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.dl-cloud-code {
  font-size: 11px;
  color: var(--text-muted);
}

.dl-cloud-code b {
  color: var(--navy);
  font-weight: 700;
  user-select: all;
}

.dl-cloud-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
}

.dl-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(200, 168, 75, 0.07);
  border: 1px solid rgba(200, 168, 75, 0.25);
  border-radius: var(--radius);
  padding: 12px 18px;
}

.dl-notice a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.dl-notice a:hover {
  text-decoration: underline;
}

.dl-notice-link {
  color: #1565c0 !important;
  font-weight: 700 !important;
}

.dl-notice-link:hover {
  text-decoration: underline;
}

.dl-notice-code {
  color: var(--navy);
  background: rgba(26, 58, 92, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: all;
}

.dl-notice-code:hover {
  background: rgba(26, 58, 92, 0.16);
}

.dl-notice-code.copied {
  color: #2a7a3b;
  background: rgba(42, 122, 59, 0.12);
}

/* === 安装指引 (新增) === */
.install-section {
  background: var(--bg-white);
}

.install-steps-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.install-step-card {
  flex: 1;
  max-width: 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s;
}

.install-step-card:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.step-num {
  font-size: 36px;
  font-weight: 800;
  color: rgba(26, 58, 92, 0.1);
  line-height: 1;
  margin-bottom: 12px;
}

.step-icon {
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.install-step-arrow {
  padding: 0 12px;
  flex-shrink: 0;
  color: var(--gold);
}

.install-detail {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.install-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.install-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.install-detail-card {
  display: flex;
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.22s;
}

.install-detail-card:hover {
  border-color: var(--navy-light);
  box-shadow: 0 2px 12px rgba(26, 58, 92, 0.06);
}

.detail-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.detail-step-num span {
  display: block;
  line-height: 1;
}

.detail-content {
  flex: 1;
}

.detail-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.detail-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.install-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(200, 168, 75, 0.08);
  border: 1px solid rgba(200, 168, 75, 0.25);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.install-tip-box svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.install-tip-box a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.install-tip-box a:hover {
  text-decoration: underline;
}

/* === 常见问题 FAQ === */
.faq-section {
  background: var(--bg-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
}

.faq-item:hover {
  border-color: rgba(26, 58, 92, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-question span {
  flex: 1;
}

.faq-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* === 联系我们 === */
.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-location {
}

.location-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.location-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 250px;
  aspect-ratio: 3/2;
}

.contact-info-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(26, 58, 92, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.contact-value {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.7;
}

.contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover {
  color: var(--navy-light);
  text-decoration: underline;
}

.contact-people {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.people-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.people-item {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.people-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.people-item a:hover {
  color: var(--navy-light);
  text-decoration: underline;
}

/* 表单 */
.contact-form-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
}

.contact-form-wrap .contact-info-title {
  display: block;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.required {
  color: #e55353;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 16px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy-light);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === 页脚 === */
.footer {
  background: var(--navy-dark);
  padding: 36px 0 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
}

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

.footer-name {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.footer-en {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  width: 100%;
  text-align: center;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.icp-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.icp-link:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

/* 页脚二维码区域 */
.footer-qrcodes {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  margin-left: auto;
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-qrcode img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  box-sizing: border-box;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}

.footer-qrcode-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* 页脚联系方式 */
.footer-contact {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.footer-contact-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
  .footer-contact {
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .footer-contact-item {
    font-size: 12px;
  }
}

/* === 动画 === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 导航下拉菜单（多页面新增）=== */
.nav-dropdown {
  position: relative;
}

.nav-arrow {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  transition: transform 0.25s;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  z-index: 200;
  overflow: hidden;
  padding: 6px 0;
  animation: dropdownIn 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(26, 58, 92, 0.06);
  color: var(--navy);
}

.nav-dropdown-item--active,
.nav-dropdown-item.nav-dropdown-item--active {
  background: rgba(26, 58, 92, 0.08);
  color: var(--navy);
  font-weight: 700;
}

.nav-dropdown-item--active svg,
.nav-dropdown-item.nav-dropdown-item--active svg {
  color: var(--navy);
}

.nav-dropdown-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* === 页面横幅（非首页各页通用）=== */
.page-banner {
  padding: 110px 0 52px;
  background: linear-gradient(155deg, #0f2540 0%, #1a3a5c 60%, #2d5a8e 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(200, 168, 75, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 30% 80%, rgba(45, 90, 142, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.page-banner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: 10px;
  position: relative;
}

.page-banner-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 2px;
  position: relative;
}

.page-banner-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

/* === 首页 Hero 非全屏版 === */
.page-hero {
  min-height: auto;
  padding: 150px 0 100px;
}

/* === 首页核心优势 === */
.index-advantages {
  background: var(--bg-white);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.adv-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s;
}

.adv-card:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.adv-icon {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.adv-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.adv-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === 首页快速导览 === */
.index-nav-section {
  background: var(--bg);
}

.index-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.index-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.index-nav-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.index-nav-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

.index-nav-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.index-nav-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.index-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 58, 92, 0.07);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.25s;
}

.index-nav-card:hover .index-nav-arrow {
  background: var(--navy);
  color: #fff;
}

/* === 响应式 === */
@media (max-width: 900px) {
  .hero-title { font-size: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-item { padding: 0 24px; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
  .header-inner { height: 60px; }
  #header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .logo-main { font-size: 14px; }
  .logo-sub { font-size: 8px; }
  .logo-icon img { height: 38px; }
  .install-detail-grid { grid-template-columns: 1fr; }
  .install-steps-overview { flex-direction: column; }
  .install-step-arrow { transform: rotate(90deg); }
  .product-card.has-image .product-img { margin: -12px -12px 16px -12px; }
  .product-card.has-image .product-img img { border-radius: 10px 10px 0 0; }
  .footer-qrcodes { margin-left: 0; align-self: center; justify-content: center; width: 100%; }
}

/* === 移动端导航遮罩 === */
.nav-drawer-header {
  display: none; /* 仅移动端显示 */
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
  touch-action: none;
}

body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  #nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    padding: 80px 0 32px 0;
    gap: 0;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  }
  #nav.open {
    transform: translateX(0);
  }
  .menu-btn { display: flex; }

  /* --- 移动端导航项 --- */
  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-link:active {
    background: rgba(26, 58, 92, 0.06);
  }

  .nav-link.active {
    color: var(--navy);
    font-weight: 700;
    background: rgba(26, 58, 92, 0.06);
    border-left-color: var(--navy);
  }

  .nav-link.active::before {
    content: '';
    display: none;
  }

  /* 导航分组标题 */
  .nav-section-label {
    padding: 20px 28px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .nav-section-label:first-child {
    padding-top: 12px;
  }

  /* 导航分隔线 */
  .nav-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 20px;
  }

  /* 移动端下拉菜单 */
  #nav .nav-dropdown {
    position: relative;
  }

  #nav .nav-dropdown > .nav-link {
    padding-right: 48px;
  }

  #nav .nav-dropdown > .nav-link::after {
    content: '';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transition: transform 0.3s;
  }

  #nav .nav-dropdown.open > .nav-link::after {
    transform: translateY(-50%) rotate(45deg);
  }

  #nav .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border: none;
    padding: 0;
    min-width: auto;
    background: #f8fafc;
    display: none;
    opacity: 1;
    transform: none;
  }

  #nav .nav-dropdown.open > .nav-dropdown-menu {
    display: block;
  }

  #nav .nav-dropdown-item {
    padding: 11px 28px 11px 52px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid transparent;
  }

  #nav .nav-dropdown-item:active {
    background: rgba(26, 58, 92, 0.06);
  }

  #nav .nav-dropdown-item.nav-dropdown-item--active {
    color: var(--navy);
    font-weight: 600;
    background: rgba(26, 58, 92, 0.06);
    border-left-color: var(--navy);
  }

  /* 抽屉顶部标题 */
  .nav-drawer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }

  .nav-drawer-header .logo-icon img {
    height: 36px;
    width: auto;
  }

  .nav-drawer-header .logo-main {
    font-size: 15px;
  }

  .nav-drawer-header .logo-sub {
    font-size: 9px;
  }

  .nav-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.2s;
  }

  .nav-drawer-close:active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--navy);
  }
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .stat-item { padding: 0 16px; }
  .stat-num { font-size: 26px; }
  .promise-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; }
  .footer-brand { align-self: center; }
  .footer-links { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .footer-qrcodes { margin-left: 0; align-self: center; justify-content: center; width: 100%; }
  .contact-form-wrap { padding: 24px 16px; }
  .contact-info-title { font-size: 18px; margin-bottom: 24px; }
  .contact-value { font-size: 15px; }
  .contact-label { font-size: 12px; }
  .contact-icon { width: 36px; height: 36px; }
  .contact-item { gap: 12px; }
  .contact-items { gap: 20px; }
  .contact-people { padding: 16px; }
  .people-title { font-size: 13px; }
  .people-item { font-size: 13px; }
  .form-label { font-size: 14px; }
  .form-input,
  .form-select,
  .form-textarea { font-size: 16px; padding: 12px 14px; }
  .success-icon { width: 48px; height: 48px; font-size: 20px; }
  .dl-card { flex-wrap: wrap; }
  .dl-btn { width: 100%; justify-content: center; margin-top: 8px; }
  .faq-question { font-size: 14px; padding: 14px 18px; }
  .prod-tab { padding: 6px 14px; font-size: 12px; }
  .product-card.has-image { padding: 12px; }
  .product-card.has-image .product-img { margin: -12px -12px 14px -12px; }
  .product-card.has-image .product-img img { border-radius: 8px 8px 0 0; }
  .install-detail { padding: 24px 16px; }
  .dl-backup-dropdown { right: auto; left: 0; min-width: 240px; }
  .dl-backup-btn { padding: 7px 10px; font-size: 11px; }
  .dl-actions { width: 100%; justify-content: space-between; margin-top: 8px; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .index-nav-grid { grid-template-columns: 1fr 1fr; }
  .page-banner { padding: 90px 0 36px; }
  .page-banner-title { font-size: 28px; }
  .nav-dropdown-menu { left: 0; right: auto; transform: none; }
  .product-carousel { aspect-ratio: 3/2; }
  .carousel-prev, .carousel-next { opacity: 1; width: 30px; height: 30px; font-size: 16px; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .carousel-dot { width: 6px; height: 6px; }
}

@media (max-width: 400px) {
  .adv-grid { grid-template-columns: 1fr; }
  .index-nav-grid { grid-template-columns: 1fr; }
}

/* ===========================
   兼容性降级补丁
   兼容旧版浏览器（IE11、Chromium < 84）
   =========================== */

/* Flexbox gap 降级：不支持 gap 的浏览器用 margin 回退 */
@supports not (gap: 1px) {
  .header-inner > * + * { margin-left: 16px; }
  .logo > * + * { margin-left: 10px; }
  .header-phone > * + * { margin-left: 6px; }
  .nav > * + * { margin-left: 2px; }
  .hero-stats > * + * { margin-left: 16px; }
  .hero-cta > * + * { margin-left: 12px; }
  .contact-item > * + * { margin-left: 12px; }
  .contact-items > * + * { margin-top: 20px; }
  .case-meta > * + * { margin-top: 3px; }
  .faq-item-header > * + * { margin-left: 8px; }
  .dl-item-info > * + * { margin-top: 4px; }
  .footer-brand > * + * { margin-top: 10px; }
  .footer-bottom-inner > * + * { margin-left: 10px; }
}

/* scroll-behavior 降级：不支持平滑滚动的浏览器直接跳转 */
@supports not (scroll-behavior: smooth) {
  html { scroll-behavior: auto; }
}
