/* ============================================================
   申利达机械制造有限公司 — 移动端官网样式 v2
   风格：浅色简约大气，石油机械工业感
   ============================================================ */

/* ── 主题变量 ── */
:root {
  --bg-base:     #f4f6fa;
  --bg-white:    #ffffff;
  --bg-alt:      #edf0f7;
  --accent:      #1a6ef0;
  --accent-dark: #1458d0;
  --accent-bg:   #e8f0fe;
  --amber:       #d97706;
  --text-1:      #0d1828;
  --text-2:      #4a5a78;
  --text-3:      #8a9ab8;
  --border:      #dde3ef;
  --border-2:    #c8d2e5;
  --radius:      4px;
  --radius-sm:   2px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06);
  --shadow:      0 2px 12px rgba(0,0,0,.09);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

/* ============================================================
   通用布局
   ============================================================ */

/* ── 顶部导航 ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  letter-spacing: -.5px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.logo-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: .3px;
}
.logo-name span {
  display: block;
  font-size: 9.5px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 1px;
}
.header-nav-btn {
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.header-nav-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 0;
}

/* ── 页面主体 ── */
.page-main { padding-top: 54px; }

/* ── Section 通用 ── */
.section { padding: 40px 18px; }
.section-header { margin-bottom: 20px; }
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.25;
  letter-spacing: -.3px;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

/* ── 通用按钮 ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, transform .1s;
}
.btn-primary:active { background: var(--accent-dark); transform: scale(.97); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.btn-secondary:active { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   Hero 区块
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 20px 52px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* 右侧装饰线 */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
  opacity: .25;
}
.hero-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}
.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-1);
  margin-bottom: 8px;
  letter-spacing: -.5px;
}
.hero-title .highlight { color: var(--accent); }
.hero-subtitle {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.hero-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 数据统计 */
.hero-stats {
  display: flex;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 6px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -.5px;
}
.stat-num span { font-size: 14px; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--text-3); }

/* ============================================================
   公司介绍
   ============================================================ */
.about-section {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.about-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
}
.about-honors {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
}
.honor-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.honor-item:last-child { border-bottom: none; }
.honor-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
}

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

/* 分类标签 */
.category-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.category-filter::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: transparent;
  white-space: nowrap;
  transition: all .15s;
}
.cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cat-tab:active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 产品卡片网格 */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 文字卡片 */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  min-height: 62px;
}
.product-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: opacity .15s;
}
.product-card:active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.product-card:active::before { opacity: 1; }
.card-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.card-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--text-3);
  text-transform: uppercase;
}
.card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text-3);
  transition: transform .15s, color .15s;
}
.product-card:active .card-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* 二级分类分隔标题 */
.subcat-header {
  grid-column: 1 / -1;
  padding: 6px 4px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .9px;
  color: var(--text-3);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}


/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: #0d1828;
  padding: 32px 18px 40px;
  border-top: 3px solid var(--accent);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo .logo-mark { background: var(--accent); }
.footer-logo .logo-name { color: #e2e8f5; }
.footer-logo .logo-name span { color: #4a6080; }
.footer-desc {
  font-size: 13px;
  color: #4a6080;
  line-height: 1.75;
  margin-bottom: 18px;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #8a9ab8;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  transition: color .15s, border-color .15s;
}
a.footer-contact-item:active { color: #4d94ff; border-color: rgba(30,110,240,.3); }
.footer-contact-item svg { flex-shrink: 0; color: var(--accent); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 0 0 16px; }
.footer-bottom { font-size: 11px; color: #344560; text-align: center; }

/* ============================================================
   产品详情页
   ============================================================ */

/* 顶部导航 */
.detail-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 12px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
  flex-shrink: 0;
  transition: color .15s;
}
.back-btn:active { color: var(--accent); }
.back-icon { width: 20px; height: 20px; display: flex; align-items: center; }
.detail-header-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 详情主体 */
.detail-main { padding-top: 54px; }

/* Swiper 轮播 */
.product-swiper {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.slide-bg { position: absolute; inset: 0; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.slide-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
}
.slide-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-product-name { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.slide-label { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: 1px; }

/* Swiper 分页点 */
.swiper-pagination-bullet { background: rgba(255,255,255,.35); opacity: 1; width: 5px; height: 5px; }
.swiper-pagination-bullet-active { background: #fff; width: 16px; border-radius: 2px; }

/* 产品信息区 */
.product-info { padding: 22px 18px 64px; }
.product-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.product-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}
.product-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -.3px;
}
.product-tagline {
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 0;
  letter-spacing: .3px;
}

/* 分隔线 */
.info-divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* 产品描述 */
.product-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.9;
  letter-spacing: .01em;
}
/* 多段落之间的间距 */
.product-desc p + p { margin-top: 12px; }

/* 特性标题 */
.features-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* 特性列表 */
.features-list { display: flex; flex-direction: column; gap: 0; }
.feature-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  padding: 6px 0;
}
.features-list .feature-item:last-child { border-bottom: none; }
.feature-index {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  width: 16px;
  text-align: right;
  line-height: 1.65;
}

/* 规格参数区 */
.specs-section { display: flex; flex-direction: column; gap: 14px; }
.spec-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
}
.spec-block-title {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* KV 表 */
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table tr { border-bottom: 1px solid var(--border); }
.kv-table tr:last-child { border-bottom: none; }
.kv-table td { padding: 9px 13px; font-size: 13px; vertical-align: top; }
.kv-table td:first-child { color: var(--text-3); width: 42%; }
.kv-table td:last-child { color: var(--text-1); font-weight: 500; }
.kv-table tr:nth-child(even) td { background: var(--bg-base); }

/* 多列表格 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 13px; }
.data-table th {
  background: var(--bg-alt);
  color: var(--text-3);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .5px;
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 8px 12px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--bg-base); }
.data-table.compare td:first-child { color: var(--text-2); font-size: 12px; }

/* ============================================================
   动画
   ============================================================ */
.fade-in { animation: fadeIn .3s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-enter { animation: cardEnter .25s ease both; }
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 空状态 ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-3); font-size: 14px; }

/* ============================================================
   动效系统
   ============================================================ */

/* ── Hero 入场动画（页面加载时逐项出现）── */
.hero-badge    { opacity: 0; animation: heroFadeUp .5s ease .05s forwards; }
.hero-title    { opacity: 0; animation: heroFadeUp .55s ease .15s forwards; }
.hero-subtitle { opacity: 0; animation: heroFadeUp .45s ease .25s forwards; }
.hero-desc     { opacity: 0; animation: heroFadeUp .45s ease .32s forwards; }
.hero-actions  { opacity: 0; animation: heroFadeUp .45s ease .4s forwards; }
.hero-stats    { opacity: 0; animation: heroFadeUp .45s ease .5s forwards; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 滚动触发淡入（JS 添加 .visible 类）── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* 延迟变体 */
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
.reveal-d6 { transition-delay: .48s; }

/* ── 产品卡片入场（切换分类时立即播放）── */
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-enter {
  animation: cardSlideIn .3s ease both;
}

/* ── 首次滚入时等待触发（初始隐藏）── */
.card-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .36s ease, transform .36s ease;
}
.card-stagger.card-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── 分类切换过渡（网格整体淡出再淡入）── */
.product-grid.switching {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.product-grid.entering {
  opacity: 0;
  transform: translateY(6px);
}
.product-grid.entered {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}

/* ── 数字计数器（JS 驱动，不需要额外样式）── */

/* ── 顶部 Header 滚动阴影 ── */
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ── 详情页产品信息滑入 ── */
.product-info {
  padding: 24px 18px 60px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease .1s, transform .4s ease .1s;
}
.product-info.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 减少动效（无障碍）── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
