/* ============================================================
   客宜选集团官网 · 全局样式
   设计基调：科技深蓝 + 零售橙，AI 感渐变光效
   ============================================================ */

:root {
  --c-bg: #f6f8fc;
  --c-dark: #0b1226;
  --c-dark-2: #101a3a;
  --c-primary: #ff6a00;
  --c-primary-2: #ff9a3d;
  --c-blue: #2f6bff;
  --c-cyan: #00d4ff;
  --c-purple: #7b5cff;
  --c-text: #1c2333;
  --c-text-2: #5b6478;
  --c-text-3: #9aa3b8;
  --c-line: #e6eaf3;
  --c-white: #ffffff;
  --grad-main: linear-gradient(120deg, #ff6a00 0%, #ff9a3d 100%);
  --grad-tech: linear-gradient(120deg, #2f6bff 0%, #00d4ff 100%);
  --grad-text: linear-gradient(120deg, #ff6a00, #ffb03d);
  --shadow-card: 0 10px 40px rgba(18, 34, 74, 0.08);
  --shadow-hover: 0 24px 60px rgba(18, 34, 74, 0.16);
  --radius: 18px;
  --header-h: 76px;
  --font:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}
button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}
input,
select {
  font-family: var(--font);
}

::selection {
  background: rgba(255, 106, 0, 0.25);
}

.noscript-tip {
  padding: 12px 20px;
  color: #fff;
  background: #b42318;
  text-align: center;
}

/* ============ 隐私政策与错误页 ============ */
.legal-page,
.error-page {
  min-height: 100vh;
  padding: 56px 0 80px;
  background: var(--c-bg);
}
.legal-shell,
.error-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
}
.legal-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--c-primary);
  font-weight: 600;
}
.legal-card,
.error-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.legal-card h1 { margin-bottom: 8px; font-size: clamp(30px, 5vw, 44px); }
.legal-updated { margin-bottom: 32px; color: var(--c-text-3); font-size: 14px; }
.legal-card h2 { margin: 30px 0 10px; font-size: 20px; }
.legal-card p { color: var(--c-text-2); }
.legal-card a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-footer {
  margin-top: 28px;
  color: var(--c-text-3);
  text-align: center;
  font-size: 13px;
}
.legal-footer a { margin: 0 4px; }
.legal-footer img { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.error-page { display: grid; place-items: center; }
.error-card { text-align: center; }
.error-code { color: var(--c-primary); font-size: clamp(72px, 15vw, 140px); font-weight: 800; line-height: 1; }
.error-card h1 { margin: 16px 0 10px; }
.error-card p { margin-bottom: 26px; color: var(--c-text-2); }

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #eef1f7;
}
::-webkit-scrollbar-thumb {
  background: #c4ccdd;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8b2c8;
}

/* ============ 布局容器 ============ */
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
}
.section.dark {
  background:
    radial-gradient(
      1200px 600px at 80% -10%,
      rgba(47, 107, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 10% 110%,
      rgba(255, 106, 0, 0.14),
      transparent 60%
    ),
    var(--c-dark);
  color: #eaf0ff;
}

/* ============ 通用标题 ============ */
.sec-head {
  text-align: center;
  margin-bottom: 56px;
}
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--c-primary);
  text-transform: uppercase;
  padding: 6px 18px;
  border: 1px solid rgba(255, 106, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.06);
  margin-bottom: 18px;
}
.dark .sec-tag {
  color: var(--c-primary-2);
  border-color: rgba(255, 154, 61, 0.4);
  background: rgba(255, 154, 61, 0.08);
}

.sec-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 1px;
}
.sec-title .hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-sub {
  margin-top: 14px;
  color: var(--c-text-2);
  font-size: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.dark .sec-sub {
  color: #aab6d6;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s,
    background 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.38);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(255, 106, 0, 0.5);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.btn-outline {
  border: 1.5px solid var(--c-primary);
  color: var(--c-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.3);
}

/* ============ 头部导航 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background 0.4s,
    box-shadow 0.4s,
    height 0.4s;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.scrolled {
  background: rgba(10, 16, 38, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 30px rgba(4, 10, 30, 0.35);
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: transform 0.4s;
}
.logo:hover img {
  transform: rotate(-8deg) scale(1.08);
}
.logo-text {
  line-height: 1.25;
}
.logo-text b {
  color: #fff;
  font-size: 19px;
  letter-spacing: 2px;
  display: block;
}
.logo-text span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 2.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15.5px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  transition:
    color 0.3s,
    background 0.3s;
}
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav a.active {
  color: #fff;
  background: rgba(255, 106, 0, 0.9);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.4);
}

.nav-cta {
  margin-left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-main);
  color: #fff !important;
  font-weight: 600;
  padding: 10px 22px !important;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.4);
  transition:
    transform 0.3s,
    box-shadow 0.3s !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.55);
}

/* 移动端汉堡 */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 120;
}
.burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.35s;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(8, 13, 32, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  padding: 16px 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mobile-menu.open a {
  opacity: 1;
  transform: none;
}
.mobile-menu.open a:nth-child(2) {
  transition-delay: 0.06s;
}
.mobile-menu.open a:nth-child(3) {
  transition-delay: 0.12s;
}
.mobile-menu.open a:nth-child(4) {
  transition-delay: 0.18s;
}
.mobile-menu a.active {
  color: var(--c-primary-2);
}

/* ============ 底部 ============ */
.site-footer {
  background: linear-gradient(180deg, #0b1226 0%, #070d1f 100%);
  color: #aab6d6;
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 106, 0, 0.6),
    rgba(0, 212, 255, 0.6),
    transparent
  );
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.footer-brand h4 {
  color: #fff;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.9;
  color: #8d99bb;
}
.footer-col h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--grad-main);
  border-radius: 2px;
}
.footer-col li {
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-col a {
  transition:
    color 0.3s,
    padding-left 0.3s;
}
.footer-col a:hover {
  color: var(--c-primary-2);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.8;
}
.footer-contact .ic {
  color: var(--c-primary-2);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-phone {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-qrs {
  display: flex;
  gap: 20px;
}
.qr-item {
  text-align: center;
}
.qr-item img {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  padding: 4px;
  background: #fff;
  transition:
    transform 0.35s,
    border-color 0.35s;
}
.qr-item img:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: var(--c-primary);
}
.qr-item span {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: #8d99bb;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #6c7897;
}

/* 核心修复：版权行内部全部一行垂直居中 */
.footer-bottom > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
/* 备案小图标，覆盖全局img {display:block} */
.footer-bottom img {
  display: inline-block;
  height: 14px;
  width: auto;
  flex-shrink: 0;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 60px;
  z-index: 300;
  transform: translate(-50%, 30px);
  background: rgba(14, 22, 48, 0.95);
  color: #fff;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: calc(100vw - 48px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.success {
  border-color: rgba(48, 209, 88, 0.5);
}
.toast.error {
  border-color: rgba(255, 82, 82, 0.55);
}

/* ============ 回到顶部 ============ */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 10px 26px rgba(255, 106, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: 0.35s;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-top:hover {
  transform: translateY(-4px);
}

/* ============ 滚动进场动效 ============ */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 0.9s cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-l {
  opacity: 0;
  transform: translateX(-56px);
  transition: 0.9s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.reveal-r {
  opacity: 0;
  transform: translateX(56px);
  transition: 0.9s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.reveal-l.in,
.reveal-r.in {
  opacity: 1;
  transform: none;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: 0.9s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.reveal-scale.in {
  opacity: 1;
  transform: scale(1);
}

/* ============ 数字滚动 ============ */
.stat-num {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

/* ============ 跑马灯 ============ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  padding-right: 64px;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ============ 页面切换 ============ */
#app > .page {
  animation: pageIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .nav,
  .nav-cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
