/* ============================================
   YYDS of "禾汇睿源" 智能企业官网样式
   ============================================ */

/* ---------- 设计变量 ---------- */
:root {
  --color-primary: #2F2F2F;      /* 主文字色 */
  --color-accent: #C39962;       /* 品牌金色 */
  --color-accent-dark: #A8844F;  /* 金色深色 */
  --color-text: #333333;         /* 正文 */
  --color-text-muted: #888888;   /* 辅助文字 */
  --color-light-gray: #F8F8F8;   /* 浅灰背景 */
  --color-border: #EEEEEE;       /* 边框 */
  --color-watermark: rgba(171, 171, 171, 0.12); /* 水印大文字 */
  --color-dark: #3A3A3A;         /* 深色段落 */

  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI",
                  "PingFang SC", "Hiragino Sans GB",
                  "Microsoft YaHei", "微软雅黑", sans-serif;
  --container-width: 1300px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   顶部导航
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 20px 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 46px;
  width: auto;
  display: block;
  border-radius: 10px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: var(--transition);
}
.site-header.scrolled .logo-img {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 6px 0;
}
.logo-mark {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 1px;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  transition: var(--transition);
}
.site-header.scrolled .logo-img {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 6px 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  padding: 6px 0;
  position: relative;
  transition: var(--transition);
  font-weight: 400;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover,
.nav-link.active { color: var(--color-accent); }
.site-header.scrolled .nav-link { color: #555; }
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active { color: var(--color-accent); }

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: var(--transition);
}
.site-header.scrolled .nav-toggle span { background: var(--color-primary); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* ============================================
   Hero 横幅
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ===== Hero 背景轮播 ===== */
.hero-bg-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: heroZoom 9s ease-out forwards;
}
.hero-dots {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dots:empty { display: none; }
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  width: 28px;
  border-radius: 6px;
  background: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,35,25,0.62) 0%, rgba(30,45,35,0.45) 50%, rgba(40,50,45,0.68) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 120px 24px 60px;
}
.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 8px;
  margin-bottom: 20px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 3px;
  opacity: 0.95;
  margin-bottom: 20px;
  color: #E8F0E8;
}
.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 20px;
  border-radius: 3px;
}
.hero-eng {
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 36px;
  color: #D0E0D0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 42px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
}
.btn-gold {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(195,153,98,0.35);
}
.btn-gold:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(195,153,98,0.45);
}
.btn-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 12px 32px;
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn-full { width: 100%; justify-content: center; margin-top: 8px; }

/* 滚动指示 */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-mouse {
  display: block;
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.8);
  animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 26px; }
  100% { opacity: 0; top: 26px; }
}

/* ============================================
   通用区块样式
   ============================================ */
.section { padding: 100px 0; position: relative; }

.section-heading {
  position: relative;
  margin-bottom: 48px;
}
.section-heading.center { text-align: center; }
.section-heading.right-align { text-align: right; }

.section-eng {
  display: block;
  position: absolute;
  top: -28px;
  font-size: 72px;
  font-weight: 800;
  color: var(--color-watermark);
  letter-spacing: 4px;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
.section-heading.center .section-eng,
.section-heading.right-align .section-eng {
  right: 0;
}
.section-heading:not(.center):not(.right-align) .section-eng {
  left: 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}
.title-accent {
  color: var(--color-accent);
  margin-left: 8px;
  font-weight: 300;
}
.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: -28px 0 40px;
  line-height: 38px;
  text-align: center;
}

/* ============================================
   关于我们
   ============================================ */
.about-section { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}
.about-image:hover img { transform: scale(1.03); }

/* ===== 关于配图轮播 ===== */
.about-carousel {
  position: relative;
  width: 100%;
  height: 420px;
}
.about-carousel .about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.6s var(--ease-smooth);
}
.about-carousel .about-slide.active { opacity: 1; }
/* 配置加载中：隐藏轮播图片（避免刷新时先闪现默认图），JS 加载配置后移除 loading */
.about-carousel.loading { background: #f4f2ee; }
.about-carousel.loading .about-slide { opacity: 0; }
@media (max-width: 768px) {
  .about-carousel { height: 320px; }
}

.about-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(255,255,255,0.95);
  border-radius: 4px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.badge-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.badge-text { font-size: 14px; color: var(--color-text); white-space: nowrap; }

.about-intro {
  font-size: 20px;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.about-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
/* 关于我们详细内容：超过 120 字时多行省略，完整内容见「了解更多」页 */
/* 关于导语/详情：保留后台配置的空格与换行，与后台设定一致 */
[data-setting="about_intro"], [data-setting="about_desc"] { white-space: pre-wrap; }
.about-desc.clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
@media (max-width: 480px) {
  .about-desc.clamped { -webkit-line-clamp: 4; }
}
.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 30px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}
.about-list svg {
  width: 18px; height: 18px;
  color: var(--color-accent);
}

/* 统计数字 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--color-border);
  padding-top: 44px;
  text-align: center;
}
.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 6px;
  line-height: 1.2;
  font-family: 'Georgia', var(--font-primary);
}
.stat-plus { margin-left: 2px; }
.stat-label {
  font-size: 15px;
  color: var(--color-text-muted);
  letter-spacing: 2px;
}

/* ============================================
   用户群体
   ============================================ */
.users-section { background: var(--color-light-gray); }

.users-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.user-card {
  background: #fff;
  border-radius: 4px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  position: relative;
}
.user-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-accent);
}
.user-card-icon {
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #D4B57C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.user-card:hover .user-card-icon {
  transform: scale(1.1) rotate(8deg);
}
.user-card-icon svg { width: 44px; height: 44px; }
.user-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.user-card-eng {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.user-card-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}
/* 用户群体 · 痛点列表 */
.user-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.user-card-list li {
  position: relative;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-left: 18px;
  margin-bottom: 10px;
}
.user-card-list li:last-child { margin-bottom: 0; }
.user-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ============================================
   我们的优势
   ============================================ */
.advantages-section { background: #fff; }

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px dashed var(--color-border);
  transition: var(--transition);
}
.adv-item:hover { padding-left: 12px; }
.adv-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.7;
  line-height: 1;
  min-width: 44px;
  font-family: 'Georgia', serif;
}
.adv-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.adv-content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   精选服务
   ============================================ */
.services-section { background: var(--color-light-gray); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: #fff;
  border-radius: 4px;
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #E5CB98);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-smooth);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 60px; height: 60px;
  margin-bottom: 20px;
  border-radius: 4px;
  background: var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--color-accent);
  color: #fff;
}
.service-icon svg {
  width: 32px; height: 32px;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.service-detail {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 2;
  margin: 0;
}
.service-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.service-more:hover {
  color: #A8844F;
  transform: translateX(3px);
}

/* 卡片「我要咨询」按钮（客户痛点 / 精选服务） */
.consult-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 20px;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.consult-btn:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   新闻动态
   ============================================ */
.news-section { background: #fff; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-card {
  background: var(--color-light-gray);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-img {
  height: 200px;
  background-color: #d5d8d6;
  background: linear-gradient(135deg, #7BA4C7 0%, #4E7BA6 50%, #35618E 100%);
  position: relative;
}
.news-img-2 {
  background: linear-gradient(135deg, #88A889 0%, #5C8A5C 50%, #3D6E3D 100%);
}
.news-img-3 {
  background: linear-gradient(135deg, #D7B08A 0%, #C08A5A 50%, #A06A3A 100%);
}
.news-date {
  position: absolute;
  bottom: 0; left: 0;
  background: rgba(255,255,255,0.95);
  padding: 8px 18px;
  border-radius: 0 4px 0 0;
  text-align: center;
}
.news-day {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
}
.news-month {
  font-size: 11px;
  color: var(--color-text-muted);
}
.news-body { padding: 24px; }
.news-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.5;
  transition: var(--transition);
}
.news-card:hover .news-title { color: var(--color-accent); }
.news-excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-accent);
  transition: var(--transition);
}
.news-link::after {
  content: '→';
  transition: transform 0.3s;
}
.news-link:hover::after { transform: translateX(4px); }

/* 新闻区 · 查看全部 */
.news-more-wrap {
  text-align: center;
  margin-top: 46px;
}
.news-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 38px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
}
.news-more:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(195, 153, 98, 0.3);
}
.news-more-arrow { transition: transform 0.3s; }
.news-more:hover .news-more-arrow { transform: translateX(4px); }

/* 首页新闻动态：左右滑动切换（横向滚动 + 鼠标拖动 + 触摸滑动 + 箭头） */
.news-slider { position: relative; }
.news-slider .news-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 4px 22px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
/* 拖动时仅切换抓手光标；容器不使用 scroll-behavior，保证拖动即时跟随不振荡 */
.news-slider .news-grid.dragging { cursor: grabbing; }
.news-slider .news-grid::-webkit-scrollbar { display: none; }
.news-slider .news-card {
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: 0;
  cursor: pointer;
}
.news-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.94); color: var(--color-accent, #C39962);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); transition: all 0.3s;
}
.news-arrow:hover { background: var(--color-accent, #C39962); color: #fff; }
.news-arrow:disabled { opacity: 0.35; cursor: default; }
.news-arrow:disabled:hover { background: rgba(255, 255, 255, 0.94); color: var(--color-accent, #C39962); }
.news-arrow svg { width: 20px; height: 20px; }
.news-arrow-prev { left: 12px; }
.news-arrow-next { right: 12px; }
@media (max-width: 1024px) {
  .news-slider .news-card { flex-basis: calc((100% - 30px) / 2); }
}
@media (max-width: 768px) {
  .news-slider .news-card { flex-basis: 82%; }
  .news-arrow { display: none; }
}

/* 锚点跳转不被固定页眉遮挡 */
section[id] { scroll-margin-top: 84px; }

/* ============================================
   服务咨询
   ============================================ */
.consultation-section {
  background: linear-gradient(135deg, #3D3D3D 0%, #2A2A2A 100%);
  color: #fff;
}
.consultation-section .section-title { color: #fff; }
.consultation-section .section-eng { color: rgba(255,255,255,0.08); }

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.consultation-tip {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  padding-top: 12px;
  line-height: 1.8;
}

.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: block;
}
.contact-value {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin-top: 2px;
}

/* 微信二维码图片 */
.wechat-qr {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-top: 6px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 微信号文本（二维码下方） */
.contact-wechat-id {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* 表单样式 */
.consultation-form {
  background: #fff;
  border-radius: 6px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 6px;
  font-weight: 500;
}
.required { color: #E53935; margin-left: 2px; }
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-light-gray);
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(195,153,98,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border-radius: 3px;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 14px;
  text-align: center;
  border: 1px solid #A5D6A7;
}
.form-success.show { display: block; animation: fadeInUp 0.4s ease; }

/* ============================================
   页脚
   ============================================ */
.site-footer {
  background: #222;
  color: rgba(255,255,255,0.8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 70px 24px 50px;
}
.footer-logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--color-accent);
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: var(--transition);
}
a.footer-link:hover {
  color: var(--color-accent);
  padding-left: 6px;
}
.footer-contact {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 2;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}
.footer-bottom a:hover { color: var(--color-accent); }

/* ============================================
   回到顶部按钮
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 40px; right: 40px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  cursor: pointer;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================
   悬浮在线联系（微信二维码）
   ============================================ */
.float-contact { position: fixed; bottom: 96px; right: 40px; z-index: 950; }
.float-contact-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer; transition: var(--transition);
}
.float-contact-btn:hover { background: var(--color-accent-dark); transform: translateY(-3px); }
.float-contact-btn > svg { width: 20px; height: 20px; }
.float-contact-tip {
  position: absolute; right: 54px; top: 50%; transform: translateY(-50%);
  background: #333; color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 4px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition);
}
.float-contact-btn:hover .float-contact-tip { opacity: 1; }
.wechat-popover {
  position: absolute; right: 58px; bottom: -8px; width: 210px;
  background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 20px 16px 14px; text-align: center;
  opacity: 0; visibility: hidden; transform: translateX(14px) scale(0.96); transition: var(--transition);
}
.wechat-popover.show { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
.wechat-qr-wrap img { width: 170px; height: 170px; object-fit: contain; display: block; margin: 0 auto; border-radius: 6px; }
.wechat-empty { font-size: 12px; color: #bbb; line-height: 1.8; padding: 34px 0; margin: 0; }
.wechat-text { font-size: 13px; color: #666; margin: 12px 0 0; line-height: 1.6; }
.wechat-close {
  position: absolute; top: 4px; right: 8px; width: 24px; height: 24px; border: none;
  background: transparent; color: #bbb; font-size: 20px; line-height: 1; cursor: pointer; transition: var(--transition);
}
.wechat-close:hover { color: #333; }

/* ============================================
   滚动触发动效
   ============================================ */
.animate-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s var(--ease-smooth) forwards;
}
.animate-in:nth-child(1) { animation-delay: 0.2s; }
.animate-in:nth-child(2) { animation-delay: 0.4s; }
.animate-in:nth-child(3) { animation-delay: 0.6s; }
.animate-in:nth-child(4) { animation-delay: 0.8s; }
.animate-in:nth-child(5) { animation-delay: 1s; }

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

/* 滚动触发类（由JS添加 .visible） */
.reveal-left,
.reveal-right,
.reveal-bottom,
.reveal-card,
.reveal-item {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-bottom { transform: translateY(50px); }
.reveal-card { transform: translateY(40px); }
.reveal-item { transform: translateY(30px); }

.reveal-left.visible,
.reveal-right.visible,
.reveal-bottom.visible,
.reveal-card.visible,
.reveal-item.visible {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

/* ============================================
   移动端适配
   ============================================ */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-eng { font-size: 56px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 60px 40px;
    transition: right 0.4s var(--ease-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
  }
  .main-nav.active { right: 0; }
  .nav-link {
    font-size: 18px;
    color: var(--color-primary) !important;
    padding: 8px 0;
  }

  .hero-title { font-size: 36px; letter-spacing: 4px; }
  .hero-subtitle { font-size: 17px; letter-spacing: 2px; }

  .section-title { font-size: 26px; }
  .section-eng { font-size: 44px; top: -16px; }

  .about-grid,
  .consultation-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 320px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 38px; }

  .users-grid,
  .services-grid,
  .news-grid { grid-template-columns: 1fr; }

  .advantages-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 50px; }

  .consultation-form { padding: 26px; }
  .back-to-top { bottom: 20px; right: 20px; }
  .float-contact { bottom: 76px; right: 20px; }
  .wechat-popover { right: 56px; width: 190px; }
  .wechat-qr-wrap img { width: 150px; height: 150px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero-title { font-size: 30px; letter-spacing: 2px; }
  .hero-subtitle { font-size: 15px; }
  .btn { padding: 12px 32px; font-size: 14px; }
  .section-title { font-size: 24px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 32px; }
  .about-list { grid-template-columns: 1fr; }
  .user-card { padding: 32px 24px; }
  .service-card { padding: 32px 24px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal-left,.reveal-right,.reveal-bottom,
  .reveal-card,.reveal-item,.animate-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero-bg { animation: none; }
  .scroll-mouse::after { animation: none; }
}

/* ======= 新闻动态 · 类型筛选 + 关键字搜索 ======= */
.news-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.news-filter-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.news-cat-btn {
  padding: 8px 18px;
  border: 1px solid #e2e2e2;
  background: #fff;
  color: #666;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.news-cat-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.news-cat-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.news-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.25s ease;
}
.news-search-box:focus-within { border-color: var(--color-accent); }
.news-search-box input {
  border: none;
  outline: none;
  padding: 9px 6px 9px 18px;
  font-size: 14px;
  width: 220px;
  color: #333;
  background: transparent;
}
.news-search-btn {
  border: none;
  background: transparent;
  color: #999;
  padding: 0 16px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}
.news-search-btn:hover { color: var(--color-accent); }
.news-cat {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(195, 153, 98, 0.1);
  color: var(--color-accent);
  font-size: 12px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #aaa;
  padding: 60px 0;
  font-size: 15px;
}
@media (max-width: 768px) {
  .news-filter-bar { flex-direction: column; align-items: stretch; }
  .news-search-box input { width: 100%; flex: 1; }
}

/* ============================================
   在线税务体检
   ============================================ */
.taxcheck-section { background: var(--color-light-gray); }

.taxcheck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.taxcheck-desc {
  font-size: 16px;
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 22px;
}
.taxcheck-points { list-style: none; margin: 0 0 36px; padding: 0; }
.taxcheck-points li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 2.4;
}
.taxcheck-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.taxcheck-btn {
  display: inline-block;
  padding: 14px 46px;
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(195,153,98,0.35);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.taxcheck-btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(195,153,98,0.45);
}

/* 报告样例卡片 */
.taxcheck-sample {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.taxcheck-sample-title {
  position: relative;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-light-gray);
}
.taxcheck-sample-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 42px;
  height: 2px;
  background: var(--color-accent);
}
.taxcheck-sample-box { min-height: 120px; }
.taxcheck-sample-empty {
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
  padding: 48px 0;
}
.taxcheck-sample-link { display: block; text-decoration: none; }
.taxcheck-sample-img {
  width: 100%;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.taxcheck-sample-name {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text);
  text-align: center;
}
.taxcheck-sample-file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--color-light-gray);
  border-radius: 8px;
  transition: background 0.3s;
}
.taxcheck-sample-file:hover { background: #f0ebe3; }
.taxcheck-file-badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.taxcheck-file-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.taxcheck-file-name {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.taxcheck-file-act { font-size: 12px; color: var(--color-accent); }

/* 样例改为按钮触发（去除直链下载入口），重置按钮默认样式 */
button.taxcheck-sample-link { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; width: 100%; text-align: inherit; }

/* 样例在线预览弹层（仅预览，不提供下载入口） */
.sample-preview-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.sample-preview-modal.show { display: block; }
.sample-preview-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.72); }
.sample-preview-dialog { position: absolute; inset: 4% 6%; background: #fff; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.sample-preview-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #eee; }
.sample-preview-title { font-size: 15px; font-weight: 600; color: #2f2f2f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-preview-close { border: none; background: none; font-size: 26px; line-height: 1; color: #888; cursor: pointer; padding: 0 4px; transition: color .2s; }
.sample-preview-close:hover { color: #c0392b; }
.sample-preview-body { flex: 1; overflow: auto; background: #f5f5f5; }
.sample-preview-frame { width: 100%; height: 100%; border: none; display: block; }
.sample-preview-img { display: block; max-width: 100%; margin: 0 auto; user-select: none; }
.sample-preview-tip { flex: none; padding: 10px; text-align: center; font-size: 12px; color: #999; border-top: 1px solid #eee; background: #fafafa; }
@media (max-width: 768px) {
  .sample-preview-dialog { inset: 3% 3%; }
}

/* 体检登录弹窗 */
.taxcheck-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.taxcheck-modal-mask.show { opacity: 1; visibility: visible; }
.taxcheck-modal {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.taxcheck-modal-mask.show .taxcheck-modal { transform: translateY(0); }
.taxcheck-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
  transition: color 0.3s, background 0.3s;
}
.taxcheck-modal-close:hover { color: var(--color-primary); background: rgba(0,0,0,0.05); }
.taxcheck-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 8px;
}
.taxcheck-modal-tip {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 0 24px;
}
.taxcheck-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 16px;
  background: var(--color-light-gray);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.taxcheck-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(195,153,98,0.15);
}
.taxcheck-modal-msg {
  color: #e74c3c;
  font-size: 13px;
  min-height: 18px;
  margin: -6px 0 10px;
  text-align: center;
}
.taxcheck-modal-actions { display: flex; flex-direction: column; gap: 12px; }
.taxcheck-btn-block { width: 100%; }
.taxcheck-btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.taxcheck-btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.taxcheck-apply {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}
.taxcheck-apply a { color: var(--color-accent); text-decoration: none; font-weight: 600; }
.taxcheck-apply a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .taxcheck-grid { grid-template-columns: 1fr; gap: 36px; }
  .taxcheck-btn { width: 100%; text-align: center; }
  .taxcheck-sample { padding: 24px; }
}