/* ============================================================
   donkiz-ca.com 首页独有样式 home.css
   骨架：全屏 Hero + 不对称 Bento 优势 + 错落快速入口 +
         阶梯套餐 + 折线流程 + 行业云 + 错落案例 + 服务条 +
         资讯网格 + 数据带 + CTA 区（阶梯式左右错落，拒绝三段式）
   ============================================================ */

/* ---------- Hero 全屏 ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--bg-faint); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(249,250,251,.96) 0%, rgba(249,250,251,.82) 42%, rgba(249,250,251,.30) 100%); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding: 120px 0 90px; width: 100%; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .22em; font-weight: 600; color: var(--ink-3); margin-bottom: 26px; }
.hero-kicker::before { content: ""; width: 30px; height: 2px; background: var(--ink); }
.hero-title { font-size: clamp(34px, 5vw, 58px); line-height: 1.18; font-weight: 800; letter-spacing: .01em; }
.hero-title .hero-word { margin-right: .22em; }
.hero-title .hl { color: var(--ink-3); }
.hero-sub { margin-top: 24px; max-width: 520px; font-size: 17px; color: var(--ink-2); }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
/* 玻璃信息卡（右侧浮动） */
.hero-glass {
  position: relative; justify-self: end; width: min(100%, 380px);
  background: var(--mist); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.85); border-radius: 22px; padding: 30px 28px;
  box-shadow: var(--shadow-lg); animation: floatY 6s ease-in-out infinite;
}
.hero-glass h3 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-glass .hg-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hg-stat b { font-size: 26px; letter-spacing: .02em; display: block; line-height: 1.1; }
.hg-stat span { font-size: 13px; color: var(--ink-3); }
.hg-divider { height: 1px; background: var(--line); margin: 20px 0; }
.hero-glass .hg-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.hg-line b { color: var(--ink); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .3em; color: var(--ink-3); }
.scroll-hint .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.scroll-hint .dot:nth-child(2) { animation: pulseDot 1.6s ease-in-out infinite; }

/* ---------- Bento 优势区 ---------- */
.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bento-card { position: relative; padding: 34px 30px; border-radius: 20px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.bento-a { grid-row: 1 / 3; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.bento-a .bc-ic { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.bento-a h3 { color: #fff; font-size: 24px; margin: 26px 0 12px; }
.bento-a p { color: rgba(255,255,255,.66); font-size: 14.5px; }
.bento-a .bc-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; }
.bento-b, .bento-c { background: var(--white); border: 1px solid var(--line); }
.bento-d, .bento-e { background: var(--bg-soft); }
.bc-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--ink); margin-bottom: 20px; }
.bento-b .bc-ic, .bento-c .bc-ic { background: var(--ink); color: #fff; }
.bento-card h3 { font-size: 18px; margin-bottom: 8px; }
.bento-card p { font-size: 14px; color: var(--ink-3); }
.bento-f { grid-column: 1 / -1; background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 26px 30px; }
.bf-item { display: flex; align-items: center; gap: 14px; }
.bf-item svg { color: var(--ink-3); flex: 0 0 auto; }
.bf-item b { display: block; font-size: 17px; color: var(--ink); line-height: 1.2; }
.bf-item span { font-size: 13px; color: var(--ink-3); }

/* ---------- 快速入口（错落双排） ---------- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quick-tile { position: relative; border-radius: 22px; overflow: hidden; min-height: 250px; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.quick-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.quick-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.quick-tile:hover img { transform: scale(1.06); }
.quick-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,25,29,0) 30%, rgba(23,25,29,.78) 100%); }
.qt-body { position: relative; z-index: 2; padding: 30px; color: #fff; width: 100%; }
.qt-body h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.qt-body p { color: rgba(255,255,255,.74); font-size: 14px; }
.qt-body .qt-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 600; letter-spacing: .06em; }
.qt-go .ar { transition: transform .3s var(--ease); }
.quick-tile:hover .qt-go .ar { transform: translateX(5px); }
.quick-tile.t2 { transform: translateY(36px); }
.quick-tile.t3 { transform: translateY(-14px); }
.quick-tile.t4 { transform: translateY(10px); }
@media (max-width: 900px) { .quick-tile.t2, .quick-tile.t3, .quick-tile.t4 { transform: none; } }

/* ---------- 套餐预览 ---------- */
.pkg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: center; }
.pkg-card { position: relative; padding: 38px 30px 30px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pkg-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.pkg-card .pkg-name { font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }
.pkg-card .pkg-price { margin: 16px 0 4px; font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1; }
.pkg-card .pkg-price small { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.pkg-card .pkg-desc { font-size: 14px; color: var(--ink-3); min-height: 44px; margin: 12px 0 18px; }
.pkg-card ul li { font-size: 13.5px; color: var(--ink-2); padding: 5px 0 5px 24px; position: relative; }
.pkg-card ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.pkg-card .btn { width: 100%; margin-top: 20px; }
.pkg-hot { background: var(--ink); border-color: var(--ink); transform: translateY(-16px); box-shadow: var(--shadow-lg); }
.pkg-hot .pkg-name, .pkg-hot .pkg-price, .pkg-hot ul li, .pkg-hot ul li::before { color: #fff; }
.pkg-hot .pkg-desc { color: rgba(255,255,255,.62); }
.pkg-hot .btn { background: #fff; color: var(--ink); }
.pkg-hot:hover { transform: translateY(-22px); }
.pkg-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 5px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .pkg-row { grid-template-columns: 1fr; } .pkg-hot { transform: none; } .pkg-hot:hover { transform: translateY(-8px); } }

/* ---------- 折线流程（阶梯错落） ---------- */
.flow-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.flow-strip::before { content: ""; position: absolute; left: 8%; right: 8%; top: 30px; height: 2px; background: var(--line); z-index: 0; }
.flow-step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.flow-step:nth-child(even) { transform: translateY(52px); }
.flow-node { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--ink); position: relative; }
.flow-node .fn-idx { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-step h3 { font-size: 15.5px; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .flow-strip { grid-template-columns: 1fr 1fr; gap: 34px 18px; } .flow-strip::before { display: none; } .flow-step:nth-child(even) { transform: none; } .flow-step:nth-child(5) { grid-column: 1 / -1; } }

/* ---------- 行业云 ---------- */
.industry-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.industry-cloud a {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: all .3s var(--ease);
}
.industry-cloud a svg { color: var(--ink-3); transition: color .3s, transform .3s; }
.industry-cloud a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.industry-cloud a:hover svg { color: #fff; transform: rotate(-6deg); }
.industry-cloud .ic-wide { padding-inline: 34px; }

/* ---------- 案例预览（错落） ---------- */
.case-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.case-card2 { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.case-card2:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.case-card2 img { width: 100%; height: 340px; object-fit: cover; transition: transform .6s var(--ease); }
.case-card2:hover img { transform: scale(1.05); }
.cc-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 26px 28px; color: #fff; background: linear-gradient(180deg, rgba(23,25,29,0) 0%, rgba(23,25,29,.82) 100%); }
.cc-body h3 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.cc-body p { color: rgba(255,255,255,.7); font-size: 13.5px; }
.case-card2.c2 { transform: translateY(46px); }
.case-card2.c4 { transform: translateY(46px); }
@media (max-width: 900px) { .case-row { grid-template-columns: 1fr; } .case-card2.c2, .case-card2.c4 { transform: none; } }

/* ---------- 增值服务条 ---------- */
.svc-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.svc-item { display: flex; gap: 18px; align-items: flex-start; padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc-item .sv-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--ink); flex: 0 0 auto; }
.svc-item:hover .sv-ic { background: var(--ink); color: #fff; }
.svc-item h3 { font-size: 15.5px; margin-bottom: 4px; }
.svc-item p { font-size: 13px; color: var(--ink-3); }
.svc-item:nth-child(even) { transform: translateY(22px); }
.svc-item:nth-child(even):hover { transform: translateY(16px); }
@media (max-width: 900px) { .svc-strip { grid-template-columns: 1fr 1fr; } .svc-item:nth-child(even) { transform: none; } }
@media (max-width: 640px) { .svc-strip { grid-template-columns: 1fr; } }

/* ---------- 资讯网格（CMS 循环渲染） ---------- */
.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card .news-media { display: block; overflow: hidden; }
.news-card .news-media img { width: 100%; height: 200px; object-fit: cover; background: var(--bg-soft); transition: transform .6s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-body { padding: 20px 22px 22px; }
.news-body time { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.news-body h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 8px; }
.news-body h3 a { transition: color .25s; }
.news-body h3 a:hover { color: var(--ink-3); }
.news-body p { font-size: 13.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .home-news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .home-news-grid { grid-template-columns: 1fr; } }

/* ---------- 数据带 ---------- */
.why-band { position: relative; border-radius: 26px; overflow: hidden; padding: 74px 50px; }
.why-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,25,29,.92) 20%, rgba(23,25,29,.66) 100%); }
.why-band .wb-in { position: relative; z-index: 2; color: #fff; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.why-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.why-band p { color: rgba(255,255,255,.72); font-size: 14.5px; }
.why-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-stat b { font-size: 34px; display: block; line-height: 1.1; }
.why-stat span { font-size: 13px; color: rgba(255,255,255,.6); }
.why-stat .ws-cell { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 20px; backdrop-filter: blur(6px); }
@media (max-width: 900px) { .why-band .wb-in { grid-template-columns: 1fr; } .why-band { padding: 54px 26px; } }

/* ---------- CTA 区 ---------- */
.cta-band { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; background: var(--bg-soft); border-radius: 26px; padding: 56px 54px; overflow: hidden; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.cta-band p { color: var(--ink-3); font-size: 15px; }
.cta-touch { display: grid; gap: 14px; }
.cta-touch a { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; font-weight: 600; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cta-touch a:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.cta-touch svg { color: var(--ink-3); flex: 0 0 auto; }
.cta-touch small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; padding: 44px 28px; } }

/* hero 文字逐词上浮延迟（不写内联样式，统一在此控制） */
.hero-title .hero-word:nth-child(1) { animation-delay: .06s; }
.hero-title .hero-word:nth-child(2) { animation-delay: .13s; }
.hero-title .hero-word:nth-child(3) { animation-delay: .20s; }
.hero-title .hero-word:nth-child(4) { animation-delay: .27s; }
.hero-title .hero-word:nth-child(5) { animation-delay: .34s; }
.hero-title .hero-word:nth-child(6) { animation-delay: .41s; }
.hero-title .hero-word:nth-child(7) { animation-delay: .48s; }
.hero-title .hero-word:nth-child(8) { animation-delay: .55s; }
.hero-title .hero-word:nth-child(9) { animation-delay: .62s; }
/* 区块描述内的内链（替代页面内联下划线样式） */
.sec-desc a { text-decoration: underline; color: var(--ink-2); }
.industry-cloud .ic-wide .ar { margin-right: 4px; }
/* 区块底部"更多"链接（替代内联 margin 样式） */
.sec-desc.center.more-link { text-align: center; margin-top: 64px; }
.sec-desc.center.more-link-sm { text-align: center; margin-top: 56px; }

/* ---------- 首页响应式 ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding: 84px 0 60px; }
  .hero-glass { justify-self: stretch; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-a { grid-row: auto; grid-column: 1 / -1; }
  .bento-f { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-f { grid-template-columns: 1fr; }
  .why-stat { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
