/* ========== 全局变量 ========== */
:root {
  --bg-primary: #0A1428;      /* 深蓝灰主背景 */
  --bg-secondary: #141E33;    /* 石墨灰次级背景 */
  --bg-card: #1A2640;         /* 卡片背景 */
  --accent: #2E7FFF;          /* 科技蓝 */
  --accent-cyan: #00D4FF;     /* 青蓝点缀 */
  --text-primary: #FFFFFF;
  --text-secondary: #8B9BB4;
  --border: rgba(46, 127, 255, 0.15);
  --gradient: linear-gradient(135deg, #2E7FFF, #00D4FF);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Noto Sans', -apple-system, 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== 顶部导航 ========== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 0;
  background: rgba(10, 20, 40, 0.6);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(10, 20, 40, 0.95);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; }

/* ========== 图片 Logo ========== */
.logo {
  display: flex; align-items: center; gap: 10px;
  height: 44px; /* 固定高度，保证导航栏高度稳定 */
}
.logo img {
  height: 100%; width: auto; object-fit: contain;
  display: block;
  transition: var(--transition);
}
.logo:hover img { opacity: 0.85; }

/* 若图片 logo 旁仍需保留文字，用 .logo-text */
.logo-text {
  font-size: 20px; font-weight: 700; letter-spacing: 1px;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}


/* 移动端适当缩小 logo */
@media (max-width: 768px) {
  .logo { height: 36px; }
}
.logob { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.logob span { background: var(--gradient); -webkit-background-clip: text; 
             -webkit-text-fill-color: transparent; background-clip: text; }

.nav { display: flex; gap: 40px; }
.nav a { font-size: 15px; color: var(--text-secondary); position: relative; }
.nav a:hover, .nav a.active { color: var(--text-primary); }
.nav a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--gradient);
  transition: var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 24px; border-radius: 6px;
  background: var(--gradient); font-size: 14px; font-weight: 600;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46, 127, 255, 0.4); }

/* 移动端菜单按钮 */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 26px; height: 2px; background: var(--text-primary); transition: var(--transition); }

/* ========== 首屏 Banner ========== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(46,127,255,0.15), transparent 60%),
              var(--bg-primary);
}
/* 动态网格背景 */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { to { background-position: 60px 60px; } }

.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-tag {
  display: inline-block; padding: 6px 16px; margin-bottom: 24px;
  border: 1px solid var(--border); border-radius: 40px;
  font-size: 13px; color: var(--accent-cyan); letter-spacing: 2px;
}
.hero h1 { font-size: clamp(32px, 5vw, 64px); font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; max-width: 560px; }
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; }

.btn {
  padding: 16px 36px; border-radius: 8px; font-size: 15px;
  font-weight: 600; cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(46,127,255,0.45); }
.btn-outline {
  background: transparent; color: #fff; border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(46,127,255,0.1); }

/* ========== 通用区块 ========== */
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .subtitle {
  color: var(--accent-cyan); font-size: 14px; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.5vw, 42px); font-weight: 700; margin-bottom: 16px; }
.section-head p { color: var(--text-secondary); max-width: 640px; margin: 0 auto; }

/* ========== 业务板块卡片 ========== */
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.biz-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 32px;
  position: relative; overflow: hidden; transition: var(--transition);
}
.biz-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.biz-card:hover { transform: translateY(-8px); border-color: var(--accent);
                  box-shadow: 0 20px 48px rgba(46,127,255,0.2); }
.biz-card:hover::before { transform: scaleX(1); }
.biz-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(46,127,255,0.12); display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 24px;
}
.biz-card h3 { font-size: 20px; margin-bottom: 14px; }
.biz-card p { color: var(--text-secondary); font-size: 15px; }

/* ========== 数据统计 ========== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 48px; font-weight: 700;
            background: var(--gradient); -webkit-background-clip: text;
            -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--text-secondary); font-size: 15px; margin-top: 8px; }

/* ========== 产品卡片 ========== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: var(--transition);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.product-img { height: 220px; background: var(--bg-secondary);
               display: flex; align-items: center; justify-content: center;
               color: var(--text-secondary); font-size: 14px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover;
                   transition: transform 0.6s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 24px; }
.product-body h3 { font-size: 18px; margin-bottom: 10px; }
.product-body p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 4px 12px; border-radius: 20px; font-size: 12px;
       background: rgba(46,127,255,0.1); color: var(--accent-cyan); }

/* ========== 案例展示（带图片版） ========== */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.case-card {
  position: relative; border-radius: 16px; overflow: hidden;
  height: 360px; background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer;
}
.case-card:hover { border-color: var(--accent);
  box-shadow: 0 24px 56px rgba(46,127,255,0.25); }

/* 案例背景图 —— 支持 <img> 或 background-image 两种写法，这里用 img 便于响应式 */
.case-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: brightness(0.55) saturate(1.05);
}
.case-card:hover .case-bg { transform: scale(1.08); filter: brightness(0.75) saturate(1.1); }

/* 深色渐变遮罩，保证文字可读 */
.case-overlay {
  position: absolute; inset: 0; padding: 36px; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top,
    rgba(10,20,40,0.96) 0%,
    rgba(10,20,40,0.75) 40%,
    rgba(10,20,40,0.15) 75%,
    transparent 100%);
}

/* 左上角行业标签 */
.case-badge {
  position: absolute; top: 24px; left: 24px; z-index: 3;
  padding: 6px 16px; border-radius: 40px; font-size: 13px;
  color: #fff; background: rgba(46,127,255,0.85);
  backdrop-filter: blur(6px); letter-spacing: 1px;
}
.case-card h3 { font-size: 20px; margin-bottom: 10px; transition: var(--transition); }
.case-card:hover h3 { color: var(--accent-cyan); }
.case-card p { color: #C5D0E0; font-size: 14px; }

/* 悬停时底部伸出的"查看详情" */
.case-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 14px; color: var(--accent-cyan);
  opacity: 0; transform: translateY(10px); transition: var(--transition);
}
.case-card:hover .case-more { opacity: 1; transform: translateY(0); }

/* 移动端：单列 + 降低高度 */
@media (max-width: 768px) {
  .case-card { height: 300px; }
  .case-overlay { padding: 28px; }
}

/* ========== 新闻列表 ========== */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: grid; grid-template-columns: 140px 1fr auto;
  gap: 32px; align-items: center; padding: 32px 0;
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.news-item:hover { padding-left: 16px; background: rgba(46,127,255,0.03); }
.news-date { color: var(--accent-cyan); font-size: 14px; }
.news-item h3 { font-size: 18px; margin-bottom: 8px; }
.news-item:hover h3 { color: var(--accent-cyan); }
.news-item p { color: var(--text-secondary); font-size: 14px; }
.news-arrow { color: var(--text-secondary); font-size: 20px; }

/* ========== 新闻详情 ========== */
.article { max-width: 800px; margin: 0 auto; }
.article h1 { font-size: 32px; margin-bottom: 16px; line-height: 1.4; }
.article-meta { color: var(--text-secondary); font-size: 14px;
                padding-bottom: 24px; margin-bottom: 32px;
                border-bottom: 1px solid var(--border); }
.article-body { font-size: 16px; line-height: 2; color: #C5D0E0; }
.article-body p { margin-bottom: 20px; }
.article-body h3 { color: #fff; font-size: 20px; margin: 32px 0 16px; }

/* ========== 页脚 ========== */
.footer { background: var(--bg-secondary); padding: 64px 0 32px;
          border-top: 1px solid var(--border); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer h4 { font-size: 16px; margin-bottom: 20px; }
.footer p, .footer li { color: var(--text-secondary); font-size: 14px; margin-bottom: 10px; }
.footer ul { list-style: none; }
.footer a:hover { color: var(--accent-cyan); }
.footer-bottom { text-align: center; padding-top: 32px; margin-top: 48px;
                 border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; }

/* ========== 滚动渐入动画 ========== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ========== 响应式适配 ========== */
@media (max-width: 992px) {
  .business-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    flex-direction: column; padding: 100px 40px; gap: 28px;
    background: var(--bg-secondary); transition: var(--transition);
  }
  .nav.open { right: 0; }
  .nav-cta { display: none; }
  .section { padding: 64px 0; }
  .business-grid, .product-grid, .stats, .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 12px; }
  .news-arrow { display: none; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
/* 图集容器 */
.product-gallery { width: 100%; }

/* 主图区：固定比例，防止切换跳版 */
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0d1b33;
  border: 1px solid rgba(46,127,255,.18);
  border-radius: 6px;
  overflow: hidden;
}
.gallery-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.gallery-slide img {
  width: 100%; height: 100%;
  object-fit: contain;      /* 产品图用 contain，避免裁切 */
  background: #0a1428;
  display: block;
}

/* 缩略图行 */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex: 0 0 88px;
  width: 88px; height: 66px;
  border: 1px solid rgba(46,127,255,.2);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: .6;
  transition: all .25s ease;
  background: #0d1b33;
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover { opacity: .9; border-color: rgba(46,127,255,.5); }
.gallery-thumb.active {
  opacity: 1;
  border-color: #2E7FFF;
  box-shadow: 0 0 0 1px rgba(46,127,255,.4), 0 0 12px rgba(46,127,255,.25);
}

/* 移动端：缩略图缩小 */
@media (max-width: 768px) {
  .gallery-thumbs { gap: 8px; }
  .gallery-thumb { flex: 0 0 64px; width: 64px; height: 48px; }
}

/* =====================================================================
 * 移动端底部导航（仅 ≤768px 显示）
 * ===================================================================== */
.m-tabbar {
    display: none;                       /* 桌面端隐藏 */
}

@media (max-width: 768px) {
.i-home    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 10l9-7 9 7v10a1 1 0 01-1 1h-5v-7h-6v7H4a1 1 0 01-1-1z'/%3E%3C/svg%3E"); }
.i-product { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7l9-4 9 4-9 4z'/%3E%3Cpath d='M3 7v10l9 4 9-4V7'/%3E%3C/svg%3E"); }
.i-case    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M8 4v5'/%3E%3C/svg%3E"); }
.i-news    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h10M7 12h10M7 16h6'/%3E%3C/svg%3E"); }
.i-tel     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 01-2.2 2 19.8 19.8 0 01-8.6-3.1 19.5 19.5 0 01-6-6A19.8 19.8 0 012.1 4.2 2 2 0 014.1 2h3a2 2 0 012 1.7c.1.9.4 1.8.7 2.7a2 2 0 01-.5 2.1L8.1 9.9a16 16 0 006 6l1.4-1.2a2 2 0 012.1-.5c.9.3 1.8.6 2.7.7a2 2 0 011.7 2z'/%3E%3C/svg%3E"); }
    /* 给 body 留出底栏高度，避免内容被遮 */
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }

    .m-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        height: 58px;
        padding-bottom: env(safe-area-inset-bottom, 0px);  /* iPhone 底部安全区 */
        background: rgba(10, 20, 40, .96);                 /* --c-bg + 透明 */
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--c-border);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, .45);
    }

    .m-tabbar__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 11px;
        line-height: 1;
        color: var(--c-text-3);
        transition: color var(--trans);
        -webkit-tap-highlight-color: transparent;
    }

    .m-tabbar__item.is-active { color: #0099FF; }

    .m-tabbar__item.is-active .m-tabbar__icon {
        transform: translateY(-1px) scale(1.08);
        filter: drop-shadow(0 0 8px rgba(46, 127, 255, .6));
    }

    .m-tabbar__icon {
        width: 22px;
        height: 22px;
        background-color: currentColor;      /* 图标随文字色变化 */
        -webkit-mask: var(--icon) center / contain no-repeat;
        mask: var(--icon) center / contain no-repeat;
        transition: transform var(--trans);
    }

    /* 中间「电话」高亮按钮 */
    .m-tabbar__item--cta { color: var(--c-primary); }
    .m-tabbar__item--cta .m-tabbar__icon {
        width: 38px; height: 38px; margin-top: -14px;
        padding: 9px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d));
        color: #fff;
        box-shadow: 0 4px 16px rgba(46, 127, 255, .5);
    }
}

/* =====================================================================
 * 悬浮客服
 * ===================================================================== */
.side-service {
    position: fixed;
    right: 18px;
    bottom: 32px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* --- 触发按钮 --- */
.side-service__trigger {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d));
    box-shadow: var(--shadow-blue), 0 6px 20px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--trans), box-shadow var(--trans);
}

.side-service__trigger::before {
    content: "";
    width: 24px; height: 24px;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 11.5a8.4 8.4 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.4 8.4 0 01-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.4 8.4 0 013.8-.9h.5a8.5 8.5 0 018 8z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 11.5a8.4 8.4 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.4 8.4 0 01-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.4 8.4 0 013.8-.9h.5a8.5 8.5 0 018 8z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--trans);
}

.side-service__trigger:hover { transform: translateY(-3px); }

/* 呼吸光圈，工业科技感 */
.side-service__trigger::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--c-primary);
    opacity: 0;
    animation: servicePulse 2.4s ease-out infinite;
}

@keyframes servicePulse {
    0%   { transform: scale(.9); opacity: .7; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 未读/提示角标 */
.side-service__badge {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 77, 79, .5);
}

/* --- 展开面板 --- */
.side-service__panel {
    width: 232px;
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform-origin: right bottom;
    transform: scale(.86) translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--trans), opacity var(--trans), visibility var(--trans);
}

.side-service.is-open .side-service__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.side-service__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(46,127,255,.18), rgba(46,127,255,.06));
    border-bottom: 1px solid var(--c-border-2);
    font-size: 14px;
    color: var(--c-text);
}

.side-service__close {
    width: 22px; height: 22px;
    line-height: 1;
    font-size: 18px;
    color: var(--c-text-3);
    transition: color var(--trans);
}
.side-service__close:hover { color: var(--c-primary); }

.side-service__list li + li { border-top: 1px solid var(--c-border-2); }

.side-service__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    transition: background var(--trans);
}
.side-service__list a:hover { background: var(--c-primary-l); }

.side-service__list .label { color: var(--c-text-2); flex: none; }
.side-service__list .value {
    color: var(--c-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-service__qr {
    padding: 12px 14px 14px;
    border-top: 1px solid var(--c-border-2);
    text-align: center;
}
.side-service__qr img { width: 108px; margin: 0 auto 6px; border-radius: 4px; }
.side-service__qr span { font-size: 12px; color: var(--c-text-3); }

/* --- 返回顶部 --- */
.side-service__top {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: var(--c-bg-3);
    border: 1px solid var(--c-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--trans);
}
.side-service__top::before {
    content: "";
    display: block;
    width: 16px; height: 16px;
    margin: 0 auto;
    background-color: var(--c-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.side-service__top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.side-service__top:hover { border-color: var(--c-primary); box-shadow: var(--shadow-blue); }

/* =====================================================================
 * 移动端：客服上移避开底部导航
 * ===================================================================== */
@media (max-width: 768px) {
    .side-service {
        right: 12px;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 16px);
        gap: 8px;
    }
    .side-service__trigger { width: 46px; height: 46px; }
    .side-service__trigger::before { width: 21px; height: 21px; }
    .side-service__panel { width: 210px; }
    .side-service__top { display: none; }   /* 手机端有底栏，返回顶部省略 */
}