/* ============================================================
   txxdh.com 首页专属样式 home.css
   说明：全屏Banner / 文字动画 / 核心优势 / 快速入口 / 资讯区
   ============================================================ */

/* ---------- 全屏 Banner ---------- */
.home-hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #2a2149 0%, #4a2c8a 45%, #7c3aed 100%);
}
.home-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../images/hero-consult.jpg");
  background-size: cover; background-position: center 32%;
  opacity: .34;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 82% 18%, rgba(192,132,252,.4), transparent 60%),
    radial-gradient(560px 380px at 6% 88%, rgba(124,58,237,.5), transparent 62%),
    linear-gradient(115deg, rgba(24,18,48,.92) 0%, rgba(42,26,84,.72) 46%, rgba(124,58,237,.55) 100%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; animation: orbFloat 9s ease-in-out infinite; }
.hero-orb--1 { width: 200px; height: 200px; right: 10%; top: 16%; background: radial-gradient(circle, rgba(240,171,252,.5), transparent 70%); }
.hero-orb--2 { width: 120px; height: 120px; left: 14%; bottom: 22%; background: radial-gradient(circle, rgba(165,180,252,.5), transparent 70%); animation-delay: -4s; }
@keyframes orbFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-26px) scale(1.06); } }

.home-hero-in { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: 120px 24px 100px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px); color: #f0e9ff; font-size: 13.5px; font-weight: 600;
  padding: 8px 20px; border-radius: var(--r-full); letter-spacing: 1px;
  animation: heroFadeDown .8s ease both;
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #f0abfc; box-shadow: 0 0 0 0 rgba(240,171,252,.7); animation: pulseRing 2.2s infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(240,171,252,.7); } 70% { box-shadow: 0 0 0 12px rgba(240,171,252,0); } 100% { box-shadow: 0 0 0 0 rgba(240,171,252,0); } }

.hero-title {
  margin: 26px 0 20px; font-size: clamp(34px, 6vw, 66px); line-height: 1.16;
  font-weight: 800; color: #fff; letter-spacing: 1px;
}
.hero-title .tw { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title .tw span { display: inline-block; transform: translateY(110%); animation: wordUp .9s cubic-bezier(.2,.6,.2,1) forwards; }
.hero-title .tw:nth-child(1) span { animation-delay: .15s; }
.hero-title .tw:nth-child(2) span { animation-delay: .3s; }
.hero-title .tw:nth-child(3) span { animation-delay: .45s; }
.hero-title .tw:nth-child(4) span { animation-delay: .6s; }
.hero-title .tw:nth-child(5) span { animation-delay: .75s; }
.hero-title .tw:nth-child(6) span { animation-delay: .9s; }
.hero-title .tw:nth-child(7) span { animation-delay: 1.05s; }
@keyframes wordUp { to { transform: translateY(0); } }
.hero-title .grad { background: linear-gradient(90deg, #f0abfc, #e4d9ff 55%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub { color: rgba(255,255,255,.86); font-size: 17px; max-width: 620px; margin: 0 auto; animation: heroFadeDown .9s ease .5s both; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 34px; flex-wrap: wrap; animation: heroFadeDown .9s ease .7s both; }

.hero-chips { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; animation: heroFadeDown .9s ease .9s both; }
.hero-chips span {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #efe9ff; font-size: 13px; padding: 8px 16px; border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}
.hero-chips svg { width: 14px; height: 14px; color: #f0abfc; }

.hero-stats {
  margin-top: 54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  animation: heroFadeDown .9s ease 1.1s both;
}
.hero-stats .hs-item {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px); border-radius: var(--r-md); padding: 18px 10px; text-align: center;
  transition: all .3s ease;
}
.hero-stats .hs-item:hover { background: rgba(255,255,255,.16); transform: translateY(-4px); }
.hero-stats .hs-num { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stats .hs-num small { font-size: 15px; }
.hero-stats .hs-lb { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 4px; }

@keyframes heroFadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: 2px; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: hintFloat 2s ease-in-out infinite; }
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes hintFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 快速入口（六宫格 + 大卡片） ---------- */
.quick-zone { position: relative; margin-top: -64px; z-index: 5; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.quick-grid a {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 26px 20px; text-align: center; position: relative; overflow: hidden;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.quick-grid a::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--purple-4), var(--purple-6)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.quick-grid a:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.quick-grid a:hover::before { transform: scaleX(1); }
.quick-grid .qg-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--purple-1); color: var(--purple-6); display: flex; align-items: center; justify-content: center; transition: all .35s ease; }
.quick-grid a:hover .qg-ic { background: linear-gradient(135deg, var(--purple-5), var(--purple-6)); color: #fff; transform: rotate(-6deg) scale(1.06); }
.quick-grid .qg-ic svg { width: 26px; height: 26px; }
.quick-grid h3 { font-size: 15px; font-weight: 700; }
.quick-grid p { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 核心优势（bento 大板） ---------- */
.adv-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.adv-bento .ab-item { border-radius: var(--r-xl); padding: 32px; position: relative; overflow: hidden; transition: all .4s ease; box-shadow: var(--shadow-sm); }
.adv-bento .ab-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.adv-bento .ab-1 { grid-column: span 7; background: linear-gradient(135deg, var(--purple-5), var(--purple-7)); color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.adv-bento .ab-2 { grid-column: span 5; background: var(--card); }
.adv-bento .ab-3 { grid-column: span 4; background: var(--card); }
.adv-bento .ab-4 { grid-column: span 4; background: var(--purple-1); }
.adv-bento .ab-5 { grid-column: span 4; background: var(--card); }
.adv-bento .ab-tag { font-size: 12.5px; letter-spacing: 2px; font-weight: 700; color: var(--purple-4); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.adv-bento .ab-1 .ab-tag { color: #f0abfc; }
.adv-bento .ab-1 .ab-tag::before, .adv-bento .ab-tag::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.adv-bento h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.adv-bento p { font-size: 14.5px; }
.adv-bento .ab-1 p { color: rgba(255,255,255,.85); max-width: 420px; }
.adv-bento .ab-2 p, .adv-bento .ab-3 p, .adv-bento .ab-5 p { color: var(--ink-2); }
.adv-bento .ab-4 p { color: var(--ink-2); }
.adv-bento .ab-num { font-size: 44px; font-weight: 800; line-height: 1; margin-bottom: 10px; color: var(--purple-2); }
.adv-bento .ab-1 .ab-num { color: rgba(255,255,255,.35); }
.adv-bento .ab-ic { position: absolute; top: 26px; right: 26px; width: 54px; height: 54px; border-radius: 16px; background: var(--purple-1); color: var(--purple-6); display: flex; align-items: center; justify-content: center; }
.adv-bento .ab-ic svg { width: 26px; height: 26px; }

/* ---------- 服务流程（横向飘带） ---------- */
.flow-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow-ribbon .fr-step { position: relative; padding: 0 30px; text-align: center; }
.flow-ribbon .fr-step:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; left: calc(50% + 46px); width: calc(100% - 92px);
  height: 2px; border-top: 2px dashed var(--purple-3);
}
.flow-ribbon .fr-dot {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  color: var(--purple-6); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; box-shadow: var(--shadow-sm);
  position: relative; z-index: 1; transition: all .35s ease;
}
.flow-ribbon .fr-step:hover .fr-dot { background: linear-gradient(135deg, var(--purple-5), var(--purple-6)); color: #fff; transform: translateY(-6px); box-shadow: var(--shadow-md); }
.flow-ribbon h3 { font-size: 16px; margin-bottom: 6px; }
.flow-ribbon p { font-size: 13px; color: var(--ink-3); }

/* ---------- 行业覆盖（横向滑动条） ---------- */
.industry-strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 18px; scrollbar-width: thin; }
.industry-strip a {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-full);
  padding: 12px 22px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .3s ease; box-shadow: var(--shadow-sm);
}
.industry-strip a:hover { border-color: var(--purple-5); color: var(--purple-6); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-strip .is-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--purple-1); color: var(--purple-6); display: flex; align-items: center; justify-content: center; }
.industry-strip .is-ic svg { width: 14px; height: 14px; }

/* ---------- 区县覆盖（错位卡片） ---------- */
.region-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.region-stack a { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .35s ease; }
.region-stack a:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.region-stack .rs-media { height: 150px; position: relative; }
.region-stack .rs-media img { width: 100%; height: 100%; object-fit: cover; }
.region-stack .rs-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(43,27,90,.75)); }
.region-stack .rs-name { position: absolute; left: 18px; bottom: 14px; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 2px; z-index: 1; }
.region-stack .rs-sub { position: absolute; right: 14px; top: 12px; background: rgba(255,255,255,.9); color: var(--purple-6); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); z-index: 1; }
.region-stack .rs-more { display: block; text-align: center; padding: 10px; font-size: 12.5px; color: var(--ink-3); background: var(--card); }

/* ---------- 数据看板 ---------- */
.board-band { border-radius: var(--r-xl); background: linear-gradient(120deg, var(--purple-7), var(--purple-5)); padding: 56px 50px; color: #fff; position: relative; overflow: hidden; }
.board-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 44px solid rgba(255,255,255,.07); }
.board-band .bb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.board-band .bb-item { text-align: center; border-right: 1px solid rgba(255,255,255,.16); }
.board-band .bb-item:last-child { border-right: none; }
.board-band .bb-num { font-size: 42px; font-weight: 800; line-height: 1.1; }
.board-band .bb-num small { font-size: 20px; font-weight: 600; }
.board-band .bb-lb { font-size: 13.5px; color: rgba(255,255,255,.78); margin-top: 8px; }

/* ---------- 首页资讯卡片 ---------- */
.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-news-grid .hn-card { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .35s ease; display: flex; flex-direction: column; }
.home-news-grid .hn-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.home-news-grid .hn-media { position: relative; height: 190px; overflow: hidden; }
.home-news-grid .hn-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.home-news-grid .hn-card:hover .hn-media img { transform: scale(1.07); }
.home-news-grid .hn-time { position: absolute; left: 16px; bottom: 14px; background: rgba(43,27,90,.72); backdrop-filter: blur(6px); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: var(--r-full); }
.home-news-grid .hn-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.home-news-grid h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-grid h3 a:hover { color: var(--purple-6); }
.home-news-grid p { font-size: 13.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.home-news-grid .hn-more { margin-top: auto; font-size: 13.5px; color: var(--purple-6); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.home-news-grid .hn-more svg { width: 14px; height: 14px; }

/* ---------- 首页评价墙 ---------- */
.home-quotes { position: relative; }
.home-quotes .hq-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-quotes .hq-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 30px; position: relative; transition: all .35s ease; }
.home-quotes .hq-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-md); }
.home-quotes .hq-card::before { content: "“"; position: absolute; top: 6px; right: 20px; font-size: 64px; font-family: Georgia, serif; color: var(--purple-2); }
.home-quotes .hq-star { color: #f0abfc; font-size: 14px; letter-spacing: 3px; margin-bottom: 14px; }
.home-quotes p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 20px; }
.home-quotes .hq-user { display: flex; align-items: center; gap: 12px; }
.home-quotes .hq-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-2), var(--purple-4)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.home-quotes .hq-name { font-size: 14px; font-weight: 700; }
.home-quotes .hq-role { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 首页 CTA ---------- */
.home-cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--purple-7), var(--purple-5) 70%, #8b5cf6); border-radius: var(--r-xl); padding: 70px 56px; color: #fff; text-align: center; }
.home-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 15% 100%, #000, transparent 60%); mask-image: radial-gradient(ellipse at 15% 100%, #000, transparent 60%); }
.home-cta h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; position: relative; z-index: 1; }
.home-cta p { margin: 16px auto 30px; max-width: 560px; color: rgba(255,255,255,.88); position: relative; z-index: 1; }
.home-cta .hc-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.home-cta .hc-tel { display: block; margin-top: 24px; font-size: 30px; font-weight: 800; letter-spacing: 2px; color: #fff; position: relative; z-index: 1; }

/* ---------- 响应式（首页） ---------- */
@media (max-width: 1080px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-bento .ab-1 { grid-column: span 12; }
  .adv-bento .ab-2 { grid-column: span 12; }
  .adv-bento .ab-3, .adv-bento .ab-4, .adv-bento .ab-5 { grid-column: span 4; }
  .region-stack { grid-template-columns: repeat(2, 1fr); }
  .home-news-grid, .home-quotes .hq-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .flow-ribbon { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .flow-ribbon .fr-step:nth-child(2)::after { display: none; }
  .board-band .bb-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .board-band .bb-item:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-bento .ab-3, .adv-bento .ab-4, .adv-bento .ab-5 { grid-column: span 12; }
  .region-stack { grid-template-columns: 1fr; }
  .home-news-grid, .home-quotes .hq-track { grid-template-columns: 1fr; }
  .hero-actions .btn { padding: 12px 22px; }
  .home-hero-in { padding: 90px 20px 80px; }
  .home-cta { padding: 48px 24px; }
  .board-band { padding: 40px 24px; }
}
