/* 首页专用样式：首屏、数据条、产品、优势、防御、解决方案、行动号召。
 * 导航与页脚在 chrome.css（首页和其他前台页面共用）。删掉本文件 + 还原 index.php 即回到旧首页。 */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body.home { margin: 0; background: #fff; color: var(--text); font: 14px/1.65 "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home a { color: inherit; text-decoration: none; }
.home h1, .home h2, .home h3, .home h4, .home h5, .home p, .home dl, .home dd, .home ul { margin: 0; padding: 0; }
.home ul { list-style: none; }
.home img { max-width: 100%; }
/* ---------- 首屏 ---------- */
.h-hero { position: relative; background: #f5f9ff; }
.h-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.h-track::-webkit-scrollbar { display: none; }
.h-slide { flex: 0 0 100%; scroll-snap-align: start; min-height: 460px; display: flex; align-items: center; background-size: cover; background-position: center right; position: relative; }
.hs-s1 { background-image: linear-gradient(90deg, rgba(249, 252, 255, .98) 0%, rgba(249, 252, 255, .93) 35%, rgba(249, 252, 255, .26) 58%, rgba(249, 252, 255, 0) 78%), url(/assets/banners/fdddos-banner-01-brand-shield-light.png); }
.hs-s2 { background-image: linear-gradient(90deg, rgba(249, 252, 255, .98) 0%, rgba(249, 252, 255, .93) 35%, rgba(249, 252, 255, .26) 58%, rgba(249, 252, 255, 0) 78%), url(/assets/banners/fdddos-banner-02-defense-light.png); }
.hs-s3 { background-image: linear-gradient(90deg, rgba(249, 252, 255, .98) 0%, rgba(249, 252, 255, .93) 35%, rgba(249, 252, 255, .26) 58%, rgba(249, 252, 255, 0) 78%), url(/assets/banners/fdddos-banner-03-network-light.png); }
.h-slide-tx { max-width: 640px; padding: 56px 0 96px; color: #15213a; }
.h-tag { display: inline-block; padding: 3px 12px; border-radius: 3px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(18, 102, 227, .24); color: #31506f; font-size: 13px; letter-spacing: .5px; }
.h-slide-tx h1 { margin-top: 18px; font-size: 38px; line-height: 1.3; font-weight: 700; letter-spacing: .5px; text-wrap: balance; }
.h-slide-tx h1 em { font-style: normal; color: #5aa0ff; display: inline-block; }
.h-slide-tx p { margin-top: 14px; color: #53657a; font-size: 16px; line-height: 1.7; }
.h-price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.h-price b { font-size: 34px; color: #ffa04d; font-weight: 700; }
.h-price span { color: #62748a; }
.h-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.h-slide .h-btn.h-btn-ghost { background: rgba(255, 255, 255, .72); color: #17365f; border-color: rgba(23, 54, 95, .36); }
.h-slide .h-btn.h-btn-ghost:hover { background: #17365f; color: #fff; border-color: #17365f; }
.h-hero-ui { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); pointer-events: none; }
.h-hero-ui > * { pointer-events: auto; }
.h-dots { position: absolute; left: 24px; bottom: 76px; display: flex; gap: 8px; }
.h-dot { width: 28px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(32, 74, 125, .25); cursor: pointer; transition: background .2s, width .2s; }
.h-dot.on { background: #1266e3; width: 44px; }

/* ---------- 数据条 ---------- */
.h-stats-wrap { position: relative; z-index: 2; margin-top: -52px; }
.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.h-stats > div { padding: 24px 28px; border-left: 1px solid var(--line); }
.h-stats > div:first-child { border-left: 0; }
.h-stats b { display: block; font-size: 30px; line-height: 1.2; color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.h-stats span { display: block; margin-top: 4px; color: var(--t2); font-size: 13px; }

/* ---------- 通用区块 ---------- */
.h-sec { padding: 72px 0; }
.h-sec-gray { background: var(--bg); }
.h-sec-head { text-align: center; margin-bottom: 36px; }
.h-sec-head h2 { font-size: 30px; font-weight: 700; letter-spacing: .5px; }
.h-sec-head p { margin-top: 10px; color: var(--t3); font-size: 15px; }
.h-ico { width: 48px; height: 48px; border-radius: 10px; background: var(--blue-weak); color: var(--blue); display: grid; place-items: center; font-size: 26px; }

/* ---------- 产品 Tab + 卡片 ---------- */
.h-radio { display: none; }
.h-tabs { display: flex; justify-content: center; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.h-tabs label { padding: 12px 28px; font-size: 16px; color: var(--t2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.h-tabs label:hover { color: var(--blue); }
.h-panel { display: none; }
.h-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s; }
.h-pcard:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.h-pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h-pc-top h3 { font-size: 17px; font-weight: 700; }
.h-hot { padding: 1px 8px; border-radius: 3px; background: #fff1e6; color: var(--orange); font-size: 12px; font-weight: 600; }
.h-pc-loc { margin-top: 6px; display: flex; align-items: center; gap: 4px; color: var(--t3); font-size: 13px; }
.h-spec { margin: 16px 0 18px; padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; flex: 1; align-content: start; }
.h-spec > div { min-width: 0; }
.h-spec dt { color: var(--t3); font-size: 12px; }
.h-spec dd { color: var(--text); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.h-spec .def dd { color: var(--blue); }
.h-pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h-pc-price b { font-size: 26px; color: var(--orange); font-weight: 700; font-variant-numeric: tabular-nums; }
.h-pc-price span { color: var(--t3); font-size: 13px; margin-left: 2px; }
.h-more { text-align: center; margin-top: 28px; }
.h-more.m-only { display: none; }
.h-more a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 15px; }
.h-more a:hover { text-decoration: underline; }
.home .h-more a, .home .h-go { color: var(--blue); }
.h-empty { text-align: center; padding: 48px 0; color: var(--t3); }

/* ---------- 优势 ---------- */
.h-feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.h-feat-i { background: #fff; border-radius: var(--radius); padding: 26px 22px; transition: box-shadow .2s, transform .2s; }
.h-feat-i:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.h-feat-i h4 { margin: 16px 0 8px; font-size: 16px; font-weight: 700; }
.h-feat-i p { color: var(--t2); font-size: 13.5px; line-height: 1.75; }

/* ---------- 防御能力 ---------- */
.h-def { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.h-def::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(19, 102, 236, .45), transparent 70%); }
.h-def-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.h-def-tx h2 { font-size: 30px; font-weight: 700; }
.h-def-tx p { margin: 14px 0 26px; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.8; }
.h-def-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-def-chips > div { padding: 20px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); background: rgba(255, 255, 255, .06); text-align: center; }
.h-def-chips b { display: block; font-size: 28px; line-height: 1.2; color: #7db4ff; font-variant-numeric: tabular-nums; }
.h-def-chips span { display: block; margin-top: 4px; color: rgba(255, 255, 255, .72); font-size: 13px; }

/* ---------- 解决方案 ---------- */
.h-sol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.h-sol-i { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.h-sol-i:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.h-sol-i h4 { margin: 16px 0 8px; font-size: 16px; font-weight: 700; }
.h-sol-i p { color: var(--t2); font-size: 13.5px; line-height: 1.75; flex: 1; }
.h-go { margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 13.5px; }
.h-sol-i:hover .h-go .hi { transform: translateX(3px); }
.h-go .hi { transition: transform .15s; }

/* ---------- 行动号召 ---------- */
.h-banner { background: linear-gradient(100deg, var(--blue) 0%, #2f86ff 100%); color: #fff; padding: 52px 0; }
.h-banner-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.h-banner h2 { font-size: 28px; font-weight: 700; }
.h-banner p { margin-top: 8px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.h-banner-btns { display: flex; gap: 12px; flex-wrap: wrap; }


@media (max-width: 1100px) {
  .h-feat, .h-sol { grid-template-columns: repeat(2, 1fr); }
  .h-pgrid { grid-template-columns: repeat(2, 1fr); }
  .h-def-in { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .h-slide { min-height: 400px; background-position: 70% center; }
  .h-slide-tx { padding: 40px 0 88px; }
  .h-slide-tx h1 { font-size: 27px; }
  .h-pcard:nth-child(n+4) { display: none; }
  .h-more.m-only { display: block; }
  .h-slide-tx p { font-size: 14px; }
  .h-price b { font-size: 28px; }
  .h-dots { left: 16px; bottom: 68px; }
  .h-stats { grid-template-columns: 1fr 1fr; }
  .h-stats > div { padding: 16px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .h-stats > div:nth-child(-n+2) { border-top: 0; }
  .h-stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .h-stats b { font-size: 24px; }
  .h-sec { padding: 48px 0; }
  .h-sec-head { margin-bottom: 24px; }
  .h-sec-head h2, .h-def-tx h2 { font-size: 24px; }
  .h-pgrid, .h-feat, .h-sol { grid-template-columns: 1fr; }
  .h-tabs { justify-content: flex-start; }
  .h-tabs label { padding: 10px 18px; font-size: 15px; }
  .h-def-chips { grid-template-columns: repeat(2, 1fr); }
  .h-banner h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .home * { transition: none !important; } }

/* 后台上传的轮播图：背景由行内 style 给；「只显示图片」整张可点击，不叠文字 */
.h-slide.hs-img { background-size: cover; background-position: center; }
.h-slide-only { display: block; min-height: 460px; }
@media (max-width: 720px) { .h-slide-only { min-height: 400px; } }
