/* =============================================
   XIANGKE MACHINERY — Deep Blue + Orange Theme
   Header: #011d3d → #023366 | Accent: #ff7a00 | Dark: #0a1628
   ============================================= */

/* ---------- Reset & Base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.65;color:#555;background:#fff;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
ul{list-style:none}
img{max-width:100%;height:auto;display:block}
button{cursor:pointer;font-family:inherit;border:none;background:none}
input,select,textarea{font-family:inherit;font-size:14px}
.container{max-width:1240px;margin:0 auto;padding:0 24px}
.section{padding:90px 0}
.section-gray{background:#f4f6f8}
.section-header{text-align:center;margin-bottom:56px}
.section-title{font-size:34px;font-weight:800;color:#1a1a1a;margin-bottom:12px;letter-spacing:-0.5px}
.section-sub{font-size:17px;color:#777;max-width:600px;margin:0 auto}
.text-left{text-align:left}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:14px;font-weight:600;padding:11px 26px;border-radius:4px;transition:all .2s;white-space:nowrap}
.btn-red{background:#ff7a00;color:#fff}
.btn-red:hover{background:#cc5a00;transform:translateY(-1px);box-shadow:0 4px 12px rgba(255,122,0,0.3)}
.btn-outline{border:1.5px solid rgba(255,255,255,0.5);color:#fff;background:transparent}
.btn-outline:hover{background:rgba(255,255,255,0.08);border-color:#fff}
.btn-outline-dark{border:1.5px solid #ccc;color:#555;background:transparent}
.btn-outline-dark:hover{border-color:#ff7a00;color:#ff7a00}
.btn-lg{padding:14px 36px;font-size:15px}
.btn-sm{padding:8px 18px;font-size:13px}
.btn-block{width:100%}
.btn-quote{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#ff7a00;padding:7px 16px;border:1.5px solid #ff7a00;border-radius:4px;transition:all .2s}
.btn-quote:hover{background:#ff7a00;color:#fff}
.btn-quote::before{content:'+';font-size:16px;font-weight:700}

/* ---------- Header ---------- */
.header{position:fixed;top:0;left:0;right:0;z-index:1000;background:linear-gradient(90deg,#011d3d 0%,#023366 100%);transition:box-shadow .3s,background .3s}
.header.scrolled{box-shadow:0 4px 20px rgba(0,0,0,0.25)}
.header-main{padding:0}
.header-inner{display:flex;align-items:center;height:88px;gap:40px}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo-text{display:flex;flex-direction:column;line-height:1.2}
.logo-name{font-size:28px;font-weight:900;color:#fff;letter-spacing:1px;display:flex;align-items:baseline;gap:8px}
.logo-sub{font-size:10px;color:rgba(255,255,255,0.7);text-transform:uppercase;letter-spacing:1.5px}
.nav{display:flex;align-items:center;flex:1;justify-content:center;gap:0}
.nav-link{font-size:14px;font-weight:500;color:rgba(255,255,255,0.85);padding:8px 18px;border-radius:4px;transition:all .2s;position:relative}
.nav-link:hover,.nav-link.active{color:#ff7a00}
.nav-link.active::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:24px;height:2px;background:#ff7a00;border-radius:2px}
.header-right{display:flex;align-items:center;gap:14px;flex-shrink:0}

/* Lang Switcher */
.lang-switcher{position:relative}
.lang-current{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:rgba(255,255,255,0.9);padding:6px 10px;border:1px solid rgba(255,255,255,0.25);border-radius:4px;background:rgba(255,255,255,0.08);transition:all .2s}
.lang-current:hover{border-color:#ff7a00;color:#fff}
.lang-flag{font-size:16px;line-height:1}
.lang-arrow{transition:transform .2s}
.lang-switcher:hover .lang-arrow,.lang-switcher.lang-open .lang-arrow{transform:rotate(180deg)}
.lang-menu{position:absolute;top:100%;right:0;margin-top:6px;background:#fff;border:1px solid #eee;border-radius:6px;box-shadow:0 8px 30px rgba(0,0,0,0.12);padding:6px 0;min-width:170px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:all .2s;z-index:10}
.lang-switcher:hover .lang-menu,.lang-switcher.lang-open .lang-menu{opacity:1;visibility:visible;transform:translateY(0)}
.lang-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:8px 16px;font-size:13px;color:#333;transition:all .15s;text-align:left}
.lang-menu button:hover{background:#fff4e6;color:#ff7a00}

/* Menu Toggle */
.menu-toggle{display:none;flex-direction:column;gap:5px;padding:8px}
.menu-toggle span{display:block;width:24px;height:2px;background:#fff;border-radius:2px;transition:all .3s}
.menu-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.menu-toggle.active span:nth-child(2){opacity:0}
.menu-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* ---------- Hero (Single Slide) ---------- */
.hero-single{position:relative;height:580px;overflow:hidden;margin-top:88px}
.hero-bg-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg, rgba(2,12,27,0.85) 0%, rgba(2,12,27,0.6) 40%, rgba(2,12,27,0.3) 70%, rgba(2,12,27,0.1) 100%)}
.hero-single-inner{position:relative;z-index:2;display:flex;align-items:center;height:100%}
.hero-content{max-width:600px;padding-top:20px}
.hero-title{font-size:52px;font-weight:900;color:#fff;line-height:1.12;margin-bottom:20px;letter-spacing:-1px;text-shadow:0 2px 20px rgba(0,0,0,0.5)}
.hero-desc{font-size:18px;color:rgba(255,255,255,0.9);line-height:1.7;margin-bottom:32px;max-width:520px;text-shadow:0 1px 10px rgba(0,0,0,0.5)}
.hero-btns{display:flex;gap:14px}

/* ---------- Solutions Top ---------- */
.solutions-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.solution-card{background:#fff;border:1px solid #eee;border-radius:8px;overflow:hidden;transition:all .3s}
.solution-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,0.08);border-color:#ff7a00}
.solution-img{padding:24px 24px 0;background:#f9fafb}
.solution-img img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:#fff}
.solution-info{padding:20px 24px 28px}
.solution-info h3{font-size:17px;font-weight:700;color:#1a1a1a;margin-bottom:8px}
.solution-info p{font-size:14px;color:#777;line-height:1.6;margin-bottom:14px}
.solution-link{font-size:13px;font-weight:600;color:#ff7a00}

/* ---------- Product Detail (Alternating) ---------- */
.pd-row{display:flex;align-items:center;gap:70px;margin-bottom:90px}
.pd-row:last-child{margin-bottom:0}
.pd-row-reverse{flex-direction:row-reverse}
.pd-visual{flex:1}
.pd-img{width:100%;max-width:500px;display:block;margin:0 auto;border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,0.1)}
.pd-content{flex:1}
.pd-tag{display:inline-block;font-size:12px;font-weight:700;color:#ff7a00;text-transform:uppercase;letter-spacing:1.5px;margin-bottom:12px;background:#fff4e6;padding:4px 12px;border-radius:4px}
.pd-title{font-size:30px;font-weight:800;color:#1a1a1a;margin-bottom:16px;line-height:1.25}
.pd-text{font-size:15px;color:#666;line-height:1.75;margin-bottom:20px}
.pd-specs{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:24px}
.pd-specs span{font-size:14px;color:#555}
.pd-specs strong{color:#1a1a1a}
.pd-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px;max-width:500px;margin-left:auto;margin-right:auto}
.pd-gallery img{width:100%;height:90px;object-fit:cover;border-radius:6px;cursor:pointer;transition:transform .2s,box-shadow .2s;border:2px solid transparent}
.pd-gallery img:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.12);border-color:#ff7a00}

/* ---------- Product Categories (No Tabs) ---------- */
.categories{margin-top:20px;padding-top:0}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.product-card{background:#fff;border:1px solid #eee;border-radius:8px;overflow:hidden;transition:all .3s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,0.08)}
.product-img{position:relative;padding:28px 28px 0;background:#f9fafb;overflow:hidden}
.product-img img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px;transition:transform .4s;background:#fff}
.product-card:hover .product-img img{transform:scale(1.05)}
.product-ribbon{position:absolute;top:12px;right:-28px;font-size:11px;font-weight:700;color:#fff;background:#ff7a00;padding:4px 32px;transform:rotate(45deg);text-transform:uppercase}
.product-info{padding:16px 20px 22px;text-align:center}
.product-code{font-size:12px;color:#aaa;display:block;margin-bottom:6px}
.product-info h4{font-size:14px;font-weight:600;color:#1a1a1a;margin-bottom:14px;line-height:1.4}

/* ---------- About ---------- */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.about-visual{position:relative}
.about-img-wrap{position:relative;border-radius:10px;overflow:hidden;background:linear-gradient(135deg,#0a1628,#1a2a44,#0f1f3d);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}
.about-img{width:100%;height:100%;object-fit:cover;display:block}
.about-play-btn{position:absolute;width:64px;height:64px;border-radius:50%;background:rgba(255,122,0,0.9);display:flex;align-items:center;justify-content:center;z-index:2;cursor:pointer;transition:all .3s;box-shadow:0 8px 30px rgba(255,122,0,0.4)}
.about-play-btn:hover{transform:scale(1.1);background:#ff7a00}
.about-play-btn svg{margin-left:4px}
.about-content .section-title{margin-bottom:18px}
.about-text{font-size:15px;color:#666;line-height:1.75;margin-bottom:16px}
.about-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:32px;padding-top:28px;border-top:1px solid #eee}
.stat-item{text-align:center}
.stat-num{display:block;font-size:32px;font-weight:900;color:#ff7a00;line-height:1}
.stat-label{display:block;font-size:12px;color:#999;margin-top:6px;text-transform:uppercase;letter-spacing:0.5px}

/* ---------- Commitment ---------- */
.commit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.commit-card{background:#fff;border:1px solid #eee;border-radius:10px;padding:32px 24px;text-align:center;transition:all .3s}
.commit-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,0.08);border-color:#ff7a00}
.commit-icon{width:64px;height:64px;margin:0 auto 20px;background:#fff4e6;border-radius:50%;display:flex;align-items:center;justify-content:center}
.commit-card h3{font-size:17px;font-weight:700;color:#1a1a1a;margin-bottom:10px}
.commit-card p{font-size:14px;color:#777;line-height:1.65}

/* ---------- FAQ ---------- */
.faq-list{max-width:800px;margin:0 auto}
.faq-item{border:1px solid #eee;border-radius:8px;margin-bottom:12px;background:#fff;overflow:hidden;transition:all .2s}
.faq-item:hover{border-color:#d5d5d5}
.faq-item.active{border-color:#ff7a00;box-shadow:0 4px 16px rgba(255,122,0,0.06)}
.faq-question{display:flex;justify-content:space-between;align-items:center;width:100%;padding:18px 24px;font-size:15px;font-weight:600;color:#1a1a1a;text-align:left;transition:all .2s}
.faq-item.active .faq-question{color:#ff7a00}
.faq-arrow{transition:transform .3s;flex-shrink:0}
.faq-item.active .faq-arrow{transform:rotate(180deg)}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .35s ease}
.faq-item.active .faq-answer{max-height:300px}
.faq-answer p{padding:0 24px 22px;font-size:14px;color:#666;line-height:1.7}

/* ---------- Inquiry ---------- */
.inquiry-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:60px;align-items:start}
.inquiry-info .section-title{margin-bottom:16px}
.inquiry-info > p{font-size:15px;color:#777;margin-bottom:28px}
.inquiry-contacts{display:flex;flex-direction:column;gap:14px}
.ic-item{display:flex;align-items:center;gap:12px;font-size:14px;color:#555}
.inquiry-form-wrap{background:#fff;border:1px solid #eee;border-radius:10px;padding:36px;box-shadow:0 4px 20px rgba(0,0,0,0.04)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.form-group{margin-bottom:14px}
.form-group:last-child{margin-bottom:0}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px 16px;font-size:14px;border:1.5px solid #e5e5e5;border-radius:6px;color:#333;background:#fafafa;transition:all .2s}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#ff7a00;background:#fff;box-shadow:0 0 0 3px rgba(255,122,0,0.08)}
.form-group textarea{resize:vertical;min-height:100px}
.form-group select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}
.form-note{font-size:12px;color:#aaa;text-align:center;margin-top:14px}
.form-success{text-align:center;padding:30px 0}
.success-icon{width:60px;height:60px;border-radius:50%;background:#ecfdf5;color:#059669;display:flex;align-items:center;justify-content:center;font-size:28px;margin:0 auto 20px}
.form-success h3{font-size:22px;color:#1a1a1a;margin-bottom:8px}
.form-success p{color:#777}

/* ---------- Footer ---------- */
.footer{background:#1a1a1a;color:#aaa;padding:70px 0 0}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:50px;padding-bottom:50px;border-bottom:1px solid #333}
.footer-logo{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.footer-logo span{font-size:20px;font-weight:800;color:#fff}
.footer-brand p{font-size:14px;line-height:1.7;margin-bottom:20px}
.footer-social{display:flex;gap:12px}
.footer-social a{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#333;color:#aaa;transition:all .2s}
.footer-social a:hover{background:#ff7a00;color:#fff}
.footer-col h5{font-size:13px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:1px;margin-bottom:20px}
.footer-col ul li{margin-bottom:10px}
.footer-col ul li a,.footer-col ul li span{font-size:14px;color:#999;transition:color .2s}
.footer-col ul li a:hover{color:#ff7a00}
.footer-bottom{padding:24px 0;text-align:center}
.footer-bottom p{font-size:13px;color:#666}

/* ---------- Quote Sidebar ---------- */
.quote-sidebar{position:fixed;inset:0;z-index:2000;pointer-events:none}
.quote-sidebar.open{pointer-events:auto}
.quote-sidebar-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.4);opacity:0;transition:opacity .3s}
.quote-sidebar.open .quote-sidebar-overlay{opacity:1}
.quote-sidebar-panel{position:absolute;right:0;top:0;bottom:0;width:380px;max-width:100%;background:#fff;transform:translateX(100%);transition:transform .35s ease;display:flex;flex-direction:column;box-shadow:-4px 0 30px rgba(0,0,0,0.12)}
.quote-sidebar.open .quote-sidebar-panel{transform:translateX(0)}
.quote-sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #eee}
.quote-sidebar-head h3{font-size:18px;color:#1a1a1a}
.quote-sidebar-close{font-size:28px;color:#999;padding:4px 8px;transition:color .2s}
.quote-sidebar-close:hover{color:#ff7a00}
.quote-list{padding:20px 24px;flex:1;overflow-y:auto}
.quote-list li{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f5f5f5;font-size:14px;color:#333}
.quote-list li button{color:#ccc;font-size:18px;transition:color .2s}
.quote-list li button:hover{color:#ff7a00}
.quote-empty{text-align:center;padding:40px 20px;color:#aaa;font-size:14px}
#quoteSubmitBtn{margin:0 24px 24px}

/* ---------- Floating Elements ---------- */
.float-wa{position:fixed;bottom:30px;left:30px;width:56px;height:56px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(37,211,102,0.4);z-index:1600;transition:all .3s;animation:waPulse 2s infinite}
.float-wa:hover{transform:scale(1.1)}
@keyframes waPulse{0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.4)}50%{box-shadow:0 4px 35px rgba(37,211,102,0.7)}}
.back-to-top{position:fixed;bottom:30px;right:30px;width:44px;height:44px;background:#fff;border:1px solid #ddd;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;color:#555;box-shadow:0 2px 12px rgba(0,0,0,0.08);z-index:1600;opacity:0;visibility:hidden;transform:translateY(10px);transition:all .3s}
.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{background:#ff7a00;color:#fff;border-color:#ff7a00}

/* ---------- Cookie Bar ---------- */
.cookie-bar{position:fixed;bottom:0;left:0;right:0;background:#1a1a1a;color:#ccc;z-index:1500;transform:translateY(100%);transition:transform .4s}
.cookie-bar.show{transform:translateY(0)}
.cookie-bar-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;gap:24px}
.cookie-bar p{font-size:13px;line-height:1.6}
.cookie-btns{display:flex;gap:10px;flex-shrink:0}

/* ---------- Reveal Animation ---------- */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .6s,transform .6s}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
    .solutions-grid{grid-template-columns:repeat(2,1fr)}
    .commit-grid{grid-template-columns:repeat(2,1fr)}
    .about-grid{grid-template-columns:1fr;gap:40px}
    .about-stats{grid-template-columns:repeat(2,1fr)}
    .inquiry-grid{grid-template-columns:1fr}
    .footer-grid{grid-template-columns:repeat(2,1fr)}
    .hero-title{font-size:36px}
    .hero-single{height:500px}
    .pd-row,.pd-row-reverse{flex-direction:column;gap:40px}
}
@media (max-width:768px){
    .header-inner{gap:16px}
    .nav{display:none;position:absolute;top:88px;left:0;right:0;background:#fff;flex-direction:column;padding:16px 0;box-shadow:0 8px 30px rgba(0,0,0,0.1);border-top:1px solid #eee;max-height:calc(100vh - 88px);overflow-y:auto}
    .nav.open{display:flex}
    .nav.open .nav-link{color:#333}
    .nav.open .nav-link.active{color:#ff7a00}
    .nav.open .nav-link.active::after{background:#ff7a00}
    .nav-link{padding:12px 24px}
    .menu-toggle{display:flex}
    .header-right .btn-red{display:none}
    .product-grid{grid-template-columns:repeat(2,1fr)}
    .solutions-grid{grid-template-columns:1fr}
    .commit-grid{grid-template-columns:1fr}
    .footer-grid{grid-template-columns:1fr;gap:36px}
    .hero-title{font-size:28px}
    .hero-single{height:auto;min-height:420px}
    .hero-single-inner{align-items:flex-start;padding-top:70px;padding-bottom:30px}
    .hero-content{padding-top:0}
    .hero-btns .btn-lg{padding:12px 24px;font-size:14px}
    .hero-overlay{background:linear-gradient(180deg, rgba(2,12,27,0.7) 0%, rgba(2,12,27,0.6) 100%)}
    .section-title{font-size:28px}
    .about-stats{grid-template-columns:repeat(2,1fr)}
    .cookie-bar-inner{flex-direction:column;text-align:center}
    .form-row{grid-template-columns:1fr}
    .pd-gallery{grid-template-columns:repeat(2,1fr);gap:8px}
    .pd-gallery img{height:70px}
}
@media (max-width:480px){
    .product-grid{grid-template-columns:1fr}
    .hero-single{min-height:380px}
    .hero-title{font-size:24px;margin-bottom:14px}
    .hero-desc{font-size:14px;margin-bottom:20px;line-height:1.6}
    .hero-btns{flex-direction:column;gap:10px}
    .hero-btns .btn-lg{padding:11px 20px;font-size:13px;width:100%}
    .hero-single-inner{padding-top:55px}
    .section{padding:60px 0}
    .section-title{font-size:24px}
    .about-stats{grid-template-columns:repeat(2,1fr)}
    .stat-num{font-size:26px}
    .quote-sidebar-panel{width:100%}
}
