:root {
  --brand: #ee6628;
  --text: #222;
  --muted: #666;
  --bg: #ffffff;
  --soft: #faf7f5;
  --card: #fff;
  --border: #efefef;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,
    Arial, PingFang SC, Microsoft Yahei, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
}
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Header：首屏透明，滚动后变白 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-cn {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ee6628;
  transition: color 0.2s;
}
.brand-en {
  font-size: 12px;
  color: #eee;
  letter-spacing: 0.16em;
  transition: color 0.2s;
}
.site-header.scrolled .brand-cn {
  color: var(--text);
}
.site-header.scrolled .brand-en {
  color: var(--brand);
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.2s;
}
.site-header.scrolled .nav-toggle .bar {
  background: var(--text);
}
.nav-links {
  display: none;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: rgba(238, 102, 40, 0.18);
}
.site-header.scrolled .nav-links a {
  color: var(--text);
}
.site-header.scrolled .nav-links a:hover {
  background: rgba(238, 102, 40, 0.08);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: auto 0 6vh 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px 20px;
  z-index: 2;
}
.hero-content .container {
  width: min(860px, 92%);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4.8vw, 48px);
  color: #fff;
  letter-spacing: 0.02em;
}
.hero p {
  margin: 0 0 16px;
  color: #fff;
  opacity: 0.9;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid var(--brand);
}
.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(238, 102, 40, 0.28);
}
.btn.primary:hover {
  filter: brightness(0.96) saturate(1.02);
  transform: translateY(-1px);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ee6628;
  /* border-color: rgba(255, 255, 255, 0.6); */
  border-color: #ffffff;
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Sections */
.section {
  padding: 72px 0;
}
.section-header {
  margin-bottom: 20px;
}
.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3.2vw, 28px);
  position: relative;
}
.section-header h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px;
  margin-top: 8px;
}
.bg-soft {
  background: var(--soft);
  padding: 48px 4%;
}

/* Grid */
.grid {
  display: grid;
  gap: 16px;
}
.grid.two {
  grid-template-columns: 1fr;
}
.grid.three {
  grid-template-columns: 1fr;
}
.grid.four {
  grid-template-columns: repeat(2, 1fr);
}
.grid.five {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid.five {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.card.mini {
  padding: 14px;
  text-align: center;
}

/* Feature list (老版要点列表) */
.feature-list {
  margin: 0;
  padding-left: 18px;
}
.feature-list li {
  margin: 0.3em 0;
}

/* Tag cards */
.tag-card {
  background: linear-gradient(135deg, rgba(238, 102, 40, 0.12), #fff);
  border: 1px dashed rgba(238, 102, 40, 0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.tag {
  font-weight: 700;
  color: var(--brand);
}

/* Media helpers */
.rounded {
  border-radius: 16px;
}
.media-shadow {
  box-shadow: var(--shadow);
}

/* Products */
.products .product-card h3 {
  margin: 0.2em 0 0.3em;
}
.products .product-card p {
  color: var(--muted);
  margin: 0;
}

/* Carousel（通用） */
.carousel {
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-item {
  min-width: 100%;
}
.carousel-item img {
  width: 100%;
  height: clamp(62vh, 72vh, 82vh);
  object-fit: cover;
  transition: transform 6s ease;
}
.hero-carousel .carousel-item.active img {
  transform: scale(1.06);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  z-index: 3;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.carousel-btn svg {
  pointer-events: none;
}
.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.carousel-btn:active {
  transform: translateY(-50%) scale(0.98);
}
.carousel-btn.prev {
  left: 14px;
}
.carousel-btn.next {
  right: 14px;
}
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dots button {
  width: 9px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.carousel-dots button.active {
  background: var(--brand);
}

/* Footer */
.site-footer {
  background: #111;
  color: #ddd;
  padding: 40px 0;
  margin-top: 48px;
}
.site-footer a {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.footer-grid h4 {
  margin: 0.2em 0 0.4em;
  color: #fff;
}
.tel {
  font-weight: 800;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Utilities */
.align-center {
  align-items: center;
}

/* 顶部英雄后的首个内容区与固定头部间距 */
main > section:first-of-type + section,
#about {
  scroll-margin-top: 72px;
}

/* Reveal 进场动画 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* 新增：产品卡片模块 feature-cards（移动1列 / PC 2列） */
.feature-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1);
}
@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.feature-cards li {
  transform: scale(0.98);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-cards li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}
.feature-cards .thumb {
  width: 100%;
  /* height: 280px; */
  object-fit: cover;
}
@media (min-width: 768px) {
  .feature-cards li {
    /* height:800px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
.feature-cards h2 {
  margin: 12px 16px 6px;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.4;
}
.feature-cards p {
  margin: 0 16px 10px;
  color: var(--muted);
}
.feature-cards .price {
  margin: 6px 16px 16px;
  font-weight: 800;
  color: var(--brand);
  font-size: 18px;
}

/* 查看更多 */
#look-more {
  width: 100%;
  background-image: url("../image/lunbo/04.jpg");
  background-size: cover;
  background-position: center center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative; /* 遮罩定位 */
  color: #fff; /* 遮罩下文案更清晰 */
}
#look-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38); /* 半透明灰暗遮罩 */
  pointer-events: none;
  backdrop-filter: blur(2px); /* 轻微虚化 */
}
#look-more > * {
  position: relative;
  z-index: 1; /* 内容在遮罩层上方 */
}

@media (min-width: 768px) {
  #link-text {
    font-size: 29px !important;
    cursor: pointer;
    color: #fff;
    border-bottom: 1px solid #ffffff;
  }
}
#link-text {
  font-size: 18px;
  margin: 15px 0;
}

/* 圆形旋转球（五大特色） */
.feature-balls {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  justify-items: center;
}
@media (min-width: 640px) {
  .feature-balls {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}
@media (min-width: 1024px) {
  .feature-balls {
    grid-template-columns: repeat(6, 1fr); /* PC 一行正好五个 */
  }
}
.ball {
  position: relative;
  width: clamp(108px, 20vw, 188px);
  height: clamp(108px, 20vw, 188px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 30% 30%, #fff, #fef6f1 65%, #fdebe2 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 8px 24px rgba(238, 102, 40, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  overflow: hidden;
  isolation: isolate;
}
/* 旋转外环（仅环转，文字保持静止） */
.ball::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(238, 102, 40, 0.0),
      rgba(238, 102, 40, 0.35),
      rgba(238, 102, 40, 0.0) 35%,
      rgba(238, 102, 40, 0.0) 60%,
      rgba(238, 102, 40, 0.4) 85%,
      rgba(238, 102, 40, 0.0)
    );
  -webkit-mask:
    radial-gradient(closest-side, transparent 68%, #000 70%),
    linear-gradient(#000, #000);
  -webkit-mask-composite: source-over, xor;
  mask-composite: exclude;
  animation: spin 6.5s linear infinite;
  z-index: 0;
}
/* 内层高光与立体感 */
.ball::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(80% 80% at 30% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    radial-gradient(120% 120% at 70% 72%, rgba(238, 102, 40, 0.06), rgba(238, 102, 40, 0) 60%);
  z-index: 0;
  pointer-events: none;
}

.ball span {
  position: relative;
  z-index: 1; /* 始终在旋转环之上，保持不转动 */
  font-weight: 800;
  color: var(--brand);
  text-align: center;
  line-height: 1.25;
  padding: 0 12px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .ball span {
    font-size: 18px;
  }
}

.ball:hover::before {
  animation-duration: 3.8s; /* 悬停加速，增强互动感 */
}
@media (prefers-reduced-motion: reduce) {
  .ball::before,
  .ball:hover::before {
    animation: none;
  }
}

/* 旋转动画 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 联系方式卡片 */
.contact-card {
  display: grid;
  gap: 14px;
}
.contact-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-header .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.contact-header .meta h3 {
  margin: 0;
  font-size: 18px;
}
.contact-header .meta .role {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.contact-info {
  display: grid;
  gap: 10px;
}
.info-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.info-row .label {
  font-weight: 700;
  color: var(--brand);
}
.info-row .value {
  color: var(--text);
}
.btn.mini {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand);
}
.btn.mini:hover {
  background: rgba(238, 102, 40, 0.08);
}

.qr-box {
  display: grid;
  gap: 10px;
  justify-items: center;
}
.qr-box .qr {
  width: min(220px, 60vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-header h4 {
  margin: 0;
  font-size: 16px;
}
.modal-header .close-btn {
  background: none;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-body {
  padding: 14px;
}
.phone-display {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}
@media (max-width: 480px) {
  .contact-header .meta h3 { font-size: 16px; }
  .phone-display { font-size: 18px; }
}

/* 简洁图片卡片（方形） */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.product-card .media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* 方形裁切 */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.product-card .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .thumb {
  transform: scale(1.04);
}
.products .product-card h3 {
  margin: 0.2em 0 0.1em;
}
.products .product-card p {
  margin: 0;
  color: var(--muted);
}

/* 客户评价弹幕 */
.danmaku {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(180px, 24vw, 220px);
  border: 1px dashed rgba(238, 102, 40, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(238,102,40,0.08), #fff);
  box-shadow: var(--shadow);
}
.dm-item {
  position: absolute;
  right: -30%;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  animation-name: dm-move;
  animation-timing-function: linear;
}
.dm-s { font-size: clamp(12px, 2.8vw, 14px); }
.dm-m { font-size: clamp(13px, 3.2vw, 16px); font-weight: 600; }
.dm-l { font-size: clamp(14px, 3.6vw, 18px); font-weight: 700; }

@keyframes dm-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-140vw); }
}
