/* ============================================================================
 * 模板23 首页修正层
 * 说明：muban23.css 直接复用「新财务」整套前台样式；本文件只做与营销首页
 *      相关的少量覆盖（原样式面向 SPA，部分默认值需要按静态模板调整）。
 * 加载顺序：muban23.css → 本文件（同权重后者胜）
 * ========================================================================== */

/* ① 轮播文字：全局 h1~h4 深色规则会盖掉 hero 的白色继承，这里显式还原 */
/* 标题/描述颜色走变量，控制台「③ 首页轮播 → 标题颜色 / 描述颜色」可改，默认黑色 */
.hero .hero-title,
.hero-title {
    color: var(--m23-hero-title, #0d1526);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: .5px;
    text-shadow: none;
}
.hero .hero-desc,
.hero-desc {
    color: var(--m23-hero-desc, #475467);
    font-size: 16px;
    line-height: 1.75;
    text-shadow: none;
}
.hero .hero-eyebrow,
.hero-eyebrow {
    color: var(--m23-hero-desc, #475467);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}
/* 深色横幅默认压一层浅色遮罩，保证黑字可读；换白色字时把遮罩调淡即可 */
.hero-slide::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .62) 52%, rgba(255, 255, 255, .12) 100%);
}
.hero-slide.has-video::before { background: rgba(255, 255, 255, .55); }
.hero .hero-tag, .hero-tag {
    color: #fff;
    background: var(--brand);
    border-color: transparent;
}
.hero .hero-tag,
.hero-tag {
    color: #fff;
    background: rgba(255, 255, 255, .20);
    border: 1px solid rgba(255, 255, 255, .34);
    backdrop-filter: blur(8px);
}

/* ② 轮播右侧活动小图：白卡 + 轻投影，避免深色块压在深色横幅上 */
.hero-side-item {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 10px 26px rgba(3, 12, 30, .22);
}
.hero-side-title {
    font-size: 13px;
    padding: 18px 12px 8px;
}

/* ③ 快捷入口卡：纯白卡片（半透明玻璃叠在深色横幅上会发灰） */
.quick-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: -56px 0 0;
    position: relative;
    z-index: 6;
}
.quick-card {
    background: #fff;
    border: 1px solid var(--line-1, #e9ecf2);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(9, 30, 66, .10);
    padding: 20px 22px;
    gap: 16px;
}
.quick-card:hover {
    border-color: var(--brand);
    box-shadow: 0 18px 40px rgba(9, 30, 66, .16);
}
.quick-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-tint, rgba(0, 82, 217, .09));
    color: var(--brand);
    font-size: 18px;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    flex: none;
}
.quick-text b { font-size: 15.5px; color: var(--ink-1, #0d1526); }
.quick-text small { font-size: 12.5px; color: var(--ink-3, #667085); }

/* ④ 产品区：地区卡角标改为右上圆角小标签（原 45° 缎带在 3 列窄卡上会被裁字） */
.prod-region { position: relative; }
.prod-flag {
    position: absolute;
    right: 10px;
    top: 10px;
    width: auto;
    transform: none;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f04438;
    color: #fff;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: .3px;
    box-shadow: 0 2px 8px rgba(240, 68, 56, .28);
}
.prod-card { position: relative; }
.prod-name { font-size: 16px; color: var(--ink-1, #0d1526); }
.prod-desc { font-size: 13px; line-height: 1.65; color: var(--ink-3, #667085); }
.prod-meta { font-size: 13px; color: var(--brand); font-weight: 600; }
.prod-meta.is-empty { color: var(--ink-4, #98a2b3); font-weight: 400; }

/* ⑤ 品牌墙：无 logo 图时用文字徽标展示 */
.brand-logo {
    background: #fff;
    border: 1px solid var(--line-1, #e9ecf2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    color: var(--ink-2, #344054);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: all .18s ease;
}
.brand-logo:hover {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 10px 24px rgba(9, 30, 66, .10);
    transform: translateY(-2px);
}
.brand-logo img { max-height: 34px; max-width: 78%; object-fit: contain; }

/* ⑥ 容器与区块节奏（对齐运营站 1312 内容宽） */
.container { max-width: 1312px; }
main.container { padding-top: 0; }
.sk-prod, .sk-sol, .brand-wall { margin-top: 0; }
.sk-head h2 { font-size: 30px; font-weight: 600; color: var(--ink-1, #0d1526); }
.sk-head p { font-size: 14px; color: var(--ink-3, #667085); }

/* ⑦ 页脚：深墨底 + 白色文字，避免继承到深色正文色 */
.site-footer { background: #0b1a33; color: rgba(255, 255, 255, .72); }
.site-footer h4 { color: #fff; font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: #fff; }
.footer-slogan, .footer-company, .footer-copy { color: rgba(255, 255, 255, .58); }
.footer-contact p { color: rgba(255, 255, 255, .66); }
.footer-contact p span { color: rgba(255, 255, 255, .42); }

/* ⑧ 顶栏：白底细线，适配静态页 */
.header { background: #fff; border-bottom: 1px solid var(--line-1, #e9ecf2); }
.header-inner { max-width: 1312px; }
.nav-link { color: var(--ink-2, #344054); }
.nav-link:hover { color: var(--brand); }
.nav-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .55;
}

/* ⑨ 大菜单：白底卡片，右侧说明文字两行截断 */
.nav-drop-mega { padding: 0; }
.nav-mega { background: #fff; border-radius: 0 0 12px 12px; }
.nav-mega-card { background: #fff; border: 1px solid var(--line-1, #e9ecf2); border-radius: 10px; }
.nav-mega-card:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(9, 30, 66, .10); }
.nav-mega-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ⑩ 移动端 */
@media (max-width: 900px) {
    .hero .hero-title { font-size: 28px; }
    .hero .hero-desc { font-size: 14px; }
    .quick-cards { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: -32px; }
    .quick-card { padding: 14px; }
    .header-inner { padding: 0 14px; }
}
@media (max-width: 620px) {
    .quick-cards { grid-template-columns: 1fr; }
    .hero .hero-title { font-size: 22px; }
}

/* ⑪ 层级修正：顶栏与大菜单必须压住轮播右侧活动图（后者 z-index:4 且在后渲染） */
.header { position: relative; z-index: 200; }
.nav-drop { z-index: 320; }
.nav-drop-mega { left: var(--mega-left, 0); }
.nav-mega {
    width: min(1100px, calc(100vw - 140px));
    border-radius: 0 0 12px 12px;
    box-shadow: 0 24px 60px rgba(9, 30, 66, .18);
}
.nav-mega-side { border-radius: 0; }
.nav-mega-card:first-child { border-top-left-radius: 8px; }
.nav-mega-grid { gap: 10px; padding: 0; }
.nav-mega-card { border-radius: 8px; min-height: 118px; }
.nav-mega-name { font-size: 14.5px; font-weight: 600; color: var(--ink-1); }
.nav-mega-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin: 6px 0 0; }
.nav-mega-head { display: flex; align-items: center; gap: 8px; }
.nav-mega-badge {
    background: #f04438; color: #fff; font-size: 10.5px;
    padding: 1px 6px; border-radius: 4px; line-height: 1.5;
}

/* ⑫ 解决方案标签：左对齐紧凑胶囊（原 flex 两端对齐在大屏上会散开） */
.sol-labels { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: flex-start; margin: 0; padding: 0; list-style: none; }
.sol-labels li {
    background: var(--brand-tint, rgba(0, 82, 217, .08));
    color: var(--brand);
    border: 1px solid rgba(0, 82, 217, .16);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.4;
}
.sol-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sol-tabs button {
    border: 1px solid var(--line-1, #e9ecf2);
    background: #fff;
    color: var(--ink-2, #344054);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: all .16s ease;
}
.sol-tabs button.active,
.sol-tabs button:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ⑬ 产品区左列：描述固定三行，避免高度忽高忽低 */
.prod-left .prod-intro .prod-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.65;
}
.prod-left .prod-intro-more { display: flex; flex-direction: column; justify-content: center; }

/* ⑭ 页脚栏目间距与链接节奏 */
.footer-nav h4 { margin: 0 0 16px; letter-spacing: .5px; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: 13.5px; }

/* ⑮ 品牌墙：固定 6 列（原 auto-fill 在大屏会变 5 列，18 个品牌排不满） */
.brand-wall-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .brand-wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .brand-wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 页脚联系方式行间距 */
.footer-contact em { font-style: normal; }
.footer-contact p { margin: 0 0 7px; }

/* ⑯ 品牌墙滚动（新财务同款：内容复制两份 + translateX(-50%) 无缝）
   注意：原样式 .is-scroll 带 overflow-x:auto，会和动画打架，这里改为 hidden */
.brand-wall-rows { overflow: hidden; }
.brand-wall-grid.is-scroll {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    overflow: hidden;
    gap: 14px;
    animation: brandScroll var(--brand-speed, 40s) linear infinite;
}
.brand-wall-grid.is-scroll:hover { animation-play-state: paused; }
.brand-wall-grid.is-scroll .brand-logo {
    flex: 0 0 auto;
    min-width: 152px;
    height: 62px;
}
.brand-wall-grid.is-scroll .brand-logo span { white-space: nowrap; }

/* ⑰ LOGO 尺寸（控制台「① 品牌与外观 → LOGO 高度」可调） */
.logo .logo-img {
    height: var(--m23-logo-h, 44px);
    width: auto;
    max-width: var(--m23-logo-w, 260px);
    object-fit: contain;
    display: block;
}
.header-inner { min-height: 66px; }
@media (max-width: 760px) {
    .logo .logo-img { height: calc(var(--m23-logo-h, 44px) * .82); max-width: 180px; }
}

/* ⑱ 客服条：固定贴右缘 + 垂直居中偏下
   原第 120/121 轮是「跟随鼠标（--fb-y）+ 贴右缘」，滚动时会一路跟着走、
   还会压在轮播按钮上；这里改为固定位置，和运营站一致 */
.float-bar {
    right: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    /* 位置由 JS 写入 --fb-y（鼠标靠近右侧时温和跟随；滚动不重算） */
    transform: translateY(var(--fb-y, 555px)) !important;
    transition: transform .22s cubic-bezier(.16, 1, .3, 1) !important;
    will-change: transform !important;
}
/* 面板向左展开时留出安全距离，避免超出视口 */
.float-bar .fb-panel { right: 66px; }
@media (max-width: 900px) {
    .float-bar { transform: translateY(var(--fb-y, 455px)) !important; }
}

/* ⑲ 顶栏：毛玻璃 + 吸顶（对齐新财务 .header） */
.header {
    position: sticky !important;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, .76) !important;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border-bottom: 1px solid rgba(233, 236, 242, .85);
    box-shadow: 0 1px 0 rgba(16, 24, 40, .03);
    transition: background .2s, box-shadow .2s;
}
.header.is-scrolled {
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: 0 6px 20px -12px rgba(16, 24, 40, .22);
}
/* 下拉面板也保持毛玻璃（避免与顶栏叠加后发灰） */
.nav-drop-panel {
    background: rgba(255, 255, 255, .9) !important;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
}
@media (prefers-reduced-transparency: reduce) {
    .header { background: #fff !important; backdrop-filter: none; }
}

/* ⑳ 首页顶栏毛玻璃透出背景：让 hero 铺到顶栏背后，顶栏浮在其上
   （运营站效果：能透过顶栏看到后面的视频/大图） */
.header {
    position: fixed !important;
    left: 0; right: 0; top: 0;
    background: rgba(255, 255, 255, .58) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom-color: rgba(255,255,255,.45) !important;
}
.header.is-scrolled {
    background: rgba(255, 255, 255, .9) !important;
}
/* 顶栏 fixed 后占位消失，正文整体下移；首页 hero 例外——它要顶到最上面 */
/* header fixed：首页 hero 自带 padding-top，不再给 main 加额外 padding（否则视频下方出现灰条） */
.hero { margin-top: 0 !important; }
.hero-slide { padding-top: 70px; }
.hero-inner { padding-top: 0; }

/* ㉑ 顶栏布局对齐运营站：logo 稍大、导航间隔、工具区贴右 */
.header-inner { max-width: none !important; padding: 0 32px !important; height: 70px !important; gap: 30px !important; }
.logo .logo-img { height: 34px !important; }
.header .nav { gap: 22px !important; }
.header-right { margin-left: auto !important; gap: 18px !important; }
.header-right .tool-search { width: 150px; }
.header-right .tool-search-input { font-size: 12.5px; }

/* ㉒ 首页登录后账户区：用户名▾ + 圆形头像 + 下拉菜单（运营站同款） */
.m23-account { position: relative; display: flex; align-items: center; gap: 10px; flex: none; }
.m23-account-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-1); text-decoration: none !important; white-space: nowrap; }
.m23-account-toggle:hover { color: var(--brand); }
.m23-account-toggle .nav-caret { width: 0; height: 0; border: 5px solid transparent; border-top-color: var(--brand); border-bottom: 0; margin-top: 2px; display: inline-block; }
.tool-avatar {
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none;
    background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none !important; border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(16,40,90,.16);
}
.tool-avatar img { border-radius: 50%; }
.m23-account-drop {
    position: absolute; top: calc(100% + 14px); right: -6px; z-index: 300;
    width: 208px; padding: 8px; background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.9);
    border-radius: 12px; box-shadow: 0 18px 46px rgba(15,40,90,.18);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s, transform .16s, visibility .16s;
}
.m23-account-drop::before { content:''; position:absolute; top:-14px; left:0; right:0; height:14px; }
@media (hover: hover) {
    .m23-account:hover .m23-account-drop { opacity: 1; visibility: visible; transform: translateY(0); }
}
.m23-account-drop a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 8px; font-size: 13.5px; color: var(--ink-1); text-decoration: none !important;
}
.m23-account-drop a:hover { background: rgba(0,82,217,.07); color: var(--brand); }
.m23-account-drop .ico { width: 18px; text-align: center; color: var(--brand); font-size: 14px; flex: none; }
