/*
Theme Name: VBMS
Author: VBMS Team
Description: VBMS 智能电池管理系统主题样式（科技蓝，中文优先）
Version: 1.0
*/

:root {
    --primary: #0093dd;
    --primary-dark: #0079b7;
    --secondary: #97d4f2;
    --heading: #2d2d2d;
    --body: #454545;
    --bg-light: #f7fbfe;
    --dark: #22252a;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    background: #fff;
    overflow-x: hidden;
}

body.admin-bar .site-header {
    top: 32px;
}

a {
    color: #525252;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
    color: var(--primary);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
    color: var(--heading);
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section {
    padding: 82px 0;
}

.section-title {
    margin-bottom: 44px;
    text-align: center;
    font-size: 38px;
    color: var(--heading);
    letter-spacing: 0.5px;
}

.section-title .sub {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 30px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-inquiry:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--primary);
}

/* ============ 站点 Logo（文字） ============ */

.vbms-logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.vbms-logo-text .vbms-logo-sub {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
}

.vbms-logo-footer {
    color: #fff;
    margin-bottom: 18px;
}

/* ============ Header ============ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: var(--primary);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 68px;
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: auto;
    height: 100%;
}

.site-logo img,
.site-logo .custom-logo {
    width: auto;
    max-height: 60px;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.main-nav {
    flex: 0 1 auto;
}

.main-nav > ul,
.main-nav > div > ul,
.main-nav .menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    display: block;
    padding: 14px 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.main-nav li a:hover {
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.site-header.scrolled .main-nav li a {
    color: #fff;
}

.site-header.scrolled .main-nav li a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a {
    opacity: 0.85;
}

.main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: 10px 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.main-nav .sub-menu li a {
    padding: 9px 18px;
    color: #525252 !important;
    font-size: 14px;
    font-weight: 500;
    white-space: normal;
}

.main-nav .sub-menu li a:hover {
    background: #f5f9fc;
    color: var(--primary) !important;
}

.header-cta {
    flex: 0 0 auto;
}

.header-cta .btn-inquiry {
    min-height: 42px;
    padding: 0 22px;
    font-size: 13px;
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.header-cta .btn-inquiry:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

.site-header.scrolled .header-cta .btn-inquiry {
    background: #fff;
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: 0;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    transition: background 0.3s ease;
}

.site-header.scrolled .mobile-toggle span {
    background: #fff;
}

/* ============ Hero ============ */

.site-main {
    overflow: hidden;
}

.hero-banner {
    position: relative;
    margin-top: 0;
    height: min(720px, 100vh);
    min-height: 480px;
    background: #0b3f7a;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 45, 90, 0.82) 0%, rgba(11, 45, 90, 0.45) 55%, rgba(11, 45, 90, 0.15) 100%);
}

.hero-text {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 680px;
    color: #fff;
    padding-left: max(20px, calc((100vw - 1200px) / 2));
}

.hero-text .hero-sub {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
}

.hero-text h1,
.hero-text h2 {
    margin-bottom: 18px;
    font-size: 44px;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-text .hero-desc {
    margin-bottom: 30px;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.92);
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-nav {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============ About / Who We Are ============ */

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.about-img img {
    width: 100%;
    border-radius: 6px;
}

.about-inner .title {
    margin-bottom: 20px;
    font-size: 34px;
    color: var(--heading);
}

.about-inner .title .accent {
    color: var(--primary);
}

.about-inner .about-desc {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.9;
    color: #5a5a5a;
}

.about-points {
    margin-top: 18px;
}

.about-points li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 26px;
    font-size: 15px;
    color: #555;
}

.about-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.85;
}

/* ============ Products / solutions grid ============ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.product-card .item-img {
    position: relative;
    overflow: hidden;
}

.product-card .item-img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .item-img img {
    transform: scale(1.06);
}

.product-card .item-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 147, 221, 0.92);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-card:hover .item-btn {
    opacity: 1;
}

.product-card .item-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.product-card .item-info {
    padding: 18px;
}

.product-card .item-order {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
}

.product-card .item-title {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--heading);
}

.product-card .item-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ Features (产品与服务) ============ */

.features-section {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.feature-card {
    position: relative;
    padding: 36px 26px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(0, 147, 221, 0.1);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 147, 221, 0.18);
}

.feature-card .feature-img {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.feature-card .feature-order {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 26px;
    font-weight: 700;
    color: rgba(0, 147, 221, 0.18);
}

.feature-card .feature-title {
    margin-bottom: 12px;
    font-size: 19px;
    color: var(--heading);
}

.feature-card .feature-desc {
    font-size: 13.5px;
    line-height: 1.8;
    color: #6a6a6a;
}

/* ============ Dark advantages (团队与实力) ============ */

.advantage-dark {
    background: var(--dark);
    color: #cfd6dd;
}

.advantage-dark .section-title {
    color: #fff;
}

.advantage-dark .section-title .sub {
    color: var(--secondary);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.adv-card {
    position: relative;
    padding: 30px 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, transform 0.25s ease;
}

.adv-card:hover {
    background: rgba(0, 147, 221, 0.16);
    transform: translateY(-6px);
}

.adv-card .adv-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.adv-card .adv-order {
    font-size: 22px;
    font-weight: 700;
    color: rgba(151, 212, 242, 0.4);
}

.adv-card .adv-title {
    margin-bottom: 10px;
    font-size: 20px;
    color: #fff;
}

.adv-card .adv-desc {
    font-size: 13.5px;
    line-height: 1.8;
    color: #b9c2cb;
}

/* ============ Stats ============ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.stat-item {
    padding: 30px 18px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0, 147, 221, 0.08);
}

.advantage-dark .stat-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.stat-item .stat-num {
    font-size: 44px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.advantage-dark .stat-item .stat-num {
    color: #fff;
}

.stat-item .stat-num sup {
    font-size: 24px;
}

.stat-item .stat-label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.advantage-dark .stat-item .stat-label {
    color: #b9c2cb;
}

/* ============ Tech core (核心技术架构) ============ */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.tech-card {
    padding: 30px 26px;
    background: #fff;
    border-radius: 8px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 8px 26px rgba(0, 147, 221, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 147, 221, 0.18);
}

.tech-card .tech-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.tech-card p {
    font-size: 14px;
    line-height: 1.9;
    color: #5a5a5a;
}

.milestones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.milestone {
    padding: 26px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.milestone .num {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.milestone .label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* ============ Cooperation (合作模式) ============ */

.partner-section {
    background: var(--bg-light);
}

.coop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.coop-card {
    padding: 30px 24px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0, 147, 221, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.coop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 147, 221, 0.16);
}

.coop-card .coop-title {
    margin-bottom: 12px;
    font-size: 19px;
    color: var(--primary);
}

.coop-card p {
    font-size: 13.5px;
    line-height: 1.8;
    color: #6a6a6a;
}

/* ============ Inquiry CTA ============ */

.inquiry-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0, 90, 150, 0.78), rgba(0, 60, 110, 0.82)), url('../images/hero/bms-board.jpg') center center / cover no-repeat;
}

.inquiry-section .title {
    margin-bottom: 16px;
    font-size: 38px;
    color: #fff;
}

.inquiry-section .inquiry-desc {
    max-width: 760px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.8;
}

/* ============ Footer ============ */

.site-footer {
    background: #202326;
    color: #c9c9c9;
    padding: 70px 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr;
    gap: 34px;
}

.footer-item .foot-logo img {
    max-height: 56px;
    margin-bottom: 18px;
}

.footer-item .foot-title {
    margin-bottom: 18px;
    font-size: 20px;
    color: #fff;
}

.footer-item .foot-desc,
.footer-item .foot-val,
.footer-item .foot-inquiry p {
    font-size: 14px;
    line-height: 1.9;
    color: #c9c9c9;
}

.foot-nav li {
    margin-bottom: 10px;
}

.foot-nav li a {
    color: #c9c9c9;
    font-size: 14px;
}

.foot-nav li a:hover {
    color: var(--primary);
}

.foot-contacts li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.foot-ico svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    margin-top: 3px;
    flex: 0 0 auto;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    color: #9d9d9d;
}

/* ============ Inner pages ============ */

.page-header-banner {
    margin-top: 0;
    padding-top: 68px;
    height: 420px;
    background: linear-gradient(135deg, #0b3f7a, var(--primary) 60%, var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-header-banner h1 {
    font-size: 40px;
    color: #fff;
}

.breadcrumb {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.85;
}

.breadcrumb a {
    color: #fff;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

/* ============ 内页通用组件（custom_*） ============ */

.custom_wrapper {
    overflow: hidden;
}

.custom_sec_white {
    padding: 82px 0;
    background: #fff;
}

.custom_sec_light {
    padding: 82px 0;
    background: var(--bg-light);
}

.custom_container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.custom_grid_2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.custom_grid_3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.custom_grid_4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.custom_badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 16px;
    background: rgba(0, 147, 221, 0.1);
    border-radius: 20px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.custom_h2 {
    margin-bottom: 22px;
    font-size: 34px;
    color: var(--heading);
    line-height: 1.3;
}

.custom_h3 {
    margin-bottom: 12px;
    font-size: 19px;
    color: var(--heading);
}

.custom_section_desc {
    max-width: 780px;
    margin: 0 auto 20px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #5a5a5a;
    text-align: center;
}

.custom_card {
    padding: 28px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(0, 147, 221, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 147, 221, 0.16);
}

.custom_sec_light .custom_card {
    background: #fff;
}

.custom_tech_card {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(0, 147, 221, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom_tech_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 147, 221, 0.16);
}

.custom_stats_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.custom_stat_card {
    padding: 30px 18px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0, 147, 221, 0.08);
}

.custom_sec_light .custom_stat_card {
    background: #fff;
}

.custom_stat_number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.custom_stat_label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.custom_exp_list {
    margin-top: 6px;
}

.custom_exp_item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: #fff;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.custom_sec_light .custom_exp_item {
    background: #fff;
}

.custom_exp_tag {
    flex: 0 0 auto;
    padding: 2px 12px;
    border-radius: 16px;
    background: rgba(0, 147, 221, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.custom_tag_list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.custom_tag_list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.8;
}

/* ============ News ============ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.news-card {
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.news-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.news-card .news-body {
    padding: 20px;
}

.news-card .news-date {
    margin-bottom: 8px;
    color: #8b8b8b;
    font-size: 12px;
}

.news-card .news-title {
    margin-bottom: 10px;
    font-size: 17px;
    transition: color 0.2s ease;
}

.news-card:hover .news-title {
    color: var(--primary);
}

.news-card .news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.single-post-content {
    line-height: 1.9;
    color: #555;
}

.single-post-content p {
    margin-bottom: 14px;
}

.single-post-content h2,
.single-post-content h3 {
    margin: 26px 0 12px;
}

.single-post-content img {
    border-radius: 6px;
}

.product-archive-pagination {
    margin-top: 40px;
}

.product-archive-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    list-style: none;
}

.product-archive-pagination a,
.product-archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d8eaf5;
    border-radius: 4px;
    background: #fff;
    color: var(--primary);
    font-weight: 600;
}

.product-archive-pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============ Contact ============ */

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font: inherit;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 147, 221, 0.15);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 36px;
    border: 0;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form .btn-submit:hover {
    background: var(--primary-dark);
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.form-message.ok {
    background: #e6f7ec;
    color: #1d7a3d;
}

.form-message.err {
    background: #fdecec;
    color: #b3352c;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-bottom: 50px;
}

.contact-info-card {
    padding: 30px 24px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.contact-info-card svg {
    width: 34px;
    height: 34px;
    fill: var(--primary);
    margin: 0 auto 14px;
}

.contact-info-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-info-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ============ Responsive ============ */

@media (max-width: 1200px) {
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coop-grid,
    .custom_grid_4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav li a {
        padding: 10px 8px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .hero-banner {
        height: 520px;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 32px;
    }

    .about-section,
    .custom_grid_2 {
        grid-template-columns: 1fr;
    }

    .adv-grid,
    .tech-grid,
    .custom_grid_3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid,
    .custom_stats_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: fixed;
    }

    .header-inner {
        min-height: 58px;
        padding: 8px 0;
    }

    .vbms-logo-text {
        font-size: 22px;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav > ul,
    .main-nav > div > ul,
    .main-nav .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav li a,
    .site-header.scrolled .main-nav li a {
        padding: 16px 6px;
        font-size: 15px;
        color: #333;
        white-space: normal;
        border-bottom: 1px solid #eef4f9;
    }

    .main-nav li a:hover,
    .site-header.scrolled .main-nav li a:hover,
    .main-nav li.current-menu-item > a,
    .main-nav li.current_page_item > a,
    .site-header.scrolled .main-nav li.current-menu-item > a,
    .site-header.scrolled .main-nav li.current_page_item > a {
        color: var(--primary);
        opacity: 1;
    }

    .main-nav .sub-menu li a,
    .site-header.scrolled .main-nav .sub-menu li a {
        color: #555;
    }

    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        background: transparent;
    }

    .hero-banner {
        margin-top: 0;
        height: 420px;
    }

    .hero-text {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 26px;
    }

    .section,
    .custom_sec_white,
    .custom_sec_light {
        padding: 56px 0;
    }

    .section-title {
        font-size: 27px;
    }

    .about-inner .title,
    .custom_h2 {
        font-size: 26px;
    }

    .adv-grid,
    .tech-grid,
    .products-grid,
    .features-grid,
    .news-grid,
    .custom_grid_3,
    .custom_grid_2 {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .service-list,
    .contact-info-cards,
    .coop-grid,
    .custom_grid_4,
    .custom_stats_grid,
    .milestones {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .page-header-banner {
        padding-top: 58px;
        height: 320px;
    }

    .page-header-banner h1 {
        font-size: 28px;
    }

    .inquiry-section .title {
        font-size: 27px;
    }

    .inquiry-section {
        padding: 70px 0;
    }
}
