/* ===================================================
   首页 index.html 专属样式 v2
   设计方向：Refined Editorial Light
   =================================================== */

/* ========== 统计数据加粗 ========== */
.stat-num {
  font-weight: 500;
}
.stat-num .suffix {
  font-weight: 500;
}
.stat-label {
  font-weight: 400;
}

/* ========== 首页深色 Hero 导航适配 ========== */
/* 未滚动时导航文字白色，适配深色 Hero */
.site-header:not(.scrolled) .nav-link {
  color: rgba(250, 250, 247, 0.8);
}
.site-header:not(.scrolled) .nav-link:hover,
.site-header:not(.scrolled) .nav-link.active {
  color: #FAFAF7;
}
.site-header:not(.scrolled) .nav-link::after {
  background: rgba(185, 28, 28, 0.8);
}
.site-header:not(.scrolled) .nav-phone,
.site-header:not(.scrolled) .logo {
  color: #FAFAF7;
}
.site-header:not(.scrolled) .logo-img {
  filter: brightness(0) invert(1);
}
.site-header:not(.scrolled) .nav-phone svg {
  color: rgba(185, 28, 28, 0.8);
}
.site-header:not(.scrolled) .nav-toggle {
  background: rgba(250, 250, 247, 0.1);
  border-color: rgba(250, 250, 247, 0.2);
}
.site-header:not(.scrolled) .nav-toggle span {
  background: #FAFAF7;
}

/* ===== Hero 主视觉 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 4rem;
  background: var(--bg-invert);
  overflow: hidden;
}

/* 背景大图 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: saturate(0.85) contrast(1.05);
}
/* 背景图微缩放动画 — 极慢呼吸感 */
.hero-bg {
  animation: heroBgBreathe 20s ease-in-out infinite alternate;
}
@keyframes heroBgBreathe {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.06) translate(-1%, -1%); }
}

/* 几何网格背景 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, black 10%, transparent 70%);
  pointer-events: none;
  opacity: 1;
}

/* 暖光晕装饰 — 在深色背景下更明显 */
.hero::after {
  content: '';
  position: absolute;
  top: 20%; right: -15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.10), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  animation: heroFloat 14s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FAFAF7;
  background: rgba(185, 28, 28, 0.85);
  border: 1px solid rgba(185, 28, 28, 0.5);
  border-radius: var(--radius-pill);
  margin-bottom: 2rem;
  animation: heroFadeIn 0.8s var(--ease-out) both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FAFAF7;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #FAFAF7;
  margin-bottom: 2rem;
  font-optical-sizing: auto;
  animation: heroFadeUp 1s var(--ease-out) 0.15s both;
}
.hero-title em {
  font-style: normal;
  font-weight: 500;
  color: #D9442B;
}
.hero-title .accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .block { display: block; }

.hero-sub {
  font-size: var(--text-lead);
  line-height: 1.65;
  color: rgba(250, 250, 247, 0.7);
  max-width: 580px;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 1s var(--ease-out) 0.3s both;
}
.hero-sub strong {
  color: #FAFAF7;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
  animation: heroFadeUp 1s var(--ease-out) 0.45s both;
}
.hero-cta .btn-ghost {
  color: rgba(250, 250, 247, 0.8);
  border-color: rgba(250, 250, 247, 0.25);
}
.hero-cta .btn-ghost:hover {
  color: #FAFAF7;
  border-color: rgba(250, 250, 247, 0.5);
  background: rgba(250, 250, 247, 0.08);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  animation: heroFadeUp 1s var(--ease-out) 0.6s both;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(250, 250, 247, 0.6);
  letter-spacing: 0.02em;
}
.hero-tag::before {
  content: '';
  width: 16px; height: 1px;
  background: rgba(185, 28, 28, 0.7);
}

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

/* Hero 侧边装饰 — 编辑式索引 */
.hero-meta {
  position: absolute;
  right: var(--container-pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(250, 250, 247, 0.35);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  z-index: 2;
  animation: heroFadeIn 1.2s var(--ease-out) 0.8s both;
}
.hero-meta span { display: flex; align-items: center; gap: 0.75rem; }
.hero-meta span::after {
  content: '';
  width: 1px; height: 40px;
  background: rgba(250, 250, 247, 0.12);
}

/* Hero 滚动指示 */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: var(--container-pad);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(250, 250, 247, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  animation: heroFadeIn 1.2s var(--ease-out) 1s both;
}
.hero-scroll-line {
  width: 40px; height: 1px;
  background: rgba(250, 250, 247, 0.15);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(185, 28, 28, 0.8);
  animation: scrollRight 2.2s infinite;
}
@keyframes scrollRight {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== 数据统计条 ===== */
.stats-section {
  background: var(--bg-paper);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-grid .stat {
  padding: 1.5rem 1.25rem;
  position: relative;
  text-align: center;
}
.stats-grid .stat::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 40%;
  background: var(--border-strong);
}
.stats-grid .stat:last-child::after { display: none; }
.stats-grid .stat:first-child { padding-left: 0; }

/* ===== 业务矩阵 ===== */
.business-section {
  background: var(--bg-base);
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.business-card {
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.business-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.business-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.business-card:hover::before { transform: scaleX(1); }

.business-num {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--text-faint);
  letter-spacing: 0.16em;
  margin-bottom: 1.5rem;
}

.business-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  transition: all var(--dur-base) var(--ease-out);
}
.business-card:hover .business-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-4deg);
}
.business-icon img { width: 22px; height: 22px; }

.business-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.business-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  flex: 1;
}
.business-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}
.business-card:hover .business-link { color: var(--accent); }
.business-link svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.business-card:hover .business-link svg { transform: translateX(4px); }

/* ===== 6大优势 ===== */
.advantages-section {
  background: var(--bg-muted);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.advantage-card {
  padding: 2.25rem 2rem;
  background: transparent;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-out);
  position: relative;
}
.advantage-card:hover {
  background: var(--bg-paper);
}
.advantage-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  display: block;
}
.advantage-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.advantage-icon svg { width: 28px; height: 28px; }
.advantage-card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.advantage-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== 服务流程 ===== */
.process-section {
  background: var(--bg-base);
}
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px; left: 7%; right: 7%;
  height: 1px;
  background: var(--border-strong);
}
.process-step {
  text-align: left;
  position: relative;
  z-index: 1;
  padding-right: 1rem;
}
.process-dot {
  width: 56px; height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--bg-paper);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.process-step:hover .process-dot {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
  transform: scale(1.05);
}

.process-step h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}
.process-step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== 专业团队 ===== */
.team-section {
  background: var(--bg-paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
}
.team-card {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-out);
}
.team-card:hover {
  background: var(--bg-muted);
}
.team-avatar {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: #F8E9E9;
  display: grid;
  place-items: center;
  color: #B91C1C;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: all var(--dur-base) var(--ease-out);
}
.team-card:hover .team-avatar {
  background: var(--accent);
  transform: rotate(-4deg);
  color: #ffffff;
}
.team-info h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.team-info .role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
.team-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 精选案例 ===== */
.cases-section {
  background: var(--bg-base);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.case-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 6 / 4;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.case-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.case-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.case-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(14, 14, 16, 0.92) 20%, transparent);
  z-index: 2;
}
.case-overlay .tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  margin-bottom: 0.625rem;
  backdrop-filter: blur(8px);
}
.case-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.case-overlay p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 新闻资讯 ===== */
.news-section {
  background: var(--bg-paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.news-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  margin: 0 10px;
}
.news-card:hover {
  background: var(--bg-muted);
}
.news-thumb {
  aspect-ratio: 16 / 9;
  background: #fff;
  position: relative;
  overflow: hidden;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.news-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14, 14, 16, 0.5) 100%);
}
.news-thumb .date {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 0.06em;
  z-index: 1;
}
.news-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-body .cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.news-body h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) var(--ease-out);
}
.news-card:hover .news-body h4 { color: var(--accent); }
/* 首页新闻卡不显示摘要（封面图已含标题文字，卡片更紧凑） */
.news-body p {
  display: none;
}
.news-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}
.news-card:hover .news-more { color: var(--accent); }
.news-more svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.news-card:hover .news-more svg { transform: translateX(4px); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .process-timeline::before { display: none; }
  .hero-meta { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid .stat:nth-child(3)::after { display: none; }
  .stats-grid .stat:nth-child(n+4) { border-top: 1px solid var(--border); padding-top: 1.5rem; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .business-grid,
  .advantages-grid,
  .team-grid,
  .news-grid,
  .cases-grid { grid-template-columns: 1fr; }
  .advantages-grid, .team-grid, .news-grid { border-left: none; }
  .advantage-card, .team-card, .news-card { border-right: none; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
  .stats-grid .stat:nth-child(even)::after { display: none; }
  .stats-grid .stat:nth-last-child(-n+2) { border-bottom: none; }
  .team-card { flex-direction: column; }
  .hero-scroll { display: none; }
}

/* 平板两列布局时，最后一张案例占满整行，避免右侧留空 */
@media (min-width: 769px) and (max-width: 1024px) {
  .cases-grid > .case-card:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}
