/* 上海吟颂官网样式表 - 个性化设计，突出上海服务特色 */

:root {
  /* 主色调：黄浦江蓝 + 东方明珠红 + 外滩金 */
  --bg: #0a1520;
  --bg-soft: #122838;
  --primary: #1a5a8a;        /* 黄浦江蓝 */
  --primary-light: #2d8bc4;  /* 浅黄浦江蓝 */
  --accent: #c41e3a;         /* 东方明珠红 */
  --accent-light: #e63946;   /* 浅东方明珠红 */
  --accent-warm: #d4a017;    /* 外滩金 */
  --text: #e8f4f8;
  --text-muted: #8cb8d0;
  --border: rgba(26, 90, 138, 0.35);
  --border-light: rgba(45, 139, 196, 0.25);
  --card-bg: rgba(18, 40, 56, 0.85);
  --shadow: rgba(0, 40, 80, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 主容器 */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 21, 32, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-family: "Roboto Mono", Consolas, monospace;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--accent-warm);
}

.nav-contact {
  padding: 8px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #124570);
  color: #fff !important;
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 90, 138, 0.35);
}

/* Hero区域 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(26, 90, 138, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(196, 30, 58, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(212, 160, 23, 0.05) 0%, transparent 40%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(10, 21, 32, 0.3) 0%, 
    rgba(10, 21, 32, 0.8) 70%, 
    var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(18, 40, 56, 0.7);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 20px;
}

.title-main {
  display: block;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.title-accent {
  display: block;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--accent-warm);
  letter-spacing: 0.08em;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-warm);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #124570);
  color: #fff;
  border: 1px solid var(--border-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 90, 138, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent), #a01830);
  color: #fff;
  border: 1px solid rgba(196, 30, 58, 0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(196, 30, 58, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(196, 30, 58, 0.15);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* 通用区块 */
.section {
  padding: 80px 32px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-warm);
  font-family: "Roboto Mono", Consolas, monospace;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 服务覆盖区域 */
.section-coverage {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.coverage-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.coverage-main {
  grid-column: span 2;
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.12), var(--card-bg));
}

.coverage-all {
  grid-column: 1 / -1;
  background: rgba(212, 160, 23, 0.08);
  border-color: var(--accent-warm);
}

.coverage-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(196, 30, 58, 0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow);
  border-color: var(--accent);
}

.coverage-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.coverage-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 服务内容 */
.section-services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px var(--shadow);
  border-color: var(--accent);
}

.service-highlight {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), var(--card-bg));
  border-color: var(--accent);
}

.service-num {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  font-family: "Roboto Mono", Consolas, monospace;
  color: var(--accent);
  background: rgba(196, 30, 58, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-points {
  list-style: none;
  padding: 0;
}

.service-points li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.service-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-warm);
  font-weight: 700;
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.services-cta {
  text-align: center;
  margin-top: 40px;
}

/* 核心优势 */
.section-advantages {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.advantage-item:hover {
  border-color: var(--accent);
}

.advantage-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  font-family: "Roboto Mono", Consolas, monospace;
  flex-shrink: 0;
}

.advantage-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.advantage-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 流程概览 */
.section-process-preview {
  background: var(--bg);
}

.process-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  min-width: 100px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.process-step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.step-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  font-family: "Roboto Mono", Consolas, monospace;
}

.step-name {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.process-cta {
  text-align: center;
  margin-top: 32px;
}

/* 行业动态 */
.section-news {
  background: var(--bg-soft);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  text-align: left;
}

.section-header-row .section-sub {
  margin: 0;
}

.section-more,
.news-link {
  color: var(--accent-warm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.section-more {
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  display: flex;
  min-width: 0;
  min-height: 248px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
  border-color: var(--accent-warm);
  transform: translateY(-2px);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 12px;
}

.news-category {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(212, 160, 23, 0.14);
  color: var(--accent-warm);
  font-weight: 600;
}

.news-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.5;
}

.news-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.news-card p {
  display: -webkit-box;
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-link {
  margin-top: auto;
}

/* 联系区域 */
.section-contact {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px var(--shadow);
}

.contact-left {
  flex: 1;
}

.contact-company {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-company h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-company p {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-desc span {
  color: var(--accent-warm);
  font-weight: 600;
}

.contact-cities {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-cities span {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-cities em {
  font-size: 12px;
  font-style: normal;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(196, 30, 58, 0.15);
  color: var(--accent);
  font-weight: 500;
}

.contact-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-qr-box {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.contact-qr-box img {
  width: 140px;
  height: auto;
  border-radius: 8px;
}

.contact-qr-box p {
  font-size: 12px;
  color: #333;
  margin-top: 8px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* 页脚 */
.site-footer {
  background: rgba(5, 12, 18, 0.98);
  border-top: 1px solid var(--border);
  padding: 48px 32px 24px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  flex-shrink: 0;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-warm);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.icp-info a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.icp-info a:hover {
  color: var(--accent-warm);
}

/* 响应式 */
@media (max-width: 1024px) {
  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-main {
    grid-column: span 1;
  }

  .coverage-all {
    grid-column: span 2;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px;
  }

  .brand-link {
    align-items: flex-start;
  }
  
  .brand-name {
    font-size: 16px;
  }
  
  .top-nav {
    justify-content: space-between;
    gap: 6px;
  }
  
  .top-nav a:not(.nav-contact) {
    font-size: 12px;
    white-space: nowrap;
  }
  
  .nav-contact {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  .hero {
    min-height: 760px;
    padding: 132px 16px 60px;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
  }

  .hero-desc {
    overflow-wrap: anywhere;
  }
  
  .hero-stats {
    gap: 12px;
  }
  
  .stat-item {
    padding: 12px 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .news-main,
  .news-detail-main {
    padding-top: 150px !important;
  }

  .news-item-footer,
  .news-tags {
    flex-wrap: wrap;
  }

  .news-tags {
    width: 100%;
  }

  .news-tags span {
    white-space: nowrap;
  }
  
  .section {
    padding: 60px 16px;
  }
  
  .coverage-grid,
  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card:last-child {
    grid-column: span 1;
  }

  .section-header-row {
    align-items: flex-start;
  }

  .coverage-main,
  .coverage-all {
    grid-column: span 1;
  }
  
  .contact-box {
    flex-direction: column;
    gap: 32px;
    padding: 24px;
  }
  
  .contact-left {
    text-align: center;
  }
  
  .contact-company {
    justify-content: center;
  }
  
  .contact-cities {
    justify-content: center;
  }
  
  .footer-main {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .advantage-item {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .process-timeline {
    gap: 8px;
  }
  
  .process-step {
    min-width: 80px;
    padding: 8px 12px;
  }
}

/* 企业微信咨询浮层 */
.wecom-float-root {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(40px, env(safe-area-inset-bottom));
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  font-family: inherit;
  pointer-events: none;
}

.wecom-float-root > * {
  pointer-events: auto;
}

.wecom-float-panel {
  position: relative;
  width: min(calc(100vw - 32px), 320px);
  max-height: min(72vh, 480px);
  margin-bottom: 12px;
  padding: 40px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(26, 90, 138, 0.35);
  background: linear-gradient(165deg, rgba(18, 40, 56, 0.97) 0%, rgba(10, 21, 32, 0.98) 100%);
  box-shadow: 0 20px 48px rgba(0, 40, 80, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wecom-float-panel[hidden] {
  display: none !important;
}

.wecom-float-close {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 52px;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #b8d4f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.wecom-float-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.wecom-float-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.wecom-float-tab {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(26, 90, 138, 0.28);
  background: rgba(18, 40, 56, 0.4);
  color: #a8cce8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.wecom-float-tab.is-active {
  border-color: rgba(45, 139, 196, 0.55);
  background: rgba(26, 90, 138, 0.55);
  color: #f0f8ff;
}

.wecom-float-tab:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.wecom-float-content {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.wecom-float-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, rgba(26, 90, 138, 0.75) 0%, rgba(18, 72, 112, 0.9) 100%);
  border: 1px solid rgba(45, 139, 196, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wecom-float-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 90, 138, 0.35);
}

.wecom-float-qr {
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.wecom-float-qr img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  vertical-align: middle;
}

.wecom-float-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 56px;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  font-family: inherit;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  animation: wecom-breathe 2s ease-in-out infinite;
}

@keyframes wecom-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.wecom-float-toggle:hover {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.25);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation-play-state: paused;
}

.wecom-float-toggle:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.wecom-float-toggle-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 768px) {
  .wecom-float-toggle {
    min-width: 68px;
    height: 50px;
    padding: 0 8px;
  }

  .wecom-float-toggle-label {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

/* ============================================================ */
/* 地区确认弹窗样式（统一咨询入口）                               */
/* ============================================================ */

.wecom-region-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.wecom-region-modal-overlay[hidden] {
  display: none !important;
}

.wecom-region-modal {
  position: absolute;
  right: max(30px, env(safe-area-inset-right));
  bottom: max(30px, env(safe-area-inset-bottom));
  z-index: 100002;
  width: min(calc(100vw - 32px), 360px);
  max-width: 360px;
  padding: 36px 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(0, 169, 255, 0.35);
  background: linear-gradient(165deg, rgba(12, 28, 52, 0.98) 0%, rgba(6, 14, 30, 0.99) 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(122, 250, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  text-align: center;
  animation: wecom-region-in 0.3s ease;
}

@keyframes wecom-region-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wecom-region-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #e8f4ff;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.wecom-region-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.wecom-region-btn {
  margin: 0;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 169, 255, 0.3);
  background: linear-gradient(145deg, rgba(22, 52, 92, 0.6) 0%, rgba(10, 28, 52, 0.85) 100%);
  color: #c8e4ff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.wecom-region-btn:hover {
  background: linear-gradient(145deg, rgba(28, 68, 118, 0.75) 0%, rgba(14, 40, 72, 0.9) 100%);
  border-color: rgba(122, 250, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 100, 180, 0.3);
}

.wecom-region-btn.is-active {
  border-color: rgba(122, 250, 255, 0.6);
  background: linear-gradient(145deg, rgba(0, 100, 170, 0.6) 0%, rgba(0, 60, 110, 0.88) 100%);
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(0, 169, 255, 0.25),
    0 8px 24px rgba(0, 100, 180, 0.35);
}

.wecom-region-btn:focus-visible {
  outline: 2px solid #7afaff;
  outline-offset: 2px;
}

.wecom-region-cancel {
  margin: 0;
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #8aa5c4;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.wecom-region-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #d0e8ff;
}

.wecom-region-cancel:focus-visible {
  outline: 2px solid #7afaff;
  outline-offset: 2px;
}

/* 客服面板中的地区标签 */
.wecom-float-region-label {
  font-size: 12px;
  font-weight: 600;
  color: #7ec8ff;
  text-align: center;
  padding: 6px 0 10px;
  letter-spacing: 0.06em;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .wecom-region-modal {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    padding: 28px 20px 22px;
    border-radius: 16px;
  }

  .wecom-region-modal-title {
    font-size: 17px;
    margin-bottom: 22px;
  }

  .wecom-region-modal-grid {
    gap: 10px;
    margin-bottom: 20px;
  }

  .wecom-region-btn {
    padding: 12px 10px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .wecom-region-cancel {
    padding: 8px 20px;
    font-size: 13px;
  }
}
