/* =========================================================
   Langxin — Shared Stylesheet (aligned to source structure)
   Sections: Header/Mega-Menu | Hero | Solutions | Showcase
   About | Cases | Partners | News | CTA | Footer | Widgets
   Languages: EN (LTR) / AR (RTL) / RU (LTR)
   ========================================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #222; line-height: 1.6; overflow-x: hidden; background: #fff;
}
body.rtl {
    font-family: 'Noto Naskh Arabic', 'Inter', sans-serif;
    direction: rtl; text-align: right;
}
body.rtl .lang-en, body.rtl .lang-ru { display: none !important; }
body.lang-ru-mode .lang-en, body.lang-ru-mode .lang-ar { display: none !important; }
body.lang-en-mode .lang-ru, body.lang-en-mode .lang-ar { display: none !important; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.08); transition: all .3s;
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.12); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 80px; padding: 0 30px; max-width: 1600px; margin: 0 auto;
    direction: ltr;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
    width: 48px; height: 48px; background: linear-gradient(135deg,#1a3a7a,#2d6bc0);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; font-weight: 800;
}
.logo-text { font-size: 22px; font-weight: 700; color: #1a3a7a; }
.logo-text span { color: #e63946; }

/* Nav with dropdowns */
.nav { display: flex; align-items: center; gap: 24px; }
.nav > a, .nav-dropdown > a {
    font-size: 14px; font-weight: 500; color: #333; position: relative; padding: 4px 0;
    transition: color .3s; white-space: nowrap; cursor: pointer;
}
.nav > a::after, .nav-dropdown > a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: #e63946; transition: width .3s;
}
body.rtl .nav > a::after, body.rtl .nav-dropdown > a::after { left: auto; right: 0; }
/* RTL header：翻转内部排列方向，logo 到右、语言切换器到左 */
body.rtl .header-inner { direction: rtl; }
body.rtl .nav > a, body.rtl .nav-dropdown > a { text-align: right; }
body.rtl .nav-dropdown > a i { margin-left: 0; margin-right: 4px; }
body.rtl .dropdown-menu ul li a { text-align: right; }
body.rtl .mega-col h4 { text-align: right; }
body.rtl .mega-col ul li a { text-align: right; }
/* 语言切换器下拉贴左（RTL 下右侧是 header 内边距） */
body.rtl .lang-dropdown { right: auto; left: 0; }
body.rtl .lang-option { flex-direction: row; text-align: right; }
/* 下拉箭头方向微调 */
body.rtl .nav-dropdown > a i.fa-chevron-down { transform: none; }
.nav > a:hover, .nav > a.active, .nav-dropdown > a:hover { color: #e63946; }
.nav > a:hover::after, .nav > a.active::after, .nav-dropdown > a:hover::after { width: 100%; }
.nav-dropdown > a i { font-size: 10px; margin-left: 4px; }

.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #fff; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.15);
    min-width: 220px; padding: 12px; display: none; z-index: 200;
    opacity: 0; transition: opacity .3s; 
}
.nav-dropdown:hover .dropdown-menu { display: block; opacity: 1; }
.dropdown-menu ul li a {
    display: block; padding: 8px 14px; font-size: 13px; color: #555; border-radius: 8px; transition: all .2s;
}
.dropdown-menu ul li a:hover { background: #f5f5f5; color: #1a3a7a; }

/* Mega menu (Products) */
.mega-menu {
    min-width: 520px; padding: 20px; display: none;
}
.nav-dropdown:hover .mega-menu { display: flex; gap: 20px; }
.mega-col { flex: 1; }
.mega-col h4 { font-size: 14px; font-weight: 700; color: #1a3a7a; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #e63946; }
.mega-col ul li a { font-size: 12px; padding: 6px 10px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-social { display: flex; gap: 8px; }
.header-social a {
    width: 34px; height: 34px; border-radius: 8px; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center; font-size: 14px; color: #555; transition: all .3s;
}
.header-social a:hover { background: #e63946; color: #fff; }

/* Language switcher */
.lang-switcher { position: relative; cursor: pointer; user-select: none; }
.lang-current {
    display: flex; align-items: center; gap: 6px; padding: 6px 14px;
    border: 1px solid #ddd; border-radius: 8px; font-size: 13px; font-weight: 500; transition: border-color .3s;
}
.lang-current:hover { border-color: #e63946; }
.lang-current i { font-size: 14px; color: #e63946; }
.lang-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.15);
    min-width: 170px; padding: 6px; display: none; z-index: 200; overflow: hidden;
}
.lang-switcher.active .lang-dropdown { display: block; }
.lang-option {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: 8px; font-size: 14px; transition: background .2s; cursor: pointer;
}
.lang-option:hover { background: #f5f5f5; }
.lang-option .flag { font-size: 20px; }
.lang-option.active { background: #eef4ff; color: #1a3a7a; font-weight: 600; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: #333; border-radius: 2px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Solutions sub-bar */
.solution-bar { background: #f8f9fc; border-top: 1px solid #eee; max-height: 0; overflow: hidden; transition: max-height .3s; }
.solution-bar.visible { max-height: 50px; }
.solution-bar ul { display: flex; gap: 20px; padding: 12px 0; flex-wrap: wrap; }
.solution-bar ul li a { font-size: 12px; color: #666; transition: color .2s; }
.solution-bar ul li a:hover { color: #e63946; }

/* ===== SUB-PAGE HERO ===== */
.page-hero {
    margin-top: 80px; padding: 70px 0 50px; text-align: center; color: #fff;
    background: linear-gradient(135deg,#1a3a7a 0%,#2d6bc0 100%);
}
.page-hero h1 { font-size: 40px; font-weight: 800; }
.page-hero p { font-size: 17px; opacity: .9; margin-top: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }
body.rtl .page-hero { direction: rtl; }
.breadcrumb { padding: 14px 0; font-size: 13px; color: #888; background: #f8f9fc; }
.breadcrumb a { color: #2d6bc0; }
.breadcrumb span { margin: 0 6px; }

/* ===== HOME HERO ===== */
.hero { margin-top: 80px; position: relative; overflow: hidden; }
.hero-slide {
    position: relative; height: 85vh; min-height: 500px; max-height: 800px;
    display: flex; align-items: center;
}
.hero-slide .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-watermark { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); font-size: 200px; color: rgba(255,255,255,.06); }
.hero-slide .overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(26,58,122,.85),rgba(0,0,0,.5)); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 0 30px; max-width: 600px; }
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-content p { font-size: 18px; line-height: 1.7; margin-bottom: 30px; opacity: .9; }
.hero-content .btn {
    display: inline-block; padding: 14px 36px; border-radius: 50px; font-size: 15px; font-weight: 600;
    background: #e63946; color: #fff; transition: all .3s; border: none; cursor: pointer;
}
.hero-content .btn:hover { background: #c1121f; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(230,57,70,.4); }
.hero-pagination { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 5; }
.hero-pagination .swiper-pagination-bullet { width: 12px; height: 12px; margin: 0 6px !important; background: rgba(255,255,255,.5); opacity: 1; }
.hero-pagination .swiper-pagination-bullet-active { background: #e63946; width: 32px; border-radius: 6px; }

/* ===== GENERIC SECTION ===== */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; position: relative; }
.section-title h2 { font-size: 36px; font-weight: 800; color: #1a3a7a; margin-bottom: 14px; }
.section-title h2 a { color: inherit; }
.section-title p { font-size: 16px; color: #666; max-width: 640px; margin: 0 auto; }
.section-title .bar { width: 60px; height: 4px; background: #e63946; margin: 14px auto; border-radius: 2px; }
.section-readmore { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: #e63946; transition: color .3s; }
.section-readmore:hover { color: #1a3a7a; }

/* ===== SOLUTIONS CAROUSEL ===== */
.solutions-section { background: #fff; padding: 70px 0; }
.solutionSwiper { padding: 0 40px; }
.solution-slide a { display: block; border-radius: 12px; overflow: hidden; background: #f8f9fc; transition: all .3s; }
.solution-slide a:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.solution-img {
    height: 200px; background: linear-gradient(135deg,#eef4ff,#d6e4ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; color: #1a3a7a; transition: all .4s; position: relative; overflow: hidden;
}
.solution-slide a:hover .solution-img { background: linear-gradient(135deg,#1a3a7a,#2d6bc0); color: #fff; }
.solution-text { padding: 16px; text-align: center; }
.solution-text p { font-size: 14px; font-weight: 600; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.solution-prev, .solution-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.15);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s;
    font-size: 18px; color: #1a3a7a;
}
.solution-prev { left: 0; } .solution-next { right: 0; }
.solution-prev:hover, .solution-next:hover { background: #e63946; color: #fff; }
.solution-prev::after { content: '\f060'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.solution-next::after { content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

/* ===== FILLING MACHINE SHOWCASE ===== */
.filling-showcase { background: #f8f9fc; }
.showcase-intro { text-align: center; margin-bottom: 40px; }
.showcase-intro p { font-size: 16px; color: #666; max-width: 700px; margin: 0 auto 16px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.showcase-item { border-radius: 16px; overflow: hidden; }
.showcase-product { position: relative; height: 380px; overflow: hidden; border-radius: 16px; cursor: pointer; transition: all .4s; }
.showcase-product:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(0,0,0,.15); }
.showcase-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.showcase-product:hover .showcase-bg { opacity: 1; }
.showcase-text-img {
    position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; background: linear-gradient(to top,rgba(0,0,0,.3) 0%,transparent 60%);
}
.showcase-product:hover .showcase-text-img { background: rgba(26,58,122,.85); }
.showcase-text { color: #fff; transition: transform .4s; }
.showcase-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.showcase-text h3 a { color: #fff; }
.showcase-text h3 a:hover { color: #ffd700; }
.showcase-text p { font-size: 13px; line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height .4s; opacity: 0; }
.showcase-product:hover .showcase-text p { max-height: 100px; opacity: 1; margin-bottom: 10px; }
.showcase-text a { font-size: 13px; font-weight: 600; color: #e63946; }
.showcase-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 80px; color: rgba(255,255,255,.3); transition: all .4s; }
.showcase-product:hover .showcase-icon { font-size: 60px; top: 30%; color: rgba(255,255,255,.15); }
.showcase-cta { text-align: center; padding: 40px 20px 0; }
.showcase-cta p { font-size: 16px; color: #555; }
.showcase-cta p a { color: #e63946; font-weight: 600; }

/* ===== ABOUT SECTION ===== */
.about-section { background: #fff; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
body.rtl .about-content { direction: rtl; }
.about-text h3 { font-size: 28px; font-weight: 700; color: #1a3a7a; margin-bottom: 20px; }
.about-text p { font-size: 16px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.about-text .btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-size: 14px; font-weight: 600; background: #1a3a7a; color: #fff; transition: all .3s; margin-right: 16px; }
.about-text .btn:hover { background: #e63946; }
.about-visual .about-img-placeholder {
    background: linear-gradient(135deg,#1a3a7a,#2d6bc0); border-radius: 20px; height: 400px;
    display: flex; align-items: center; justify-content: center; font-size: 100px; color: rgba(255,255,255,.2);
    position: relative; overflow: hidden;
}
.about-visual .about-img-placeholder::after { content: ''; position: absolute; width: 300px; height: 300px; background: rgba(255,255,255,.05); border-radius: 50%; top: -60px; right: -60px; }

/* ===== CUSTOMER CASES CAROUSEL ===== */
.cases-section { background: #f8f9fc; }
.caseSwiper { padding: 0 40px; }
.case-slide a { display: block; }
.case-slide-item {
    background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .3s; margin: 0 10px;
}
.case-slide-item:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.case-slide-img { height: 220px; background: linear-gradient(135deg,#eef4ff,#d6e4ff); display: flex; align-items: center; justify-content: center; font-size: 56px; color: #1a3a7a; }
.case-slide-text { padding: 24px; }
.case-slide-text h3 { font-size: 15px; font-weight: 700; color: #1a3a7a; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-slide-text p { font-size: 13px; color: #666; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.case-slide-text .read-more { color: #e63946; font-weight: 600; font-size: 13px; margin-top: 10px; display: inline-block; }
.case-prev, .case-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.15);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s;
    font-size: 18px; color: #1a3a7a;
}
.case-prev { left: 0; } .case-next { right: 0; }
.case-prev:hover, .case-next:hover { background: #e63946; color: #fff; }
.case-prev::after { content: '\f060'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.case-next::after { content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

/* ===== PARTNERS LOGO WALL ===== */
.partners-section { background: #fff; }
.partners-desc { text-align: center; font-size: 16px; color: #666; max-width: 700px; margin: 0 auto 40px; }
.partnerSwiper { padding: 0 20px 40px; }
.partner-slide { display: flex !important; gap: 20px; justify-content: center; }
.partner-logo {
    flex: 1; max-width: 200px; height: 100px; background: #f5f5f5; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 36px; color: #999; transition: all .3s;
}
.partner-logo:hover { background: #eef4ff; color: #1a3a7a; transform: scale(1.05); }
.partner-pagination { text-align: center; margin-top: 20px; }
.partner-pagination .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 4px !important; background: #ccc; opacity: 1; }
.partner-pagination .swiper-pagination-bullet-active { background: #e63946; }

/* ===== NEWS SECTION ===== */
.news-section { background: #f8f9fc; }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.news-card { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: all .3s; background: #fff; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.news-card .news-img { height: 220px; background: #eef4ff; display: flex; align-items: center; justify-content: center; font-size: 56px; color: #1a3a7a; transition: all .3s; }
.news-card:hover .news-img { background: #1a3a7a; color: #fff; }
.news-card .news-body { padding: 24px; }
.news-card .news-body p { font-size: 15px; font-weight: 600; color: #1a3a7a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== CTA BANNER ===== */
.cta-banner { background: linear-gradient(135deg,#1a3a7a,#2d6bc0); text-align: center; padding: 50px 20px; }
.cta-banner p { font-size: 18px; color: #fff; }
.cta-banner p a { color: #ffd700; font-weight: 600; text-decoration: underline; }

/* ===== OLD CTA (kept for sub-pages) ===== */
.cta { background: linear-gradient(135deg,#1a3a7a 0%,#2d6bc0 100%); text-align: center; padding: 80px 0; }
.cta h2 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.cta p { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 30px; }
.cta .btn { display: inline-block; padding: 16px 40px; border-radius: 50px; font-size: 16px; font-weight: 600; background: #e63946; color: #fff; transition: all .3s; }
.cta .btn:hover { background: #fff; color: #1a3a7a; transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer { background: #0f1d36; color: rgba(255,255,255,.7); }
.footer-nav { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 30px; }
body.rtl .footer-grid { direction: rtl; }
.footer-col h3 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; transition: color .3s; color: rgba(255,255,255,.6); }
.footer-col ul li a:hover { color: #e63946; }
.footer-social { display: flex; gap: 10px; margin: 12px 0 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .3s; font-size: 14px; }
.footer-social a:hover { background: #e63946; }
/* 微信二维码悬浮（span 非链接，hover 弹出二维码） */
.footer-wechat { position: relative; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .3s; font-size: 14px; cursor: pointer; }
.footer-wechat:hover { background: #07c160; }
.footer-wechat-qr { display: none; position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%); background: #fff; padding: 8px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.3); z-index: 10; width: 156px; }
.footer-wechat:hover .footer-wechat-qr { display: block; }
.footer-wechat-qr img { width: 140px; height: 140px; display: block; }
.footer-contact-form { background: rgba(255,255,255,.05); border-radius: 12px; padding: 16px; }
.footer-form input, .footer-form textarea { width: 100%; padding: 8px 12px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; font-size: 13px; background: rgba(255,255,255,.05); color: #fff; outline: none; font-family: inherit; }
.footer-form input::placeholder, .footer-form textarea::placeholder { color: rgba(255,255,255,.4); }
.footer-form input:focus, .footer-form textarea:focus { border-color: #e63946; }
.footer-form textarea { height: 60px; resize: vertical; }
.footer-form .btn-submit { width: 100%; padding: 10px; background: #e63946; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s; }
.footer-form .btn-submit:hover { background: #c1121f; }
.footer-copyright { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; }
.footer-copyright a { color: rgba(255,255,255,.5); }
.footer-copyright a:hover { color: #e63946; }

/* ===== BACK TO TOP ===== */
#backTop { position: fixed; right: 20px; bottom: 30px; z-index: 998; display: none; }
#backTop a { width: 44px; height: 44px; border-radius: 50%; background: #1a3a7a; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; transition: all .3s; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
#backTop a:hover { background: #e63946; transform: translateY(-4px); }

/* ===== FLOATING SIDEBAR ===== */
.float-sidebar { position: fixed; right: 20px; bottom: 90px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.float-btn { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #1a3a7a; transition: all .3s; cursor: pointer; position: relative; }
.float-btn:hover { background: #e63946; color: #fff; transform: scale(1.1); }
.float-btn.whatsapp { color: #25D366; }
.float-btn.whatsapp:hover { background: #25D366; color: #fff; }
.float-tip { position: absolute; right: 58px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #333; color: #fff; padding: 6px 14px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.float-btn:hover .float-tip { opacity: 1; }
.float-wechat-tip { right: 58px; top: auto; bottom: 0; transform: none; padding: 8px; border-radius: 12px; background: #fff; width: 176px; }
.float-wechat-tip img { width: 160px; height: 160px; display: block; }

/* ===== SOCIAL SHARE LEFT ===== */
.social-share-left { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 997; display: flex; flex-direction: column; gap: 2px; }
.social-share-left li a { width: 40px; height: 40px; background: #1a3a7a; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; transition: all .3s; }
.social-share-left li a:hover { background: #e63946; }

/* ===== EMAIL POPUP ===== */
.email-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1100; background: #fff; border-radius: 16px; padding: 40px; width: 90%; max-width: 480px; display: none; box-shadow: 0 20px 80px rgba(0,0,0,.2); }
.email-popup.active { display: block; }
.email-popup-close { position: absolute; top: 12px; right: 16px; font-size: 28px; cursor: pointer; color: #999; transition: color .2s; }
.email-popup-close:hover { color: #e63946; }
.email-popup-form p { font-size: 24px; font-weight: 700; color: #1a3a7a; margin-bottom: 20px; text-align: center; }
.email-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1050; display: none; }
.email-popup-overlay.active { display: block; }
.email-popup .form-group { margin-bottom: 16px; }
.email-popup .form-group label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 6px; color: #333; }
.email-popup .form-group input, .email-popup .form-group textarea { width: 100%; padding: 10px 14px; border: 2px solid #eee; border-radius: 8px; font-size: 14px; outline: none; transition: border-color .3s; font-family: inherit; }
.email-popup .form-group input:focus, .email-popup .form-group textarea:focus { border-color: #2d6bc0; }
.email-popup .form-group textarea { height: 80px; resize: vertical; }
.email-popup .btn-submit { width: 100%; padding: 12px; background: #e63946; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .3s; }
.email-popup .btn-submit:hover { background: #c1121f; }

/* ===== COOKIE PRIVACY ===== */
.cookie-box { position: fixed; bottom: 20px; left: 20px; z-index: 1001; width: 240px; background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 6px 40px rgba(0,0,0,.3); display: none; }
.cookie-box.active { display: block; }
.cookie-box p { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 10px; line-height: 1.5; }
.cookie-box p a { color: #e63946; }
.cookie-btn { background: #e63946; color: #fff; padding: 10px; border-radius: 4px; text-align: center; font-size: 14px; font-weight: 700; cursor: pointer; text-transform: uppercase; transition: background .3s; }
.cookie-btn:hover { background: #c1121f; }

/* ===== CONTACT PAGE ===== */
.contact { background: #f8f9fc; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
body.rtl .contact-wrap { direction: rtl; }
.contact-info h3 { font-size: 24px; font-weight: 700; color: #1a3a7a; margin-bottom: 20px; }
.contact-info p { font-size: 15px; color: #555; margin-bottom: 30px; }
.contact-info .item { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
body.rtl .contact-info .item { flex-direction: row-reverse; }
.contact-info .item i { width: 40px; height: 40px; background: #eef4ff; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #e63946; font-size: 16px; flex-shrink: 0; }
.contact-form { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 4px 30px rgba(0,0,0,.06); }
.form-group { margin-bottom: 20px; }
.form-group label { font-size: 14px; font-weight: 500; display: block; margin-bottom: 6px; color: #333; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #eee; border-radius: 10px; font-size: 14px; font-family: inherit; transition: border-color .3s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: #2d6bc0; }
.form-group textarea { height: 120px; resize: vertical; }
.contact-form .btn-submit { padding: 14px 40px; background: #e63946; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .3s; width: 100%; }
.contact-form .btn-submit:hover { background: #c1121f; }

/* ===== PRODUCT DETAIL (products.html) ===== */
.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 60px 0; border-bottom: 1px solid #eee; }
body.rtl .detail-block { direction: rtl; }
.detail-block:nth-child(even) .detail-img { order: 2; }
body.rtl .detail-block:nth-child(even) .detail-img { order: 0; }
.detail-img { height: 320px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 90px; color: rgba(255,255,255,.85); }
.detail-block .detail-text h3 { font-size: 24px; font-weight: 700; color: #1a3a7a; margin-bottom: 14px; }
.detail-block .detail-text p { font-size: 15px; color: #555; margin-bottom: 16px; }
.detail-block .detail-text ul { margin: 0; padding-left: 18px; }
body.rtl .detail-block .detail-text ul { padding-left: 0; padding-right: 18px; }
.detail-block .detail-text li { font-size: 14px; color: #555; margin-bottom: 8px; list-style: disc; }

/* ===== ABOUT PAGE extras ===== */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin-top: 20px; }
.stat-box { text-align: center; padding: 30px; background: #f8f9fc; border-radius: 16px; }
.stat-box .num { font-size: 44px; font-weight: 800; color: #e63946; }
.stat-box .lbl { font-size: 14px; color: #666; margin-top: 6px; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.value-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,.06); text-align: center; }
.value-card .ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #eef4ff; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #1a3a7a; }
.value-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: #1a3a7a; }
.value-card p { font-size: 14px; color: #666; }

/* ===== MACHINE CATEGORIES (sub-page) ===== */
.machine-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.machine-item { position: relative; overflow: hidden; height: 360px; background-size: cover; background-position: center; cursor: pointer; }
.machine-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.8) 0%,rgba(0,0,0,.2) 60%,transparent 100%); transition: opacity .4s; }
.machine-item:hover::before { opacity: .7; }
.machine-item .text { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; color: #fff; }
.machine-item .text h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.machine-item .text p { font-size: 14px; opacity: 0; max-height: 0; transition: all .4s; }
.machine-item:hover .text p { opacity: 1; max-height: 70px; }
.machine-item .text .arrow { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: #e63946; transition: transform .3s; }
.machine-item:hover .text .arrow { transform: translateX(6px); }
body.rtl .machine-item:hover .text .arrow { transform: translateX(-6px); }

/* ===== CASES PAGE extras ===== */
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.case-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: all .3s; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.case-card .img { height: 200px; background: #eef4ff; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #2d6bc0; }
.case-card .body { padding: 24px; }
.case-card .body h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #1a3a7a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .body p { font-size: 14px; color: #666; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .body .read-more { color: #e63946; font-weight: 600; font-size: 13px; margin-top: 12px; display: inline-block; }
.testimonial { background: linear-gradient(135deg,#1a3a7a,#2d6bc0); color: #fff; border-radius: 20px; padding: 50px; text-align: center; margin-top: 40px; }
.testimonial .quote { font-size: 22px; font-weight: 500; line-height: 1.7; margin-bottom: 20px; }
.testimonial .author { font-size: 15px; opacity: .85; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid #eee; border-radius: 12px; margin-bottom: 16px; overflow: hidden; background: #fff; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-size: 16px; font-weight: 600; color: #1a3a7a; cursor: pointer; }
.faq-q i { transition: transform .3s; color: #e63946; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; padding: 0 24px; font-size: 15px; color: #555; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 24px; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: all .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; } .delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; } .delay-4 { transition-delay: .4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .showcase-grid { grid-template-columns: repeat(2,1fr); }
    .machine-grid { grid-template-columns: repeat(2,1fr); }
    .case-grid, .news-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mega-menu { min-width: 400px; }
    .social-share-left { display: none; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.mobile-open { display: flex; flex-direction: column; position: fixed; top: 80px; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: 0 8px 40px rgba(0,0,0,.1); gap: 16px; align-items: flex-start; max-height: 80vh; overflow-y: auto; }
    body.rtl .nav.mobile-open { align-items: flex-end; }
    .nav.mobile-open .dropdown-menu, .nav.mobile-open .mega-menu { position: static; transform: none; display: block; box-shadow: none; padding: 8px 0; min-width: auto; }
    .nav.mobile-open .nav-dropdown:hover .dropdown-menu,
    .nav.mobile-open .nav-dropdown:hover .mega-menu { display: block; }
    .hamburger { display: flex; }
    .header-social { display: none; }
    .solution-bar { display: none; }
    .hero-content h1 { font-size: 36px; }
    .hero-slide { height: 60vh; min-height: 400px; }
    .about-content, .contact-wrap, .detail-block { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; }
    .machine-grid { grid-template-columns: 1fr; }
    .case-grid, .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-row, .value-grid { grid-template-columns: 1fr; }
    section { padding: 50px 0; }
    .section-title h2 { font-size: 28px; }
    .page-hero h1 { font-size: 30px; }
    .social-share-left { display: none; }
    .cookie-box { width: calc(100% - 40px); }
}
@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .partner-slide { flex-direction: column; }
}
