/* ==========================================================
   洋代国际官网 · 首页样式（依赖 theme.css）
   ========================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 36px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -3;
  background: url("../images/bg1.jpg") center / cover no-repeat;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(100deg, var(--bg) 8%, rgba(6, 10, 20, 0.55) 55%, rgba(6, 10, 20, 0.25));
}
#fx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #cfe9ff;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hero h1 .grad-text { display: inline-block; filter: drop-shadow(0 0 24px rgba(99, 102, 241, 0.45)); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.chip {
  padding: 8px 18px;
  font-size: 15px;
  color: #dbe4ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.chip.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }

.download-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Hero 右侧手机组合 */
.hero-visual {
  position: relative;
  height: 600px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.55), rgba(99, 102, 241, 0.55), rgba(168, 85, 247, 0.55), rgba(34, 211, 238, 0.55));
  filter: blur(70px);
  opacity: 0.55;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.orbit {
  position: absolute;
  border: 1px dashed rgba(140, 160, 255, 0.28);
  border-radius: 50%;
}
.orbit.o1 { width: 470px; height: 470px; animation: spin 40s linear infinite; }
.orbit.o2 { width: 580px; height: 580px; animation: spin 64s linear infinite reverse; border-style: solid; border-color: rgba(140, 160, 255, 0.1); }
.orbit::after {
  content: "";
  position: absolute;
  top: 14%;
  left: 7%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px 3px var(--cyan);
}
.orbit.o2::after { top: auto; bottom: 10%; left: auto; right: 12%; background: var(--pink); box-shadow: 0 0 16px 3px var(--pink); }

.phone {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(180, 195, 255, 0.35);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(99, 102, 241, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img {
  width: 100%;
  aspect-ratio: 9 / 19.2;
  object-fit: cover;
  object-position: top;
  border-radius: 25px;
  background: #101830;
}
.hero-visual .phone { position: absolute; }
.hero-visual .p-main { width: 250px; z-index: 3; animation: float 6s ease-in-out infinite; }
.hero-visual .p-left { --tx: -190px; --ty: 40px; --r: -9deg; width: 200px; z-index: 2; transform: translate(var(--tx), var(--ty)) rotate(var(--r)); animation: floatL 7s ease-in-out infinite; opacity: 0.92; }
.hero-visual .p-right { --tx: 190px; --ty: 56px; --r: 9deg; width: 200px; z-index: 2; transform: translate(var(--tx), var(--ty)) rotate(var(--r)); animation: floatR 7.5s ease-in-out infinite; opacity: 0.92; }
@keyframes float { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(10px); } }
@keyframes floatL { 0%, 100% { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); } 50% { transform: translate(var(--tx), calc(var(--ty) + 18px)) rotate(var(--r)); } }
@keyframes floatR { 0%, 100% { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); } 50% { transform: translate(var(--tx), calc(var(--ty) - 18px)) rotate(var(--r)); } }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--cyan), transparent);
  animation: drop 2s ease-in-out infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 通用区块 ---------- */
.section { position: relative; padding: 104px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* 关于我们 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  padding: 32px 28px 34px;
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.55;
  transition: opacity 0.35s;
}
.card::after {
  content: attr(data-no);
  position: absolute;
  right: 22px;
  top: 14px;
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: rgba(140, 160, 255, 0.08);
}
.card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(99, 102, 241, 0.2); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(120, 150, 255, 0.35);
  box-shadow: 0 0 26px rgba(99, 102, 241, 0.3);
}
.card-icon svg { width: 28px; height: 28px; color: #bfeaff; }
.card h3 { margin: 0 0 12px; font-size: 21px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }

.channels { margin-top: 26px; padding: 26px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.channels .label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--cyan); }
.channels ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.channels li {
  padding: 7px 16px;
  font-size: 14px;
  color: #dbe4ff;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.channels li:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.1); transform: translateY(-2px); }

.quote {
  margin-top: 26px;
  padding: 30px 34px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.12), rgba(168, 85, 247, 0.14)),
    var(--surface);
}
.quote::before { content: "“"; margin-right: 6px; font-size: 1.6em; line-height: 0; vertical-align: -0.25em; color: var(--cyan); }

/* 产品介绍 */
.product-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; margin-bottom: 56px; }
.product-intro p { margin: 0; color: #c3ccea; font-size: 17px; line-height: 2; }
.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; font-size: 15px; color: #dbe4ff; }
.feature-list svg { width: 22px; height: 22px; flex: none; color: var(--cyan); }

.gallery-wrap { position: relative; }
.gallery {
  display: flex;
  gap: 26px;
  padding: 10px 4px 34px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
  position: relative;
  flex: none;
  width: 236px;
  scroll-snap-align: center;
  cursor: zoom-in;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
}
.shot .phone { transition: transform 0.4s, box-shadow 0.4s; }
.shot:hover .phone, .shot:focus-visible .phone { transform: translateY(-10px) rotateX(3deg); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(34, 211, 238, 0.3); }
.shot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; border-radius: 30px; }
.shot .no { display: block; margin-top: 16px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em; color: var(--dim); }

.gallery-nav { display: flex; gap: 12px; justify-content: flex-end; margin-bottom: 8px; }
.gallery-nav button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.gallery-nav button svg { width: 20px; height: 20px; }
.gallery-nav button:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.12); transform: translateY(-2px); }

/* 灯箱 */
.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 14, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  max-height: 86svh;
  width: auto;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(99, 102, 241, 0.35);
  transform: scale(0.94);
  transition: transform 0.3s;
}
.lightbox.open img { transform: none; }
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: #fff;
  cursor: pointer;
}
.lightbox .close svg { width: 20px; height: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { height: 430px; order: 2; margin-top: 6px; }
  .hero-visual::before { width: 320px; height: 320px; }
  .orbit.o1 { width: 340px; height: 340px; }
  .orbit.o2 { width: 420px; height: 420px; }
  .hero-visual .p-main { width: 190px; }
  .hero-visual .p-left, .hero-visual .p-right { width: 150px; }
  .hero-visual .p-left { --tx: -150px; --ty: 36px; }
  .hero-visual .p-right { --tx: 150px; --ty: 48px; }
  .scroll-hint { display: none; }
  .cards { grid-template-columns: 1fr; }
  .product-intro { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 76px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
  .hero-visual { height: 290px; margin-top: 12px; }
  .hero-visual::before { width: 230px; height: 230px; filter: blur(50px); }
  .orbit.o1 { width: 250px; height: 250px; }
  .orbit.o2 { display: none; }
  .phone { padding: 5px; border-radius: 22px; }
  .phone img { border-radius: 17px; }
  .hero-visual .p-main { width: 132px; }
  .hero-visual .p-left, .hero-visual .p-right { width: 100px; }
  .hero-visual .p-left { --tx: -96px; --ty: 28px; --r: -8deg; }
  .hero-visual .p-right { --tx: 96px; --ty: 38px; --r: 8deg; }
  .btn { flex: 1 1 100%; }
  .channels { padding: 22px 20px; }
  .quote { padding: 24px 22px; }
  .shot { width: 200px; }
  .gallery-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .phone, .hero-visual::before, .orbit, .badge i, .scroll-hint::after { animation: none !important; }
}

/* 横屏的矮屏手机：首屏不强制占满一屏 */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; padding-bottom: 48px; }
  .scroll-hint { display: none; }
}
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .card:hover::before { opacity: 0.55; }
  .shot:hover .phone { transform: none; }
  .channels li:hover { transform: none; border-color: var(--line); background: var(--surface); }
  .gallery-nav button:hover { transform: none; }
}
