/* ============================================
   弘益电子 - 现代设计系统
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    --hx-primary: #0a2540;
    --hx-primary-light: #1a3a5c;
    --hx-accent: #0070f3;
    --hx-accent-light: #3b9aff;
    --hx-cyan: #00d4ff;
    --hx-success: #10b981;
    --hx-warning: #f59e0b;
    --hx-danger: #ef4444;
    --hx-dark: #0d1b2a;
    --hx-gray-50: #f8fafc;
    --hx-gray-100: #f1f5f9;
    --hx-gray-200: #e2e8f0;
    --hx-gray-300: #cbd5e1;
    --hx-gray-400: #94a3b8;
    --hx-gray-500: #64748b;
    --hx-gray-600: #475569;
    --hx-gray-700: #334155;
    --hx-gray-800: #1e293b;
    --hx-gray-900: #0f172a;
    --hx-white: #ffffff;
    --hx-gradient-primary: linear-gradient(135deg, #0070f3 0%, #00d4ff 100%);
    --hx-gradient-dark: linear-gradient(135deg, #0a2540 0%, #1a3a5c 50%, #0d1b2a 100%);
    --hx-gradient-hero: linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(0,112,243,0.78) 100%);
    --hx-shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --hx-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --hx-shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --hx-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --hx-shadow-xl: 0 16px 64px rgba(0,0,0,0.16);
    --hx-shadow-glow: 0 0 40px rgba(0,112,243,0.15);
    --hx-radius-sm: 8px;
    --hx-radius-md: 12px;
    --hx-radius-lg: 16px;
    --hx-radius-xl: 24px;
    --hx-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --hx-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* ---------- Global ---------- */
body {
    font-family: var(--hx-font);
    color: var(--hx-gray-700);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--hx-primary); }

a { transition: var(--hx-transition); }

/* ---------- Navbar ---------- */
.hx-navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--hx-transition);
    padding: 0.6rem 0;
}

.hx-navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    padding: 0.35rem 0;
}

.hx-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--hx-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hx-navbar .navbar-brand .brand-icon {
    width: 36px; height: 36px;
    background: var(--hx-gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.hx-navbar .nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--hx-gray-600);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: var(--hx-transition);
}

.hx-navbar .nav-link:hover,
.hx-navbar .nav-link.active {
    color: var(--hx-accent);
    background: rgba(0,112,243,0.06);
}

.hx-navbar .btn-accent {
    background: var(--hx-gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.45rem 1.2rem;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: var(--hx-transition);
}

.hx-navbar .btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,112,243,0.35);
    color: #fff;
}

.hx-navbar .btn-phone {
    color: var(--hx-accent);
    border: 1.5px solid rgba(0,112,243,0.25);
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    background: transparent;
}

.hx-navbar .btn-phone:hover {
    background: rgba(0,112,243,0.06);
    border-color: var(--hx-accent);
    color: var(--hx-accent);
}

/* ---------- Hero ---------- */
.hx-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--hx-dark);
}

.hx-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hx-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,37,64,0.93) 0%, rgba(0,112,243,0.72) 50%, rgba(0,212,255,0.55) 100%);
    z-index: 1;
}

.hx-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hx-hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.hx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
}

.hx-hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--hx-success);
    border-radius: 50%;
    animation: hx-pulse 2s infinite;
}

.hx-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.hx-hero h1 .text-gradient {
    background: linear-gradient(90deg, #00d4ff, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hx-hero .hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.82);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hx-hero .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.hx-hero .hero-tags span {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.hx-hero .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--hx-gradient-primary);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    transition: var(--hx-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.hx-hero .btn-hero-primary {
    padding: 0.85rem 2.2rem;
    font-size: 1rem;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,112,243,0.45);
    color: #fff;
    text-decoration: none;
}

.hx-hero .btn-hero-outline {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 0.85rem 2.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--hx-transition);
}

.hx-hero .btn-hero-outline:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* Hero floating image card */
.hx-hero-visual {
    position: relative;
    z-index: 3;
}

.hx-hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--hx-radius-lg);
    padding: 1.5rem;
    color: #fff;
}

.hx-hero-card img {
    width: 100%;
    border-radius: var(--hx-radius-md);
    margin-bottom: 1rem;
}

.hx-hero-float-stat {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    border-radius: var(--hx-radius-md);
    padding: 0.8rem 1.2rem;
    box-shadow: var(--hx-shadow-lg);
    color: var(--hx-primary);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: hx-float 4s ease-in-out infinite;
}

.hx-hero-float-stat .stat-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ---------- Stats Bar ---------- */
.hx-stats {
    background: var(--hx-primary);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hx-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hx-gradient-primary);
    opacity: 0.12;
}

.hx-stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
}

.hx-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.hx-stat-number .accent { color: var(--hx-cyan); }

.hx-stat-label {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

/* ---------- Section Common ---------- */
.hx-section {
    padding: 5.5rem 0;
}

.hx-section-alt {
    background: var(--hx-gray-50);
}

.hx-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.hx-section-header .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,112,243,0.08);
    color: var(--hx-accent);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hx-section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--hx-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.hx-section-header p {
    font-size: 1.05rem;
    color: var(--hx-gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Service Cards ---------- */
.hx-service-card {
    background: var(--hx-white);
    border-radius: var(--hx-radius-lg);
    overflow: hidden;
    box-shadow: var(--hx-shadow-sm);
    transition: var(--hx-transition);
    height: 100%;
    border: 1px solid var(--hx-gray-100);
}

.hx-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hx-shadow-xl);
    border-color: transparent;
}

.hx-service-card .card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hx-service-card .card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hx-service-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.hx-service-card .card-img-wrap .card-img-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,37,64,0.85) 100%);
    z-index: 1;
}

.hx-service-card .card-img-wrap .card-img-icon {
    position: absolute;
    bottom: 1rem;
    left: 1.2rem;
    z-index: 2;
    width: 48px; height: 48px;
    background: var(--hx-gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(0,112,243,0.35);
}

.hx-service-card .card-body {
    padding: 1.5rem;
}

.hx-service-card .card-body h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--hx-primary);
}

.hx-service-card .card-body p {
    font-size: 0.9rem;
    color: var(--hx-gray-500);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.hx-service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--hx-accent);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--hx-transition);
}

.hx-service-card .card-link:hover {
    gap: 0.7rem;
    color: var(--hx-accent);
}

/* ---------- Solution Cards ---------- */
.hx-solution-card {
    background: var(--hx-white);
    border-radius: var(--hx-radius-lg);
    overflow: hidden;
    box-shadow: var(--hx-shadow-sm);
    transition: var(--hx-transition);
    height: 100%;
    border: 1px solid var(--hx-gray-100);
    position: relative;
}

.hx-solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hx-shadow-lg);
}

.hx-solution-card .solution-img {
    height: 220px;
    overflow: hidden;
}

.hx-solution-card .solution-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hx-solution-card:hover .solution-img img {
    transform: scale(1.05);
}

.hx-solution-card .solution-body {
    padding: 1.5rem;
}

.hx-solution-card .solution-tag {
    display: inline-block;
    background: rgba(0,112,243,0.08);
    color: var(--hx-accent);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
}

.hx-solution-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--hx-primary);
}

.hx-solution-card p {
    font-size: 0.9rem;
    color: var(--hx-gray-500);
    margin-bottom: 1rem;
}

/* ---------- Case Cards ---------- */
.hx-case-card {
    position: relative;
    border-radius: var(--hx-radius-lg);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.hx-case-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hx-case-card:hover img {
    transform: scale(1.08);
}

.hx-case-card .case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,37,64,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    transition: var(--hx-transition);
}

.hx-case-card:hover .case-overlay {
    background: linear-gradient(180deg, transparent 10%, rgba(10,37,64,0.95) 100%);
}

.hx-case-card .case-industry {
    display: inline-block;
    background: var(--hx-gradient-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.hx-case-card h5 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.hx-case-card .case-region {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* ---------- News Cards ---------- */
.hx-news-card {
    background: var(--hx-white);
    border-radius: var(--hx-radius-lg);
    overflow: hidden;
    box-shadow: var(--hx-shadow-sm);
    transition: var(--hx-transition);
    height: 100%;
    border: 1px solid var(--hx-gray-100);
}

.hx-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hx-shadow-md);
}

.hx-news-card .news-img {
    height: 180px;
    overflow: hidden;
}

.hx-news-card .news-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hx-news-card:hover .news-img img {
    transform: scale(1.05);
}

.hx-news-card .news-body {
    padding: 1.3rem;
}

.hx-news-card .news-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.hx-news-card .news-category.cat-company { background: rgba(16,185,129,0.1); color: var(--hx-success); }
.hx-news-card .news-category.cat-industry { background: rgba(0,112,243,0.08); color: var(--hx-accent); }
.hx-news-card .news-category.cat-tech { background: rgba(245,158,11,0.1); color: var(--hx-warning); }

.hx-news-card h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--hx-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-news-card .news-summary {
    font-size: 0.85rem;
    color: var(--hx-gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.hx-news-card .news-date {
    font-size: 0.8rem;
    color: var(--hx-gray-400);
}

/* ---------- CTA Section ---------- */
.hx-cta {
    position: relative;
    padding: 5rem 0;
    background: var(--hx-dark);
    overflow: hidden;
}

.hx-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hx-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hx-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.hx-cta p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2rem;
}

.hx-cta .cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hx-cta .btn-cta-primary {
    background: var(--hx-gradient-primary);
    color: #fff;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--hx-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hx-cta .btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,112,243,0.4);
    color: #fff;
}

.hx-cta .btn-cta-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.85rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--hx-transition);
}

.hx-cta .btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* ---------- Footer ---------- */
.hx-footer {
    background: var(--hx-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.hx-footer h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.hx-footer .footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hx-footer .footer-brand .brand-icon {
    width: 32px; height: 32px;
    background: var(--hx-gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}

.hx-footer .footer-desc {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
}

.hx-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hx-footer .footer-links li { margin-bottom: 0.5rem; }

.hx-footer .footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--hx-transition);
}

.hx-footer .footer-links a:hover {
    color: var(--hx-cyan);
    padding-left: 4px;
}

.hx-footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
}

.hx-footer .footer-contact li i {
    color: var(--hx-cyan);
    margin-top: 0.2rem;
}

.hx-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

/* ---------- Floating Widget ---------- */
.hx-floating {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hx-floating .float-btn {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    border: none;
    transition: var(--hx-transition);
    box-shadow: var(--hx-shadow-md);
}

.hx-floating .float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--hx-shadow-lg);
    color: #fff;
}

.hx-floating .float-phone { background: var(--hx-gradient-primary); }
.hx-floating .float-chat { background: linear-gradient(135deg, #10b981, #34d399); }
.hx-floating .float-top { background: var(--hx-gray-600); }

/* ---------- Animations ---------- */
@keyframes hx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes hx-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes hx-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hx-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hx-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Page Hero (Inner Pages) ---------- */
.hx-page-hero {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--hx-dark);
    padding: 4rem 0 3rem;
}

.hx-page-hero .hx-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hx-page-hero .hx-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,37,64,0.94) 0%, rgba(0,112,243,0.80) 50%, rgba(0,212,255,0.60) 100%);
    z-index: 1;
}

.hx-page-hero .hx-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hx-page-hero .page-hero-content {
    position: relative;
    z-index: 3;
}

.hx-page-hero .page-hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

.hx-page-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.hx-page-hero .page-hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hx-page-hero .page-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hx-page-hero .page-hero-tags span {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.9);
}

.hx-page-hero .breadcrumb {
    margin-bottom: 1.2rem;
}

.hx-page-hero .breadcrumb-item,
.hx-page-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-decoration: none;
}

.hx-page-hero .breadcrumb-item a:hover {
    color: #fff;
}

.hx-page-hero .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.hx-page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* Page hero compact (for detail pages) */
.hx-page-hero-compact {
    position: relative;
    min-height: 28vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--hx-dark);
    padding: 3rem 0 2rem;
}

.hx-page-hero-compact .hx-hero-bg,
.hx-page-hero-compact .hx-hero-bg::after,
.hx-page-hero-compact .hx-hero-pattern {
    position: absolute;
    inset: 0;
}

.hx-page-hero-compact .hx-hero-bg {
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hx-page-hero-compact .hx-hero-bg::after {
    content: '';
    background: linear-gradient(135deg, rgba(10,37,64,0.95) 0%, rgba(0,112,243,0.82) 100%);
    z-index: 1;
}

.hx-page-hero-compact .hx-hero-pattern {
    z-index: 2;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hx-page-hero-compact .page-hero-content {
    position: relative;
    z-index: 3;
}

.hx-page-hero-compact h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
}

.hx-page-hero-compact .breadcrumb {
    margin-bottom: 1rem;
}

.hx-page-hero-compact .breadcrumb-item,
.hx-page-hero-compact .breadcrumb-item a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-decoration: none;
}

.hx-page-hero-compact .breadcrumb-item a:hover {
    color: #fff;
}

.hx-page-hero-compact .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.hx-page-hero-compact .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hx-hero { min-height: 70vh; }
    .hx-hero h1 { font-size: 2rem; }
    .hx-hero-visual { display: none; }
    .hx-section { padding: 3.5rem 0; }
    .hx-section-header h2 { font-size: 1.7rem; }
    .hx-stat-number { font-size: 2rem; }
    .hx-page-hero { min-height: 32vh; padding: 3rem 0 2rem; }
    .hx-page-hero h1 { font-size: 1.8rem; }
    .hx-page-hero-compact { min-height: 22vh; }
}

@media (max-width: 767px) {
    .hx-hero { min-height: 80vh; }
    .hx-hero h1 { font-size: 1.7rem; }
    .hx-hero .hero-desc { font-size: 1rem; }
    .hx-hero .hero-tags { gap: 0.4rem; }
    .hx-hero .hero-tags span { font-size: 0.78rem; padding: 0.25rem 0.8rem; }
    .hx-floating { right: 12px; bottom: 60px; }
    .hx-floating .float-btn { width: 42px; height: 42px; border-radius: 12px; }
    .hx-case-card { height: 220px; }
    .hx-cta h2 { font-size: 1.6rem; }
    .hx-navbar .btn-phone { display: none; }
    .hx-page-hero { min-height: 28vh; padding: 2.5rem 0 1.5rem; }
    .hx-page-hero h1 { font-size: 1.5rem; }
    .hx-page-hero .page-hero-desc { font-size: 0.92rem; }
    .hx-page-hero-compact { min-height: 18vh; padding: 2rem 0 1.5rem; }
}
