/* 科羚官网 - 活力渐变运营风（方案 C：橙紫渐变 / 大圆角 / 高转化），自适应 PC / 移动 */
:root {
  /* 兼容旧变量名：各页面内嵌样式与内联 style 仍在引用，值统一切换到新色系 */
  --primary: #ff6b3d;
  --primary-2: #ff5d73;
  --deep: #2b2033;
  --bg: #fff9f4;
  --text: #271f2e;
  --muted: #8c8292;
  --line: #f0e7e2;
  /* 新色板 */
  --orange: #ff6b3d;
  --coral: #ff9b52;
  --violet: #7c4dff;
  --yellow: #ffc93c;
  --mint: #2ec9a5;
  --grad: linear-gradient(120deg, #ff7a45, #ff5d73 55%, #8a4dff);
  --grad-v: linear-gradient(110deg, #7c4dff, #ff5d73);
  --success: #2ec9a5;
  --danger: #ef4444;
  --warn: #ffc93c;
  --radius: 22px;
  --radius-lg: 28px;
  --shadow: 0 12px 32px rgba(255, 107, 61, .10);
  --shadow-lg: 0 22px 50px rgba(255, 107, 61, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* 顶部导航 */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 0 0 auto; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: all .25s ease;
}
.nav a:hover, .nav a.active { color: var(--orange); background: #fff1e9; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--deep); cursor: pointer; display: none;
  align-items: center; justify-content: center; font-size: 18px;
}

/* 通用按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #fff; box-shadow: 0 10px 26px rgba(255, 93, 115, .32);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(255, 93, 115, .45); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--orange); border: 1px solid rgba(255, 107, 61, .35); }
.btn-ghost:hover { background: #fff1e9; }
.btn-soft { background: #fff1e9; color: var(--orange); }
.btn-soft:hover { background: #ffe3d3; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* 主体 */
.main { padding-top: 76px; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 20px; }
.section-head { margin-bottom: 26px; }
.section-head.center { text-align: center; }
.section-head h1,
.section-head h2 { font-size: 30px; font-weight: 800; color: var(--deep); letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 6px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  color: var(--orange); background: #fff0e7; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}

/* 顶部运营条 */
.promo-bar { background: var(--deep); color: #fff; text-align: center; font-size: 12.5px; letter-spacing: .04em; padding: 9px 16px; }
.promo-bar b { color: var(--yellow); font-weight: 800; }
.promo-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }

/* Hero：渐变圆角块 + 左右分栏 + 浮动推荐卡 */
.hero { position: relative; padding: 30px 20px 0; }
.hero-inner {
  position: relative; z-index: 2; max-width: 1160px; margin: 0 auto;
  padding: 60px 60px 54px; border-radius: 36px; overflow: hidden;
  background: var(--grad); color: #fff;
  box-shadow: 0 30px 70px rgba(255, 93, 115, .22);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center;
}
.hero-inner::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -190px;
  border-radius: 50%; background: rgba(255, 255, 255, .13);
}
.hero-inner::after {
  content: ""; position: absolute; width: 300px; height: 300px; left: -110px; bottom: -190px;
  border-radius: 50%; background: rgba(255, 255, 255, .09);
}
.hero-copy, .hero-offer { position: relative; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.hero h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.hero .accent { display: inline-block; margin-top: 8px; padding: 0 12px; border-radius: 10px; background: var(--yellow); color: #40200d; }
.hero p { margin-top: 18px; font-size: 16px; color: rgba(255, 255, 255, .92); max-width: 520px; line-height: 1.95; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--orange); box-shadow: 0 10px 26px rgba(70, 30, 20, .16); }
.hero-actions .btn-primary:hover { box-shadow: 0 16px 32px rgba(70, 30, 20, .24); }
.hero-stats { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stat {
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px; padding: 12px 18px; backdrop-filter: blur(6px);
}
.hero-stat b { font-size: 22px; font-weight: 800; display: block; line-height: 1.2; }
.hero-stat span { display: block; color: rgba(255, 255, 255, .88); font-size: 11px; }

.hero-offer {
  background: #fff; color: var(--text); border-radius: 26px; padding: 26px;
  box-shadow: 0 26px 60px rgba(50, 15, 40, .28); transform: rotate(2deg);
}
.offer-ribbon {
  position: absolute; top: -14px; right: -10px; transform: rotate(8deg);
  background: var(--yellow); color: #5b3200; font-size: 12px; font-weight: 800;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 18px rgba(255, 201, 60, .45);
}
.hero-offer h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.offer-sub { font-size: 12px; color: var(--muted); }
.offer-price { font-size: 42px; font-weight: 800; color: var(--orange); line-height: 1.2; margin-top: 18px; }
.offer-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.offer-list { list-style: none; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #5f5566; }
.offer-list li::before { content: "✓"; color: var(--mint); font-weight: 800; margin-right: 8px; }

/* 轮播 */
.banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--deep); }
.banner-track { display: flex; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.banner-slide { min-width: 100%; height: 320px; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: all .25s; }
.banner-dot.active { width: 22px; border-radius: 5px; background: #fff; }

/* 筛选胶囊 */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 9px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .25s;
}
.chip:hover, .chip.on { background: var(--deep); color: #fff; border-color: var(--deep); }

/* 产品卡片：彩色头部 + 白底内容 */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid #fbece4;
  border-radius: 26px; box-shadow: var(--shadow); padding: 0 22px 24px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .28s ease, box-shadow .28s ease;
}
.card::before { content: ""; display: block; height: 118px; margin: 0 -22px 10px; background: var(--grad); }
.card.tone-2::before { background: linear-gradient(135deg, #7c4dff, #4d8bff); }
.card.tone-3::before { background: linear-gradient(135deg, #2ec9a5, #3aa0ff); }
.card.tone-4::before { background: linear-gradient(135deg, #ffb03a, #ff6b3d); }
.card.tone-5::before { background: linear-gradient(135deg, #4d8bff, #7c4dff); }
.card.tone-6::before { background: linear-gradient(135deg, #ff5d9e, #ff8a4c); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
  position: absolute; top: 22px; left: 22px; width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
}
.card h3 { font-size: 18px; font-weight: 800; color: var(--deep); }
.card p { color: var(--muted); font-size: 13px; line-height: 1.85; flex: 1; }
.card .price { color: var(--orange); font-weight: 800; font-size: 24px; }
.card .price small { color: var(--muted); font-weight: 600; font-size: 12px; }
.tag {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; background: #fff1e9; color: var(--orange);
}
.card .tag {
  position: absolute; top: 26px; right: 18px; z-index: 2;
  background: var(--yellow); color: #5b3200;
}

/* 面板 / 表单 */
.panel { background: #fff; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: 18px; font-weight: 800; color: var(--deep); margin-bottom: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 13px; color: var(--muted); }
.input {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 12px 16px; font-size: 14px; color: var(--text); outline: none; transition: all .2s;
}
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 61, .14); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* 价格选项 */
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  cursor: pointer; transition: all .2s ease; background: #fff;
}
.option:hover { border-color: rgba(255, 107, 61, .45); background: #fff9f4; }
.option.active { border-color: var(--orange); background: #fff1e9; box-shadow: 0 0 0 3px rgba(255, 107, 61, .1); }
.option .name { font-weight: 700; color: var(--deep); }
.option .amount { color: var(--orange); font-weight: 800; font-size: 18px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checkbox-row:last-child { border-bottom: none; }
input[type="checkbox"] { accent-color: var(--orange); width: 16px; height: 16px; }
input[type="number"] { accent-color: var(--orange); }

/* 表格 */
.table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: break-word; }
.table .table-col-name { width: 220px; }
.table th { color: var(--deep); font-weight: 800; background: #fff5ef; }
.table tr:hover td { background: #fff9f4; }

/* 空状态 / 加载 */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 10px; border-radius: 50%;
  border: 3px solid rgba(255, 107, 61, .18); border-top-color: var(--orange);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 运营区块：优势 / 服务能力 / 行动条 */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.value { background: #fff; border: 1px solid #f0e9fb; border-radius: 26px; padding: 30px; text-align: center; box-shadow: var(--shadow); transition: .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-circle { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; background: var(--grad); }
.value:nth-child(2) .value-circle { background: var(--grad-v); }
.value:nth-child(3) .value-circle { background: linear-gradient(135deg, #2ec9a5, #3aa0ff); }
.value h3 { font-size: 18px; font-weight: 800; color: var(--deep); margin-bottom: 8px; }
.value p { font-size: 13px; color: var(--muted); line-height: 1.9; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-item { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; transition: .25s; }
.service-item:hover { border-color: rgba(255, 107, 61, .4); transform: translateY(-2px); }
.service-glyph { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: #fff1e9; color: var(--orange); }
.service-item:nth-child(3n+2) .service-glyph { background: #f0e9ff; color: var(--violet); }
.service-item:nth-child(3n) .service-glyph { background: #e5faf4; color: var(--mint); }
.service-item h3 { font-size: 15px; font-weight: 800; color: var(--deep); }
.service-item p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 3px; }

.cta-band { border-radius: 32px; background: var(--grad-v); color: #fff; text-align: center; padding: 52px 28px; box-shadow: 0 24px 60px rgba(124, 77, 255, .24); }
.cta-band h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .9); margin-bottom: 24px; }
.cta-band .btn { background: #fff; color: var(--violet); }

/* 服务能力列表行（产品介绍页使用） */
.res-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.res-line:last-child { border-bottom: none; }

/* 页脚 */
.site-footer { margin-top: 40px; background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-inner h4 { color: var(--deep); font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.footer-inner p, .footer-inner a { color: var(--muted); font-size: 13px; line-height: 2; display: block; }
.footer-inner a:hover { color: var(--orange); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 34px; }
.footer-qr { margin-top: 4px; }
.footer-qr img { display: block; width: 72px; height: 72px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; cursor: zoom-in; }
.footer-qr span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.copyright { border-top: 1px solid var(--line); text-align: center; padding: 16px 20px; font-size: 12px; color: var(--muted); }
.copyright a { color: var(--muted); text-decoration: none; }
.copyright a:hover { color: var(--orange); text-decoration: underline; }

/* Toast（common.js 降级通道） */
.cl-toast {
  position: fixed; left: 50%; top: 92px; transform: translate(-50%, -12px);
  background: var(--deep); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 9999;
  box-shadow: var(--shadow-lg);
}
.cl-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 响应式 */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { padding: 48px 36px; gap: 30px; }
  .hero h1 { font-size: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-inner { height: 60px; padding: 0 16px; gap: 8px; }
  .brand img { height: 30px; }
  .nav { display: flex; flex: 1; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 9px; font-size: 12px; }
  .header-actions .btn { display: none; }
  .icon-btn { display: inline-flex; }
  .main { padding-top: 60px; }
  .grid, .values, .services { grid-template-columns: 1fr; }
  .hero { padding: 20px 16px 0; }
  .hero-inner { padding: 36px 22px; border-radius: 26px; grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 14px; }
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 10px 14px; }
  .hero-offer { transform: none; max-width: 340px; margin: 0 auto; }
  .banner-slide { height: 190px; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 36px 20px; }
  .panel { padding: 20px 18px; }
  .table th, .table td { padding: 10px; font-size: 13px; }
  .table .table-col-name { width: 38%; }
  .section-head h1, .section-head h2 { font-size: 24px; }
  .cta-band { padding: 36px 20px; border-radius: 26px; }
  .cta-band h2 { font-size: 24px; }
  .cl-toast { top: 72px; }
}

/* 移动端抽屉 */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200; background: rgba(43, 32, 51, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 76%; max-width: 320px;
  background: #fff; padding: 80px 24px 24px; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1); display: flex; flex-direction: column; gap: 8px;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-panel a { padding: 13px 10px; border-radius: 12px; color: var(--deep); font-size: 16px; font-weight: 600; }
.mobile-drawer-panel a:hover { background: #fff1e9; color: var(--orange); }
.mobile-drawer-close { position: absolute; top: 18px; right: 18px; border: none; background: #fff1e9; color: var(--orange); width: 36px; height: 36px; border-radius: 12px; font-size: 20px; cursor: pointer; }
