/* ============================================
   Yuyuan Foods - Single Page Website Styles
   Color Scheme: Red / Black / White
   ============================================ */

/* ---- Base Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #c8102e;
    --red-dark: #a00d24;
    --red-soft: #fde8ec;
    --black: #1a1a1a;
    --gray-900: #222;
    --gray-600: #6b7280;
    --gray-400: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --bg-warm: #faf8f7;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --container: 1200px;
    --header-h: 108px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .25s;
}

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

ul {
    list-style: none;
}

/* ---- Container ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
}

.section-tight {
    padding: 60px 0;
}

.bg-warm {
    background: var(--bg-warm);
}

.bg-dark {
    background: var(--black);
}

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

/* ---- Section Heading ---- */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-head .label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
    position: relative;
    padding: 0 28px;
}

.section-head .label::before,
.section-head .label::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 2px;
    background: var(--red);
    opacity: .35;
}

.section-head .label::before {
    left: 0;
}

.section-head .label::after {
    right: 0;
}

.section-head h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.35;
}

.section-head p {
    margin-top: 16px;
    color: var(--gray-600);
    font-size: 15px;
}

.section-head.light h2,
.section-head.light .label {
    color: var(--white);
}

.section-head.light .label::before,
.section-head.light .label::after {
    background: var(--white);
}

.section-head.light p {
    color: rgba(255, 255, 255, .65);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all .3s;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 16, 46, .3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, .1);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--red);
}

/* ============================================
   Fixed Navigation Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Top Info Bar - 使用独特类名避免 CMS 冲突 */
.yy-topbar {
    background: var(--black) !important;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 13px !important;
    padding: 8px 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.yy-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.yy-topbar .info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yy-topbar .info-item i {
    color: var(--red);
    font-size: 12px;
}

.yy-topbar .right {
    display: flex;
    gap: 24px;
}

.yy-topbar a:hover {
    color: var(--white);
}

/* Main Navigation */
.nav-wrap {
    height: 85px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-wrap .logo { justify-self: start; }
.nav-wrap > nav { justify-self: center; }
.nav-wrap .nav-right { justify-self: end; }

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 8px;
    font-size: 17px;
    font-weight: 500;
    color: var(--gray-900);
    border-radius: 4px;
    transition: all .25s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--red);
}

/* Sub Menu (hover, no dropdown arrow) */
.has-sub {
    position: relative;
}

.has-sub > a::after {
    display: none;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 180px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all .25s;
}

.has-sub:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--gray-600);
    transition: all .2s;
}

.sub-menu li a:hover {
    color: var(--red);
    background: var(--red-soft);
    padding-left: 28px;
}

/* Nav CTA */
.nav-cta {
    margin-left: 16px;
}

.nav-cta .btn {
    padding: 10px 28px;
    font-size: 14px;
}

/* Mobile Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--black);
    transition: .3s;
    border-radius: 2px;
}

/* Language Switcher */
.lang-switch > a {
    font-size: 16px;
    display: flex;
    align-items: center;
}

.lang-menu {
    min-width: 120px;
}

/* ============================================
   Hero Carousel Section
   ============================================ */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0a0a;
    margin: 0;
    margin-top: var(--header-h);
    padding: 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-areas: "stack";
}

.carousel-slide {
    grid-area: stack;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Text content — positioned left, vertically centered */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 55%;
    max-width: 640px;
    padding: 0 max(5vw, 24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    z-index: 2;
    background: linear-gradient(90deg,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.65) 40%,
        rgba(0,0,0,0.30) 70%,
        rgba(0,0,0,0) 100%
    );
}

/* Red badge */
.slide-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 7px 22px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 22px;
    align-self: flex-start;
    text-transform: uppercase;
}

/* Headline */
.slide-content h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 14px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.slide-content h2 em {
    color: var(--red);
    font-style: normal;
}

/* Description */
.slide-desc {
    font-size: 19px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 24px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* Bullet list */
.slide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-list li {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.slide-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--red);
    border-color: var(--red);
}

.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all .3s;
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--red);
    border-color: var(--red);
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   About Us
   ============================================ */
.about-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-visual {
    flex: 0 0 45%;
    position: relative;
}

.about-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.about-visual .exp-badge {
    position: absolute;
    top: 24px;
    right: -20px;
    background: var(--red);
    color: var(--white);
    padding: 18px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-visual .exp-badge .num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.about-visual .exp-badge .txt {
    font-size: 12px;
    margin-top: 4px;
    opacity: .9;
}

.about-content {
    flex: 1;
}

.about-content .label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--red);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.35;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0 36px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--gray-900);
    font-weight: 500;
}

.about-list li i {
    color: var(--red);
    font-size: 16px;
}

/* ============================================
   Stats
   ============================================ */
.stats {
    background: var(--black);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stats-grid .item {
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.stats-grid .item:last-child {
    border-right: none;
}

.stats-grid .num {
    font-size: 44px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: 10px;
}

.stats-grid .num .unit {
    font-size: 22px;
    margin-left: 2px;
}

.stats-grid .title {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.stats-grid .desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

/* ============================================
   Products
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .35s;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card .img-box {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.product-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

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

.product-card .img-box .tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 500;
}

.product-card .body {
    padding: 17px;
}

.product-card .body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.product-card .body p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-card .body .more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
}

.product-card .body .more i {
    transition: transform .25s;
}

.product-card:hover .body .more i {
    transform: translateX(4px);
}

/* ============================================
   Factory Tour
   ============================================ */
.factory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.factory-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .35s;
}

.factory-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.factory-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.factory-grid .item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    transition: all .35s;
}

.factory-grid .item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.factory-grid .item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .5s;
}

.factory-grid .item:hover img {
    transform: scale(1.05);
}

.factory-grid .item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity .3s;
}

.factory-grid .item:hover .overlay {
    opacity: 1;
}

.factory-grid .item .overlay span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.factory-grid .item.span-2 {
    grid-column: span 2;
}

.factory-grid .item.span-2 img {
    height: 200px;
}

/* ============================================
   Cooperation Process
   ============================================ */
.process {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0e 100%);
    color: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
}

.process-grid::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: rgba(200, 16, 46, .25);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.process-step .step-num {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--red);
    position: relative;
    transition: all .3s;
}

.process-step:hover .step-num {
    background: var(--red);
    color: var(--white);
    transform: scale(1.05);
}

.process-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.process-step p {
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.7;
    padding: 0 8px;
}

/* ============================================
   Testimonials
   ============================================ */
.testi-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.testi-card {
    background: var(--white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
}

.testi-card .quote-icon {
    font-size: 48px;
    color: var(--red-soft);
    margin-bottom: 16px;
    line-height: 1;
}

.testi-card .stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 3px;
}

.testi-card .text {
    font-size: 17px;
    color: var(--gray-900);
    line-height: 1.9;
    margin-bottom: 28px;
    font-style: italic;
}

.testi-card .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testi-card .author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.testi-card .author .name {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.testi-card .author .role {
    font-size: 13px;
    color: var(--gray-600);
}

/* ============================================
   News
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    display: block;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
    border: 1px solid var(--gray-200);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card .img-box {
    height: 200px;
    overflow: hidden;
}

.news-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.news-card:hover .img-box img {
    transform: scale(1.05);
}

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

.news-card .meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.news-card .meta .cat {
    color: var(--red);
    font-weight: 600;
}

.news-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-card .link {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   Export Qualifications Carousel
   ============================================ */
.certs-carousel {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.certs-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: certsScroll 40s linear infinite;
}

.certs-track:hover {
    animation-play-state: paused;
}

@keyframes certsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cert-card {
    flex-shrink: 0;
    width: 170px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 28px 16px;
    transition: all .3s;
    box-shadow: var(--shadow-sm);
}

.cert-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
}

.cert-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 14px;
}

.cert-card span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

/* ============================================
   Contact Us
   ============================================ */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.contact-info-item .icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--red-soft);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-info-item .text .label {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-info-item .text .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

.contact-info-item .text .value a:hover {
    color: var(--red);
}

/* Form */
.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 28px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--gray-100);
    transition: all .25s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, .6);
    padding: 60px 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand {
    max-width: 360px;
}

.footer-brand .logo {
    margin-bottom: 18px;
}

.footer-brand .logo-img {
    height: 48px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .5);
}

.footer-links {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.footer-col h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 15px;
    color: rgba(255, 255, 255, .5);
    transition: color .25s;
}

.footer-col ul li a:hover {
    color: var(--red);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 12px;
}

.footer-contact li i {
    color: var(--red);
    font-size: 15px;
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, .35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, .5);
}

.footer-bottom a:hover {
    color: var(--red);
}

/* ============================================
   Back to Top
   ============================================ */
.back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(200, 16, 46, .35);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
}

/* ============================================
   Image Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    padding: 40px;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox .close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: var(--white);
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s;
}

.lightbox .close:hover {
    background: var(--red);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .slide-text h2 { font-size: 42px; }
    .slide-sub { font-size: 18px; }
    .slide-points li { font-size: 15px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .factory-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .process-grid::before { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid .item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 24px; }
}

@media (max-width: 768px) {
    :root { --header-h: 85px; }
    .section { padding: 60px 0; }
    .section-head h2 { font-size: 26px; }
    .section-head { margin-bottom: 40px; }

    /* Mobile Navigation */
    .nav-wrap { display: flex; justify-content: space-between; height: 85px; }
    .logo-img { height: 40px; }
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        
        gap: 0;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s;
    }
    .nav-menu.open { max-height: 600px; }
    .nav-menu > li > a { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); }
    .nav-menu > li:last-child > a { border-bottom: none; }
    .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0 0 0 24px;
        min-width: auto;
    }
    .nav-cta { display: none; }

    /* Hero Carousel — padding-top fills header gap with dark bg (no white on pull) */
    .hero-carousel {
        margin-top: 0;
        padding-top: var(--header-h);
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 13px;
        top: calc(50% + var(--header-h) / 2);
    }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }

    /* About */
    .about-wrap { flex-direction: column; }
    .about-visual { flex: none; width: 100%; }
    .about-visual .exp-badge { right: 12px; }
    .about-list { grid-template-columns: 1fr; }
/* .carousel-slide img {
        height: 25vh;
        display: block;
        width: 100%;
    } */
    /* Products */
    .products-grid { grid-template-columns: repeat(2, 1fr); }

    /* Factory */
    .factory-grid { grid-template-columns: 1fr; }

    /* Team */

    /* News */
    .news-grid { grid-template-columns: 1fr; }

    /* Process */
    .process-grid { grid-template-columns: 1fr; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr; }
    .stats-grid .item { border-bottom: none; }

    /* Contact */
    .contact-wrap { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }

    /* Footer */
    .footer-main { grid-template-columns: 1fr; gap: 32px; }

    /* Top bar */
    .yy-topbar { display: none !important; }
}

@media (max-width: 480px) {
    .carousel-arrow { width: 30px; height: 30px; font-size: 11px; }
    .carousel-prev { left: 6px; }
    .carousel-next { right: 6px; }
    .carousel-dots { bottom: 12px; }
    .carousel-dots .dot { width: 7px; height: 7px; }
    .carousel-dots .dot.active { width: 20px; }
    .section-head h2 { font-size: 22px; }
    .testi-card { padding: 32px 24px; }
    .testi-card .text { font-size: 15px; }
}

/* ============================================
   Nav Right Wrapper
   ============================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-right .nav-cta {
    margin-left: 0;
}

/* ============================================
   Header Language Switcher (standalone)
   Click globe to toggle (.open class via inline onclick)
   Desktop also supports hover
   ============================================ */
.header-lang {
    position: relative;
}

.header-lang .lang-btn {
    font-size: 20px;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px 8px;
}

.header-lang .lang-dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 130px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s;
    z-index: 100;
}

.header-lang .lang-dropdown li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--gray-600);
    transition: all .2s;
}

.header-lang .lang-dropdown li a:hover {
    color: var(--red);
    background: var(--red-soft);
}

/* Desktop: hover to show */
@media (min-width: 769px) {
    .header-lang:hover .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* All devices: click globe to toggle (.open class) */
.header-lang.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   News Detail Page
   ============================================ */
.news-detail {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 80px;
}

.news-detail-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.news-detail-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-detail-meta {
    font-size: 14px;
    color: var(--gray-400);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.news-detail-meta i {
    color: var(--red);
}

.news-detail-content {
    font-size: 16px;
    line-height: 2;
    color: var(--gray-900);
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.news-detail-content h2,
.news-detail-content h3 {
    margin: 28px 0 16px;
    color: var(--black);
}

.news-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.news-nav .prev,
.news-nav .next {
    max-width: 48%;
}

.news-nav .next {
    text-align: right;
}

.news-nav a,
.news-nav span {
    font-size: 15px;
    color: var(--gray-600);
}

.news-nav a:hover {
    color: var(--red);
}

/* News Detail responsive (separate block, does not modify existing mobile rules) */
@media (max-width: 768px) {
    .news-detail-header h1 { font-size: 22px; }
    .news-detail-content { font-size: 15px; }
    .news-nav { flex-direction: column; gap: 12px; }
    .news-nav .next { text-align: left; }
}

@media (max-width: 480px) {
    .news-detail-header h1 { font-size: 20px; }
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Image Lazy Load Fade-in
   ============================================ */
img.loaded {
    animation: fadeInImg .4s ease;
}

@keyframes fadeInImg {
    from { opacity: 0; }
    to { opacity: 1; }
}
