/* ============================================================
   Bluk 现代工业级企业站样式 v3.0
   基于 Bootstrap 5.3 的 Bluk 设计系统
   5 色主题渐变导航 / panel 面板 / thumbnail 卡片 / 深色页脚
   ============================================================ */

/* ---------- CSS 变量定义（默认蓝色主题，layout 按 themeColor 覆盖） ---------- */
:root {
    --primary:       #1a56db;
    --primary-dark:  #1e40af;
    --primary-light: #3b82f6;
    --accent:        #0ea5e9;
    --success:       #10b981;
    --warning:       #f59e0b;
    --danger:        #ef4444;
    --dark:          #1e293b;
    --gray-900:      #0f172a;
    --gray-700:      #334155;
    --gray-500:      #64748b;
    --gray-300:      #cbd5e1;
    --gray-200:      #e2e8f0;
    --gray-100:      #f1f5f9;
    --gray-50:       #f8fafc;
    --white:         #ffffff;
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
    --shadow-sm:     0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md:     0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg:     0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl:     0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-stack:    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                     "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica,
                     Arial, sans-serif;
}

/* ---------- 全局重置与基础 ---------- */
html, body {
    height: 100%;
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover, a:focus {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- 布局容器 ---------- */
.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto;
    padding-bottom: 0;
    background: var(--gray-50);
}
.wrap > .container {
    padding: 0 20px 30px;
}

/* ---------- 页面标题区 hero-section ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    padding: 32px 0;
    margin-bottom: 28px;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.page-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 6px;
    font-size: 13px;
    border-radius: 0;
}
.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.8);
}
.page-hero .breadcrumb a:hover {
    color: var(--white);
}
.page-hero .breadcrumb .active {
    color: var(--white);
}
.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ---------- 现代化导航栏（BS5） ---------- */
.navbar {
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: var(--shadow-md);
    min-height: 56px;
    padding-top: 0;
    padding-bottom: 0;
}
.navbar-static-top {
    z-index: 1030;
}
.navbar-brand {
    height: 56px;
    padding: 0 20px;
    line-height: 56px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-right: 0;
}
.navbar-brand > img {
    display: inline-block;
    max-width: 130px;
    max-height: 36px;
    vertical-align: middle;
    margin-top: -2px;
}
/* BS5 导航链接：与 56px 导航栏等高垂直居中 */
.navbar .navbar-nav .nav-link {
    padding: 0 15px;
    line-height: 56px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    position: relative;
}
.navbar .navbar-nav .dropdown-menu {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    margin-top: 4px;
}
.navbar .navbar-nav .dropdown-menu .dropdown-item {
    color: var(--gray-700);
    padding: 8px 20px;
    font-size: 14px;
    transition: all var(--transition);
}
.navbar .navbar-nav .dropdown-menu .dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}
.navbar .navbar-nav .dropdown-menu .dropdown-item.active {
    background: var(--primary);
    color: var(--white);
}

/* 搜索框（透明毛玻璃样式） */
#navbar-search-input {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 6px 16px;
    font-size: 13px;
    width: 190px;
    transition: all var(--transition);
    box-shadow: none;
    height: 36px;
}
#navbar-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}
#navbar-search-input:focus {
    background: rgba(255,255,255,0.95);
    color: var(--gray-700);
    border-color: rgba(255,255,255,0.8);
    width: 240px;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
    outline: none;
}

/* 移除导航栏所有点击焦点蓝框 */
.navbar .navbar-toggler:focus,
.navbar .dropdown-toggle:focus,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-brand:focus {
    outline: none;
    box-shadow: none;
}

/* ---------- 蓝色主题导航 (默认) ---------- */
.navbar-blue {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border: none;
}
.navbar-blue a { color: var(--white); }
.navbar-blue .navbar-nav .nav-link:hover,
.navbar-blue .navbar-nav .nav-link:focus {
    background-color: rgba(255,255,255,0.1);
}
.navbar-blue .navbar-nav .nav-link.active,
.navbar-blue .navbar-nav .nav-link.active:hover,
.navbar-blue .navbar-nav .nav-link.active:focus {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}
.navbar-blue .navbar-nav .nav-link { color: rgba(255,255,255,0.9); }
.navbar-blue .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-blue .navbar-toggler:hover,
.navbar-blue .navbar-toggler:focus { background-color: rgba(255,255,255,0.15); }
.navbar-blue .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-blue .navbar-brand { color: var(--white); }
.navbar-blue .navbar-nav .show > .nav-link,
.navbar-blue .navbar-nav .nav-link.show {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}

/* ---------- 红色主题导航 ---------- */
.navbar-red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
}
.navbar-red a { color: var(--white); }
.navbar-red .navbar-nav .nav-link:hover,
.navbar-red .navbar-nav .nav-link:focus { background-color: rgba(255,255,255,0.1); }
.navbar-red .navbar-nav .nav-link.active,
.navbar-red .navbar-nav .nav-link.active:hover,
.navbar-red .navbar-nav .nav-link.active:focus {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}
.navbar-red .navbar-nav .nav-link { color: rgba(255,255,255,0.9); }
.navbar-red .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-red .navbar-toggler:hover,
.navbar-red .navbar-toggler:focus { background-color: rgba(255,255,255,0.15); }
.navbar-red .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-red .navbar-brand { color: var(--white); }
.navbar-red .navbar-nav .show > .nav-link,
.navbar-red .navbar-nav .nav-link.show {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}
.navbar-red .navbar-nav .dropdown-menu .dropdown-item:hover { background: var(--gray-50); color: #dc2626; }
.navbar-red .navbar-nav .dropdown-menu .dropdown-item.active { background: #dc2626; color: var(--white); }

/* ---------- 黄色主题导航 ---------- */
.navbar-yellow {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    border: none;
}
.navbar-yellow a { color: var(--white); }
.navbar-yellow .navbar-nav .nav-link:hover,
.navbar-yellow .navbar-nav .nav-link:focus { background-color: rgba(255,255,255,0.1); }
.navbar-yellow .navbar-nav .nav-link.active,
.navbar-yellow .navbar-nav .nav-link.active:hover,
.navbar-yellow .navbar-nav .nav-link.active:focus {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}
.navbar-yellow .navbar-nav .nav-link { color: rgba(255,255,255,0.9); }
.navbar-yellow .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-yellow .navbar-toggler:hover,
.navbar-yellow .navbar-toggler:focus { background-color: rgba(255,255,255,0.15); }
.navbar-yellow .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-yellow .navbar-brand { color: var(--white); }
.navbar-yellow .navbar-nav .show > .nav-link,
.navbar-yellow .navbar-nav .nav-link.show {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}
.navbar-yellow .navbar-nav .dropdown-menu .dropdown-item:hover { background: var(--gray-50); color: #d97706; }
.navbar-yellow .navbar-nav .dropdown-menu .dropdown-item.active { background: #d97706; color: var(--white); }

/* ---------- 绿色主题导航 ---------- */
.navbar-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
}
.navbar-green a { color: var(--white); }
.navbar-green .navbar-nav .nav-link:hover,
.navbar-green .navbar-nav .nav-link:focus { background-color: rgba(255,255,255,0.1); }
.navbar-green .navbar-nav .nav-link.active,
.navbar-green .navbar-nav .nav-link.active:hover,
.navbar-green .navbar-nav .nav-link.active:focus {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}
.navbar-green .navbar-nav .nav-link { color: rgba(255,255,255,0.9); }
.navbar-green .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-green .navbar-toggler:hover,
.navbar-green .navbar-toggler:focus { background-color: rgba(255,255,255,0.15); }
.navbar-green .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-green .navbar-brand { color: var(--white); }
.navbar-green .navbar-nav .show > .nav-link,
.navbar-green .navbar-nav .nav-link.show {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}
.navbar-green .navbar-nav .dropdown-menu .dropdown-item:hover { background: var(--gray-50); color: #059669; }
.navbar-green .navbar-nav .dropdown-menu .dropdown-item.active { background: #059669; color: var(--white); }

/* ---------- 紫色主题导航 ---------- */
.navbar-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    border: none;
}
.navbar-purple a { color: var(--white); }
.navbar-purple .navbar-nav .nav-link:hover,
.navbar-purple .navbar-nav .nav-link:focus { background-color: rgba(255,255,255,0.1); }
.navbar-purple .navbar-nav .nav-link.active,
.navbar-purple .navbar-nav .nav-link.active:hover,
.navbar-purple .navbar-nav .nav-link.active:focus {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}
.navbar-purple .navbar-nav .nav-link { color: rgba(255,255,255,0.9); }
.navbar-purple .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-purple .navbar-toggler:hover,
.navbar-purple .navbar-toggler:focus { background-color: rgba(255,255,255,0.15); }
.navbar-purple .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-purple .navbar-brand { color: var(--white); }
.navbar-purple .navbar-nav .show > .nav-link,
.navbar-purple .navbar-nav .nav-link.show {
    color: var(--white);
    background-color: rgba(255,255,255,0.12);
}
.navbar-purple .navbar-nav .dropdown-menu .dropdown-item:hover { background: var(--gray-50); color: #7c3aed; }
.navbar-purple .navbar-nav .dropdown-menu .dropdown-item.active { background: #7c3aed; color: var(--white); }

/* ---------- 通用导航响应式调整（BS5 lg 断点 991.98px） ---------- */
@media (max-width: 991.98px) {
    .navbar-brand {
        height: 52px;
        line-height: 52px;
        padding: 0 16px;
        font-size: 18px;
    }
    .navbar-brand img { max-height: 32px; }
    .navbar .navbar-nav {
        margin: 4px 0;
    }
    .navbar .navbar-nav .nav-link {
        line-height: 1.6;
        padding: 10px 16px;
    }
    .navbar .navbar-nav .dropdown-menu {
        box-shadow: none;
        background: transparent;
        margin: 0;
        padding: 0 0 4px;
    }
    .navbar .navbar-nav .dropdown-menu .dropdown-item {
        color: rgba(255,255,255,0.85);
        padding: 8px 24px;
    }
    .navbar .navbar-nav .dropdown-menu .dropdown-item:hover {
        color: var(--white);
        background: rgba(255,255,255,0.1);
    }
    .navbar .navbar-nav .dropdown-menu .dropdown-item.active {
        color: var(--white);
        background-color: rgba(255,255,255,0.18);
    }
    .navbar-search-form {
        padding: 8px 16px 14px;
        margin: 0;
    }
    #navbar-search-input { width: 100%; height: 38px; }
    #navbar-search-input:focus { width: 100%; }
}

/* ---------- 现代商业轮播图（BS5） ---------- */
.carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 32px;
    max-height: 480px;
}
/* 底部渐变遮罩 */
.carousel-inner > .carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(0,0,0,0.30) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.carousel-inner > .carousel-item > img,
.carousel-inner > .carousel-item > a > img {
    min-height: 280px;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    width: 100%;
}
/* 胶囊指示器 */
.carousel-indicators {
    bottom: 16px;
    z-index: 2;
}
.carousel-indicators [data-bs-target] {
    width: 36px; height: 4px;
    border-radius: 2px; border: none;
    margin: 0 5px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    transition: all 0.3s ease;
}
.carousel-indicators [data-bs-target].active {
    width: 48px;
    background: var(--primary);
    box-shadow: 0 0 6px rgba(26,86,219,0.4);
    margin: 0 5px;
}
/* 圆形毛玻璃箭头（hover 显示） */
.carousel-control-prev,
.carousel-control-next {
    width: 44px; height: 44px;
    top: 50%; margin-top: -22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: all 0.3s ease;
}
.carousel-control-prev { left: 14px; }
.carousel-control-next { right: 14px; }
.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next { opacity: 1; }
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.28);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* ---------- 现代化面板 (Panel，与 BS3 语义一致) ---------- */
.panel {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    background: var(--white);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.panel:hover {
    box-shadow: var(--shadow-lg);
}
.panel-heading {
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 20px;
    background: var(--white);
}
.panel-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.2px;
}
.panel-body {
    padding: 20px;
}
.panel-footer {
    padding: 12px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

/* 面板顶部彩色条（随主题色） */
.panel-blue   { border-top: 3px solid #1a56db; }
.panel-red    { border-top: 3px solid var(--danger); }
.panel-yellow { border-top: 3px solid var(--warning); }
.panel-green  { border-top: 3px solid var(--success); }
.panel-purple { border-top: 3px solid #8b5cf6; }

/* ---------- 缩略图卡片 (产品 / 相册) ---------- */
.thumbnail {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0;
    margin-bottom: 24px;
    background: var(--white);
    transition: all var(--transition);
    overflow: hidden;
}
.thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}
.thumbnail .image-box {
    background: var(--gray-50);
    padding: 12px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-100);
}
.thumbnail .image-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
}
.thumbnail .image-box img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    transition: transform var(--transition);
}
.thumbnail:hover .image-box img {
    transform: scale(1.05);
}
.thumbnail .caption {
    padding: 14px 16px;
    color: var(--gray-700);
}
.thumbnail .caption h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--gray-900);
}
.thumbnail .caption h5 a {
    color: var(--gray-900);
    transition: color var(--transition);
}
.thumbnail .caption h5 a:hover {
    color: var(--primary);
}
.thumbnail .caption p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

/* ---------- 表格样式 ---------- */
.table-simple {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}
.table-simple > tbody > tr {
    transition: background var(--transition);
}
.table-simple > tbody > tr:hover {
    background: var(--gray-50);
}
.table-simple > tbody > tr > th,
.table-simple > tfoot > tr > th,
.table-simple > thead > tr > td,
.table-simple > tbody > tr > td,
.table-simple > tfoot > tr > td {
    padding: 12px 16px;
    line-height: 1.6;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}
.table-simple > tbody > tr:last-child > td {
    border-bottom: none;
}

/* ---------- 面包屑（BS5） ---------- */
.breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin: 0 0 12px;
    border-radius: 0;
    font-size: 13px;
    color: var(--gray-500);
}
.breadcrumb a {
    color: var(--gray-500);
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb .active {
    color: var(--gray-700);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-300);
}

/* ---------- 分页现代化（BS5） ---------- */
.pagination {
    margin: 20px 0 0;
}
.pagination .page-link {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm) !important;
    margin: 0 3px;
    padding: 8px 14px;
    color: var(--gray-700);
    font-weight: 500;
    transition: all var(--transition);
    background: var(--white);
}
.pagination .page-link:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.pagination .page-item.disabled .page-link {
    color: var(--gray-300);
    background: var(--gray-50);
}

/* ---------- 按钮现代化 ---------- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 8px 18px;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}
.btn-sm {
    padding: 5px 14px;
    font-size: 13px;
}

/* ---------- 表单现代化 ---------- */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    padding: 10px 14px;
    height: auto;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
    outline: none;
}
.input-lg {
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 16px;
}
textarea.form-control {
    line-height: 1.8;
}
.form-label {
    font-weight: 500;
    color: var(--gray-700);
}
.help-block {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ---------- 错误/成功提示 ---------- */
.alert {
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: 14px 20px;
    box-shadow: var(--shadow-sm);
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid var(--success);
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid var(--warning);
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid var(--primary);
}
.error-summary {
    color: #991b1b;
    background: #fef2f2;
    border-left: 4px solid var(--danger);
    padding: 14px 20px;
    margin: 0 0 20px 0;
    border-radius: var(--radius-md);
}

/* ---------- 页脚现代化（深色渐变 4 列） ---------- */
.footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, #0f172a 100%);
    color: var(--gray-300);
    padding: 48px 0 32px;
    font-size: 14px;
    line-height: 1.9;
}
.footer .container {
    max-width: 1200px;
}
.footer h5 {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 16px;
    letter-spacing: -0.2px;
}
.footer a {
    color: var(--gray-300);
    transition: color var(--transition);
}
.footer a:hover {
    color: var(--white);
    text-decoration: none;
}
.footer ul, .footer ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer ul li {
    margin-bottom: 4px;
}
.footer .row {
    margin-bottom: 0;
}
.footer .footer-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 28px 0;
    padding-top: 20px;
}
.footer .copyright {
    color: var(--gray-500);
    font-size: 13px;
}
/* 页脚举报电话/邮箱（后台举报配置，留空不渲染） */
.footer .footer-report {
    display: inline-block;
    margin: 0 6px;
    color: var(--gray-500);
}
.footer .footer-report i {
    margin-right: 4px;
}

/* ---------- 页面标题 ---------- */
.page-header {
    padding-bottom: 12px;
    margin: 0 0 24px;
    border-bottom: 2px solid var(--gray-100);
}
.page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.5px;
}
.page-header small {
    font-size: 14px;
    color: var(--gray-500);
}

/* ---------- 回到顶部按钮 ---------- */
.back-to-top {
    position: fixed;
    bottom: 64px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

/* ---------- 侧边栏现代化 ---------- */
.list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-200);
    border-radius: 0;
    margin-bottom: 0;
    padding: 10px 16px;
    font-weight: 400;
    font-size: 14px;
    transition: all var(--transition);
    background: transparent;
}
.list-group-item:last-child {
    border-bottom: none;
}
.list-group-item:hover {
    background: var(--gray-50);
}
.list-group-item:hover a {
    color: var(--primary);
}
.list-group-item a {
    color: var(--gray-700);
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background: var(--primary);
    border-bottom-color: var(--primary);
    color: var(--white);
}
.list-group-item.active a {
    color: var(--white);
}
.list-group-item.list-child {
    padding-left: 34px;
    font-size: 13px;
    background: var(--gray-50);
}
/* 二级分类选中时也高亮为主题色，避免被 .list-child 的默认灰底覆盖 */
.list-group-item.list-child.active,
.list-group-item.list-child.active:hover,
.list-group-item.list-child.active:focus {
    background: var(--primary);
    color: var(--white);
}
.list-group-item.list-child.active a {
    color: var(--white);
}

/* ---------- 产品/新闻详情页内容区 ---------- */
.content-body {
    font-size: 15px;
    line-height: 1.9;
    color: var(--gray-700);
}
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 12px 0;
}
.content-body p {
    margin-bottom: 16px;
}
.content-body h2, .content-body h3, .content-body h4 {
    color: var(--gray-900);
    margin: 24px 0 12px;
}
.content-body ul, .content-body ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.content-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--gray-50);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--gray-700);
    font-style: italic;
}

/* ---------- 详情页图片展示 ---------- */
.detail-img-box {
    text-align: center;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}
.detail-img-box .detail-img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: inline-block;
}
.product-params {
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 12px;
}
.contact-qq {
    margin-top: 15px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* ---------- 照片画廊 ---------- */
.img-box {
    height: 400px;
    width: 100%;
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}
.img-box img {
    display: inline;
    max-width: 100%;
    max-height: 400px;
}

/* ---------- 分享按钮 ---------- */
.share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}
.share-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s;
}
.share-btn:hover {
    opacity: 0.8;
}
.share-btn-wechat { background-color: #07c160; }
.share-btn-weibo  { background-color: #e6162d; }
.share-btn-qzone  { background-color: #ffd20d; color: #333; }
.share-btn-copy   { background-color: #6c757d; }
.share-btn .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
    z-index: 100;
}
.share-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}
.share-btn .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* ---------- 搜索页面 ---------- */
.search-highlight {
    background: #fef9c3;
    padding: 1px 3px;
    border-radius: 2px;
}
.search-hit {
    color: #cc0000;
}

/* ---------- 加载动画 ---------- */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- 标签/徽章 ---------- */
.badge {
    border-radius: var(--radius-lg);
    padding: 3px 10px;
    font-weight: 500;
    font-size: 12px;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 767px) {
    .panel-heading {
        padding: 12px 16px;
    }
    .panel-title {
        font-size: 15px;
    }
    .panel-body {
        padding: 14px;
    }
    .page-header h1 {
        font-size: 20px;
    }
    .thumbnail {
        margin-bottom: 16px;
    }
    .footer {
        padding: 32px 0 24px;
    }
    .footer .col-md-3,
    .footer .col-sm-6 {
        margin-bottom: 20px;
    }
    .carousel-inner > .carousel-item > img,
    .carousel-inner > .carousel-item > a > img {
        min-height: 180px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
    h2,.h2,h3,.h3,h4,.h4 { font-size: 15px; }
    h5,.h5,h6,.h6 { font-size: 13px; }
    .wrap > .container {
        padding: 0 12px 20px;
    }
}

/* ---------- 滚动条美化 (Webkit) ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ---------- 兼容旧样式 ---------- */
.not-set {
    color: var(--danger);
    font-style: italic;
}
.jumbotron {
    text-align: center;
    background-color: transparent;
}
.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

/* ============================================================
   产品多模板设计（wide 大图 / showcase 特色展示）
   工业级商用企业站科技风格，主题色变量自动适配
   ============================================================ */

/* ---------- 通用：模板容器 ---------- */
.tpl-wide,
.tpl-showcase {
    margin-bottom: 40px;
}

/* ---------- 通用：区块标题（带主题色装饰条） ---------- */
.tpl-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.2px;
    margin: 0 0 18px;
}
.tpl-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    flex-shrink: 0;
}
.tpl-section-title .tpl-en {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: auto;
}

/* ---------- 通用：Hero 徽章 ---------- */
.tpl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tpl-hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px #22d3ee;
}

/* ---------- 通用：信息徽章行 ---------- */
.tpl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tpl-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    padding: 5px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    transition: all var(--transition);
}
.tpl-meta-item i {
    color: var(--primary);
    font-size: 14px;
}
.tpl-meta-item:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

/* ---------- 通用：主体网格（左内容右侧栏） ---------- */
.tpl-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.tpl-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}
@media (max-width: 991.98px) {
    .tpl-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 通用：内容卡片 ---------- */
.tpl-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.tpl-card:hover {
    box-shadow: var(--shadow-lg);
}
.tpl-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(180deg, var(--gray-50), var(--white));
}
.tpl-card-body {
    padding: 24px;
}

/* ============================================================
   通用：详情页表格美化（内容正文 / 产品参数，工业级商用）
   圆角容器 + 清晰表头 + 斑马纹 + 悬浮高亮 + 窄屏横向滚动
   ============================================================ */

/* 横向滚动容器（main.html 脚本自动包裹，保证窄屏不撑破布局） */
.table-scroll {
    position: relative;
    width: 100%;
    margin: 22px 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 表格基础结构（!important 覆盖富文本编辑器写入的内联 width:auto/固定值，保证详情页表格始终满宽） */
.tpl-body table,
.content-body table,
.tpl-spec table {
    width: 100% !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.tpl-body table caption,
.tpl-spec table caption {
    caption-side: top;
    padding: 0 0 10px;
    color: var(--gray-500);
    font-size: 13px;
    text-align: left;
}

/* 单元格：内边距 + 网格分隔线 */
.tpl-body table th,
.tpl-body table td,
.content-body table th,
.content-body table td,
.tpl-spec table th,
.tpl-spec table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
    overflow-wrap: break-word;
    word-break: break-word;
}
.tpl-body table th:last-child,
.tpl-body table td:last-child,
.content-body table th:last-child,
.content-body table td:last-child,
.tpl-spec table th:last-child,
.tpl-spec table td:last-child {
    border-right: 0;
}
.tpl-body table tbody tr:last-child th,
.tpl-body table tbody tr:last-child td,
.content-body table tbody tr:last-child th,
.content-body table tbody tr:last-child td,
.tpl-spec table tbody tr:last-child th,
.tpl-spec table tbody tr:last-child td {
    border-bottom: 0;
}

/* 表头：浅底 + 主题色强调线 */
.tpl-body table th,
.content-body table th,
.tpl-spec table th {
    background: var(--gray-50);
    color: var(--gray-900);
    font-weight: 600;
}
.tpl-body table thead th,
.content-body table thead th,
.tpl-spec table thead th,
.tpl-body table tbody tr:first-child th,
.content-body table tbody tr:first-child th,
.tpl-spec table tbody tr:first-child th {
    font-size: 13px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    border-bottom: 2px solid var(--primary);
}

/* 斑马纹 + 悬浮高亮（数据型正文表格） */
.tpl-body table tbody tr:nth-child(even) th,
.tpl-body table tbody tr:nth-child(even) td,
.content-body table tbody tr:nth-child(even) th,
.content-body table tbody tr:nth-child(even) td {
    background: var(--gray-50);
}
.tpl-body table tbody tr:hover th,
.tpl-body table tbody tr:hover td,
.content-body table tbody tr:hover th,
.content-body table tbody tr:hover td {
    background: var(--gray-100);
}

/* 参数表：首列为参数名（键值型），偶数行浅底，悬浮高亮 */
.tpl-spec {
    color: var(--gray-700);
    line-height: 1.8;
}
.tpl-spec table tbody td:first-child:not([colspan]),
.tpl-spec table tbody th:first-child {
    width: 180px;
    min-width: 120px;
    font-weight: 600;
    color: var(--gray-900);
    background: var(--gray-50);
}
.tpl-spec table tbody tr:nth-child(even) td:not(:first-child) {
    background: var(--gray-50);
}
.tpl-spec table tbody tr:hover td:not(:first-child) {
    background: var(--gray-100);
}
.tpl-spec table tbody tr:hover td:first-child,
.tpl-spec table tbody tr:hover th {
    background: var(--gray-100);
}
.tpl-spec p {
    margin: 0 0 8px;
}

/* 包裹后由容器统一负责边框/圆角与外边距，避免双层描边 */
.table-scroll > table {
    margin: 0;
    border: 0;
    border-radius: 0;
}

/* 窄屏：紧凑内边距，溢出交给滚动容器 */
@media (max-width: 767.98px) {
    .tpl-body table th,
    .tpl-body table td,
    .content-body table th,
    .content-body table td,
    .tpl-spec table th,
    .tpl-spec table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .tpl-spec table tbody td:first-child:not([colspan]),
    .tpl-spec table tbody th:first-child {
        width: auto;
        min-width: 96px;
    }
}

/* ---------- 通用：详情正文（富文本 / Markdown 渲染） ---------- */
.tpl-body {
    font-size: 15px;
    line-height: 1.9;
    color: var(--gray-700);
    word-break: break-word;
}
/* 首末元素贴边：避免与卡片内边距叠加出双倍留白 */
.tpl-body > :first-child {
    margin-top: 0;
}
.tpl-body > :last-child {
    margin-bottom: 0;
}

/* 标题：字号逐级递减 + 节奏留白；h2 加细分割线强化章节感 */
.tpl-body h1 {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--gray-900);
    margin: 34px 0 16px;
}
.tpl-body h2 {
    font-size: 21px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--gray-900);
    margin: 32px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}
.tpl-body h3 {
    font-size: 17.5px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--gray-900);
    margin: 26px 0 12px;
}
.tpl-body h4 {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--gray-900);
    margin: 22px 0 10px;
}
.tpl-body h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 18px 0 8px;
}
.tpl-body h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    margin: 16px 0 8px;
}

/* 段落与内联元素 */
.tpl-body p {
    margin-bottom: 16px;
}
.tpl-body strong {
    color: var(--gray-900);
    font-weight: 600;
}
.tpl-body del {
    color: var(--gray-500);
}
.tpl-body mark {
    background: rgba(245, 158, 11, 0.22);
    color: inherit;
    padding: 1px 5px;
    border-radius: 3px;
}
.tpl-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 14px 0;
    box-shadow: var(--shadow-md);
}
/* 独占段落的图片（Markdown 图片行）居中展示 */
.tpl-body p > img:only-child {
    display: block;
    margin: 18px auto;
}

/* 列表：主题色符号 + 松散列表紧凑化 */
.tpl-body ul, .tpl-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.tpl-body li {
    margin-bottom: 6px;
}
.tpl-body li::marker {
    color: var(--primary);
    font-weight: 600;
}
.tpl-body li > p {
    margin-bottom: 8px;
}
.tpl-body li > p:last-child {
    margin-bottom: 0;
}
.tpl-body ul ul, .tpl-body ul ol, .tpl-body ol ul, .tpl-body ol ol {
    margin: 6px 0 0;
}
/* GFM 任务列表：勾选框替代项目符号，主题色渲染 */
.tpl-body li:has(> input[type="checkbox"]) {
    list-style: none;
}
.tpl-body input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0 8px 0 0;
    vertical-align: -2px;
    accent-color: var(--primary);
}

/* 引用块：主题色竖线 + 浅底，中文场景不用斜体（伪斜体字形不佳） */
.tpl-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--gray-50);
    padding: 16px 20px;
    margin: 18px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--gray-700);
}
.tpl-body blockquote > :first-child {
    margin-top: 0;
}
.tpl-body blockquote > :last-child {
    margin-bottom: 0;
}

/* 行内代码 */
.tpl-body code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92em;
    color: var(--primary-dark);
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-word;
}

/* 代码块：深底浅字 + 横向滚动（无高亮库，纯排版呈现） */
.tpl-body pre {
    background: var(--dark);
    color: var(--gray-100);
    padding: 16px 20px;
    margin: 18px 0;
    border-radius: var(--radius-md);
    line-height: 1.7;
    font-size: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-sm);
}
.tpl-body pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: 13px;
    white-space: pre;
    word-break: normal;
}
.tpl-body pre::-webkit-scrollbar {
    height: 8px;
}
.tpl-body pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}
.tpl-body pre::-webkit-scrollbar-track {
    background: transparent;
}

/* 分割线：渐隐细线 */
.tpl-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
    margin: 30px 0;
}

/* 链接：主题色 + 虚线底 */
.tpl-body a {
    color: var(--primary);
    border-bottom: 1px dashed var(--primary-light);
}
.tpl-body a:hover {
    border-bottom-style: solid;
}

/* 窄屏：标题与代码块紧凑化 */
@media (max-width: 767.98px) {
    .tpl-body h1 {
        font-size: 22px;
    }
    .tpl-body h2 {
        font-size: 19px;
    }
    .tpl-body h3 {
        font-size: 16.5px;
    }
    .tpl-body pre {
        padding: 14px 16px;
        font-size: 12.5px;
    }
}

/* ---------- 通用：在线咨询 CTA ---------- */
.tpl-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
    transition: all var(--transition);
    border: none;
}
.tpl-cta:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}
.tpl-cta i {
    font-size: 18px;
}
.tpl-cta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--gray-200);
}

/* ---------- 通用：上下条导航卡片 ---------- */
.tpl-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 575.98px) {
    .tpl-pager {
        grid-template-columns: 1fr;
    }
}
.tpl-pager-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: all var(--transition);
    min-width: 0;
}
.tpl-pager-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.tpl-pager-card .tpl-pager-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--primary);
    font-size: 16px;
}
.tpl-pager-card .tpl-pager-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 2px;
}
.tpl-pager-card .tpl-pager-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tpl-pager-card:hover .tpl-pager-title {
    color: var(--primary);
}
.tpl-pager-card.tpl-pager-next {
    text-align: right;
    flex-direction: row-reverse;
}
.tpl-pager-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--gray-500);
    font-size: 14px;
}

/* ============ wide 大图模板 ============ */

/* 大图 Hero：通栏图 + 深色渐变遮罩 + 网格科技纹理 */
.tpl-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-xl);
}
.tpl-hero.tpl-hero-wide {
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}
.tpl-hero-wide .tpl-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.tpl-hero-wide .tpl-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 44px 40px;
    background: linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.55) 45%, rgba(15,23,42,0.85) 100%);
    color: var(--white);
}
.tpl-hero-wide .tpl-hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
}
.tpl-hero-wide h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.tpl-hero-wide .tpl-hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.82);
    max-width: 640px;
    margin: 0 0 18px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tpl-hero-wide .tpl-meta {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 16px;
}
.tpl-hero-wide .tpl-meta-item {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tpl-hero-wide .tpl-meta-item i {
    color: #67e8f9;
}
.tpl-hero-wide .tpl-meta-item:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.45);
    color: var(--white);
}
.tpl-hero-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--accent));
    color: var(--white);
}
.tpl-hero-fallback i {
    font-size: 110px;
    opacity: 0.45;
}

/* wide：无图时信息卡 */
.tpl-info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

/* ============ showcase 特色展示模板 ============ */

/* 渐变科技 Hero（无大图） */
.tpl-hero-gradient {
    position: relative;
    padding: 58px 44px 46px;
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 100%);
    color: var(--white);
    margin-bottom: 24px;
    overflow: hidden;
}
.tpl-hero-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.16) 0, transparent 34%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.1) 0, transparent 30%),
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: auto, auto, 38px 38px, 38px 38px;
}
.tpl-hero-gradient > * {
    position: relative;
    z-index: 1;
}
.tpl-hero-gradient h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    color: var(--white);
}
.tpl-hero-gradient .tpl-hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0;
    line-height: 1.8;
}

/* showcase：图片展示卡（悬浮感） */
.tpl-showcase-media {
    position: relative;
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 28px;
    border: 1px solid var(--gray-200);
}
.tpl-showcase-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26,86,219,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,86,219,0.035) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}
.tpl-showcase-media img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition);
}
.tpl-showcase-media:hover img {
    transform: scale(1.02);
}
.tpl-showcase-media .tpl-showcase-empty {
    position: relative;
    z-index: 1;
    color: var(--gray-300);
    text-align: center;
}
.tpl-showcase-media .tpl-showcase-empty i {
    font-size: 100px;
}

/* showcase：悬浮参数速览条 */
.tpl-showcase-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.tpl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    padding: 7px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.tpl-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}
.tpl-chip i {
    color: var(--primary);
}


/* ============================================================
   全站统一设计系统 v4（页面 Hero / 网格卡 / 行式卡 / 侧栏卡）
   与产品多模板共用同一设计语言，主题色变量自动适配
   ============================================================ */

/* ---------- 页面 Hero（小尺寸通用变体，用于列表/详情/单页等） ---------- */
.tpl-hero-sm {
    padding: 40px 32px 34px;
    margin-bottom: 24px;
}
.tpl-hero-sm h1 {
    font-size: 26px;
    margin-bottom: 10px;
}
.tpl-hero-sm .tpl-hero-desc {
    font-size: 14px;
    max-width: 720px;
}

/* ---------- 网格产品/照片卡 ---------- */
.grid-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 24px;
}
.grid-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}
.grid-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15,23,42,0.25));
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}
.grid-card:hover .grid-card-media::after {
    opacity: 1;
}
.grid-card-media img {
    width: 100%;
    height: 100%;
    /* 与 4:3 卡片框等比适配：竖版产品图也不裁切、不变形，居中留白 */
    object-fit: contain;
    padding: 12px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.grid-card:hover .grid-card-media img {
    transform: scale(1.07);
}
.grid-card-empty {
    color: var(--gray-300);
    font-size: 46px;
}
.grid-card-body {
    padding: 16px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.grid-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.grid-card-title a {
    color: var(--gray-900);
}
.grid-card-title a:hover {
    color: var(--primary);
}
.grid-card-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 41px;
}
.grid-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-500);
    padding-top: 10px;
    border-top: 1px dashed var(--gray-200);
}
.grid-card-more {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.grid-card:hover .grid-card-more {
    gap: 9px;
}

/* ---------- 行式列表卡（新闻/下载/搜索） ---------- */
.row-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.row-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.row-card-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    color: var(--primary);
    font-size: 20px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.row-card:hover .row-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.row-card-content {
    flex: 1;
    min-width: 0;
}
.row-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gray-900);
    transition: color var(--transition);
}
.row-card:hover .row-card-title {
    color: var(--primary);
}
.row-card-title a {
    color: var(--gray-900);
}
.row-card-title a:hover {
    color: var(--primary);
}
.row-card-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 列表卡底部行：描述（左）+ 日期（右下角）同行显示，日期不再占右侧整列、不新增行（v12） */
.row-card-foot {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-width: 0;
}
.row-card-foot .row-card-desc {
    flex: 1 1 auto;
    min-width: 0;
}
.row-card-foot .row-card-date {
    flex-shrink: 0;
}

/* 列表卡日期：轻量文本（v11，原胶囊徽章底色+边框太显眼、横向占位多） */
.row-card-date {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray-500);
    transition: color var(--transition);
}
.row-card:hover .row-card-date {
    color: var(--primary);
}
.row-card-date i {
    color: var(--gray-300);
    font-size: 12px;
    transition: color var(--transition);
}
.row-card:hover .row-card-date i {
    color: var(--primary);
}
@media (max-width: 575.98px) {
    .row-card-date {
        display: none;
    }
}

/* ---------- 侧栏卡片 ---------- */
.side-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.side-card:hover {
    box-shadow: var(--shadow-md);
}
.side-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 70%, var(--accent));
    color: var(--white);
}
.side-card-head i {
    font-size: 16px;
}
.side-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}
.side-card-body {
    padding: 4px 0;
}
.side-card-body .list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-100);
    padding: 0;
    background: transparent;
}
.side-card-body .list-group-item:last-child {
    border-bottom: none;
}
.side-card-body .list-group-item a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    color: var(--gray-700);
    font-size: 14px;
    transition: all var(--transition);
}
.side-card-body .list-group-item a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gray-300);
    flex-shrink: 0;
    transition: all var(--transition);
}
.side-card-body .list-group-item a:hover {
    color: var(--primary);
    background: var(--gray-50);
    padding-left: 22px;
}
.side-card-body .list-group-item a:hover::before {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary-light);
}
.side-card-body .list-group-item.active a {
    color: var(--primary);
    background: var(--gray-50);
    font-weight: 600;
}
.side-card-body .list-group-item.active a::before {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary-light);
}
.side-card-body .list-group-item.list-child a {
    padding-left: 36px;
    font-size: 13px;
}
.side-card-body .list-group-item.list-child a:hover {
    padding-left: 40px;
}
.side-card-plain {
    padding: 18px;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.8;
}
.side-card-plain img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

/* ---------- 空状态 ---------- */
.empty-state {
    background: var(--white);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 70px 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}
.empty-state i {
    font-size: 56px;
    color: var(--gray-300);
    display: block;
    margin-bottom: 14px;
}

/* ---------- 文章正文卡（新闻/下载/单页详情） ---------- */
.article-card-head {
    padding: 26px 28px 20px;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(180deg, var(--gray-50), var(--white));
}
.article-card-head h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
    margin: 0 0 14px;
    line-height: 1.5;
}
.article-card-body {
    padding: 28px;
}
@media (max-width: 575.98px) {
    .article-card-head {
        padding: 20px 18px 16px;
    }
    .article-card-head h1 {
        font-size: 20px;
    }
    .article-card-body {
        padding: 18px;
    }
}

/* ---------- 下载 CTA 按钮区 ---------- */
.download-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-md);
    margin-top: 20px;
}
.download-box .tpl-cta {
    padding: 11px 26px;
    font-size: 14px;
}

/* ---------- 解决方案列表：整篇正文卡片流（布局同「关于我们」） ---------- */
.sol-block {
    /* 从右侧分类跳转过来时，避开顶部固定导航 */
    scroll-margin-top: 96px;
}
.sol-block + .sol-block {
    margin-top: 18px;
}
.sol-block .sol-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 24px 16px;
}
.sol-block .sol-block-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.2px;
    color: var(--gray-900);
}
.sol-block .sol-block-head .tpl-meta {
    border-top: 0;
    padding-top: 0;
    margin: 0;
}
@media (max-width: 575.98px) {
    .sol-block .sol-block-head {
        padding: 18px 18px 14px;
    }
    .sol-block .sol-block-title {
        font-size: 18px;
    }
}

/* ---------- 照片画廊卡 ---------- */
.gallery-card {
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    border-radius: var(--radius-lg);
    padding: 26px;
    text-align: center;
    border: 1px solid var(--gray-200);
}
.gallery-card img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}
.gallery-card .gallery-caption {
    text-align: left;
    margin-top: 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-700);
}
.gallery-card .gallery-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 6px 14px;
    border-radius: 999px;
    margin-top: 16px;
}

/* ---------- 错误页 ---------- */
.error-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 80px 24px;
    text-align: center;
}
.error-card .error-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    color: var(--primary);
    font-size: 44px;
}
.error-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 10px;
}
.error-card p {
    color: var(--gray-500);
    margin: 0 0 24px;
}

/* ---------- 默认产品模板：主图展示容器 ---------- */
.tpl-product-media {
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 24px;
}
.tpl-product-media img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}
.tpl-product-media:hover img {
    transform: scale(1.015);
}

/* ============================================================
   工业级统一升级 v5（导航栏深色玻璃拟态 / 页脚科技风 / 卡片间距修复）
   覆盖旧样式，追加在末尾保证优先级
   ============================================================ */

/* ---------- 导航栏：深色玻璃拟态 + 渐变高光线 ---------- */
.main-header {
    position: relative;
    z-index: 1030;
}
.main-header .navbar {
    position: relative;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 24px rgba(15,23,42,0.25);
}
/* 导航底部渐变高光线（主题色 → 强调色） */
.main-header .navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--primary) 30%, var(--accent) 70%, transparent 95%);
    pointer-events: none;
}
.main-header .navbar-brand {
    color: var(--white);
    font-weight: 700;
}
.main-header .navbar-brand:hover {
    color: var(--white);
}
.main-header .navbar-nav .nav-link {
    color: rgba(255,255,255,0.82);
}
.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .nav-link:focus {
    color: var(--white);
    background-color: rgba(255,255,255,0.08);
}
/* 当前页：白色加粗 + 底部渐变指示条 */
.main-header .navbar-nav .nav-link.active {
    color: var(--white);
    background-color: transparent;
    font-weight: 600;
}
.main-header .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 6px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
}
/* 下拉菜单：白卡片 + 柔和阴影 */
.main-header .navbar-nav .dropdown-menu {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(15,23,42,0.16);
    padding: 8px 0;
    margin-top: 6px;
}
.main-header .navbar-nav .dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    transition: all var(--transition);
}
.main-header .navbar-nav .dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}
.main-header .navbar-nav .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}
/* 语言切换图标 */
.main-header .nav-link i.bi-globe2 {
    color: var(--primary-light);
}

/* ---------- 页脚：深色科技风（渐变光带 + 网格纹理 + 图标列标题） ---------- */
.footer {
    position: relative;
    background: linear-gradient(180deg, #111827 0%, #0b1120 100%);
    padding: 56px 0 0;
    overflow: hidden;
}
/* 顶部渐变光带（与导航底部高光线呼应） */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary) 30%, var(--accent) 70%, var(--primary-dark));
    pointer-events: none;
}
/* 科技网格纹理 */
.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.footer > .container {
    position: relative;
    z-index: 1;
}
.footer h5 {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    position: relative;
}
.footer h5 i {
    color: var(--primary-light);
    font-size: 16px;
}
/* 列标题下渐变短线 */
.footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.footer ul li a {
    color: var(--gray-400);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all var(--transition);
}
/* 链接圆点装饰 */
.footer ul li a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gray-600);
    flex-shrink: 0;
    transition: all var(--transition);
}
.footer ul li a:hover {
    color: var(--white);
    transform: translateX(4px);
    text-decoration: none;
}
.footer ul li a:hover::before {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}
.footer .footer-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 36px 0 0;
    padding: 20px 0;
}
.footer .copyright {
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
}

/* ---------- 产品卡片间距修复（margin 塌陷穿透 col 导致 0px） ---------- */
.grid-card {
    margin-bottom: 0;
}
.grid-card-col {
    padding-bottom: 24px;
}

/* ---------- 照片计数器胶囊样式（计数器位于画廊卡外，独立选择器） ---------- */
.gallery-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 6px 14px;
    border-radius: 999px;
    margin-top: 16px;
}

/* ---------- 导航尺寸升级 v6（56px → 68px，字号加大，与内容区协调） ---------- */
.main-header .navbar {
    min-height: 68px;
}
.main-header .navbar-brand {
    height: 68px;
    line-height: 68px;
    font-size: 22px;
}
.main-header .navbar-brand > img {
    max-height: 42px;
}
.main-header .navbar .navbar-nav .nav-link {
    line-height: 68px;
    font-size: 15px;
    padding: 0 18px;
    letter-spacing: 0.4px;
}
.main-header .navbar-nav .nav-link.active::after {
    bottom: 9px;
}
.main-header #navbar-search-input {
    height: 40px;
    width: 210px;
    font-size: 14px;
}
.main-header #navbar-search-input:focus {
    width: 260px;
}
.main-header .navbar-nav .dropdown-menu {
    font-size: 15px;
}
/* 移动端展开后链接恢复正常行高，避免 68px 过高 */
@media (max-width: 991.98px) {
    .main-header .navbar .navbar-nav .nav-link {
        line-height: 1.5;
        padding: 12px 20px;
    }
    .main-header .navbar-nav .nav-link.active::after {
        bottom: 6px;
        left: 20px;
        right: 20px;
    }
}

/* ---------- 导航搜索框聚焦状态修复 v7（白底 + 深色文字/占位符） ---------- */
.main-header #navbar-search-input:focus {
    background: rgba(255,255,255,0.96);
    color: var(--gray-800);
}
.main-header #navbar-search-input:focus::placeholder {
    color: var(--gray-400);
}

/* ============================================================
   首页全宽布局组件 v8（卡片头「查看全部」链接 / 新闻头条大卡）
   ============================================================ */

/* ---------- 卡片头右侧「查看全部」链接 ---------- */
.tpl-head-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all var(--transition);
}
.tpl-head-more:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.tpl-head-more i {
    transition: transform var(--transition);
}
.tpl-head-more:hover i {
    transform: translateX(3px);
}

/* ---------- 新闻头条大卡（首页新闻区左侧） ---------- */
.news-feature {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    color: inherit;
    text-decoration: none;
}
.news-feature:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.news-feature-media {
    position: relative;
    height: 240px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    overflow: hidden;
}
.news-feature-media img {
    width: 100%;
    height: 100%;
    /* 与首页头条大卡框等比适配：不裁切、不变形 */
    object-fit: contain;
    padding: 10px;
    transition: transform var(--transition);
}
.news-feature:hover .news-feature-media img {
    transform: scale(1.05);
}
.news-feature-media i {
    font-size: 56px;
    color: var(--gray-300);
}
.news-feature-body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}
.news-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 12px 0 8px;
    line-height: 1.45;
    transition: color var(--transition);
}
.news-feature:hover .news-feature-title {
    color: var(--primary);
}
.news-feature-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0 0 14px;
}
.news-feature-meta {
    margin-top: auto;
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--gray-500);
}
.news-feature-meta i {
    margin-right: 4px;
}

/* ============================================================
   行卡多行截断修复 v9（inline span 上 ellipsis 失效导致撑爆）
   标题/描述最多 2 行，超出省略号，长英文单词强制断行
   ============================================================ */
.row-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: break-word;
}
.row-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}
/* 长标题挤压时日期列不被压扁 */
.row-card-date {
    flex-shrink: 0;
}
/* 头条卡长标题/超长英文单词强制断行 */
.news-feature-title {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ============================================================
   首页新闻区左右两栏布局 v10：
   左栏（.news-side）= 头条大卡 + 次条无图文字卡；
   右栏（.news-list）= 新闻列表卡；
   两栏均为 flex 列且高度 100%，卡片自动均分填满，
   任意新闻条数下左右底部始终齐平、不留空白
   ============================================================ */
.news-side,
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    min-height: 0;
}
.news-side .news-feature {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}
.news-side .row-card,
.news-list .row-card {
    margin-bottom: 0;
}
.news-list .row-card {
    flex: 1 1 auto;
    min-height: 0;
}

/* ========== 页头品牌副标题 / 页脚联系方式（后台「站点信息」「联系信息」配置驱动） ========== */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand .brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
}
.navbar-brand .brand-name {
    font-size: 20px;
    font-weight: 700;
}
.navbar-brand .brand-subtitle {
    font-size: 12px;
    font-weight: 400;
    opacity: .85;
    letter-spacing: .3px;
}
.footer .footer-subtitle {
    color: var(--gray-400);
    font-size: 13px;
    margin: -2px 0 10px;
}
.footer .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer .footer-contact li {
    color: var(--gray-300);
    font-size: 14px;
    line-height: 2;
}
.footer .footer-contact li i {
    color: var(--primary-light);
    margin-right: 6px;
}
.footer .footer-contact a {
    color: var(--gray-300);
}
.footer .footer-contact a:hover {
    color: #fff;
}
.footer .footer-beian {
    margin-left: 12px;
}
.footer .footer-beian a {
    color: inherit;
}

/* ============================================================
   右侧「请您留言」浮层
   ============================================================ */
.fb-float {
    position: fixed;
    right: 0;
    top: 15vh;
    z-index: 1080;
    width: 46px; /* 仅占竖标签宽度，面板绝对定位，收起时不留下空白区域 */
    font-size: 14px;
}

/* 收起后的侧边竖标签 */
.fb-float-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 46px;
    padding: 14px 0;
    border: none;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(160deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
    transition: transform var(--transition, .25s ease), box-shadow var(--transition, .25s ease);
}
.fb-float-tab i {
    writing-mode: horizontal-tb;
    font-size: 17px;
}
.fb-float-tab:hover {
    transform: translateX(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .3);
}
.fb-float.is-open .fb-float-tab {
    display: none;
}

/* 面板：绝对定位贴容器右边缘，收起时不影响竖标签位置 */
.fb-float-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 92vw;
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .24);
    overflow: hidden;
    opacity: 0;
    transform: translateX(16px);
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
}
.fb-float.is-open .fb-float-panel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.fb-float-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: #fff;
}
.fb-float-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #fff;
}
.fb-float-min {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background var(--transition, .25s ease);
}
.fb-float-min:hover {
    background: rgba(255, 255, 255, .22);
}
.fb-float-body {
    padding: 16px 20px 18px;
    max-height: 68vh;
    overflow-y: auto;
}
.fb-float-lead {
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 13.5px;
    line-height: 1.75;
}
.fb-field {
    margin-bottom: 10px;
}
.fb-field textarea,
.fb-field input,
.fb-field select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fbfcfe;
    color: var(--gray-800);
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    transition: border-color var(--transition, .25s ease), box-shadow var(--transition, .25s ease), background var(--transition, .25s ease);
}
.fb-field textarea {
    resize: vertical;
    min-height: 84px;
}
.fb-field textarea:focus,
.fb-field input:focus,
.fb-field select:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}
.fb-field-icon {
    position: relative;
}
.fb-field-icon > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 15px;
    pointer-events: none;
}
.fb-field-icon input,
.fb-field-icon select {
    padding-left: 36px;
}
.fb-field-icon select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2394a3b8' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}
/* 蜜罐字段：视觉隐藏，不影响布局 */
.fb-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}
.fb-float-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}
.fb-float-msg {
    flex: 1 1 auto;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--gray-500);
}
.fb-float-msg.is-error {
    color: #dc2626;
}
.fb-float-msg.is-success {
    color: #059669;
}
.fb-float-submit {
    flex: 0 0 auto;
    min-width: 104px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
    transition: transform var(--transition, .25s ease), box-shadow var(--transition, .25s ease), opacity var(--transition, .25s ease);
}
.fb-float-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(47, 109, 246, .36);
}
.fb-float-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 767.98px) {
    .fb-float {
        top: auto;
        bottom: 0;
        width: 42px;
    }
    .fb-float-tab {
        width: 42px;
        border-radius: 10px 0 0 10px;
    }
    .fb-float-panel {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        border-radius: 14px 14px 0 0;
        transform: translateY(12px);
    }
    .fb-float-body {
        max-height: 62vh;
        padding-bottom: 22px;
    }
}

/* ============================================================
   首页 Hero：深色科技风 + 数据背书 + 核心优势
   ============================================================ */
.home-hero {
    position: relative;
    margin: 24px 0 18px;
    padding: 54px 46px 48px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 420px at 88% -12%, rgba(59, 130, 246, .34), transparent 62%),
        radial-gradient(700px 360px at 8% 118%, rgba(14, 165, 233, .2), transparent 60%),
        linear-gradient(132deg, #081120 0%, #0d2140 52%, #091729 100%);
    box-shadow: 0 24px 60px rgba(8, 20, 40, .26);
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 78%);
    mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 78%);
    pointer-events: none;
}
.home-hero-glow {
    position: absolute;
    right: -140px;
    top: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light), transparent 68%);
    opacity: .3;
    filter: blur(6px);
    pointer-events: none;
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 52px;
}
.home-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
}
.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .88);
    font-size: 12.5px;
    letter-spacing: .4px;
    backdrop-filter: blur(6px);
}
.home-hero-badge i {
    color: #60a5fa;
}
/* 左上角徽标：绝对定位到 Hero 框内侧左上，不参与左侧文案排版 */
.home-hero-badge.is-corner {
    position: absolute;
    top: 22px;
    left: 26px;
    right: auto;
    z-index: 3;
    margin: 0;
}
@media (max-width: 767.98px) {
    /* 小屏回归文档流：贴在内容上方，避免与小屏内边距重叠 */
    .home-hero-badge.is-corner {
        position: static;
        margin: 0 0 14px;
    }
}
/* 首页轮播（后台「广告管理 → 类型：轮播图」维护，可放产品图 / 证书图） */
.home-carousel {
    margin: 0 0 26px;
    border-radius: 14px;
    overflow: hidden;
    /* 不再铺深色底：图片按框比例铺满，避免出现下半部分黑边 */
    background: transparent;
    box-shadow: 0 12px 32px rgba(8, 20, 40, .18);
}
/* 资质证书 / 荣誉网格（后台「广告管理 → 类型：荣誉网格」）：
   卡片统一 3:4 竖版比例，图片 contain 完整显示，整块大小一致、排版整齐 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.honor-card {
    margin: 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    transition: box-shadow var(--transition), transform var(--transition);
}
.honor-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.honor-card a {
    display: block;
}
.honor-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: var(--gray-50);
    padding: 10px;
}
.honor-card figcaption {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--gray-700);
    text-align: center;
    border-top: 1px solid var(--gray-100);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 991.98px) {
    .honor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .honor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* 单图轮播：框按 4:1 比例（对应建议尺寸 1920×480），图片铺满整框，
   比例一致的图正好填满、不留黑边；比例不符的裁切填满，也不会露底色 */
.home-carousel .carousel-inner,
.home-carousel .carousel-item {
    aspect-ratio: 4 / 1;
    overflow: hidden;
    background: transparent;
}
/* 作为图片/链接绝对定位的参照，保证图片铺满整帧 */
.home-carousel .carousel-item {
    position: relative;
}
/* 去掉 Bootstrap/.carousel 自带的下外边距：它会被 section 的 overflow:hidden 圈进去，
   在图片下方露出一条页面底色的「白边」 */
.home-carousel .carousel {
    margin-bottom: 0;
}
.home-carousel .carousel-item-link {
    position: absolute;
    inset: 0;
    display: block;
}
/* 图片绝对定位铺满整帧：帧高由 aspect-ratio 决定，
   子元素 height:100% 在比例容器里不一定生效，绝对定位才稳定对齐（无白边） */
.home-carousel .carousel-item img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    /* 覆盖旧的通用轮播规则，避免 min-height/max-height 干扰小屏 */
    min-height: 0;
    max-height: none;
    object-fit: cover;
}
.home-carousel .carousel-indicators {
    margin-bottom: .6rem;
}
.home-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
}
@media (max-width: 991.98px) {
    .home-carousel .carousel-inner,
    .home-carousel .carousel-item {
        aspect-ratio: 3 / 1;
    }
}
@media (max-width: 767.98px) {
    .home-carousel .carousel-inner,
    .home-carousel .carousel-item {
        /* 手机屏太窄，按比例算会过矮，改用固定高度 */
        aspect-ratio: auto;
        height: 160px;
    }
}

/* 内容视频（Bluk头条等详情页：后台上传，前台播放器） */
.article-video {
    margin: 0 0 22px;
}
.article-video video {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 10px 30px rgba(8, 20, 40, .18);
}
@media (max-width: 575.98px) {
    .article-video video {
        max-height: 240px;
    }
}

/* 仅屏幕阅读器可见：保留首页主标题语义，不影响视觉 */
.is-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.home-hero h1 {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
}
.home-hero-desc {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15.5px;
    line-height: 1.85;
}
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}
.home-hero.has-video {
    background: #06101f;
    /* 有视频时给足高度，避免 16:9 画面被压成细条 */
    min-height: 400px;
    display: flex;
    align-items: center;
}
.home-hero.has-video .home-hero-inner {
    width: 100%;
}
.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 不加滤镜：保持视频原始画质与亮度（原先的 saturate/contrast 会让画面偏灰） */
}
/* 视频上方的暗化层：只做很轻的压暗，主要靠数据卡/徽标自身的玻璃背景保证文字可读，
   否则整块视频会像蒙了一层灰，看起来不清晰 */
.home-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(96deg,
            rgba(5, 13, 26, .42) 0%,
            rgba(5, 13, 26, .20) 38%,
            rgba(5, 13, 26, .04) 68%,
            rgba(5, 13, 26, .08) 100%),
        linear-gradient(180deg, rgba(5, 13, 26, .03) 0%, rgba(5, 13, 26, .16) 100%);
}
/* 有视频时关掉网格纹理：这层白色细网格正是「蒙了一层纱」的主因 */
.home-hero.has-video::before {
    z-index: 1;
    opacity: 0;
}
.home-hero.has-video .home-hero-inner {
    z-index: 2;
}
@media (max-width: 767.98px) {
    .home-hero.has-video {
        min-height: 320px;
        padding: 34px 24px 32px;
    }
    .home-hero-bg {
        object-position: center 40%;
    }
}
.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    transition: transform var(--transition, .25s ease), box-shadow var(--transition, .25s ease), background var(--transition, .25s ease);
}
.home-hero-btn.is-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .34);
}
.home-hero-btn.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, .44);
    color: #fff;
}
.home-hero-btn.is-ghost {
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
}
.home-hero-btn.is-ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    transform: translateY(-2px);
}
.home-hero-stats {
    flex: 0 0 348px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
}
.hero-stat {
    padding: 22px 16px;
    text-align: center;
    background: rgba(8, 19, 36, .74);
    backdrop-filter: blur(6px);
}
.hero-stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.hero-stat span {
    font-size: 12.5px;
    letter-spacing: .6px;
    color: rgba(255, 255, 255, .6);
}

/* 核心优势 */
.home-advantage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.adv-card {
    padding: 26px 24px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    transition: transform var(--transition, .25s ease), box-shadow var(--transition, .25s ease), border-color var(--transition, .25s ease);
}
.adv-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, .4);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .1);
}
.adv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(59, 130, 246, .05));
    color: var(--primary);
    font-size: 21px;
}
.adv-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}
.adv-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--gray-500);
}

@media (max-width: 1199.98px) {
    .home-hero-inner {
        gap: 34px;
    }
    .home-hero-stats {
        flex: 0 0 300px;
    }
    .home-hero h1 {
        font-size: 36px;
    }
}
@media (max-width: 991.98px) {
    .home-hero {
        padding: 42px 32px 36px;
    }
    .home-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }
    .home-hero-stats {
        flex: 0 0 auto;
    }
    .home-advantage {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .home-hero {
        padding: 34px 22px 28px;
        border-radius: 16px;
    }
    .home-hero h1 {
        font-size: 28px;
    }
    .home-hero-desc {
        font-size: 14.5px;
    }
    .home-hero-btn {
        padding: 11px 20px;
        font-size: 14px;
    }
    .home-advantage {
        grid-template-columns: 1fr;
    }
    .hero-stat strong {
        font-size: 25px;
    }
}
