/* ==================== Font Declarations ==================== */

/* Heading font: Douyin Sans - Bold weight only, used for all headings */
@font-face {
  font-family: 'Douyin Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/DouyinSansBold.woff2) format('woff2');
}

/* Body font: system sans-serif stack (English site). Chinese webfonts below are no longer loaded; files kept in assets/fonts/ but not referenced. */


/* ==================== Global Base ==================== */
:root {
    --yf-primary: #1E57BE;
    --yf-primary-dark: #1848A0;
    --yf-primary-light: #4A7BD8;
    --yf-secondary: #92D050;
    --yf-dark: #101824;
    --yf-dark-lighter: #333b47;
    --yf-gray: #f0f3f4;
    --yf-gray-light: #f7f7f7;
    --yf-white: #ffffff;
    --yf-text: #333333;
    --yf-text-muted: #666666;
    --yf-text-light: #999999;
    --yf-border: #e0e0e0;
    --yf-radius: 8px;
    --yf-radius-lg: 14px;
    --yf-radius-sm: 6px;
    --yf-transition: all 0.3s ease;
    --yf-header-height: 80px;
    --yf-shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --yf-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --yf-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--yf-text);
    line-height: 1.7;
    font-size: 16px;
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--yf-primary);
    text-decoration: none;
    transition: var(--yf-transition);
}

a:hover {
    color: var(--yf-primary-dark);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    font-family: 'Douyin Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--yf-dark);
    line-height: 1.3;
}

/* ==================== Container ==================== */
.yf-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.yf-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Buttons ==================== */
.yf-btn {
    display: inline-block;
    padding: 12px 36px;
    border-radius: var(--yf-radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--yf-transition);
    text-align: center;
    font-family: inherit;
}

.yf-btn--primary {
    background: #1E57BE;
    color: #fff;
}

.yf-btn--primary:hover {
    background: #92D050;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--yf-shadow-md);
}

.yf-btn--dark {
    background: var(--yf-dark);
    color: #fff;
}

.yf-btn--dark:hover {
    background: #92D050;
    color: #fff;
}

.yf-btn--outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}

.yf-btn--outline:hover {
    background: #92D050;
    color: #fff;
}

.yf-btn--lg {
    padding: 14px 40px;
    font-size: 16px;
}

.yf-btn--sm {
    padding: 8px 24px;
    font-size: 13px;
}

/* ==================== Sticky Navigation ==================== */
.yf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    background: #1e57be;
    backdrop-filter: blur(10px);
}

.yf-header.is-scrolled {
    box-shadow: var(--yf-shadow-md);
}

.yf-header.is-hidden {
    transform: translateY(-100%);
}

/* Homepage dark-blue nav */
.home .yf-header:not(.is-scrolled) {
    background: #1e57be;
}

.home .yf-header:not(.is-scrolled) .yf-nav-link,
.home .yf-header:not(.is-scrolled) .yf-topbar-info,
.home .yf-header:not(.is-scrolled) .yf-topbar-social a,
.home .yf-header:not(.is-scrolled) .yf-nav-phone {
    color: #fff;
}

.home .yf-header:not(.is-scrolled) .yf-nav-link:hover {
    color: var(--yf-primary-light);
}

.yf-topbar {
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

.home .yf-topbar {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.yf-topbar .yf-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.yf-topbar-info {
    display: flex;
    gap: 24px;
    color: rgba(255,255,255,0.85);
}

.yf-topbar-social {
    display: flex;
    gap: 12px;
}

.yf-topbar-social a {
    color: rgba(255,255,255,0.85);
}

.yf-navbar {
    transition: var(--yf-transition);
}

.yf-navbar .yf-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 21px;
    padding-bottom: 21px;
}

.yf-logo img {
    max-height: 34px;
    width: auto;
}
/* Dark-blue nav background; use the white-background logo everywhere */
.yf-logo-scrolled {
    display: none;
}
.yf-header.is-scrolled .yf-logo-default {
    display: inline;
}
.yf-header.is-scrolled .yf-logo-scrolled {
    display: none;
}
body:not(.home) .yf-logo-default {
    display: inline;
}
body:not(.home) .yf-logo-scrolled {
    display: none;
}

.yf-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.yf-nav-link {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    display: block;
}

.yf-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yf-primary);
    transition: var(--yf-transition);
}

.yf-nav-link:hover::after,
.current-menu-item .yf-nav-link::after {
    width: 100%;
}

.yf-nav-link:hover {
    color: var(--yf-primary);
}

/* Nav submenu */
.yf-nav > li {
    position: relative;
}

.yf-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: var(--yf-shadow-lg);
    border-radius: var(--yf-radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--yf-transition);
    z-index: 100;
}

.yf-nav > li:hover > .yf-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yf-sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--yf-text);
    font-size: 14px;
    white-space: nowrap;
}

.yf-sub-menu a:hover {
    background: var(--yf-gray);
    color: var(--yf-primary);
}

.yf-nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.yf-nav-phone .yf-phone-icon {
    width: 40px;
    height: 40px;
    background: #1E57BE;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Mobile hamburger menu */
.yf-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.yf-mobile-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: var(--yf-transition);
}

/* ==================== Hero Slider ==================== */
.yf-hero-slider {
    height: calc(100vh - 121px);
    width: 100%;
    margin-top: 121px; /* Start below the fixed header */
    position: relative;
}

.yf-hero-slider .swiper-slide {
    overflow: hidden;
}

.yf-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover; /* Cover full width; only trim blank space top/bottom */
    background-position: center center; /* Crop evenly top/bottom so the product stays centered */
    background-repeat: no-repeat;
    transform: scale(1);
    /* Ken Burns zoom animation disabled to avoid cropping the product */
    transition: none;
}

.swiper-slide-active .yf-hero-bg {
    transform: scale(1);
}

.yf-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(16,24,36,0.1);
}

.yf-hero-content {
    position: relative;
    z-index: 2;
    color: #000;
    max-width: 700px;
    padding-top: 35vh;
    padding-left: 8vw;
    padding-right: 20px;
}

.yf-hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 16px;
    opacity: 0.9;
    letter-spacing: 2px;
}

.yf-hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000;
}

.yf-hero-desc {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 580px;
}

.yf-hero-pagination {
    position: absolute;
    bottom: 30px !important;
    left: 0;
    right: 0;
    text-align: center;
}

.yf-hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    margin: 0 5px;
    transition: var(--yf-transition);
}

.yf-hero-pagination .swiper-pagination-bullet-active {
    background: var(--yf-primary);
    width: 30px;
    border-radius: 5px;
}

/* ==================== Section Common ==================== */
.yf-section {
    padding: 80px 0;
}

.yf-section-gray {
    background: var(--yf-gray);
}

.yf-section-dark {
    background: var(--yf-gray);
    color: var(--yf-text);
}

.yf-section-dark h2,
.yf-section-dark h3,
.yf-section-dark h4 {
    color: var(--yf-dark);
}

.yf-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.yf-section-subtitle {
    color: var(--yf-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.yf-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.yf-section-desc {
    color: var(--yf-text-muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== Feature Cards ==================== */
.yf-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Industry solutions entry - 5 columns */
.yf-solutions-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.yf-feature-card {
    padding: 48px 36px;
    border-radius: var(--yf-radius-lg);
    text-align: center;
    transition: var(--yf-transition);
}

.yf-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--yf-shadow-lg);
}

.yf-feature-card--white {
    background: #fff;
    box-shadow: var(--yf-shadow-md);
}

.yf-feature-card--dark {
    background: #92D050;
    color: #fff;
}

.yf-feature-card--primary {
    background: var(--yf-primary);
    color: #fff;
}

.yf-feature-card__icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.yf-feature-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.yf-feature-card--white .yf-feature-card__title {
    color: var(--yf-dark);
}

.yf-feature-card--dark .yf-feature-card__title,
.yf-feature-card--primary .yf-feature-card__title {
    color: #fff;
}

.yf-feature-card .yf-btn--outline {
    margin-top: 16px;
}

/* Button on white cards: blue border + blue text (fixes invisible white text) */
.yf-feature-card--white .yf-btn--outline {
    border: 1px solid var(--yf-primary);
    color: var(--yf-primary);
}

.yf-feature-card--white .yf-btn--outline:hover {
    background: var(--yf-primary);
    color: #fff;
}

/* ==================== Technology Overview ==================== */
.yf-tech-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.yf-tech-overview__image img {
    border-radius: var(--yf-radius);
    width: 100%;
    box-shadow: var(--yf-shadow-md);
}

.yf-tech-overview__title {
    font-size: 24px;
    margin-bottom: 16px;
}

.yf-tech-overview__desc {
    color: var(--yf-text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.yf-tech-overview__subdesc {
    font-size: 15px;
    color: var(--yf-dark-lighter);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ==================== Product Cards ==================== */
.yf-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.yf-product-card {
    background: #fff;
    border-radius: var(--yf-radius);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: var(--yf-transition);
    display: flex;
    flex-direction: column;
}

.yf-product-card:hover {
    box-shadow: var(--yf-shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.yf-product-card__thumb-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    background: var(--yf-gray);
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.yf-product-card__level {
    font-size: 14px;
    color: var(--yf-text-light);
    margin-bottom: 8px;
}

.yf-product-card__model {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--yf-dark);
}

.yf-product-card__coverage {
    font-size: 18px;
    color: var(--yf-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.yf-product-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.yf-product-card .yf-btn {
    margin-top: auto;
}

.yf-product-card__features li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: var(--yf-text-muted);
}

.yf-product-card__features li::before {
    content: "✓";
    color: var(--yf-primary);
    margin-right: 8px;
    font-weight: 700;
}

/* ==================== Number Stats ==================== */
.yf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.yf-stat__number {
    font-size: 42px;
    font-weight: 700;
    color: var(--yf-primary);
    line-height: 1;
}

.yf-stat__suffix {
    font-size: 20px;
}

.yf-stat__desc {
    font-size: 14px;
    color: var(--yf-text-muted);
    margin-top: 8px;
}

/* ==================== Video CTA ==================== */
.yf-video-cta {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    text-align: center;
}

.yf-video-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    display: inline-block;
}

.yf-video-circle svg {
    width: 100%;
    height: 100%;
    animation: yf-rotate 20s linear infinite;
}

.yf-video-circle text {
    fill: #fff;
    font-size: 11px;
}

.yf-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: var(--yf-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--yf-transition);
}

.yf-video-circle:hover .yf-video-play {
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes yf-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== Application Scenarios ==================== */
.yf-scenes {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 40px;
    align-items: stretch;
}

.yf-scenes__image {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.yf-scenes__image img {
    border-radius: var(--yf-radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yf-scenes__list {
    list-style: none;
    padding: 0;
}

.yf-scenes__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #fff;
    border-radius: var(--yf-radius);
    margin-bottom: 8px;
    box-shadow: var(--yf-shadow-sm);
    transition: var(--yf-transition);
    cursor: pointer;
}

.yf-scenes__item:hover {
    box-shadow: var(--yf-shadow-md);
    transform: translateX(6px);
}

.yf-scenes__thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--yf-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.yf-scenes__num {
    color: var(--yf-primary);
    font-size: 13px;
    font-weight: 600;
}

.yf-scenes__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--yf-dark);
}

/* ==================== Certifications Section ==================== */
.yf-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.yf-cert-highlight {
    background: var(--yf-primary);
    padding: 40px;
    border-radius: var(--yf-radius);
    text-align: center;
    color: #fff;
}

.yf-cert-highlight__label {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.yf-cert-highlight__value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 4px;
}

.yf-cert-highlight__desc {
    font-size: 14px;
    opacity: 0.9;
}

.yf-cert-list {
    background: #fff;
    padding: 40px;
    border-radius: var(--yf-radius);
}

.yf-cert-list h3 {
    margin-bottom: 16px;
    color: var(--yf-dark);
}

.yf-cert-list__item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--yf-text-muted);
}

.yf-cert-list__item strong {
    color: var(--yf-dark);
}

/* ==================== Contact Cards ==================== */
.yf-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.yf-contact-card {
    background: #fff;
    border-radius: var(--yf-radius);
    padding: 36px 24px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: var(--yf-transition);
}

.yf-contact-card:hover {
    box-shadow: var(--yf-shadow-md);
    border-color: var(--yf-primary);
}

.yf-contact-card__icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.yf-contact-card__label {
    font-size: 15px;
    color: var(--yf-text-light);
    margin-bottom: 10px;
}

.yf-contact-card__value {
    font-size: 20px;
    font-weight: 600;
    color: var(--yf-dark);
    margin-bottom: 4px;
}

.yf-contact-card__desc {
    font-size: 13px;
    color: var(--yf-text-light);
}

/* ==================== Contact Form ==================== */
.yf-contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.yf-form-group--full {
    grid-column: 1 / -1;
}

.yf-form-group--submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 8px;
}

.yf-contact-form label {
    display: block;
    font-size: 14px;
    color: var(--yf-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.yf-contact-form input,
.yf-contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--yf-border);
    border-radius: var(--yf-radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--yf-transition);
}

.yf-contact-form input:focus,
.yf-contact-form textarea:focus {
    border-color: var(--yf-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(250,81,15,0.1);
}

.yf-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==================== Inner Page Hero ==================== */
.yf-page-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 104px;
}

.yf-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(16,24,36,0.1);
}

.yf-page-hero__content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-top: 60px; /* Leave room for the fixed nav */
}

.yf-page-hero__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.yf-breadcrumb {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 14px;
}

.yf-breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    opacity: 0.6;
}

.yf-breadcrumb a {
    color: rgba(255,255,255,0.8);
}

/* ==================== News Cards ==================== */
.yf-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.yf-news-card {
    background: #fff;
    border-radius: var(--yf-radius);
    overflow: hidden;
    box-shadow: var(--yf-shadow-sm);
    transition: var(--yf-transition);
    display: block;
    color: inherit;
}

.yf-news-card:hover {
    box-shadow: var(--yf-shadow-lg);
    transform: translateY(-4px);
    color: inherit;
}

.yf-news-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.yf-news-card__body {
    padding: 20px;
}

.yf-news-card__badge {
    display: inline-block;
    background: var(--yf-primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.yf-news-card__title {
    font-size: 16px;
    color: var(--yf-dark);
    margin: 0 0 8px;
    line-height: 1.5;
}

.yf-news-card__date {
    color: var(--yf-text-light);
    font-size: 13px;
}

/* 4-column news grid (homepage) */
.yf-news-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}
.yf-news-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yf-gray);
}
@media (max-width: 1200px) {
    .yf-news-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .yf-news-grid--4 { grid-template-columns: 1fr; }
}

/* ==================== News List (Archive Page) ==================== */
.yf-news-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: var(--yf-radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--yf-shadow-sm);
    transition: var(--yf-transition);
    color: inherit;
}

.yf-news-list-item:hover {
    box-shadow: var(--yf-shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.yf-news-date-block {
    min-width: 80px;
    text-align: center;
    background: var(--yf-primary);
    color: #fff;
    border-radius: var(--yf-radius-sm);
    padding: 14px 8px;
    flex-shrink: 0;
}

.yf-news-date-block__day {
    font-size: 20px;
    font-weight: 700;
}

.yf-news-date-block__year {
    font-size: 12px;
}

.yf-news-cat-badge {
    background: var(--yf-gray);
    color: var(--yf-text-muted);
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
}

/* ==================== Product Spec Table ==================== */
.yf-spec-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--yf-radius);
    overflow: hidden;
    box-shadow: var(--yf-shadow-sm);
}

.yf-spec-table th {
    background: var(--yf-gray-light);
    padding: 14px 20px;
    text-align: left;
    width: 30%;
    color: var(--yf-dark);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.yf-spec-table td {
    padding: 14px 20px;
    color: var(--yf-text-muted);
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.yf-spec-table tr:last-child th,
.yf-spec-table tr:last-child td {
    border-bottom: none;
}

/* ==================== CTA Block ==================== */
.yf-cta {
    background: var(--yf-dark);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.yf-cta__logo {
    max-height: 30px;
    margin: 0 auto 24px;
}

.yf-cta__title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ==================== Footer ==================== */
.yf-footer {
    background: var(--yf-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.yf-footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.yf-footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.yf-footer-nav .yf-footer-links {
    list-style: none;
    padding: 0;
}

.yf-footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.yf-footer-logo img {
    max-height: 60px;
    margin-bottom: 16px;
}

.yf-footer-slogan {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    opacity: 0.8;
}

.yf-footer-links li {
    margin-bottom: 8px;
}

.yf-footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.yf-footer-links a:hover {
    color: var(--yf-primary);
}

.yf-footer-contact-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    align-items: flex-start;
}

.yf-footer-contact-item span:first-child {
    color: var(--yf-primary);
}

.yf-footer-qr img {
    width: 120px;
    height: 120px;
    border-radius: var(--yf-radius-sm);
    margin-bottom: 8px;
}

.yf-footer-qr p {
    font-size: 13px;
    opacity: 0.6;
}

.yf-footer__copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ==================== Back to Top ==================== */
.yf-go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--yf-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--yf-transition);
    z-index: 999;
}

.yf-go-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.yf-go-top:hover {
    background: var(--yf-primary-dark);
    transform: translateY(-3px);
}

/* ==================== Pagination ==================== */
.yf-pagination {
    text-align: center;
    padding: 40px 0;
}

.yf-pagination a,
.yf-pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid var(--yf-border);
    border-radius: var(--yf-radius-sm);
    color: var(--yf-text);
}

.yf-pagination a:hover,
.yf-pagination .current {
    background: var(--yf-primary);
    color: #fff;
    border-color: var(--yf-primary);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .yf-features-grid,
    .yf-product-grid,
    .yf-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .yf-solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .yf-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .yf-tech-overview,
    .yf-scenes {
        grid-template-columns: 1fr;
    }
    .yf-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .yf-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .yf-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #1e57be;
        padding: 70px 20px 24px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        z-index: 999;
        max-height: 100vh;
        overflow-y: auto;
    }
    .yf-nav.is-open {
        display: flex;
    }
    .yf-nav > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .yf-nav-link {
        padding: 14px 0;
        font-size: 16px;
        color: #fff !important;
    }
    .yf-nav-link:hover {
        color: var(--yf-primary-light) !important;
    }
    .yf-sub-menu a {
        color: rgba(255,255,255,0.8) !important;
    }
    .yf-nav > li > .yf-sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 8px 16px;
        min-width: auto;
    }
    .yf-mobile-toggle {
        display: flex;
    }
    .yf-nav-phone {
        display: none;
    }
    .yf-topbar-info {
        font-size: 12px;
        gap: 12px;
    }
    .yf-hero-slider {
        height: 70vh;
        min-height: 480px;
    }
    .yf-hero-content {
        padding-top: 22vh;
        padding-left: 20px;
        padding-right: 20px;
    }
    .yf-hero-content .yf-btn {
        min-width: 120px !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
    .yf-hero-title {
        font-size: 28px;
    }
    .yf-features-grid,
    .yf-product-grid,
    .yf-news-grid,
    .yf-contact-cards,
    .yf-stats,
    .yf-cert-grid,
    .yf-solutions-grid {
        grid-template-columns: 1fr;
    }
    .yf-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .yf-news-list-item {
        flex-direction: column;
    }
    .yf-contact-form {
        grid-template-columns: 1fr;
    }
    .yf-section-title {
        font-size: 24px;
    }
    .yf-section {
        padding: 50px 0;
    }
}

/* ===== When mobile menu is open: lock body scroll, prevent header from hiding ===== */
body.nav-open {
    overflow: hidden;
}
body.nav-open .yf-header {
    transform: none !important;
}
/* Hamburger button active state (X shape) */
.yf-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.yf-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.yf-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
 * Original-site style restoration patch v2 (precisely aligned to the Corex theme type scale)
 * Original-site font-size baseline: h1=100px h2=60px h3=48px h4=36px h5=30px h6=24px
 * Section title inline override: font-size:24px / subtitle: 10px uppercase
 * ============================================================ */

/* ===== Global heading weight (original site uses 400, not 700) ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

/* ===== Hero Slider ===== */
.yf-hero-title {
    font-size: clamp(48px, 8vw, 120px) !important;
    line-height: 1.0em !important;
    letter-spacing: -3px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    color: #000 !important;
}
@media (max-width: 1599px) { .yf-hero-title { font-size: clamp(40px, 7vw, 90px) !important; } }
@media (max-width: 1200px) { .yf-hero-title { font-size: clamp(36px, 6vw, 80px) !important; } }
@media (max-width: 992px)  { .yf-hero-title { font-size: clamp(30px, 6vw, 64px) !important; } }
@media (max-width: 767px)  { .yf-hero-title { font-size: clamp(28px, 7vw, 48px) !important; letter-spacing: -1px !important; } }

.yf-hero-subtitle {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
    opacity: 1 !important;
}
.yf-hero-subtitle::after {
    content: "" !important;
    display: inline-block !important;
    width: 40px !important;
    border-bottom: 2px solid var(--yf-primary) !important;
    margin-left: 12px !important;
    vertical-align: middle !important;
}

.yf-hero-desc {
    font-size: 19px !important;
    font-weight: 300 !important;
    opacity: 0.85 !important;
    line-height: 1.8 !important;
    max-width: 560px !important;
    color: #000 !important;
}
@media (max-width: 767px) { .yf-hero-desc { font-size: 13px !important; line-height: 1.7 !important; } }

/* Hero overlay */
.yf-hero-overlay { background: rgba(16,24,36,0.1) !important; }

/* ===== Section title system (original site section title = 24px) ===== */
.yf-section { padding: 100px 0 !important; }
.yf-section-gray { padding: 100px 0 130px !important; }
.yf-section-header { margin-bottom: 64px !important; }
@media (max-width: 992px) { .yf-section, .yf-section-gray { padding: 70px 0 !important; } }

.yf-section-subtitle {
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin-bottom: 12px !important;
}
.yf-section-subtitle::after {
    content: "" !important;
    display: inline-block !important;
    width: 40px !important;
    border-bottom: 2px solid var(--yf-primary) !important;
    margin-left: 12px !important;
    vertical-align: middle !important;
}

.yf-section-title {
    font-size: 32px !important;
    font-weight: 500 !important;
    line-height: 1.3em !important;
    margin-bottom: 20px !important;
}
@media (max-width: 767px) { .yf-section-title { font-size: 24px !important; } }

.yf-section-desc {
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
    color: var(--yf-text-muted) !important;
}

/* ===== Buttons (original site: 36px radius + shine sweep effect) ===== */
.yf-btn {
    border-radius: 36px !important;
    font-size: 16px !important;
    padding: 19px 24px !important;
    min-width: 200px !important;
    position: relative !important;
    overflow: hidden !important;
}
.yf-btn--lg { min-width: 230px !important; padding: 19px 20px !important; }
.yf-btn--sm { padding: 6px 24px !important; font-size: 14px !important; min-width: 140px !important; }
.yf-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 100%;
    opacity: 0;
    z-index: -1;
    background: #92D050;
    transition: all 0.25s ease-out;
}
.yf-btn:hover::before { width: 100%; opacity: 1; left: 0; }
.yf-btn:hover { color: #fff !important; }
.yf-btn > * { position: relative; z-index: 1; }

/* ===== Feature cards (enlarged; original site cards are tall) ===== */
.yf-feature-card { padding: 60px 40px 50px !important; min-height: 380px !important; display: flex !important; flex-direction: column !important; justify-content: flex-end !important; }
.yf-feature-card__icon {
    font-size: 80px !important;
    line-height: 1 !important;
    margin-bottom: auto !important;
    padding-bottom: 30px !important;
}
.yf-feature-card__title {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.3em !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

/* ===== Number stats (enlarged to 80px for strong visual impact) ===== */
.yf-stat__number {
    font-size: 80px !important;
    line-height: 1em !important;
    font-weight: 700 !important;
}
.yf-stat__suffix {
    font-size: 36px !important;
    font-weight: 700 !important;
}
@media (max-width: 1599px) { .yf-stat__number { font-size: 64px !important; } .yf-stat__suffix { font-size: 30px !important; } }
@media (max-width: 767px)  { .yf-stat__number { font-size: 42px !important; } .yf-stat__suffix { font-size: 22px !important; } }

.yf-stat__desc {
    font-size: 16px !important;
    font-weight: 300 !important;
    color: var(--yf-text-muted) !important;
    margin-top: 12px !important;
}

/* Stat column dividers */
.yf-stats > div:not(:last-child) {
    position: relative;
}
.yf-stats > div:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(0,0,0,0.12);
}
@media (max-width: 1024px) { .yf-stats > div::after { display: none !important; } }

/* ===== Technology Overview ===== */
.yf-tech-overview__title {
    font-size: 28px !important;
    font-weight: 700 !important;
}
.yf-tech-overview__desc {
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
}
.yf-tech-overview__subdesc {
    font-size: 16px !important;
    font-weight: 300 !important;
}

/* ===== Video CTA ===== */
.yf-video-cta {
    min-height: 560px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ===== Scenario list (enlarged) ===== */
.yf-scenes__num {
    font-size: 16px !important;
}
.yf-scenes__name {
    font-size: 22px !important;
    font-weight: 400 !important;
}
.yf-scenes__item {
    padding: 28px 24px !important;
}
.yf-scenes__thumb {
    width: 80px !important;
    height: 80px !important;
}

/* ===== Product cards (enlarged) ===== */
.yf-product-card {
    padding: 48px 32px !important;
}
.yf-product-card__level {
    font-size: 14px !important;
    font-weight: 300 !important;
}
.yf-product-card__model {
    font-size: 28px !important;
    font-weight: 700 !important;
}
.yf-product-card__coverage {
    font-size: 22px !important;
    font-weight: 500 !important;
}
.yf-product-card__features li {
    font-size: 15px !important;
    font-weight: 300 !important;
    padding: 10px 0 !important;
}

/* ===== Certifications section (enlarged) ===== */
.yf-cert-highlight__value {
    font-size: 64px !important;
    font-weight: 700 !important;
}
.yf-cert-highlight__label {
    font-size: 16px !important;
    font-weight: 300 !important;
}
.yf-cert-highlight__desc {
    font-size: 15px !important;
    font-weight: 300 !important;
}
.yf-cert-list h3 {
    font-size: 20px !important;
    font-weight: 400 !important;
}

/* ===== CTA Block ===== */
.yf-cta__title {
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.4em !important;
}
@media (max-width: 767px) { .yf-cta__title { font-size: 28px !important; } }

/* ===== Inner page banner (original site 64px title) ===== */
.yf-page-hero {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    /* Span the full viewport width (incl. scrollbar area) to avoid a white gap on the right */
    width: 100vw !important;
    position: relative !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    /* Height adapts to the image ratio: 1920w x 800h = approx 2.4,
       the container height scales with screen width so the whole image displays uncropped */
    height: calc(100vw * 0.4167) !important; /* Chrome72 fallback: 800/1920 ratio */
    aspect-ratio: 1920 / 800 !important;
    /* On large screens keep the natural ratio height (1920w -> 800h);
       only cap it on extra-tall/narrow screens so the banner does not dominate */
    max-height: 75vh !important;
    /* margin-top kept (reserves space for the fixed header) */
    background-size: cover !important;
    /* Main content sits on the left of the image, left-aligned to avoid abrupt whitespace on the right */
    background-position: left center !important;
}
.yf-page-hero__content { padding-top: 0 !important; }
.yf-page-hero__title {
    font-size: 64px !important;
    font-weight: 700 !important;
    line-height: 1.2em !important;
}
@media (max-width: 992px) {
    .yf-page-hero {
        height: calc(100vw * 0.4167) !important; /* Chrome72 fallback */
        aspect-ratio: 1920 / 800 !important;
        max-height: 45vh !important;
    }
}
@media (max-width: 767px) { .yf-page-hero__title { font-size: 36px !important; } }

.yf-breadcrumb {
    font-size: 14px !important;
    font-weight: 300 !important;
}

/* ===== Navigation ===== */
.yf-nav-link {
    font-size: 14px !important;
    font-weight: 400 !important;
}
.yf-nav-phone {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* ===== Footer ===== */
.yf-footer-col h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
}
.yf-footer-slogan {
    font-size: 15px !important;
    font-weight: 300 !important;
}
.yf-footer-links a {
    font-size: 15px !important;
    font-weight: 300 !important;
}
.yf-footer-contact-item {
    font-size: 15px !important;
    font-weight: 300 !important;
}
.yf-footer__copyright {
    font-size: 14px !important;
    font-weight: 300 !important;
}

/* ===== News Cards ===== */
.yf-news-card__title {
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}
.yf-news-card__date {
    font-size: 14px !important;
}

/* ===== Contact Cards ===== */
.yf-contact-card__value {
    font-size: 24px !important;
    font-weight: 400 !important;
}
.yf-contact-card__label {
    font-size: 16px !important;
    font-weight: 300 !important;
}
.yf-contact-card__desc {
    font-size: 14px !important;
    font-weight: 300 !important;
}

/* ===== Product Spec Table ===== */
.yf-spec-table th {
    font-size: 15px !important;
    font-weight: 600 !important;
}
.yf-spec-table td {
    font-size: 15px !important;
    font-weight: 300 !important;
}

/* ===== Body Content ===== */
.entry-content,
.page-content {
    font-size: 17px !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
}
.entry-content h2 { font-size: 36px !important; font-weight: 400 !important; margin: 42px 0 20px !important; }
.entry-content h3 { font-size: 30px !important; font-weight: 400 !important; margin: 42px 0 20px !important; }
.entry-content h4 { font-size: 24px !important; font-weight: 400 !important; margin: 42px 0 16px !important; }
.entry-content p  { margin-bottom: 20px !important; }

/* ============================================================
 * Original-site style restoration patch v3 (larger fonts - matching Corex visual impact)
 * Baseline: h1=100 h2=60 h3=48 h4=36 h5=30 h6=24 / subtitle 10px ls6px
 * Overrides same-named rules from patch v2
 * ============================================================ */

/* ===== Hero title (too large on PC -> reduced to a reasonable 56px) ===== */
.yf-hero-title {
    font-size: 54px !important;
    line-height: 1.1em !important;
    letter-spacing: -1px !important;
    font-weight: 500 !important;
    margin-bottom: 24px !important;
}
@media (max-width: 1599px) { .yf-hero-title { font-size: 50px !important; } }
@media (max-width: 1200px) { .yf-hero-title { font-size: 46px !important; } }
@media (max-width: 992px)  { .yf-hero-title { font-size: 38px !important; letter-spacing: 0 !important; } }
@media (max-width: 767px)  { .yf-hero-title { font-size: 26px !important; letter-spacing: 0 !important; line-height: 1.2em !important; } }

/* ===== Hero subtitle (user feedback: 10px too small, changed to 14px for readability) ===== */
.yf-hero-subtitle {
    font-size: 17px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    line-height: 1em !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
    opacity: 1 !important;
    color: #1E57BE !important;
}
.yf-hero-subtitle::after {
    width: 38px !important;
    border-bottom: 2px solid var(--yf-primary) !important;
    margin-left: 10px !important;
    margin-bottom: 2px !important;
}
@media (max-width: 767px) { .yf-hero-subtitle { font-size: 12px !important; letter-spacing: 2px !important; } }

/* ===== Section titles (original site h3 = 48px level) ===== */
.yf-section-title {
    font-size: 56px !important;
    font-weight: 700 !important;
    line-height: 1.25em !important;
    margin-bottom: 20px !important;
}
@media (max-width: 1200px) { .yf-section-title { font-size: 44px !important; } }
@media (max-width: 992px)  { .yf-section-title { font-size: 36px !important; } }
@media (max-width: 767px)  { .yf-section-title { font-size: 28px !important; } }

/* ===== Section subtitles (user feedback: 14px too small, changed to 20px for readability) ===== */
.yf-section-subtitle {
    font-size: 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    line-height: 1em !important;
    display: inline-block !important;
    margin-bottom: 16px !important;
}
.yf-section-subtitle::after {
    width: 40px !important;
    border-bottom: 2px solid var(--yf-primary) !important;
    margin-left: 12px !important;
    margin-bottom: 2px !important;
}

/* ===== Stat numbers (original site large counters) ===== */
.yf-stat__number {
    font-size: 96px !important;
    line-height: 1em !important;
    font-weight: 700 !important;
}
.yf-stat__suffix {
    font-size: 40px !important;
    font-weight: 700 !important;
}
@media (max-width: 1599px) { .yf-stat__number { font-size: 80px !important; } .yf-stat__suffix { font-size: 36px !important; } }
@media (max-width: 1200px) { .yf-stat__number { font-size: 64px !important; } .yf-stat__suffix { font-size: 30px !important; } }
@media (max-width: 767px)  { .yf-stat__number { font-size: 44px !important; } .yf-stat__suffix { font-size: 22px !important; } }
.yf-stat__desc {
    font-size: 16px !important;
    margin-top: 14px !important;
}

/* ===== Feature card titles (original site h5 = 30px level) ===== */
.yf-feature-card__title {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.3em !important;
    margin-bottom: 16px !important;
}
@media (max-width: 767px) { .yf-feature-card__title { font-size: 24px !important; } }

/* ===== Product cards (smaller model names) ===== */
.yf-product-card__model {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2em !important;
    margin-bottom: 14px !important;
}
.yf-product-card__coverage {
    font-size: 18px !important;
    font-weight: 500 !important;
}
@media (max-width: 767px) {
    .yf-product-card__model { font-size: 18px !important; }
    .yf-product-card__coverage { font-size: 16px !important; }
}

/* ============================================================
 * Patch v4: client feedback adjustments (font sizes / scenario descriptions / smaller Hero)
 * ============================================================ */

/* Scenario list - new structure with descriptions */
.yf-scenes__content { flex: 1; }
.yf-scenes__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.yf-scenes__desc {
    color: var(--yf-text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 767px) {
    .yf-scenes__desc { font-size: 12px; }
}

/* Product detail page - store link button */
.yf-product-shops {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.yf-product-shops__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.yf-product-shops__btn--jd {
    background: #e1251b;
    color: #fff;
}
.yf-product-shops__btn--jd:hover {
    background: #c01a14;
    color: #fff;
}
.yf-product-shops__btn--tmall {
    background: #ff0036;
    color: #fff;
}
.yf-product-shops__btn--tmall:hover {
    background: #cc0029;
    color: #fff;
}

/* Product list page - alternating left/right layout */
.yf-product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.yf-product-row:nth-child(even) .yf-product-row__media {
    order: 2;
}
.yf-product-row__media {
    background: var(--yf-gray);
    border-radius: 8px;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yf-product-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.yf-product-row__media--placeholder {
    color: var(--yf-text-light);
    font-size: 14px;
}
.yf-product-row__level {
    color: var(--yf-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.yf-product-row__title {
    font-size: 32px;
    font-weight: 500;
    color: var(--yf-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}
.yf-product-row__spec {
    font-size: 16px;
    color: var(--yf-text-muted);
    margin-bottom: 16px;
}
.yf-product-row__spec strong {
    color: var(--yf-primary);
    font-weight: 600;
}
.yf-product-row__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
}
@media (max-width: 992px) {
    .yf-product-row {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    .yf-product-row:nth-child(even) .yf-product-row__media {
        order: 0;
    }
    .yf-product-row__title { font-size: 24px; }
}

/* Certification carousel */
.yf-cert-carousel {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}
.yf-cert-carousel .swiper-slide {
    background: #fff;
    border-radius: 8px;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.yf-cert-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.yf-cert-carousel .swiper-slide--placeholder {
    color: var(--yf-text-light);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Breadcrumbs (shown on inner pages) */
.yf-breadcrumb-bar {
    background: var(--yf-gray);
    padding: 14px 0;
    font-size: 13px;
    color: var(--yf-text-muted);
}
.yf-breadcrumb-bar .yf-container {
    display: flex;
    align-items: center;
}
.yf-breadcrumb-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}
.yf-breadcrumb-bar li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--yf-text-light);
}
.yf-breadcrumb-bar a {
    color: var(--yf-text-muted);
    text-decoration: none;
}
.yf-breadcrumb-bar a:hover {
    color: var(--yf-primary);
}

/* ============================================================
 * Patch v5: font application rules (Douyin Sans + HarmonyOS Sans SC)
 * - All headings use Douyin Sans Bold
 * - All body text uses HarmonyOS Sans SC
 * ============================================================ */

/* Force Douyin Sans on all heading elements */
h1, h2, h3, h4, h5, h6,
.yf-hero-title,
.yf-section-title,
.yf-feature-card__title,
.yf-product-card__model,
.yf-product-row__title,
.yf-page-hero__title,
.yf-cta__title,
.yf-tech-overview__title,
.yf-footer-col h3,
.yf-news-card__title,
.yf-contact-card__value,
.yf-cert-highlight__value,
.yf-cert-list h3 {
    font-family: 'Douyin Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 700 !important;
}

/* Stat numbers also use Douyin Sans (visual emphasis) */
.yf-stat__number,
.yf-stat__suffix {
    font-family: 'Douyin Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Body / paragraphs / lists / forms all use HarmonyOS Sans SC */
body,
p, span, div,
ul, ol, li,
td, th,
label, input, textarea, select, button,
a,
.entry-content, .page-content,
.yf-hero-desc,
.yf-section-desc,
.yf-hero-subtitle,
.yf-section-subtitle,
.yf-tech-overview__desc,
.yf-tech-overview__subdesc,
.yf-product-card__features li,
.yf-scenes__name,
.yf-scenes__desc,
.yf-nav-link,
.yf-footer-slogan,
.yf-footer-links a,
.yf-footer-contact-item,
.yf-footer__copyright,
.yf-btn,
.yf-news-card__date,
.yf-news-card__badge,
.yf-breadcrumb,
.yf-breadcrumb-bar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* ==================== Site-wide Font Optimization v2 ==================== */
/* Aggressive version: greatly increase all font sizes and spacing for a bolder look */
/* Handle PC (1920px+) and mobile separately */

/* ========== CSS variables: unified font-size system ========== */
:root {
    /* PC (1920px baseline, auto-scales on 2K/4K) */
    --yf-fs-base: clamp(15px, 0.94vw, 26px);         /* Body: 18px@1920 -> 24px@2560 */
    --yf-fs-h1: clamp(30px, 2.8vw, 84px);            /* Section heading: 54px@1920 -> 72px@2560 */
    --yf-fs-h2: clamp(17px, 1.25vw, 34px);           /* Section subtitle: 24px@1920 -> 30px@2560 */
    --yf-fs-h3: clamp(17px, 1.1vw, 30px);            /* Card title: 21px@1920 -> 26px@2560 */
    --yf-fs-h4: clamp(15px, 0.94vw, 24px);           /* Small heading: 18px@1920 -> 22px@2560 */
    --yf-fs-sm: clamp(13px, 0.83vw, 22px);           /* Small text: 16px@1920 -> 19px@2560 */
    --yf-fs-xs: clamp(12px, 0.78vw, 20px);           /* Smallest text: 15px@1920 -> 18px@2560 */
    --yf-fs-nav: clamp(15px, 0.99vw, 26px);          /* Nav: 19px@1920 -> 23px@2560 */
    --yf-fs-footer: clamp(14px, 0.89vw, 24px);       /* Footer: 17px@1920 -> 20px@2560 */
    --yf-fs-hero-title: clamp(32px, 3.8vw, 100px);   /* Hero title: 73px@1920 -> 88px@2560 */
    --yf-fs-hero-sub: clamp(14px, 0.94vw, 26px);     /* Hero subtitle: 18px@1920 -> 22px@2560 */
    --yf-fs-hero-desc: clamp(15px, 1.04vw, 28px);    /* Hero description: 20px@1920 -> 24px@2560 */
    --yf-fs-btn: clamp(15px, 0.94vw, 24px);          /* Button: 18px@1920 -> 21px@2560 */
    --yf-fs-stat: clamp(52px, 5.2vw, 130px);         /* Stat number: 100px@1920 -> 115px@2560 */
    --yf-fs-breadcrumb: clamp(13px, 0.83vw, 22px);   /* Breadcrumb: 16px@1920 -> 18px@2560 */
    --yf-fs-topbar: clamp(13px, 0.78vw, 20px);       /* Top bar: 15px@1920 -> 17px@2560 */

    /* Spacing variables */
    --yf-gap-section: clamp(48px, 4vw, 100px);       /* Section gap */
    --yf-gap-card: clamp(20px, 1.5vw, 36px);         /* Card gap */
    --yf-pad-card: clamp(24px, 1.8vw, 48px);         /* Card padding */
}

/* ========== Body ========== */
body { font-size: var(--yf-fs-base) !important; line-height: 1.8 !important; }
p, .yf-section-desc { font-size: var(--yf-fs-base) !important; line-height: 1.8 !important; }
.yf-sol-desc, .yf-scenes__desc { font-size: var(--yf-fs-base) !important; }

/* ========== Section Titles ========== */
.yf-section-title { font-size: var(--yf-fs-h1) !important; line-height: 1.3 !important; }
.yf-section-subtitle { font-size: var(--yf-fs-h2) !important; letter-spacing: 3px !important; }

/* ========== Section Spacing ========== */
.yf-section { padding-top: var(--yf-gap-section) !important; padding-bottom: var(--yf-gap-section) !important; }
.yf-section-header { margin-bottom: 48px !important; margin-bottom: clamp(28px, 2.5vw, 60px) !important; }

/* ========== Homepage Hero ========== */
.yf-hero-title { font-size: var(--yf-fs-hero-title) !important; line-height: 1.3 !important; }
.yf-hero-subtitle { font-size: var(--yf-fs-hero-sub) !important; letter-spacing: 3px !important; }
.yf-hero-desc { font-size: var(--yf-fs-hero-desc) !important; line-height: 1.8 !important; }
.yf-hero-content { padding-top: clamp(30px, 4vh, 80px) !important; }

/* ========== Feature Cards ========== */
.yf-feature-card__title { font-size: var(--yf-fs-h3) !important; }
.yf-feature-card { padding: var(--yf-pad-card) !important; }
.yf-feature-card__icon { font-size: 50px !important; font-size: clamp(40px, 2.6vw, 64px) !important; margin-bottom: 24px !important; }

/* ========== Product Cards ========== */
.yf-product-card { padding: var(--yf-pad-card) !important; }
.yf-product-card__model { font-size: var(--yf-fs-h3) !important; }
.yf-product-card__level { font-size: var(--yf-fs-sm) !important; }
.yf-product-card__coverage { font-size: var(--yf-fs-h4) !important; }
.yf-product-card__features li { font-size: var(--yf-fs-base) !important; margin-bottom: 10px !important; }

/* ========== News Cards ========== */
.yf-news-card__title { font-size: var(--yf-fs-h3) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; margin-bottom: 10px !important; }
.yf-news-card__excerpt { font-size: var(--yf-fs-sm) !important; color: #888; margin: 0 0 10px !important; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.yf-news-card__badge, .yf-news-card__date { font-size: var(--yf-fs-sm) !important; }
.yf-news-card__body { padding: 20px !important; }

/* ========== Accordion / Industry Solutions ========== */
.yf-sol-name { font-size: var(--yf-fs-h4) !important; }
.yf-sol-num { font-size: var(--yf-fs-h4) !important; }
.yf-sol-pain { font-size: var(--yf-fs-sm) !important; }
.yf-sol-desc { font-size: var(--yf-fs-base) !important; line-height: 1.8 !important; }
.yf-sol-header { padding: 18px 24px !important; }
.yf-sol-body { padding: 0 24px 20px !important; }
.yf-sol-model strong { font-size: var(--yf-fs-h4) !important; }
.yf-sol-model span { font-size: var(--yf-fs-sm) !important; }

/* ========== Navigation ========== */
.yf-nav-link { font-size: var(--yf-fs-nav) !important; font-weight: 500 !important; }
.yf-nav > li { margin: 0 15px !important; margin: 0 clamp(8px, 0.8vw, 20px) !important; }
.yf-nav-phone { font-size: var(--yf-fs-nav) !important; font-weight: 700 !important; }
.yf-topbar-info, .yf-topbar-social a { font-size: var(--yf-fs-topbar) !important; }
.yf-navbar { height: auto !important; padding: 16px 0 !important; }

/* ========== Footer ========== */
.yf-footer { padding-top: 58px !important; padding-top: clamp(40px, 3vw, 80px) !important; }
.yf-footer-col h3 { font-size: var(--yf-fs-h4) !important; margin-bottom: 24px !important; }
.yf-footer-links a { font-size: var(--yf-fs-footer) !important; line-height: 2.2 !important; }
.yf-footer-slogan { font-size: var(--yf-fs-footer) !important; line-height: 1.8 !important; }
.yf-footer-contact-item { font-size: var(--yf-fs-footer) !important; margin-bottom: 14px !important; }
.yf-footer-qr p { font-size: var(--yf-fs-sm) !important; }
.yf-footer__copyright { font-size: var(--yf-fs-sm) !important; padding: 20px 0 !important; }
.yf-footer-logo img { max-height: 50px !important; max-height: clamp(40px, 2.6vw, 64px) !important; }

/* ========== Scenarios ========== */
.yf-scenes__name { font-size: var(--yf-fs-h3) !important; }
.yf-scenes__num { font-size: var(--yf-fs-sm) !important; }
.yf-scenes__desc { font-size: var(--yf-fs-sm) !important; line-height: 1.7 !important; }
.yf-scenes__item { margin-bottom: 20px !important; }

/* ========== Stat Numbers ========== */
.yf-stat__number { font-size: var(--yf-fs-stat) !important; }
.yf-stat__desc { font-size: var(--yf-fs-h4) !important; margin-top: 12px !important; }

/* ========== Breadcrumbs ========== */
.yf-breadcrumb, .yf-breadcrumb-bar { font-size: var(--yf-fs-breadcrumb) !important; }
.yf-breadcrumb-bar { padding: 16px 0 !important; }

/* ========== Buttons ========== */
.yf-btn { font-size: var(--yf-fs-btn) !important; }
.yf-btn--lg { padding: 16px 48px !important; }
.yf-btn--sm { padding: 10px 28px !important; }

/* ========== Inner Page Banner ========== */
.yf-page-hero__title { font-size: var(--yf-fs-h1) !important; }

/* ========== News List Tabs ========== */
.yf-news-tab { font-size: var(--yf-fs-h4) !important; padding: 12px 40px !important; }

/* ========== Tables ========== */
table th, table td { font-size: var(--yf-fs-base) !important; padding: 14px 18px !important; }

/* ========== Mobile Adaptation (<=767px) ========== */
@media (max-width: 767px) {
    :root {
        --yf-fs-base: 15px;
        --yf-fs-h1: 30px;
        --yf-fs-h2: 19px;
        --yf-fs-h3: 18px;
        --yf-fs-h4: 16px;
        --yf-fs-sm: 13px;
        --yf-fs-xs: 12px;
        --yf-fs-nav: 16px;
        --yf-fs-footer: 14px;
        --yf-fs-hero-title: 36px;
        --yf-fs-hero-sub: 14px;
        --yf-fs-hero-desc: 15px;
        --yf-fs-btn: 15px;
        --yf-fs-stat: 40px;
        --yf-fs-breadcrumb: 13px;
        --yf-fs-topbar: 13px;
        --yf-gap-section: 40px;
    }
    .yf-section { padding-top: 40px !important; padding-bottom: 40px !important; }
    .yf-nav > li { margin: 0 4px !important; }
}

/* ========== Tablet Adaptation (768px~1024px) ========== */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --yf-fs-base: 16px;
        --yf-fs-h1: 40px;
        --yf-fs-h2: 21px;
        --yf-fs-h3: 19px;
        --yf-fs-h4: 16px;
        --yf-fs-sm: 14px;
        --yf-fs-xs: 13px;
        --yf-fs-nav: 17px;
        --yf-fs-footer: 15px;
        --yf-fs-hero-title: 52px;
        --yf-fs-hero-sub: 15px;
        --yf-fs-hero-desc: 16px;
        --yf-fs-btn: 16px;
        --yf-fs-stat: 64px;
        --yf-fs-breadcrumb: 14px;
        --yf-fs-topbar: 13px;
        --yf-gap-section: 48px;
    }
}

/* ==================== Nav Bar Fixes ==================== */
/* 1. Prevent nav from wrapping */
.yf-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: clamp(10px, 1vw, 24px) !important;
    white-space: nowrap !important;
}
.yf-nav-link {
    white-space: nowrap !important;
    font-size: 16px !important;
    font-size: clamp(14px, 0.83vw, 18px) !important;
}

/* 2. Enlarge logo */
.yf-logo img {
    max-height: clamp(38px, 2.2vw, 52px) !important;
}
.yf-logo-scrolled { display: none !important; }

/* 3. Push banner down to clear the nav bar */
.yf-hero-slider {
    margin-top: clamp(120px, 8vw, 160px) !important;
    height: calc(100vh - clamp(120px, 8vw, 160px)) !important;
}

/* 4. Nav bar container optimization */
.yf-navbar .yf-container {
    padding-top: clamp(12px, 1vw, 20px) !important;
    padding-bottom: clamp(12px, 1vw, 20px) !important;
}
.yf-nav-phone {
    white-space: nowrap !important;
}

/* 5. Mobile adaptation */
@media (max-width: 767px) {
    .yf-nav {
        gap: 8px !important;
        overflow-x: auto !important;
    }
    .yf-nav-link {
        font-size: 14px !important;
    }
    .yf-logo img {
        max-height: 34px !important;
    }
    .yf-hero-slider {
        margin-top: 100px !important;
        height: auto !important;
    }
}

/* ==================== Nav Logo & Banner Fixes v2 ==================== */
/* Logo: fixed width to prevent squashing */
.yf-logo {
    flex-shrink: 0 !important;
    min-width: 160px !important;
}
.yf-logo img {
    width: 173px !important;
    width: clamp(140px, 9vw, 200px) !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
}

/* Banner: ensure it sits below the nav bar */
.yf-hero-slider {
    margin-top: clamp(160px, 9vw, 180px) !important;
    height: calc(100vh - clamp(160px, 9vw, 180px)) !important;
}

/* Same treatment for subpage banners */
.yf-page-hero {
    margin-top: clamp(160px, 9vw, 180px) !important;
}

/* ==================== Final Nav + Banner Adjustments ==================== */
/* Reduce navbar padding to lower total header height */
.yf-navbar .yf-container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.yf-topbar .yf-container {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Banner margin: ensure it exceeds the header height */
.yf-hero-slider {
    margin-top: clamp(180px, 10vw, 220px) !important;
    height: calc(100vh - clamp(180px, 10vw, 220px)) !important;
}
.yf-page-hero {
    margin-top: clamp(180px, 10vw, 220px) !important;
}

/* ==================== Nav + Banner Final Fixes v3 ==================== */
/* 1. Fix duplicate logo: show only the default logo */
.yf-logo-scrolled { display: none !important; }
.yf-logo-default { display: block !important; }

/* 2. Tighten menu spacing */
.yf-nav {
    gap: clamp(8px, 0.6vw, 16px) !important;
}

/* 3. Banner text: vertically centered, left-aligned */
.yf-hero-content {
    padding-top: 0 !important;
    padding-left: 15vw !important;
    padding-right: 20px !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
    max-width: 900px !important;
}

/* 4. Ensure swiper-slide is relative (so absolute positioning works) */
.yf-hero-slider .swiper-slide {
    position: relative !important;
}

/* 5. Mobile banner text position */
@media (max-width: 767px) {
    .yf-hero-content {
        padding-left: 5vw !important;
        bottom: 5% !important;
        max-width: 90% !important;
    }
}

/* ==================== Duplicate Logo Final Fix ==================== */
.yf-logo img.yf-logo-scrolled,
.yf-navbar .yf-logo img.yf-logo-scrolled,
.yf-header .yf-logo img.yf-logo-scrolled {
    display: none !important;
}

/* ==================== Comprehensive Fixes v4: Mobile Menu + Nav + Banner + Accordion ==================== */

/* 1. Mobile menu fix: restore the original collapse/expand mechanism */
@media (max-width: 768px) {
    .yf-nav {
        display: none !important; /* Hidden by default */
    }
    .yf-nav.is-open {
        display: flex !important; /* Shown after hamburger click */
    }
    .yf-hero-slider {
        margin-top: 120px !important;
    }
    .yf-logo img {
        width: 120px !important;
    }
}

/* 2. PC nav: tighten menu spacing and logo-to-menu spacing */
@media (min-width: 769px) {
    .yf-nav {
        display: flex !important;
        gap: 10px !important;
        gap: clamp(6px, 0.5vw, 14px) !important;
    }
    .yf-logo {
        margin-right: 38px !important;
        margin-right: clamp(16px, 2vw, 40px) !important;
    }
}

/* 3. Gap between banner and nav bar: match header height exactly */
.yf-hero-slider {
    margin-top: 140px !important;
    height: calc(100vh - 140px) !important;
}
.yf-page-hero {
    margin-top: 140px !important;
}

/* 4. Industry solutions: limit expanded content height */
.yf-sol-body {
    max-height: 240px !important;
    overflow-y: auto !important;
}
.yf-sol-desc {
    max-height: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
}

/* 5. Mobile accordion */
@media (max-width: 768px) {
    .yf-sol-body {
        max-height: 200px !important;
    }
    .yf-sol-desc {
        -webkit-line-clamp: 3 !important;
    }
}

/* ==================== Mobile Fixes v5 ==================== */
@media (max-width: 768px) {
    /* Push banner down to clear the taller header */
    .yf-hero-slider {
        margin-top: 150px !important;
        height: auto !important;
    }
    .yf-page-hero {
        margin-top: 150px !important;
    }
    
    /* Fix horizontal overflow on the solutions page */
    .yf-solutions-split {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .yf-solutions-text, .yf-solutions-image {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .yf-features-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .yf-feature-card {
        padding: 16px !important;
        min-width: 0 !important;
    }
    
    /* Prevent horizontal overflow in all sections */
    .yf-container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
    }
    .yf-section {
        overflow-x: hidden !important;
    }
    
    /* Product cards */
    .yf-product-grid {
        grid-template-columns: 1fr !important;
    }
    .yf-product-card {
        min-width: 0 !important;
    }
    
    /* News grid */
    .yf-news-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Accordion images */
    .yf-solutions-image img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ==================== Fixes v6: Banner Gap + Accordion ==================== */

/* 1. Banner gap: margin set dynamically via JS; CSS provides a safe initial value */
.yf-hero-slider { margin-top: 0 !important; }
.yf-page-hero { margin-top: 0 !important; }
.yf-header { position: fixed !important; }
/* Create a seamless background extension below the header to eliminate any gap */
.yf-header::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: inherit !important;
    z-index: -1 !important;
}

/* 2. Accordion: restore single-open behavior (collapsed state max-height:0) */
.yf-sol-body {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
}
.yf-sol-item--active .yf-sol-body {
    max-height: 220px !important;
}
.yf-sol-desc {
    -webkit-line-clamp: 4 !important;
    max-height: 110px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis !important;
}

/* 3. Keep industry solutions within one viewport */
.yf-solutions-split {
    max-height: calc(100vh - 200px) !important;
    overflow: hidden !important;
}
.yf-solutions-text {
    max-height: calc(100vh - 240px) !important;
    overflow-y: auto !important;
}
.yf-sol-header {
    padding: 12px 20px !important;
}

/* 4. Mobile accordion */
@media (max-width: 768px) {
    .yf-sol-item--active .yf-sol-body {
        max-height: 180px !important;
    }
    .yf-sol-desc {
        -webkit-line-clamp: 3 !important;
        max-height: 80px !important;
    }
    .yf-solutions-split {
        max-height: none !important;
    }
}

/* ==================== Fixes v6 Addendum: Let JS Override the Margin ==================== */
/* Remove the previous margin-top !important so the JS-set value takes effect */
.yf-hero-slider { margin-top: 140px; }
.yf-page-hero { margin-top: 140px; }

/* ==================== Mobile Menu Top Logo ==================== */
.yf-mobile-menu-logo {
    display: none;
}
@media (max-width: 768px) {
    .yf-mobile-menu-logo {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001; /* Higher than the menu (999) */
        background: #1e57be;
        padding: 14px 20px;
        align-items: center;
        justify-content: space-between;
    }
    .yf-mobile-menu-logo img {
        width: 120px;
        height: auto;
    }
    /* Show logo when the menu is open */
    body.nav-open .yf-mobile-menu-logo {
        display: flex;
    }
    /* When the menu is open, nav padding-top must reserve space for the logo */
    body.nav-open .yf-nav {
        padding-top: 70px !important;
    }
}

/* ==================== Mobile Product Buttons in One Row ==================== */
@media (max-width: 768px) {
    .yf-product-row__actions {
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }
    .yf-product-row__actions .yf-btn,
    .yf-product-row__actions .yf-product-shops__btn {
        flex: 1 !important;
        padding: 8px 4px !important;
        font-size: 12px !important;
        text-align: center !important;
        white-space: nowrap !important;
        justify-content: center !important;
    }
}

/* ==================== Current Page Menu Green Highlight ==================== */
/* PC */
.yf-nav > li.current-menu-item > .yf-nav-link {
    background: #92D050 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 14px !important;
}
.yf-nav > li.current-menu-item > .yf-nav-link::after {
    display: none !important;
}
.yf-nav > li.current-menu-item > .yf-nav-link:hover {
    background: #7ab83c !important;
    color: #fff !important;
}

/* Mobile */
@media (max-width: 768px) {
    .yf-nav > li.current-menu-item {
        background: #92D050 !important;
    }
    .yf-nav > li.current-menu-item > .yf-nav-link {
        color: #fff !important;
        font-weight: 700 !important;
    }
    .yf-nav > li.current-menu-item > .yf-nav-link::after {
        display: none !important;
    }
}

/* ==================== Remove Banner Overlay ==================== */
.yf-hero-overlay { background: transparent !important; display: none !important; }

/* ==================== Homepage Brand Advantage Image Cards ==================== */
.yf-feature-card--image {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px 24px;
    border-radius: var(--yf-radius-lg);
    overflow: hidden;
}
.yf-feature-card--image .yf-feature-card__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}
.yf-feature-card--image .yf-feature-card__title {
    position: relative;
    z-index: 1;
    color: #fff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    margin-bottom: 16px;
}
.yf-feature-card--image .yf-btn {
    position: relative;
    z-index: 1;
}
.yf-feature-card--image .yf-btn--outline {
    background: rgba(255,255,255,0.9);
    color: #1E57BE;
    border: 1px solid #fff;
}
.yf-feature-card--image .yf-btn--outline:hover {
    background: #fff;
    color: #1E57BE;
}

/* ==================== Subpage Banner Title Styles ==================== */
.yf-page-hero {
    position: relative;
}
.yf-page-hero-content {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 800px;
}
.yf-page-hero-main {
    font-size: clamp(32px, 3.8vw, 100px);
    font-weight: 700;
    color: #101824;
    margin: 0 0 14px;
    line-height: 1.3;
    text-wrap: balance;
}
.yf-page-hero-sub {
    font-size: clamp(14px, 0.94vw, 26px);
    color: #333;
    margin: 0;
    letter-spacing: 1px;
    text-wrap: balance;
}

@media (max-width: 768px) {
    .yf-page-hero-content {
        left: 5%;
        right: 5%;
    }
    .yf-page-hero-main {
        font-size: 28px;
    }
    .yf-page-hero-sub {
        font-size: 14px;
    }
}

/* ==================== Subpage Banner Layout Optimization ==================== */
.yf-page-hero {
    display: flex !important;
    align-items: center !important;
    overflow: hidden;
}
.yf-page-hero-content {
    position: static !important;
    transform: none !important;
    width: 100%;
    padding-left: 10% !important;
    padding-right: 10% !important;
    background: linear-gradient(90deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
}
.yf-page-hero-main {
    font-size: clamp(32px, 3.8vw, 100px) !important;
    font-weight: 700 !important;
    color: #101824 !important;
    margin: 0 0 16px !important;
    line-height: 1.25 !important;
}
.yf-page-hero-sub {
    font-size: clamp(14px, 0.94vw, 26px) !important;
    color: #333 !important;
    margin: 0 !important;
    letter-spacing: 2px !important;
    font-weight: 500 !important;
}

@media (max-width: 768px) {
    .yf-page-hero-content {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
    .yf-page-hero-main {
        font-size: 28px !important;
    }
    .yf-page-hero-sub {
        font-size: 14px !important;
    }
}

/* ==================== Subpage Banner Layout Fix: Left-Aligned, 1/3 Width ==================== */
.yf-page-hero {
    display: block !important;
    position: relative !important;
}
.yf-page-hero-content {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 40% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 20px 30px 20px 8% !important;
    background: linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.6) 70%, transparent 100%) !important;
    box-sizing: border-box !important;
}
.yf-page-hero-main {
    text-align: left !important;
    margin: 0 0 16px !important;
}
.yf-page-hero-sub {
    text-align: left !important;
    margin: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .yf-page-hero-content {
        width: 100% !important;
        padding: 16px 5% !important;
        background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.5) 60%, transparent 100%) !important;
    }
    .yf-page-hero-main {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    .yf-page-hero-sub {
        font-size: 13px !important;
    }
}

/* ==================== Unified Banner Text Position + 10% Larger ==================== */
/* Homepage banner: position unchanged, font size +10% */
.yf-hero-title { font-size: 80px !important; font-size: clamp(35px, 4.18vw, 110px) !important; }
.yf-hero-subtitle { font-size: 20px !important; font-size: clamp(15px, 1.03vw, 28px) !important; }

/* Subpage banner: same position as homepage (padding-left:15vw, vertically centered), font size +10% */
.yf-page-hero-content {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    padding: 20px 60px 20px 15vw !important;
    background: linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.5) 60%, transparent 100%) !important;
    max-width: 60% !important;
    box-sizing: border-box !important;
}
.yf-page-hero-main {
    font-size: 80px !important;
    font-size: clamp(35px, 4.18vw, 110px) !important;
    line-height: 1.25 !important;
    margin: 0 0 16px !important;
}
.yf-page-hero-sub {
    font-size: clamp(15px, 1.03vw, 28px) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .yf-hero-title { font-size: 35px !important; }
    .yf-hero-subtitle { font-size: 15px !important; }
    .yf-page-hero-content {
        padding: 16px 5% !important;
        max-width: 100% !important;
    }
    .yf-page-hero-main { font-size: 28px !important; }
    .yf-page-hero-sub { font-size: 14px !important; }
}

/* ==================== Subpage Subtitle 100% Larger ==================== */
.yf-page-hero-sub {
    font-size: 40px !important;
    font-size: clamp(30px, 2.06vw, 56px) !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .yf-page-hero-sub {
        font-size: 28px !important;
    }
}

/* ==================== News/Contact Page Banner Text Vertical Centering Fix ==================== */
/* __content variant (News / Contact Us etc.) absolutely centered under display:block layout */
.yf-page-hero__content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 1;
}


/* ==================== Chrome 72 / Smart-TV (1920x1080) Compatibility Fallbacks ==================== */
/* Fallback-first: modern browsers never enter these blocks, rendering is unchanged. */

/* 1) clamp()-based CSS variables -> fixed px at the 1920 design baseline.
   var() substitution of an unparseable clamp() invalidates the WHOLE property at
   computed-value time (collapses to initial/0), so per-property fallbacks placed
   before var() cannot rescue them; the variable definitions themselves must be gated.
   Scoped to >=1025px because the <=1024px media queries already redefine these
   variables with plain px. */
@supports not (width: clamp(1px, 1vw, 1px)) {
    @media (min-width: 1025px) {
        :root {
            --yf-fs-base: 18px;
            --yf-fs-h1: 54px;
            --yf-fs-h2: 24px;
            --yf-fs-h3: 21px;
            --yf-fs-h4: 18px;
            --yf-fs-sm: 16px;
            --yf-fs-xs: 15px;
            --yf-fs-nav: 19px;
            --yf-fs-footer: 17px;
            --yf-fs-hero-title: 73px;
            --yf-fs-hero-sub: 18px;
            --yf-fs-hero-desc: 20px;
            --yf-fs-btn: 18px;
            --yf-fs-stat: 100px;
            --yf-fs-breadcrumb: 16px;
            --yf-fs-topbar: 15px;
            --yf-gap-section: 77px;
            --yf-gap-card: 29px;
            --yf-pad-card: 35px;
        }
    }
}

/* 2) flex containers' gap: Chrome 72 parses the property but ignores it in flex layout,
   so @supports/CSS.supports detection misfires. header.php measures real spacing and
   adds html.no-flex-gap; sibling margins below replicate each container's desktop gap.
   .yf-nav uses !important to beat the ".yf-nav > li" margin shorthand. */
html.no-flex-gap .yf-topbar-info > * + * { margin-left: 24px; }
html.no-flex-gap .yf-topbar-social > * + * { margin-left: 12px; }
html.no-flex-gap .yf-nav > * + * { margin-left: 10px !important; }
html.no-flex-gap .yf-nav-phone > * + * { margin-left: 8px; }
html.no-flex-gap .yf-mobile-toggle > * + * { margin-top: 5px; } /* column: hamburger bars */
html.no-flex-gap .yf-scenes__item > * + * { margin-left: 14px; }
html.no-flex-gap .yf-breadcrumb > * + * { margin-left: 8px; }
html.no-flex-gap .yf-news-list-item > * + * { margin-left: 20px; }
html.no-flex-gap .yf-footer-contact-item > * + * { margin-left: 8px; }
html.no-flex-gap .yf-scenes__head > * + * { margin-left: 12px; }
html.no-flex-gap .yf-product-shops > * + * { margin-left: 12px; }
html.no-flex-gap .yf-product-shops__btn > * + * { margin-left: 6px; }
html.no-flex-gap .yf-product-row__actions > * + * { margin-left: 12px; }
html.no-flex-gap .yf-breadcrumb-bar ul > * + * { margin-left: 8px; }

/* 3) Utility classes: inline flex+gap moved out of front-page.php / page-about.php */
.yf-flex-row--30 { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.yf-about-point { display: flex; gap: 24px; margin-bottom: 28px; padding-left: 24px; border-left: 3px solid #fa510f; }
html.no-flex-gap .yf-flex-row--30 > * + * { margin-left: 30px; }
html.no-flex-gap .yf-about-point > * + * { margin-left: 24px; }

/* 4) Additional utility classes: inline flex+gap moved out of single-yf_product.php / page-cases.php / inc/blocks.php */
.yf-flex-row--12 { display: flex; gap: 12px; }
.yf-flex-row--16 { display: flex; gap: 16px; }
.yf-flex-row--wrap { flex-wrap: wrap; justify-content: center; }
html.no-flex-gap .yf-flex-row--12 > * + * { margin-left: 12px; }
html.no-flex-gap .yf-flex-row--16 > * + * { margin-left: 16px; }
