/* ============================================================
   视觉升级增强层 v2  —  引智人事官网
   SVG 图标系统 / 渐变图标砖 / Eyebrow 视觉标签 / 柔和光晕 / 装饰元素
   表面色统一引用 design-system.css 令牌，暗色主题自动适配。
   ============================================================ */

/* ---------- 1. SVG 图标基础渲染 ---------- */
.ic {
    width: 1em; height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: -0.125em;
    flex: none;
}

/* ---------- 2. 图标砖（扁平化：单层背景 + 主色，hover 实色，无高光/旋转） ---------- */
.ico, .si-ico, .sd-ico, .hv-ico, .modal-ico, .t-ico, .pb-ico, .val-ico, .fs-ico {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(0, 112, 192, .18);
    flex: none;
    transition: transform .3s ease, box-shadow .3s ease;
}
.ico .ic, .si-ico .ic, .sd-ico .ic, .hv-ico .ic, .modal-ico .ic,
.t-ico .ic, .pb-ico .ic, .val-ico .ic, .fs-ico .ic {
    stroke-width: 1.7;
}

/* 悬浮微交互：仅轻微抬升 + 放大，去掉旋转 */
.svc-item:hover .si-ico,
.sd-item:hover .sd-ico,
.value-card:hover .val-ico,
.pain-card:hover .ico,
.card:hover .ico,
.trust-item:hover .t-ico,
.fs-panel:hover .fs-ico { transform: translateY(-2px) scale(1.05); }
.hv-row:hover .hv-ico { transform: translateY(-2px) scale(1.06); }

/* 尺寸档位 */
.ico       { width: 56px; height: 56px; font-size: var(--text-4xl); border-radius: var(--radius-lg); }
.si-ico    { width: 60px; height: 60px; font-size: var(--text-4xl); border-radius: var(--radius-xl); }
.sd-ico    { width: 48px; height: 48px; font-size: var(--text-3xl); border-radius: var(--radius-lg); }
.hv-ico    { width: 44px; height: 44px; font-size: var(--text-3xl); border-radius: var(--radius-md); }
.val-ico   { width: 54px; height: 54px; font-size: var(--text-4xl); border-radius: var(--radius-lg); }
.fs-ico    { width: 46px; height: 46px; font-size: var(--text-3xl); border-radius: var(--radius-md); }
.t-ico     { width: 40px; height: 40px; font-size: var(--text-2xl); border-radius: var(--radius-md); }
.pb-ico    { width: 52px; height: 52px; font-size: var(--text-4xl); border-radius: 0; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); background: rgba(255,255,255,.14); box-shadow: 0 4px 12px rgba(0,0,0,.18); backdrop-filter: blur(4px); }
.modal-ico { width: 56px; height: 56px; font-size: var(--text-4xl); border-radius: var(--radius-lg); margin: 0 auto 14px; }

/* ---------- 3. 图标砖配色变体（扁平化：单色渐变 + 单层阴影） ---------- */
.ico-blue   { background: linear-gradient(135deg,#3b82f6,#2563eb) !important; color:#fff !important; box-shadow: 0 4px 12px rgba(37,99,235,.20) !important; }
.ico-orange { background: linear-gradient(135deg,#fb923c,#f97316) !important; color:#fff !important; box-shadow: 0 4px 12px rgba(249,115,22,.20) !important; }
.ico-green  { background: linear-gradient(135deg,#34d399,#10b981) !important; color:#fff !important; box-shadow: 0 4px 12px rgba(16,185,129,.20) !important; }
.ico-purple { background: linear-gradient(135deg,#a78bfa,#8b5cf6) !important; color:#fff !important; box-shadow: 0 4px 12px rgba(139,92,246,.20) !important; }
.ico-teal   { background: linear-gradient(135deg,#2dd4bf,#14b8a6) !important; color:#fff !important; box-shadow: 0 4px 12px rgba(20,184,166,.20) !important; }
.ico-red    { background: linear-gradient(135deg,#f87171,#ef4444) !important; color:#fff !important; box-shadow: 0 4px 12px rgba(239,68,68,.20) !important; }
.ico-cyan   { background: linear-gradient(135deg,#38bdf8,#0ea5e9) !important; color:#fff !important; box-shadow: 0 4px 12px rgba(14,165,233,.20) !important; }
.ico-indigo { background: linear-gradient(135deg,#818cf8,#6366f1) !important; color:#fff !important; box-shadow: 0 4px 12px rgba(99,102,241,.20) !important; }
.ico-gold   { background: linear-gradient(135deg,#fbbf24,#f59e0b) !important; color:#fff !important; box-shadow: 0 4px 12px rgba(245,158,11,.20) !important; }

/* svc-item 图标砖尺寸补正（覆盖旧 font-size 规则） */
.svc-item .si-ico { width: 60px !important; height: 60px !important; margin: 0 auto 14px !important; font-size: var(--text-4xl); }

/* ---------- 4. 卡片悬浮高亮条 + 标题下划线 ---------- */
.card { position: relative; overflow: hidden; }
.card::before {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent, #f97316));
    transition: width .35s ease;
}
.card:hover::before { width: 100%; }

.section-head { position: relative; }

/* ---------- 4b. Eyebrow 章节视觉标签（统一升级 .tag） ---------- */
.section-head .tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: var(--text-sm); font-weight: 700; letter-spacing: 2px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(0,112,192,.10), rgba(0,112,192,.04));
    border: 1px solid rgba(0,112,192,.20);
    padding: 6px 16px 6px 13px; border-radius: var(--radius-pill); margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0,112,192,.10);
    position: relative;
}
.section-head .tag::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, var(--primary), var(--accent, #f97316));
    box-shadow: 0 0 0 3px rgba(0,112,192,.16);
}

/* 横幅 eyebrow（内页）— 玻璃质感白标签 */
.pb-eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
    font-size: var(--text-sm); font-weight: 700; letter-spacing: 3px;
    color: #f39800; margin-bottom: 14px; position: relative;
}
.pb-eyebrow::before { content: ""; width: 8px; height: 8px; background: #f39800; flex: none; }

/* ---------- 4c. 章节标题系统（全站统一）：英文眉标 + 藏青标题 + HUD终端细线 ---------- */
.section-head::before { display: none; }
.section-head .eyebrow {
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
    font-size: var(--text-sm); font-weight: 700;
    letter-spacing: 4px; color: #f39800; margin-bottom: 14px;
}
.section-head h2 {
    color: #1f3864; font-weight: 800; letter-spacing: 2px;
    display: inline-flex; align-items: center; gap: 24px;
}
.section-head h2::before,
.section-head h2::after {
    content: ""; width: 72px; height: 9px; flex: none;
}
.section-head h2::before {
    background:
        linear-gradient(#f39800, #f39800) right 0 top 1.5px / 6px 6px no-repeat,
        linear-gradient(90deg, transparent, rgba(243,152,0,.55)) left 0 top 4px / 60px 1px no-repeat;
}
.section-head h2::after {
    background:
        linear-gradient(#f39800, #f39800) left 0 top 1.5px / 6px 6px no-repeat,
        linear-gradient(270deg, transparent, rgba(243,152,0,.55)) right 0 top 4px / 60px 1px no-repeat;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .section-head h2 { color: var(--text-primary); }
}
:root[data-theme="dark"] .section-head h2 { color: var(--text-primary); }
@media (max-width: 640px) {
    .section-head h2 { gap: 14px; letter-spacing: 1px; }
    .section-head h2::before, .section-head h2::after { width: 40px; }
}

/* ---------- 5. Hero 装饰增强 ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.5px);
    background-size: 26px 26px; opacity: .6; pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
    pointer-events: none;
}

/* Hero 数据可视化图形 */
.hv-chart {
    display: flex; align-items: flex-end; gap: 10px;
    height: 150px; padding: 18px; border-radius: var(--radius-lg);
    background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.18);
}
.hv-chart .bar {
    flex: 1; border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #fff, rgba(255,255,255,.55));
    transform-origin: bottom; animation: hvGrow 1s ease both;
}
@keyframes hvGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero-visual {
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-xl); padding: 22px; backdrop-filter: blur(6px);
}
.hv-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hv-row:last-child { margin-bottom: 0; }
.hv-row .hv-ico { background: rgba(255,255,255,.16); box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.hv-row .hv-txt b { display: block; font-size: var(--text-md); }
.hv-row .hv-txt span { font-size: var(--text-sm); opacity: .82; }

/* ---------- 6. 信任条 / 数据条图标 ---------- */
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .t-ico { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

/* ---------- 7. 流程步骤连接线 ---------- */
.steps { position: relative; }
.steps::before {
    content: ""; position: absolute; top: 32px; left: 8%; right: 8%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-color) 0 8px, transparent 8px 16px);
    z-index: 0;
}
.step { position: relative; z-index: 1; }

/* ---------- 8. 客户评价 ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
    background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 28px; position: relative; box-shadow: var(--shadow-soft);
    transition: transform .3s, box-shadow .3s;
}
.testi:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,.10); }
.testi .quote-mark { color: var(--primary); opacity: .18; width: 40px; height: 40px; }
.testi p { color: var(--text); line-height: 1.8; margin: 10px 0 18px; font-size: var(--text-md); }
.testi-user { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: var(--text-xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.testi-user b { display: block; font-size: var(--text-md); color: var(--text-dark); }
.testi-user span { font-size: var(--text-sm); color: var(--text-light); }
.testi-stars { display: flex; gap: 2px; margin-top: 4px; color: #f59e0b; }
.testi-stars .ic { width: 14px; height: 14px; fill: #f59e0b; stroke: #f59e0b; }

/* ---------- 9. 图文分栏 ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 48px 0; }
.feature-split.reverse .fs-media { order: 2; }
.fs-text h3 { font-size: var(--text-3xl); margin-bottom: 16px; color: var(--text-dark); }
.fs-text p { color: var(--text-light); line-height: 1.9; margin-bottom: 20px; }
.fs-list { list-style: none; padding: 0; margin: 0; }
.fs-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: var(--text); }
.fs-list li .ic { color: var(--primary); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.fs-media {
    border-radius: var(--radius-xl); padding: 32px; min-height: 280px;
    background: linear-gradient(135deg, var(--tint-teal-from), var(--tint-teal-to));
    display: flex; flex-direction: column; justify-content: center; gap: 16px;
    position: relative; overflow: hidden;
}
.fs-media::after {
    content: ""; position: absolute; right: -60px; bottom: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, var(--tint-teal-glow), transparent 70%);
}
.fs-panel {
    background: var(--surface); border-radius: var(--radius-lg); padding: 18px 20px;
    display: flex; align-items: center; gap: 14px; box-shadow: 0 6px 18px rgba(15,23,42,.06);
    position: relative; z-index: 1;
}
.fs-panel b { display: block; font-size: var(--text-md); color: var(--text-dark); }
.fs-panel span { font-size: var(--text-sm); color: var(--text-light); }

/* ---------- 10. 内页横幅图标 ---------- */
.page-banner { position: relative; overflow: hidden; }
.page-banner::before {
    content: ""; position: absolute; inset: -48px; pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 .5H.5V48' fill='none' stroke='%235eead4' stroke-opacity='.10'/%3E%3C/svg%3E"),
        linear-gradient(105deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
    background-size: 48px 48px, 260% 100%;
    animation: pbGridPan 60s linear infinite, pbSweep 7s ease-in-out infinite;
}
@keyframes pbGridPan { to { transform: translate(48px, 48px); } }
@keyframes pbSweep {
    0% { background-position: 0 0, -140% 0; }
    55%, 100% { background-position: 0 0, 140% 0; }
}
/* banner 标题：HUD 终端细线（深底白字版） */
.page-banner h1 {
    display: inline-flex; align-items: center; gap: 22px;
    font-weight: 800; letter-spacing: 2px; margin-bottom: 8px;
}
.page-banner h1::before,
.page-banner h1::after {
    content: ""; width: 60px; height: 9px; flex: none;
}
.page-banner h1::before {
    background:
        linear-gradient(#f39800, #f39800) right 0 top 1.5px / 6px 6px no-repeat,
        linear-gradient(90deg, transparent, rgba(255,255,255,.55)) left 0 top 4px / 48px 1px no-repeat;
}
.page-banner h1::after {
    background:
        linear-gradient(#f39800, #f39800) left 0 top 1.5px / 6px 6px no-repeat,
        linear-gradient(270deg, transparent, rgba(255,255,255,.55)) right 0 top 4px / 48px 1px no-repeat;
}
@media (max-width: 640px) {
    .page-banner h1::before, .page-banner h1::after { display: none; }
}
.pb-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; position: relative; z-index: 1; }
.pb-head p { margin-top: 2px; }

/* ---------- 11. 导航 HOT 徽标 ---------- */
.nav-hot { position: relative; }
.nav-hot::after {
    content: "HOT"; position: absolute; top: 8px; right: -6px;
    font-size: var(--text-xs); font-weight: 700; line-height: 1; color: #fff;
    background: linear-gradient(135deg,#fb923c,#f97316);
    padding: 2px 4px; border-radius: var(--radius-xs); letter-spacing: .5px;
}

/* ---------- 12. 文章列表 hover ---------- */
.article-item { transition: transform .25s, box-shadow .25s, border-color .25s; }
.article-item:hover { transform: translateX(4px); border-color: var(--primary); box-shadow: 0 8px 24px rgba(0,112,192,.08); }

/* ---------- 13. 页脚图标 ---------- */
.footer .f-tags { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; }
.footer .f-tags span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: rgba(255,255,255,.72); }
.footer .f-tags .ic { width: 16px; height: 16px; color: var(--accent, #f97316); }
.footer .f-contact li { display: flex; align-items: center; gap: 10px; }
.footer .f-contact .ic { width: 16px; height: 16px; color: rgba(255,255,255,.6); flex: none; }
.footer .qr-box .ic-qr { width: 64px; height: 64px; color: rgba(255,255,255,.5); }

/* ---------- 14. 弹窗二维码占位 ---------- */
.qr-large { text-align: center; }
.qr-large .ic-qr { width: 120px; height: 120px; color: var(--primary); opacity: .5; }
.qr-large span { display: block; margin-top: 8px; font-size: var(--text-sm); color: var(--text-light); }

/* ---------- 15. 首页柔和光斑装饰（提升层次与出彩度） ---------- */
.trust-bar { position: relative; }
.trust-bar::before {
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 560px; height: 240px; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0,112,192,.12), transparent 70%);
    pointer-events: none; z-index: 0;
}
.trust-bar .container { position: relative; z-index: 1; }

.section-blue { position: relative; overflow: hidden; }
.section-blue::before {
    content: ""; position: absolute; right: -90px; top: -70px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,112,192,.16), transparent 70%);
    pointer-events: none; z-index: 0;
}
.section-blue::after {
    content: ""; position: absolute; left: -110px; bottom: -90px;
    width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,.12), transparent 70%);
    pointer-events: none; z-index: 0;
}
.section-blue .container { position: relative; z-index: 1; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1024px) {
    .testi-grid { grid-template-columns: 1fr; }
    .feature-split, .feature-split.reverse { grid-template-columns: 1fr; gap: 28px; }
    .feature-split.reverse .fs-media { order: 0; }
    .steps::before { display: none; }
    .pb-head { flex-direction: column; text-align: center; gap: 14px; }
    .section-blue::before, .section-blue::after { display: none; }
}

/* ---------- 17. 动效偏好（尊重减弱动态设置） ---------- */
@media (prefers-reduced-motion: reduce) {
    .ico, .si-ico, .sd-ico, .hv-ico, .modal-ico, .t-ico, .pb-ico, .val-ico, .fs-ico,
    .svc-item:hover .si-ico, .sd-item:hover .sd-ico, .value-card:hover .val-ico,
    .pain-card:hover .ico, .card:hover .ico, .trust-item:hover .t-ico, .fs-panel:hover .fs-ico,
    .hv-row:hover .hv-ico { transition: none; transform: none; }
}

/* ---------- 18. 暗色主题图标砖（扁平化，单层阴影） ---------- */
:root[data-theme="dark"] .ico-blue,
:root[data-theme="dark"] .si-ico.ico-blue,
:root[data-theme="dark"] .sd-ico.ico-blue,
:root[data-theme="dark"] .hv-ico.ico-blue,
:root[data-theme="dark"] .modal-ico.ico-blue,
:root[data-theme="dark"] .t-ico.ico-blue,
:root[data-theme="dark"] .pb-ico.ico-blue,
:root[data-theme="dark"] .val-ico.ico-blue,
:root[data-theme="dark"] .fs-ico.ico-blue {
    box-shadow: 0 4px 12px rgba(37,99,235,.40) !important;
}
:root[data-theme="dark"] .ico-red,
:root[data-theme="dark"] .si-ico.ico-red,
:root[data-theme="dark"] .sd-ico.ico-red {
    box-shadow: 0 4px 12px rgba(239,68,68,.40) !important;
}
:root[data-theme="dark"] .ico-gold,
:root[data-theme="dark"] .si-ico.ico-gold,
:root[data-theme="dark"] .sd-ico.ico-gold {
    box-shadow: 0 4px 12px rgba(245,158,11,.40) !important;
}
