﻿/* 新版首页主体样式（仅 Index 引入，全部挂在 .home-v2 下，与旧 index.css 隔离） */
.home-v2{
  --ink:#1a1a1a;
  --ink2:#333;
  --muted:#6b7280;
  --rule:#eef0f3;
  --accent:#3b7ef5;
  --accent-dark:#2e6be0;
  --accent-bg:#f0f5ff;
  /* 裁横向溢出（装饰圆负定位）；首页已无负 margin，不依赖竖向穿透 */
  overflow-x:hidden;
}
.home-v2 *{box-sizing:border-box;}
.home-v2 a:not(.hv2-btn){color:inherit;text-decoration:none;}

/* Banner：贴顶栏；标签组贴主图下方（对齐效果页） */
.home-v2 .banner-wrap{position:relative;overflow:visible;background:linear-gradient(160deg,#eaf2ff 0%,#f4f8ff 45%,#ffffff 100%);border-bottom:1px solid #eef2f8;}
.home-v2 .banner-wrap::before{content:"";position:absolute;top:-140px;right:-80px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(59,126,245,.16),rgba(59,126,245,0) 68%);pointer-events:none;}
.home-v2 .banner-wrap::after{content:"";position:absolute;bottom:-160px;left:-120px;width:380px;height:380px;border-radius:50%;background:radial-gradient(circle,rgba(59,126,245,.10),rgba(59,126,245,0) 70%);pointer-events:none;}
.home-v2 .banner{position:relative;z-index:1;padding:20px 40px 120px;display:flex;align-items:center;justify-content:center;gap:48px;max-width:1280px;margin:0 auto;}
.home-v2 .banner-text{flex:1;min-width:0;}
.home-v2 .banner .eyebrow{font-size:15px;color:var(--muted);letter-spacing:1px;margin-bottom:16px;}
.home-v2 .banner h1{font-size:46px;font-weight:700;color:var(--ink);line-height:1.2;margin-bottom:18px;letter-spacing:-0.5px;}
.home-v2 .banner h1 span{color:var(--accent);}
.home-v2 .banner .sub{font-size:17px;color:#555;margin-bottom:34px;line-height:1.7;}
.home-v2 .banner .cta{display:flex;gap:16px;margin-bottom:26px;}
.home-v2 .banner .cta .hv2-btn{height:46px;padding:0 32px;font-size:15px;color:#fff!important;}
.home-v2 .banner .hotline{font-size:15px;color:#333;font-weight:600;letter-spacing:.5px;}
.home-v2 .banner .disclaimer{font-size:12px;color:#b8bec8;margin-top:10px;}
.home-v2 .banner-img{width:520px;flex-shrink:0;position:relative;border-radius:16px;overflow:visible;transform:translate(-10px,40px);}
.home-v2 .banner-img::before{content:"";position:absolute;top:-43px;left:-43px;width:calc(100% + 86px);height:calc(100% + 86px);border-radius:32px;background:linear-gradient(135deg,#edf5ff 0%,#f7fbff 100%);z-index:-1;border:1px solid #dbe6f8;}
.home-v2 .banner-img img{width:100%;height:auto;display:block;border-radius:16px;box-shadow:0 12px 40px rgba(30,42,74,.12);position:relative;z-index:1;transform:translateY(-15px);}
.home-v2 .banner-badges{position:absolute;left:-10px;right:-10px;bottom:-45px;z-index:2;display:flex;flex-wrap:wrap;gap:4px 6px;justify-content:flex-start;padding:10px 12px 9px;}
.home-v2 .banner-badges .badge{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:#fff;color:#64748b;font-size:11px;font-weight:500;letter-spacing:.2px;white-space:nowrap;border:1px solid #e6edf7;box-shadow:0 2px 6px rgba(23,43,77,.08);transition:all .25s ease;animation:hv2BadgeFloat 4s ease-in-out infinite;}
.home-v2 .banner-badges .badge::before{content:"●";font-size:6px;margin-right:4px;color:#a9bcd6;}
.home-v2 .banner-badges .badge:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(23,43,77,.14);}
.home-v2 .banner-badges .badge.hot{background:linear-gradient(180deg,#ffffff 0%,#f3f8ff 100%);color:#1a4bbf;font-weight:700;border-color:#cfe1ff;box-shadow:0 4px 10px rgba(26,75,191,.15);}
.home-v2 .banner-badges .badge.hot::before{color:#3b7ef5;font-size:7px;}
.home-v2 .banner-badges .badge:nth-child(2){animation-duration:4.6s;animation-delay:.3s;}
.home-v2 .banner-badges .badge:nth-child(3){animation-duration:5.2s;animation-delay:.8s;}
.home-v2 .banner-badges .badge:nth-child(4){animation-duration:4.2s;animation-delay:1.2s;}
.home-v2 .banner-badges .badge:nth-child(5){animation-duration:4.9s;animation-delay:.1s;}
.home-v2 .banner-badges .badge:nth-child(6){animation-duration:4.4s;animation-delay:1.5s;}
.home-v2 .banner-badges .badge:nth-child(7){animation-duration:5.4s;animation-delay:.6s;}
.home-v2 .banner-badges .badge:nth-child(8){animation-duration:4.1s;animation-delay:1s;}
.home-v2 .banner-badges .badge:nth-child(9){animation-duration:5s;animation-delay:.2s;}
.home-v2 .banner-badges .badge:nth-child(10){animation-duration:4.7s;animation-delay:1.4s;}
.home-v2 .banner-badges .badge:nth-child(11){animation-duration:4.3s;animation-delay:.5s;}
.home-v2 .banner-badges .badge:nth-child(12){animation-duration:5.1s;animation-delay:1.1s;}
.home-v2 .banner-badges .badge:nth-child(13){animation-duration:4.5s;animation-delay:0s;}
.home-v2 .banner-badges .badge:nth-child(14){animation-duration:5.3s;animation-delay:1.3s;}
.home-v2 .banner-badges .badge:nth-child(15){animation-duration:4.8s;animation-delay:.7s;}
@keyframes hv2BadgeFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-4px);}}

/* 三档服务卡 */
.home-v2 .compare{padding:80px 60px;background:linear-gradient(180deg,#ffffff 0%,#fafbfd 100%);}
.home-v2 .compare-head{text-align:center;margin-bottom:52px;}
.home-v2 .compare-head .title{font-size:30px;font-weight:600;margin-bottom:12px;letter-spacing:.5px;}
.home-v2 .compare-head .desc{color:var(--muted);font-size:15px;line-height:1.7;}
.home-v2 .compare-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:1120px;margin:0 auto;align-items:stretch;}
.home-v2 .compare-card{--accent:#3b7ef5;--accent-bg:#eef4ff;position:relative;background:#fff;border:1px solid #edeff3;border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.04);transition:transform .25s,box-shadow .25s,border-color .25s;display:flex;flex-direction:column;}
.home-v2 .compare-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(16,24,40,.1);border-color:#e2e6ee;}
.home-v2 .compare-card.orange{--accent:#e8780a;--accent-bg:#fff5ec;}
.home-v2 .compare-card.blue{--accent:#3b7ef5;--accent-bg:#eef4ff;}
.home-v2 .compare-card.violet{--accent:#5b5fd6;--accent-bg:#f1f1ff;}
.home-v2 .compare-card .card-hero{height:186px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.home-v2 .compare-card .card-hero::before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;background:rgba(255,255,255,.6);top:-70px;right:-60px;}
.home-v2 .compare-card .card-hero::after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.45);bottom:-50px;left:-40px;}
.home-v2 .compare-card.orange .card-hero{background:linear-gradient(140deg,#fff1e0 0%,#fffaf4 100%);}
.home-v2 .compare-card.blue .card-hero{background:linear-gradient(140deg,#e9f1ff 0%,#f7faff 100%);}
.home-v2 .compare-card.violet .card-hero{background:linear-gradient(140deg,#ededff 0%,#f9f9ff 100%);}
.home-v2 .compare-card .card-hero svg{position:relative;z-index:1;width:84%;max-width:236px;height:auto;filter:drop-shadow(0 6px 16px rgba(16,24,40,.08));}
.home-v2 .compare-card:hover .card-hero svg{transform:translateY(-2px);transition:transform .4s;}
.home-v2 .compare-card .card-body{padding:26px 26px 28px;flex:1;display:flex;flex-direction:column;}
.home-v2 .compare-card .tag{display:inline-block;align-self:flex-start;font-size:12px;color:var(--accent);background:var(--accent-bg);padding:5px 12px;border-radius:999px;font-weight:600;letter-spacing:.5px;margin-bottom:14px;}
.home-v2 .compare-card h3{font-size:20px;font-weight:600;margin-bottom:8px;color:var(--ink);}
.home-v2 .compare-card .intro{color:var(--muted);font-size:13.5px;line-height:1.7;margin-bottom:18px;min-height:46px;}
.home-v2 .compare-card ul{list-style:none;margin:0 0 22px;padding:0;}
.home-v2 .compare-card ul li{font-size:13.5px;color:#4a4f57;line-height:1.6;padding:5px 0 5px 18px;position:relative;}
.home-v2 .compare-card ul li::before{content:"";position:absolute;left:0;top:13px;width:5px;height:5px;border-radius:50%;background:var(--accent);opacity:.55;}
.home-v2 .compare-card .who{background:#fafbfc;border-radius:10px;padding:12px 14px;font-size:12.5px;color:#5b616b;margin-top:auto;margin-bottom:18px;border:1px solid var(--rule);}
.home-v2 .compare-card .who strong{color:var(--ink);font-weight:600;}
.home-v2 .compare-card .actions{display:flex;gap:10px;}
.home-v2 .compare-card .actions .hv2-btn{height:40px;padding:0 18px;font-size:13.5px;border-radius:8px;flex:1;}
.home-v2 .compare-card .actions .hv2-btn-primary{background:var(--accent);color:#fff!important;}
.home-v2 .compare-card .actions .hv2-btn-primary:hover{background:var(--accent);filter:brightness(.93);color:#fff!important;}

/* 板块 */
.home-v2 .section{padding:80px 60px;}
.home-v2 .section.alt{background:#fafbfc;}
.home-v2 .section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:40px;max-width:1100px;margin-left:auto;margin-right:auto;}
.home-v2 .section-head .title{font-size:24px;font-weight:600;}
.home-v2 .section-head .more{color:var(--muted);font-size:14px;}
.home-v2 .section-body{max-width:1100px;margin:0 auto;}

/* 免费资料 */
.home-v2 .gift-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.home-v2 .gift-card{border:1px solid var(--rule);border-radius:8px;padding:28px 24px;background:#fff;transition:all .2s;position:relative;overflow:hidden;cursor:pointer;}
.home-v2 .gift-card:hover{border-color:var(--accent);box-shadow:0 4px 16px rgba(59,126,245,.08);}
.home-v2 .gift-card .num{position:absolute;top:16px;right:20px;font-size:28px;font-weight:700;color:#eef0f3;line-height:1;}
.home-v2 .gift-card h4{font-size:15px;font-weight:600;margin-bottom:6px;color:var(--ink);}
.home-v2 .gift-card p{font-size:13px;color:var(--muted);margin:0;}
.home-v2 .gift-card .count{font-size:12px;color:#bbb;margin-top:14px;}

/* 成功案例 */
.home-v2 .case-marquee{overflow:hidden;max-width:1100px;margin:0 auto;padding:4px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 56px,#000 calc(100% - 56px),transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 56px,#000 calc(100% - 56px),transparent 100%);}
.home-v2 .case-track{display:flex;width:max-content;animation:hv2CaseScroll linear infinite;animation-duration:60s;}
.home-v2 .case-marquee:hover .case-track{animation-play-state:paused;}
@keyframes hv2CaseScroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
.home-v2 .case-item{flex:0 0 210px;margin-right:20px;background:#fff;border:1px solid var(--rule);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,border-color .2s;}
.home-v2 .case-item:hover{border-color:#d9e2f2;box-shadow:0 10px 28px rgba(16,24,40,.08);}
.home-v2 .case-cover{position:relative;height:250px;background:#eef2f8;overflow:hidden;}
.home-v2 .case-cover img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;cursor:zoom-in;}
.home-v2 .case-badge{position:absolute;bottom:10px;right:10px;font-size:11.5px;color:#1d9e63;background:rgba(255,255,255,.95);border-radius:999px;padding:3px 9px;font-weight:500;box-shadow:0 2px 8px rgba(16,24,40,.08);}
.home-v2 .case-body{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1;}
.home-v2 .case-name{font-size:13px;font-weight:600;color:var(--ink);}
.home-v2 .case-meta{font-size:11.5px;color:var(--muted);margin-top:3px;}
.home-v2 .case-story{font-size:12px;color:#5b616b;line-height:1.6;margin-top:6px;}
.home-v2 .case-modal{position:fixed;inset:0;background:rgba(15,23,42,.78);display:none;align-items:center;justify-content:center;padding:40px;z-index:1000;cursor:zoom-out;}
.home-v2 .case-modal.show{display:flex;}
.home-v2 .case-modal img{max-width:100%;max-height:88vh;width:auto;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.4);}

/* 资讯 */
.home-v2 .news-nav{display:flex;gap:32px;margin-bottom:24px;}
.home-v2 .news-nav a{font-size:14px;color:var(--muted);cursor:pointer;}
.home-v2 .news-nav a.active{color:var(--ink);font-weight:600;}
.home-v2 .news-list{border-top:1px solid var(--rule);list-style:none;margin:0;padding:0;}
.home-v2 .news-list li{display:flex;align-items:center;padding:16px 0;border-bottom:1px solid var(--rule);font-size:14px;}
.home-v2 .news-list li:hover .title{color:var(--accent);}
.home-v2 .news-list .title{flex:1;color:#333;margin-left:0;}
.home-v2 .news-list .date{color:#bbb;font-size:13px;margin-left:24px;flex-shrink:0;}
.home-v2 .news-list a{display:flex;align-items:center;width:100%;}

/* 弹窗二维码（首页专用补充）
   qrcode.js 会同时生成 canvas + img，需隐藏其一避免底部重影 */
.home-v2 .dialog-qr{
  margin:20px auto;border:2px solid #333;padding:5px;width:200px;height:200px;
  box-sizing:content-box;overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.home-v2 .dialog-qr canvas{display:none!important;}
.home-v2 .dialog-qr img{display:block;margin:0;width:200px;height:200px;}
.home-v2 .dialog-qr-btnexit{width:150px;font-size:20px;line-height:50px;border-radius:10px;background:#4a86f6;color:#fff;margin:10px auto;text-align:center;cursor:pointer;}

@media(max-width:1100px){
  .home-v2 .compare{padding:64px 32px;}
  .home-v2 .compare-grid{gap:18px;}
  .home-v2 .compare-card .card-body{padding:22px 20px 24px;}
}
@media(max-width:900px){
  .home-v2 .banner{padding:0 24px 140px;flex-direction:column-reverse;gap:32px;max-width:100%;}
  .home-v2 .banner-text{flex:1;text-align:center;}
  .home-v2 .banner h1{font-size:30px;}
  .home-v2 .banner .sub{margin-bottom:24px;}
  .home-v2 .banner .cta{justify-content:center;flex-wrap:wrap;}
  .home-v2 .banner-img{width:100%;max-width:360px;transform:translateY(15px);}
  .home-v2 .banner-img img{width:100%;}
  .home-v2 .banner-badges{left:-6px;right:-6px;bottom:-116px;padding:8px 10px 7px;gap:3px 5px;}
  .home-v2 .banner-badges .badge{height:20px;padding:0 8px;font-size:10px;}
  .home-v2 .banner-badges .badge::before{font-size:5px;margin-right:3px;}
  .home-v2 .compare,
  .home-v2 .section{padding:48px 24px;}
  .home-v2 .compare-grid{grid-template-columns:1fr;}
  .home-v2 .compare-card .card-hero{height:70px;}
  .home-v2 .compare-card h3{font-size:22px;}
  .home-v2 .gift-grid{grid-template-columns:1fr 1fr;gap:14px;}
  .home-v2 .case-marquee{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:12px;scrollbar-width:none;}
  .home-v2 .case-marquee::-webkit-scrollbar{display:none;}
  .home-v2 .case-track{animation:none;width:auto;flex-wrap:nowrap;}
  .home-v2 .case-item{flex:0 0 78%;flex-shrink:0;margin-right:12px;}
  .home-v2 .case-cover{height:210px;}
}
@media(max-width:480px){
  .home-v2 .banner{padding:0 16px 124px;gap:24px;}
  .home-v2 .banner h1{font-size:26px;margin-bottom:12px;}
  .home-v2 .banner .sub{font-size:15px;}
  .home-v2 .banner-img{max-width:320px;transform:translateY(12px);}
  .home-v2 .banner-badges{left:-4px;right:-4px;bottom:-114px;padding:6px 8px 6px;gap:2px 4px;}
  .home-v2 .banner-badges .badge{height:18px;padding:0 6px;font-size:9.5px;}
  .home-v2 .banner-badges .badge::before{display:none;}
  .home-v2 .compare,
  .home-v2 .section{padding:36px 16px;}
  .home-v2 .compare-head .title{font-size:24px;}
  .home-v2 .compare-grid{gap:14px;}
  .home-v2 .compare-card .card-body{padding:18px 16px 22px;}
  .home-v2 .compare-card h3{font-size:20px;}
  .home-v2 .compare-card li{font-size:13.5px;}
  .home-v2 .gift-grid{grid-template-columns:1fr 1fr;gap:12px;}
  .home-v2 .gift-card{padding:16px 14px;}
  .home-v2 .gift-card h4{font-size:14px;}
  .home-v2 .gift-card .num{font-size:12px;}
  .home-v2 .case-item{flex-basis:82%;margin-right:10px;}
  .home-v2 .case-cover{height:190px;}
  .home-v2 .case-body{padding:12px 14px 14px;}
  .home-v2 .case-name{font-size:12px;}
  .home-v2 .case-story{font-size:11.5px;}
  .home-v2 .section-head .title{font-size:22px;}
}
