:root {
    --xb-primary: #2563eb;
    --xb-primary-2: #4f46e5;
    --xb-accent: #06b6d4;
    --xb-dark: #0b1220;
    --xb-dark-2: #12203a;
    --xb-text: #1e293b;
    --xb-muted: #64748b;
    --xb-bg: #f4f8ff;
    --xb-surface: #ffffff;
}

body {
    font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    color: var(--xb-text);
    background: var(--xb-bg);
    padding-top: 68px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--xb-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--xb-primary-2); }

/* ===== 玻璃导航 ===== */
.site-nav {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(37, 99, 235, .12);
    box-shadow: 0 6px 26px rgba(13, 32, 60, .08);
}
.site-nav .navbar-brand { color: var(--xb-dark); font-size: 1.3rem; letter-spacing: .5px; display: inline-flex; align-items: center; }
.site-nav .navbar-brand img { display: block; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(135deg, var(--xb-primary), var(--xb-primary-2));
    color: #fff; font-weight: 800; margin-right: 8px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.site-nav .nav-link { color: #334155; font-weight: 500; padding: .5rem .9rem; }
.site-nav .nav-link:hover { color: var(--xb-primary); }
.site-nav .nav-link.active {
    color: var(--xb-primary);
    background: rgba(37, 99, 235, .08);
    border-radius: 10px;
}
/* ===== 教程下拉菜单（鼠标悬停展开）===== */
.site-nav .dropdown-toggle::after { vertical-align: .08em; opacity: .75; }
.site-nav .dropdown-menu {
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(13, 32, 60, .14);
    padding: .45rem;
    margin-top: 0;
}
.site-nav .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: .55rem 1rem;
    font-weight: 500;
    color: #334155;
    transition: color .15s, background .15s;
}
.site-nav .dropdown-menu .dropdown-item:hover {
    background: rgba(37, 99, 235, .08);
    color: var(--xb-primary);
}
@media (hover: hover) {
    .site-nav .dropdown:hover > .dropdown-menu { display: block; }
    .site-nav .dropdown:hover > .dropdown-toggle { color: var(--xb-primary); }
}

/* ===== Hero（科技蓝渐变 + 光晕 + 网格）===== */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 104px 0 116px;
    background:
        radial-gradient(1000px 560px at 82% -12%, rgba(6, 182, 212, .40), transparent 60%),
        radial-gradient(900px 520px at -8% 112%, rgba(79, 70, 229, .38), transparent 55%),
        linear-gradient(135deg, #0b1220 0%, #142a52 52%, #1e3f86 100%);
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-title {
    font-size: 2.9rem; font-weight: 800; line-height: 1.2; letter-spacing: .5px;
    background: linear-gradient(90deg, #ffffff 0%, #bfe0ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.15rem; color: #d3ddf2; margin-top: 18px; max-width: 640px; line-height: 1.7; }
.hero-badges {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 10px; padding: 10px 0; min-height: 360px;
}
.hb {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hb) 14%, transparent);
    border: 3px solid color-mix(in srgb, var(--hb) 75%, transparent);
    box-shadow: 0 0 45px color-mix(in srgb, var(--hb) 50%, transparent), inset 0 0 22px color-mix(in srgb, var(--hb) 28%, transparent);
    color: #fff; text-align: center; line-height: 1.15;
    transition: transform .25s ease, box-shadow .25s ease;
}
.hb:hover { box-shadow: 0 0 60px color-mix(in srgb, var(--hb) 70%, transparent); }
/* 大屏：JS 随机绝对定位，避免重叠 */
@media (min-width: 992px) {
    .hero-badges { display: block; }
    .hero-badges .hb {
        position: absolute; left: 0; top: 0;
        transform: translate(var(--bx, 0px), var(--by, 0px)) rotate(var(--rot, 0deg));
    }
    .hero-badges .hb:hover {
        transform: translate(var(--bx, 0px), calc(var(--by, 0px) - 6px)) rotate(var(--rot, 0deg)) scale(1.04);
        box-shadow: 0 0 60px color-mix(in srgb, var(--hb) 70%, transparent);
    }
}
.hb .hb-name { font-size: 2rem; font-weight: 800; letter-spacing: 1px; }
.hb small { font-size: .8rem; font-weight: 400; color: color-mix(in srgb, var(--hb) 85%, #ffffff); letter-spacing: 1px; margin-top: 2px; }
.hb-lg { width: 200px; height: 200px; }
.hb-md { width: 150px; height: 150px; }
.hb-md .hb-name { font-size: 1.6rem; }
.hb-sm { width: 110px; height: 110px; }
.hb-sm .hb-name { font-size: 1.2rem; }
.hb-sm small { font-size: .7rem; }

/* ===== 区块 ===== */
.section { padding: 72px 0; }
.bg-light { background: #eef4ff !important; }
.section-title { text-align: center; font-weight: 800; font-size: 1.9rem; margin-bottom: 44px; position: relative; letter-spacing: .5px; }
.section-title::after {
    content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--xb-primary), var(--xb-accent));
    margin: 16px auto 0;
}
.page-header {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #142a52 0%, #1e3f86 100%);
    color: #fff; padding: 40px 0;
}
.page-header h1 { margin: 0; font-weight: 800; }
.page-header .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-header .breadcrumb a { color: #cfe0ff; }
.page-header .breadcrumb-item.active { color: #fff; }

/* ===== 产品卡片 ===== */
.product-card {
    border: 1px solid rgba(37, 99, 235, .10);
    border-radius: 18px;
    background: var(--xb-surface);
    box-shadow: 0 10px 30px rgba(13, 32, 60, .06);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(37, 99, 235, .18); }
.product-card .card-img-top { height: 184px; object-fit: cover; }
.img-placeholder, .img-placeholder-sm {
    background: linear-gradient(135deg, #1e3f86, #06b6d4);
    color: #fff; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 12px; font-weight: 600;
}
.img-placeholder { height: 360px; }
.img-placeholder-sm { height: 184px; font-size: .9rem; }
.price { color: var(--xb-primary); font-weight: 700; }
.price-lg { font-size: 1.6rem; color: var(--xb-primary); font-weight: 700; }

.badge-feature {
    display: inline-block; background: #e8f0ff; color: var(--xb-primary-2);
    border: 1px solid #cfe0ff; border-radius: 20px; padding: 4px 12px; margin: 4px 6px 0 0; font-size: .88rem;
}
.features { margin: 16px 0; }

/* ===== 服务卡片（玻璃质感）===== */
.service-card {
    border: 1px solid rgba(37, 99, 235, .10);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    box-shadow: 0 10px 30px rgba(13, 32, 60, .06);
    padding: 30px 22px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(37, 99, 235, .16); }
.service-icon {
    font-size: 2.6rem; margin-bottom: 12px;
    width: 64px; height: 64px; line-height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .14));
    display: inline-block;
}

/* ===== CTA ===== */
.cta-banner {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--xb-primary), var(--xb-primary-2) 60%, var(--xb-accent));
    padding: 56px 0;
    box-shadow: 0 -8px 40px rgba(37, 99, 235, .18);
}
.cta-banner h3 { color: #fff; font-weight: 800; }

/* ===== 列表 ===== */
.feature-list { padding-left: 18px; }
.feature-list li { margin-bottom: 6px; }
.process-list { padding-left: 20px; line-height: 2; }
.contact-info li { padding: 6px 0; border-bottom: 1px dashed #dbe4f3; }

/* ===== 视频教程列表 ===== */
.video-list-item {
    border: 1px solid rgba(37, 99, 235, .10);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.video-list-item:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37, 99, 235, .14); }
.video-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    align-self: center;
    margin: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #142a52 0%, #1e3f86 100%);
    text-decoration: none;
}
.video-thumb img { width: 100%; height: 100%; max-width: 96px; max-height: 96px; object-fit: cover; }
.video-thumb-placeholder {
    color: #fff;
    font-size: 1.6rem;
    opacity: .85;
    text-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.video-list-item .card-title a { color: var(--xb-dark); font-weight: 700; }
.video-list-item .card-title a:hover { color: var(--xb-primary); }
.search-bar { border: 1px solid rgba(37, 99, 235, .10); border-radius: 16px; }
/* ===== 视频教程翻页 ===== */
.tutorial-pagination { gap: 4px; }
.tutorial-pagination .page-link {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .6rem;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 10px;
    color: #334155;
    font-weight: 500;
    background: #fff;
    transition: all .16s ease;
}
.tutorial-pagination .page-link:hover {
    background: rgba(37, 99, 235, .08);
    color: var(--xb-primary);
    border-color: rgba(37, 99, 235, .25);
}
.tutorial-pagination .page-item.active .page-link {
    background: var(--xb-primary);
    border-color: var(--xb-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.tutorial-pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    color: #cbd5e1;
    border-color: #e2e8f0;
    pointer-events: none;
}
.tutorial-pagination .page-first .page-link,
.tutorial-pagination .page-prev .page-link,
.tutorial-pagination .page-next .page-link,
.tutorial-pagination .page-last .page-link {
    font-size: 1.1rem;
}

.search-result-card { border: 1px solid rgba(37, 99, 235, .10); border-radius: 12px; transition: box-shadow .18s ease, transform .18s ease; }
.search-result-card:hover { box-shadow: 0 10px 26px rgba(37, 99, 235, .12); transform: translateY(-2px); }
.search-result-card .card-title { color: var(--xb-dark); }

/* ===== 导航搜索框（放大镜图标融为一体）===== */
.site-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 200px;
}
.site-search-input {
    width: 100%;
    height: 36px;
    padding: 0 38px 0 14px;
    font-size: .875rem;
    color: #334155;
    background: rgba(37, 99, 235, .06);
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 18px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.site-search-input::placeholder { color: #94a3b8; }
.site-search-input:focus {
    background: #fff;
    border-color: var(--xb-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.site-search-btn {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    color: var(--xb-primary);
    background: transparent;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.site-search-btn:hover { background: var(--xb-primary); color: #fff; }
@media (max-width: 575px) { .site-search { width: 100%; } }

/* ===== 友好错误页 ===== */
.err-code {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--xb-primary);
    opacity: .15;
    margin-bottom: .5rem;
    letter-spacing: .05em;
}
@media (max-width: 575px) { .err-code { font-size: 4rem; } }

@media (max-width: 575px) {
    .video-list-item { flex-direction: row; }
    .video-thumb { flex: 0 0 72px; width: 72px; height: 72px; margin: 12px; }
}

/* ===== 富文本 ===== */
.rich-text { line-height: 1.9; }
.rich-text img { max-width: 100%; border-radius: 12px; }

/* ===== 页脚 ===== */
.site-footer {
    background: linear-gradient(180deg, #0b1220 0%, #12203a 100%);
    color: #c2cbdc; padding: 52px 0 26px;
}
.site-footer a { color: #c2cbdc; }
.site-footer a:hover { color: #fff; }
.site-footer h5, .site-footer h6 { color: #fff; }

/* ===== 按钮（发光）===== */
.btn-primary {
    background: linear-gradient(135deg, var(--xb-primary), var(--xb-primary-2));
    border: none;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .35);
    border-radius: 12px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .5);
}
.btn-primary:active { transform: translateY(0); }

.btn-warning {
    background: linear-gradient(135deg, var(--xb-accent), #22d3ee);
    border: none;
    color: #062a31;
    box-shadow: 0 8px 22px rgba(6, 182, 212, .4);
    border-radius: 12px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-warning:hover { color: #062a31; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(6, 182, 212, .55); }

.btn-outline-primary { border-radius: 12px; font-weight: 600; }
