/* 首页独有布局；整合式插画仅包含设备与背景，导航、文案、按钮、优势均为真实 DOM。 */
.np-home { position: relative; min-height: 100vh; overflow-x: hidden; background: #f3faff url("../images/home-background.jpg") center top / 100% auto no-repeat; }
.home-scene { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: 71vw; background: url("../images/home-scene-dashboard.jpg") center top / 100% auto no-repeat; pointer-events: none; }
.np-home main { position: relative; z-index: 1; }
.home-hero { position: relative; height: calc(52.5vw - 100px); min-height: 480px; max-height: 850px; }
.home-hero__copy { width: 38%; padding-top: 8.3vw; }
.home-hero__eyebrow { color: #263f76; font-size: 16px; letter-spacing: .44em; white-space: nowrap; }
.home-hero h1 { margin-top: 26px; color: #071842; font-size: 3.15vw; line-height: 1.3; font-weight: 800; letter-spacing: -.065em; white-space: nowrap; }
.home-hero h1 span { color: #0068ff; }
.home-hero__description { margin-top: 12px !important; color: #102858; font-size: 1.3vw; line-height: 1.8; white-space: nowrap; }
.home-hero__actions { display: flex; align-items: center; margin-top: 30px; }
/* 首页主视觉的紧凑按钮尺寸，不改变公用按钮及登录、注册表单。 */
.home-hero__actions .np-button { min-width: 164px; min-height: 56px; padding: 12px 24px; font-size: 20px; line-height: 28px; }
.home-hero__actions .np-button + .np-button { margin-left: 18px; }
.home-hero__actions .np-icon { width: 20px; height: 20px; margin-left: 10px; }
.home-hero__note { display: inline-block; margin: 55px 0 0 38px !important; color: #1175ed; font-family: KaiTi, STKaiti, "Microsoft YaHei", sans-serif; font-size: 27px; line-height: 1.7; letter-spacing: .19em; transform: rotate(-13deg); }
.home-hero__note span { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid #358bff; }
.home-benefits { padding-top: 26px; scroll-margin-top: 24px; }
.home-benefits__list { display: flex; align-items: stretch; }
.home-benefit { flex: 1 1 25%; min-width: 0; padding: 0 30px; border-left: 1px solid #d4e9ff; }
.home-benefit:first-child { border-left: 0; padding-left: 40px; }
.home-benefit:last-child { padding-right: 0; }
.home-benefit__heading { display: flex; align-items: center; }
.home-benefit__icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 72px; height: 72px; margin-right: 22px; border-radius: 50%; background: #e0f3ff; transition: transform .25s ease, background-color .25s ease; }
.home-benefit:hover .home-benefit__icon { transform: translateY(-5px); background: #d4edff; }
.home-benefit h3 { color: #071842; font-size: 22px; line-height: 1.45; font-weight: 700; }
.home-benefit__english { margin-top: 3px !important; color: #286dca; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.home-benefit__description { max-width: 240px; margin: 13px 0 0 80px !important; color: #365785; font-size: 15px; line-height: 1.8; }
.home-benefits__tagline { display: flex; align-items: center; justify-content: center; margin-top: 42px !important; margin-bottom: 12px !important; color: #3d6396; font-size: 14px; letter-spacing: .5em; }
.home-benefits__tagline::before, .home-benefits__tagline::after { width: 60px; height: 1px; margin: 0 36px; background: #77aaff; content: ""; }
.np-home.is-ready .home-hero__copy { animation: home-copy-in .7s ease-out both; }
.np-home.is-ready .home-benefits__list { animation: home-copy-in .7s .15s ease-out both; }
.np-home.is-ready .home-scene { animation: home-scene-in .95s ease-out both; }
@keyframes home-copy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes home-scene-in { from { opacity: .5; } to { opacity: 1; } }
@media (min-width: 1850px) {
    .home-hero__copy { padding-top: 160px; }
    .home-hero h1 { font-size: 58px; }
    .home-hero__description { font-size: 22px; }
    .home-hero__actions { margin-top: 36px; }
}
@media (min-width: 1920px) {
    .np-home { max-width: 1920px; margin: 0 auto; background-position: center bottom; }
    .home-hero { height: 816px; max-height: none; }
    /* 宽屏专用缩小版设备组合；背景仍铺满，其他尺寸继续使用原素材。 */
    .home-scene { height: 100%; background-image: url("../images/home-scene-dashboard-wide.jpg"); -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent); }
}
@media (max-width: 1350px) {
    .home-hero { min-height: 0; }
    .home-hero__copy { padding-top: 7vw; }
    .home-hero__eyebrow { font-size: 14px; letter-spacing: .35em; }
    .home-hero h1 { margin-top: 20px; }
    .home-hero__actions { margin-top: 22px; }
    .home-hero__actions .np-button { min-width: 136px; min-height: 48px; padding: 10px 18px; font-size: 18px; line-height: 24px; }
    .home-hero__note { margin-top: 36px !important; font-size: 24px; }
    .home-benefit { padding: 0 20px; }
    .home-benefit:first-child { padding-left: 24px; }
    .home-benefit__icon { width: 60px; height: 60px; margin-right: 15px; }
    .home-benefit h3 { font-size: 20px; }
    .home-benefit__english { font-size: 12px; }
    .home-benefit__description { margin-left: 65px !important; font-size: 14px; }
}
@media (max-width: 1100px) {
    .home-hero__copy { padding-top: 5.5vw; }
    .home-hero__description { font-size: 14px; white-space: normal; }
    .home-hero__actions .np-button { min-width: 120px; min-height: 44px; font-size: 15px; padding: 8px 14px; line-height: 22px; }
    .home-hero__actions .np-button + .np-button { margin-left: 12px; }
    .home-hero__actions .np-icon { width: 18px; height: 18px; margin-left: 8px; }
    .home-hero__note { margin-top: 30px !important; font-size: 20px; }
    .home-benefit { padding: 0 16px; }
    .home-benefit__icon { width: 48px; height: 48px; margin-right: 12px; }
    .home-benefit__icon img { width: 27px; height: 27px; }
    .home-benefit h3 { font-size: 18px; }
    .home-benefit__english { font-size: 11px; }
    .home-benefit__description { margin-left: 0 !important; }
}
@media (max-width: 960px) {
    .home-hero { height: calc(52.5vw - 80px); }
    .home-hero__copy { width: 40%; padding-top: 4vw; }
    .home-hero__eyebrow { font-size: 11px; letter-spacing: .25em; }
    .home-hero h1 { margin-top: 18px; }
    .home-hero__description { font-size: 13px; }
    .home-hero__actions { margin-top: 18px; }
    .home-hero__actions .np-button { min-width: 104px; min-height: 40px; padding: 8px 10px; font-size: 14px; }
    .home-hero__actions .np-icon { width: 16px; height: 16px; margin-left: 6px; }
    .home-hero__note { margin: 24px 0 0 20px !important; font-size: 18px; }
    .home-benefits { padding-top: 36px; }
    .home-benefits__list { flex-wrap: wrap; }
    .home-benefit { flex-basis: 50%; padding: 22px 30px; }
    .home-benefit:first-child { padding-left: 30px; }
    .home-benefit:nth-child(3) { border-left: 0; }
    .home-benefit__icon { width: 60px; height: 60px; margin-right: 20px; }
    .home-benefit h3 { font-size: 20px; }
    .home-benefit__english { font-size: 13px; }
    .home-benefit__description { max-width: none; margin-left: 80px !important; }
    .home-benefits__tagline { font-size: 12px; letter-spacing: .25em; }
}
@media (max-width: 700px) {
    .np-home { background-size: auto 800px; }
    .home-scene { top: 360px; height: calc(75vw - 58px); background-size: 145vw auto; background-position: right -84px; }
    .home-hero { height: calc(75vw + 226px); min-height: 0; }
    .home-hero__copy { width: 100%; padding-top: 35px; text-align: center; }
    .home-hero__eyebrow { font-size: 13px; letter-spacing: .35em; }
    .home-hero h1 { margin-top: 18px; font-size: 32px; letter-spacing: -.06em; }
    .home-hero__description { margin-top: 12px !important; font-size: 14px; }
    .home-hero__actions { justify-content: center; margin-top: 20px; }
    .home-hero__actions .np-button { min-width: 132px; min-height: 44px; font-size: 16px; }
    .home-hero__note { display: none; }
    .home-benefits { padding-top: 8px; }
    .home-benefit { padding: 20px; }
    .home-benefit:first-child { padding-left: 20px; }
    .home-benefit__description { margin-left: 0 !important; }
}
@media (max-width: 480px) {
    .home-scene { top: 354px; height: calc(75vw - 28px); background-size: 146.5vw auto; background-position: right -48px; }
    .home-hero { height: calc(75vw + 274px); }
    .home-hero__copy { padding-top: 34px; }
    .home-hero h1 { font-size: 28px; }
    .home-hero__description { padding: 0 10px; font-size: 13px; }
    .home-hero__actions .np-button { min-width: 126px; font-size: 15px; }
    .home-benefit, .home-benefit:first-child { padding: 18px 12px; }
    .home-benefit:nth-child(odd) { padding-left: 0; }
    .home-benefit:nth-child(even) { padding-right: 0; }
    .home-benefit__heading { display: block; }
    .home-benefit__icon { width: 52px; height: 52px; margin: 0 0 12px; }
    .home-benefit h3 { font-size: 19px; }
    .home-benefit__english { min-height: 34px; font-size: 12px; white-space: normal; }
    .home-benefit__description { margin-top: 10px !important; font-size: 13px; }
    .home-benefits__tagline { margin-top: 26px !important; font-size: 11px; letter-spacing: .16em; }
    .home-benefits__tagline::before, .home-benefits__tagline::after { width: 20px; margin: 0 10px; }
}
@media (max-width: 360px) {
    .home-hero h1 { font-size: 26px; }
    .home-hero__actions .np-button { min-width: 114px; padding: 8px 10px; font-size: 14px; }
}

/* ==========================================================================
   首页新版样式（参考「云会计官网首页 · 优化设计效果图」）
   默认加载本文件；切换 current 版时，将 index.jsp 中本文件路径改为 current.css。
   ========================================================================== */

/* 首页 design 版主题 token。 */
.np-home--design {
    --hd-blue: #1f6bff;
    --hd-blue-d: #0d4fd8;
    --hd-blue-l: #eaf2ff;
    --hd-ink: #14203b;
    --hd-ink2: #5c6883;
    --hd-blue-shadow: 0 8px 22px rgba(31, 107, 255, .28);
}

/* 整页背景与容器 */
.np-home--design.np-home {
    background: #fff;
}
.np-home--design .np-container {
    width: min(90.4%, 1320px);
    max-width: 1320px;
}

/* 默认隐藏的新版专用元素，仅 design 下按需开启 */
.home-design-decor,
.home-design-showcase,
.home-hero__description--design {
    display: none;
}

/* ---------- Hero：渐变 + 网格 + 双栏 ---------- */
.np-home--design .home-scene { display: none !important; }
.np-home--design .home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(340px, .92fr) minmax(520px, 1.18fr);
    gap: clamp(32px, 5vw, 90px);
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: 600px;
    height: auto;
    padding: 52px max(28px, calc((100vw - 1320px) / 2)) 74px;
    overflow: hidden;
    background: linear-gradient(120deg, #f3f8ff 0%, #eaf3ff 42%, #dcecff 100%);
}
.np-home--design .home-hero::before {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(31, 107, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 107, 255, .045) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
    mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
    content: "";
}
.np-home--design .home-design-decor { position: absolute; inset: 0; display: block; pointer-events: none; }
.np-home--design .home-design-glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.np-home--design .home-design-glow--1 { width: 420px; height: 420px; top: -120px; right: 6%; background: rgba(88, 158, 255, .22); }
.np-home--design .home-design-glow--2 { width: 300px; height: 300px; bottom: -100px; left: -40px; background: rgba(47, 124, 255, .16); }
.np-home--design .home-design-glow--3 { width: 180px; height: 180px; top: 220px; right: 32%; background: rgba(125, 190, 255, .2); }
.np-home--design .home-design-ring {
    position: absolute; top: 90px; right: -60px; width: 230px; height: 230px;
    border: 1px solid rgba(31, 107, 255, .1); border-radius: 50%;
}
.np-home--design .home-design-ring::after {
    position: absolute; inset: 34px; border: 1px solid rgba(31, 107, 255, .09);
    border-radius: 50%; content: "";
}

/* Hero 文案 */
.np-home--design .home-hero__copy {
    position: relative; z-index: 2; width: auto; padding-top: 0;
}
.np-home--design .home-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px;
    color: var(--hd-blue); font-size: 12px; font-weight: 600; letter-spacing: 1px;
}
.np-home--design .home-hero__eyebrow::before {
    width: 22px; height: 2px; border-radius: 2px; background: var(--hd-blue); content: "";
}
.np-home--design .home-hero h1 {
    margin: 0; color: var(--hd-ink); font-size: clamp(36px, 4vw, 54px);
    line-height: 1.22; letter-spacing: -1.4px; font-weight: 800; white-space: normal;
}
.np-home--design .home-hero h1 span {
    display: block;
    background: linear-gradient(100deg, #1f6bff, #4d9cff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.np-home--design .home-hero__description { display: none; }
.np-home--design .home-hero__description--design {
    display: block; max-width: 410px; margin: 18px 0 0 !important;
    color: var(--hd-ink2); font-size: 15px; line-height: 1.9;
}
.np-home--design .home-hero__actions { margin-top: 30px; }
.np-home--design .home-hero__actions .np-button {
    min-width: 0; min-height: 46px; padding: 0 26px; border-radius: 11px;
    font-size: 14px; font-weight: 600; line-height: 1;
}
.np-home--design .home-hero__actions .np-button--primary {
    color: #fff !important; background: var(--hd-blue); box-shadow: var(--hd-blue-shadow);
}
.np-home--design .home-hero__actions .np-button--primary:hover { background: var(--hd-blue-d); transform: translateY(-2px); }
.np-home--design .home-hero__actions .np-button--outline {
    color: var(--hd-blue) !important; border-color: #bcd5ff; background: rgba(255, 255, 255, .85);
    box-shadow: none;
}
.np-home--design .home-hero__actions .np-button--outline:hover { background: #fff; border-color: var(--hd-blue); transform: translateY(-2px); }
.np-home--design .home-hero__actions .np-icon { width: 16px; height: 16px; margin-left: 9px; }
/* slogan 沿用 current 的 home-hero__note 斜排楷体样式，design 不再覆盖。 */

/* ---------- Hero 右侧产品演示（透明底样机图，裁掉原图透明留白） ---------- */
/* 当前图 home-scene-dashboard-v2-front.png：画布 1490×1056，主体 (183,146)-(1434,877) 即 1252×732，比例约 1.710。
   容器锁定该比例；img 按透明留白放大并负偏移，让主体正好铺满容器、比例不变形。 */
.np-home--design .home-design-showcase {
    position: relative; z-index: 2; display: flex; align-items: center;
    justify-content: center; min-height: 0;
}
.np-home--design .home-design-shot {
    position: relative; display: block; width: 100%; max-width: 700px;
    aspect-ratio: 1252 / 732;
}
.np-home--design .home-design-shot img {
    position: absolute; top: 0; left: 0;
    width: 119.01%; height: auto; max-width: none;
    margin-left: -14.62%; margin-top: -11.66%;
    pointer-events: none;
    filter: drop-shadow(0 26px 36px rgba(20, 53, 120, .2)) drop-shadow(0 6px 12px rgba(20, 53, 120, .08));
}

/* 四宫格优势区沿用 current 样式（见 index.css），design 不再单独定义。 */

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .np-home--design .home-hero {
        grid-template-columns: minmax(300px, .9fr) minmax(440px, 1.1fr);
        gap: 32px;
    }
    .np-home--design .home-design-shot { max-width: 560px; }
}
@media (max-width: 960px) {
    .np-home--design .home-hero {
        grid-template-columns: 1fr; gap: 36px; padding-top: 40px; text-align: center;
    }
    .np-home--design .home-hero__eyebrow { justify-content: center; }
    .np-home--design .home-hero__description--design { margin-right: auto !important; margin-left: auto !important; }
    .np-home--design .home-hero__actions { justify-content: center; }
    .np-home--design .home-design-shot { max-width: 620px; }
}
@media (max-width: 700px) {
    .np-home--design .home-hero { min-height: 0; padding-right: 20px; padding-left: 20px; }
    .np-home--design .home-hero h1 { font-size: 34px; }
    .np-home--design .home-design-shot { max-width: 100%; }
}
@media (max-width: 480px) {
    .np-home--design .home-hero h1 { font-size: 30px; }
    .np-home--design .home-hero__actions { flex-wrap: wrap; gap: 10px; }
}
