/* ===== WT Machinery Theme Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Arial", "Helvetica", sans-serif; color: #222; background: #fff; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Search Overlay ===== */
.qing-search-overlay { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.1); z-index: 999; overflow: hidden; max-height: 0; transition: max-height .3s ease, padding .3s ease; padding: 0 24px; }
.qing-search-overlay.active { max-height: 120px; padding: 20px 24px; }
.qing-search-bar { max-width: 700px; margin: 0 auto; }
.qing-search-form { display: flex; align-items: center; border: 1.5px solid #e0e0e0; border-radius: 30px; padding: 4px 6px 4px 20px; background: #f9f9f9; }
.qing-search-input { flex: 1; border: none; background: transparent; font-size: 15px; padding: 10px 0; outline: none; color: #333; }
.qing-search-input::placeholder { color: #999; }
.qing-search-submit { border: none; background: transparent; cursor: pointer; padding: 8px; color: #666; display: flex; align-items: center; }
.qing-search-submit:hover { color: #333; }

/* ===== Auth Modal ===== */
.qing-auth-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.5); z-index:9999; align-items:center; justify-content:center; }
.qing-auth-overlay.active { display:flex; }
.qing-auth-modal { background:#fff; border-radius:12px; padding:40px 36px; width:100%; max-width:420px; position:relative; box-shadow:0 20px 60px rgba(0,0,0,.2); animation:authFadeIn .25s ease; }
@keyframes authFadeIn { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
.qing-auth-close { position:absolute; top:16px; right:16px; border:none; background:none; font-size:28px; color:#999; cursor:pointer; line-height:1; }
.qing-auth-close:hover { color:#333; }
.qing-auth-tabs { display:flex; gap:0; margin-bottom:28px; border-bottom:2px solid #eee; }
.qing-auth-tab { flex:1; text-align:center; padding:12px 0; font-size:15px; font-weight:600; color:#999; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; }
.qing-auth-tab.active { color:#c52227; border-bottom-color:#c52227; }
.qing-auth-panel { display:none; }
.qing-auth-panel.active { display:block; }
.qing-auth-field { margin-bottom:18px; }
.qing-auth-field label { display:block; font-size:13px; font-weight:600; color:#333; margin-bottom:6px; }
.qing-auth-field input { width:100%; padding:11px 14px; border:1.5px solid #e0e0e0; border-radius:8px; font-size:14px; outline:none; transition:border-color .2s; box-sizing:border-box; }
.qing-auth-field input:focus { border-color:#c52227; }
.qing-auth-remember { display:flex; align-items:center; justify-content:space-between; font-size:13px; color:#666; margin-bottom:20px; }
.qing-auth-remember a { color:#c52227; text-decoration:none; }
.qing-auth-btn { width:100%; padding:12px; border:none; border-radius:8px; background:#c52227; color:#fff; font-size:15px; font-weight:600; cursor:pointer; transition:background .2s; }
.qing-auth-btn:hover { background:#9b1b1f; }
.qing-auth-msg { margin-top:12px; font-size:13px; text-align:center; }
.qing-auth-msg.success { color:#16a34a; }
.qing-auth-msg.error { color:#dc2626; }

/* ===== Cart Drawer ===== */
.qing-cart-drawer-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.4);z-index:9998}
.qing-cart-drawer-overlay.active{display:block}
.qing-cart-drawer{position:fixed;top:0;right:-400px;width:380px;max-width:90vw;height:100%;background:#fff;z-index:9999;box-shadow:-4px 0 20px rgba(0,0,0,.15);display:flex;flex-direction:column;transition:right .3s ease}
.qing-cart-drawer.active{right:0}
.qing-cart-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #eee}
.qing-cart-drawer-header h3{margin:0;font-size:18px;font-weight:700;color:#111}
.qing-cart-drawer-close{font-size:28px;color:#999;cursor:pointer;line-height:1}
.qing-cart-drawer-close:hover{color:#333}
.qing-cart-drawer-body{flex:1;overflow-y:auto;padding:16px 24px}
.qing-cart-drawer-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #f0f0f0;align-items:center}
.qing-cart-drawer-item:last-child{border-bottom:none}
.qing-cart-drawer-thumb{width:56px;height:56px;object-fit:contain;border-radius:4px;border:1px solid #eee;flex-shrink:0}
.qing-cart-drawer-info{flex:1;min-width:0}
.qing-cart-drawer-title{font-size:13px;font-weight:600;color:#111;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qing-cart-drawer-qty{font-size:12px;color:#666;margin-top:3px}
.qing-cart-drawer-qty-wrap{display:flex;align-items:center;gap:0;margin-top:6px}
.qing-cart-drawer-qty-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:1px solid #ddd;background:#fff;cursor:pointer;font-size:14px;color:#333;border-radius:3px}
.qing-cart-drawer-qty-btn:hover{background:#f5f5f5}
.qing-cart-drawer-qty-input{width:40px;height:24px;text-align:center;border:1px solid #ddd;border-left:none;border-right:none;font-size:12px;-moz-appearance:textfield}
.qing-cart-drawer-qty-input::-webkit-outer-spin-button,.qing-cart-drawer-qty-input::-webkit-inner-spin-button{-webkit-appearance:none}
.qing-cart-drawer-remove{color:#dc2626;font-size:18px;cursor:pointer;font-weight:700;flex-shrink:0}
.qing-cart-drawer-remove:hover{color:#991b1b}
.qing-cart-drawer-footer{padding:16px 24px;border-top:1px solid #eee}
.qing-cart-drawer-btn{display:block;width:100%;padding:12px;text-align:center;background:#c52227;color:#fff;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;transition:background .2s}
.qing-cart-drawer-btn:hover{background:#9b1b1f;color:#fff}

/* ===== Filter Bar ===== */
.filter-bar { width: 100%; background: #f5f6f8; border-bottom: 1px solid #e5e7eb; z-index: 50; overflow: visible; }
.filter-bar-inner { max-width: 1600px; margin: 0 auto; padding: 6px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow: visible; }
.filter-left { display: flex; align-items: center; gap: 10px; }
.filter-select-wrap { position: relative; width: 180px; flex-shrink: 0; }
.filter-right { display: flex; align-items: center; gap: 8px; }
.lang-select-wrap { position: relative; }
.lang-select-btn { display: flex; align-items: center; gap: 5px; padding: 5px 8px; background: none; border: none; font-size: 12px; color: #555; cursor: pointer; user-select: none; }
.lang-select-btn .globe-icon { width: 14px; height: 14px; flex-shrink: 0; color: #c52227; }
.lang-select-btn:hover { color: #c52227; }
.lang-select-btn .arrow-icon { width: 18px; height: 18px; flex-shrink: 0; }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 4px); right: 0; min-width: 120px; background: #fff; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.12); z-index: 200; padding: 4px 0; }
.lang-dropdown.open { display: block; }
.lang-dropdown li { list-style: none; padding: 6px 14px; font-size: 12px; color: #333; cursor: pointer; transition: background .15s; }
.lang-dropdown li:hover { background: #f5f5f5; }
.lang-dropdown li.selected { background: #fef2f2; color: #c52227; font-weight: 600; }
.filter-select-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 12px; background: #fff; border: 1px solid #ddd; border-radius: 999px; font-size: 12px; color: #555; cursor: pointer; user-select: none; transition: border-color .2s; }
.filter-select-btn:hover { border-color: #bbb; }
.filter-select-btn.active { border-color: #c52227; }
.filter-select-btn .arrow-icon { width: 18px; height: 18px; flex-shrink: 0; }
.filter-select-btn .btn-label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-select-btn.disabled { opacity: .5; pointer-events: none; background: #f7f7f7; }
.filter-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; width: 100%; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid #ddd; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12); z-index: 200; padding: 6px 0; }
.filter-dropdown.open { display: block; }
.filter-dropdown li { list-style: none; padding: 6px 14px; font-size: 12px; color: #333; cursor: pointer; transition: background .15s; }
.filter-dropdown li:hover { background: #f5f5f5; }
.filter-dropdown li.selected { background: #fef2f2; color: #c52227; font-weight: 600; }
.filter-search-input-wrap { padding: 8px 10px !important; position: sticky; top: 0; background: #fff; z-index: 1; }
.filter-search-input-wrap:hover { background: #fff !important; }
.filter-search-input { width: 100%; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 13px; outline: none; box-sizing: border-box; }
.filter-search-input:focus { border-color: #c52227; }
.filter-search-btn { padding: 5px 22px; background: #c52227; color: #fff; border: none; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s; }
.filter-search-btn:hover { background: #9b1b1f; }

/* ===== Header ===== */
.header { width: 100%; border-bottom: 1px solid #e5e7eb; background: #fff; position: sticky; top: 0; z-index: 100; transition: box-shadow .3s ease; }
.header.scrolled { box-shadow: 0 4px 18px rgba(15, 23, 42, .08); }
.header-top { max-width: 1600px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-wrap .header-logo-img { max-height: 50px; width: auto; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 28px; font-weight: 800; letter-spacing: 1px; text-decoration: none; }
.logo .wt { color: #0b1a3a; }
.logo .machinery { color: #c52227; font-weight: 700; }
.logo-sub { margin-top: 6px; font-size: 13px; color: #6b7280; font-weight: 400; padding-left: 2px; }
.info-list { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.info-item { display: flex; align-items: center; gap: 10px; position: relative; padding-right: 28px; }
.info-item:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 36px; background: #e5e7eb; }
.info-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0b1a3a; flex-shrink: 0; }
.info-icon svg { width: 18px; height: 18px; }
.info-text { display: flex; flex-direction: column; line-height: 1.25; }
.info-text .main { font-size: 15px; font-weight: 600; color: #1f2937; }
.info-text .sub { font-size: 11px; color: #9ca3af; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.quote-btn { background: #c52227; color: #fff; border: none; padding: 12px 26px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; }
.quote-btn:hover { background: #9b1b1f; }

/* ===== Nav ===== */
.nav { border-top: 1px solid #f1f1f1; position: relative; }
.nav-inner { max-width: 1600px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-menu { display: flex; align-items: center; gap: 48px; flex: 1; }
.nav-icons { display: flex; align-items: center; gap: 6px; }
.nav-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 2px; border: none; background: transparent; color: #4b5563; border-radius: 50%; cursor: pointer; text-decoration: none; transition: background .2s ease, color .2s ease; padding: 8px; }
.nav-icon-btn svg { width: 20px; height: 20px; display: block; }
.nav-icon-btn:hover { background: #fff1f1; color: #c52227; }
.nav-icon-btn .badge { position: static; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 999px; background: #c52227; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; margin-left: 2px; }
.nav-item { position: relative; }
.nav-link { position: relative; display: inline-flex; align-items: center; padding: 20px 0; font-size: 14px; font-weight: 600; letter-spacing: 1px; color: #4b5563; text-decoration: none; text-transform: uppercase; transition: color .25s ease; cursor: pointer; }
.nav-link::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 2px; background: #c52227; transition: left .25s ease, right .25s ease; }
.nav-link:hover { color: #c52227; }
.nav-link:hover::after, .nav-item:hover > .nav-link::after { left: 0; right: 0; }
.nav-link.active { color: #c52227; }
.nav-link.active::after { left: 0; right: 0; }
.nav-link .caret { display: inline-flex; margin-left: 6px; width: 12px; height: 12px; color: #6b7280; transition: transform .25s ease, color .25s ease; }
.nav-link .caret svg { width: 100%; height: 100%; display: block; }
.nav-item:hover .nav-link .caret { transform: rotate(180deg); color: #c52227; }
.submenu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 220px; background: #fff; border-radius: 8px; box-shadow: 0 12px 32px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .06); padding: 8px 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 50; }
.nav-item:hover > .submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.submenu a { display: block; padding: 10px 20px; font-size: 13px; font-weight: 500; letter-spacing: .5px; color: #4b5563; text-decoration: none; transition: background .2s, color .2s, padding-left .25s; }
.submenu a:hover { background: #fff1f1; color: #c52227; padding-left: 26px; }


/* ===== Banner Carousel ===== */
.banner { position: relative; width: 100%; overflow: hidden; background: #0b1a3a; user-select: none; cursor: grab; }
.banner.dragging { cursor: grabbing; }
.banner-track { display: flex; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.45, .05, .15, .95); will-change: transform; }
.banner-track.no-transition { transition: none; }
.banner-slide { flex: 0 0 100%; width: 100%; position: relative; }
.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1900 / 726; object-fit: cover; pointer-events: none; }
.banner-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; transition: background .25s ease; opacity: 0; }
.banner:hover .banner-btn { opacity: 1; }
.banner-btn:hover { background: rgba(11, 58, 140, .9); }
.banner-btn.prev { left: 24px; }
.banner-btn.next { right: 24px; }
.banner-btn svg { width: 22px; height: 22px; }
.banner-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.banner-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .55); cursor: pointer; padding: 0; transition: width .3s ease, background .3s ease; }
.banner-dots button.active { width: 28px; border-radius: 999px; background: #fff; }

/* ===== Feature Sections ===== */
.feature { position: relative; width: 100%; overflow: hidden; background: #0b1a3a; }
.feature-bg { display: block; width: 100%; height: auto; aspect-ratio: 1900 / 726; object-fit: cover; transition: transform 1.2s ease; }
.feature:hover .feature-bg { transform: scale(1.05); }
.feature-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.15) 100%); pointer-events: none; }
.feature-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.feature-inner { max-width: 720px; }
.feature-title { font-size: 48px; font-weight: 800; color: #0b1a3a; margin-bottom: 14px; letter-spacing: 1px; opacity: 0; transform: translateY(60px); transition: opacity 1s ease .1s, transform 1s ease .1s; }
.feature-subtitle { font-size: 22px; font-weight: 500; color: #1f2937; margin-bottom: 28px; opacity: 0; transform: translateY(60px); transition: opacity 1s ease .3s, transform 1s ease .3s; }
.feature-btn { display: inline-block; padding: 12px 32px; border: 2px solid #c52227; border-radius: 999px; color: #c52227; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; background: transparent; cursor: pointer; opacity: 0; transform: translateY(60px); transition: opacity 1s ease .5s, transform 1s ease .5s, background .25s ease, color .25s ease; }
.feature-btn:hover { background: #c52227; color: #fff; }
.feature.in-view .feature-title,
.feature.in-view .feature-subtitle,
.feature.in-view .feature-btn { opacity: 1; transform: translateY(0); }

/* ===== Inner Banner ===== */
.inner-banner { position: relative; max-width: 1600px; width: 100%; margin: 40px auto; padding: 0 24px; overflow: hidden; }
.inner-banner-viewport { position: relative; width: 100%; overflow: hidden; background: #0b1a3a; user-select: none; cursor: grab; }
.inner-banner-track { display: flex; width: 100%; transition: transform .7s cubic-bezier(.45, .05, .15, .95); will-change: transform; }
.inner-banner-track.no-transition { transition: none; }
.inner-banner-slide { flex: 0 0 100%; width: 100%; }
.inner-banner-slide img { display: block; width: 100%; height: auto; object-fit: cover; pointer-events: none; }

/* ===== Product Loop ===== */
.product-loop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1600px; width: 100%; margin: 40px auto; padding: 0 24px; }
.product-card { position: relative; aspect-ratio: 7 / 6; overflow: hidden; cursor: pointer; display: block; text-decoration: none; opacity: 0; transform: translateY(60px); transition: opacity .9s ease, transform .9s ease, box-shadow .3s ease; }
.product-card:hover { box-shadow: 0 16px 40px rgba(15, 23, 42, .18); }
.product-card.in-view { opacity: 1; transform: translateY(0); }
.product-card .pimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.product-card:hover .pimg { transform: scale(1.08); }
.product-card .p-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); transition: background .3s ease; pointer-events: none; }
.product-card:hover .p-overlay { background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.7) 100%); }
.product-card .p-content { position: absolute; left: 0; right: 0; bottom: 40px; padding: 0 32px; color: #fff; text-align: center; z-index: 2; transition: transform .4s ease; }
.product-card:hover .p-content { transform: translateY(-6px); }
.product-card .p-title { font-size: 36px; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.product-card .p-subtitle { font-size: 16px; font-weight: 400; opacity: .95; text-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* ===== News Section ===== */
.news { max-width: 1600px; width: 100%; margin: 60px auto; padding: 0 24px; }
.news-header { margin-bottom: 28px; }
.news-title { font-size: 48px; font-weight: 800; color: #0b1a3a; letter-spacing: 1px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: #fff; text-decoration: none; color: inherit; border: 1px solid #e5e7eb; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.news-card:hover { box-shadow: 0 14px 32px rgba(15, 23, 42, .12); transform: translateY(-4px); }
.news-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #f3f4f6; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.news-card-title { font-size: 16px; font-weight: 700; color: #0b1a3a; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s ease; }
.news-card:hover .news-card-title { color: #c52227; }
.news-date { font-size: 12px; font-weight: 500; color: #9ca3af; letter-spacing: .5px; margin-bottom: 12px; text-transform: uppercase; }
.news-desc { font-size: 13px; color: #4b5563; line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-readmore { align-self: flex-start; padding: 8px 20px; border: 1.5px solid #c52227; color: #c52227; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border-radius: 999px; transition: background .25s ease, color .25s ease; }
.news-readmore:hover { background: #c52227; color: #fff; }

/* ===== Exhibition Carousel ===== */
.exhibition { max-width: 1600px; width: 100%; margin: 60px auto; padding: 0 24px; }
.exhibition-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.exhibition-title { font-size: 48px; font-weight: 800; color: #0b1a3a; letter-spacing: 1px; }
.exhibition-controls { display: flex; gap: 10px; }
.exh-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #d1d5db; background: #fff; color: #4b5563; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.exh-btn svg { width: 18px; height: 18px; }
.exh-btn:hover { background: #c52227; color: #fff; border-color: #c52227; }
.exh-viewport { overflow: hidden; user-select: none; }
.exh-track { display: flex; gap: 24px; transition: transform .6s cubic-bezier(.45, .05, .15, .95); will-change: transform; }
.exh-card { flex: 0 0 calc((100% - 24px * 2.5) / 3.5); display: flex; flex-direction: column; background: #fff; text-decoration: none; color: inherit; border: 1px solid #e5e7eb; overflow: hidden; transition: box-shadow .3s ease, transform .3s ease; }
.exh-card:hover { box-shadow: 0 14px 32px rgba(15, 23, 42, .12); transform: translateY(-4px); }
.exh-thumb { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f4f6; }
.exh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.exh-card:hover .exh-thumb img { transform: scale(1.06); }
.exh-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.exh-card-title { font-size: 16px; font-weight: 700; color: #0b1a3a; line-height: 1.4; margin-bottom: 10px; transition: color .25s ease; }
.exh-card:hover .exh-card-title { color: #c52227; }
.exh-date { font-size: 12px; font-weight: 500; color: #9ca3af; margin-bottom: 12px; }
.exh-desc { font-size: 13px; color: #4b5563; line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.exh-readmore { align-self: flex-start; padding: 8px 20px; border: 1.5px solid #c52227; color: #c52227; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border-radius: 999px; transition: background .25s ease, color .25s ease; }
.exh-readmore:hover { background: #c52227; color: #fff; }

/* ===== Footer ===== */
.footer { background: #0b0d12; color: #c5c8d0; padding: 70px 0 0; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 50px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 20px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a, .footer-col p { font-size: 13px; color: #9aa0ad; text-decoration: none; line-height: 1.65; transition: color .2s ease; display: inline-block; }
.footer-col ul li a:hover { color: #fff; }
.footer-disclaimer { border-top: 1px solid #1f2330; padding: 30px 0; font-size: 12px; color: #6b7180; line-height: 1.8; }
.footer-bottom { border-top: 1px solid #1f2330; padding: 22px 0; font-size: 12px; color: #6b7180; letter-spacing: .5px; }
.footer-bottom strong { color: #c5c8d0; font-weight: 700; margin-right: 6px; }

/* ===== Collection / Archive ===== */
.collection-hero { position: relative; width: 100%; min-height: 360px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; background: #0b1a3a; }
.collection-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.collection-hero-content { position: relative; z-index: 1; max-width: 1600px; width: 100%; padding: 0 24px; color: #fff; }
.collection-hero-content h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; }
.collection-main { max-width: 1600px; margin: 0 auto; padding: 42px 24px 70px; }
.collection-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.sidebar { border-right: 1px solid #eee; padding-right: 20px; }
.sort-bar { border-bottom: 1px solid #d9d9d9; padding-bottom: 18px; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sort-bar strong { margin-right: 4px; }
.sort-btn { border: none; background: transparent; cursor: pointer; color: #666; font-size: 12px; }
.sort-btn.active { color: #e1241a; font-weight: 700; }
.filter-group { border-bottom: 1px solid #e5e5e5; padding: 0 0 18px; margin-bottom: 18px; }
.filter-head { width: 100%; border: none; background: transparent; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 15px; font-weight: 700; color: #222; padding: 0 0 12px; }
.filter-head .plus { color: #c52227; font-size: 18px; }
.filter-list { display: grid; gap: 9px; }
.filter-list a { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #444; text-decoration: none; }
.filter-list a::before { content: ""; width: 12px; height: 12px; border: 1px solid #bdbdbd; border-radius: 2px; background: #fff; flex-shrink: 0; transition: all .2s; }
.filter-list a.active { color: #c52227; font-weight: 600; }
.filter-list a.active::before { background: #c52227; border-color: #c52227; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-4.5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; }
.more-link { margin-top: 10px; border: none; background: transparent; color: #e1241a; font-size: 12px; cursor: pointer; }
.breadcrumb { font-size: 12px; color: #8a8a8a; margin-bottom: 8px; }
.breadcrumb a { color: #8a8a8a; text-decoration: none; }
.breadcrumb a:hover { color: #c52227; }
.breadcrumb span { color: #e1241a; }
.collection-title { font-size: 24px; color: #1f2937; margin-bottom: 6px; line-height: 1.25; }
.collection-desc { font-size: 13px; color: #4b5563; line-height: 1.75; margin-bottom: 26px; max-width: 840px; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-card { background: #f3f3f3; min-width: 0; display: flex; flex-direction: column; }
.catalog-img { background: #f8f8f8; aspect-ratio: 1 / .88; display: flex; align-items: center; justify-content: center; padding: 28px; position: relative; overflow: hidden; }
.catalog-img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .25s ease; }
.catalog-body { padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.catalog-title { font-size: 16px; font-weight: 800; color: #111827; line-height: 1.3; }
.catalog-title a { color: inherit; text-decoration: none; }
.catalog-meta { font-size: 13px; color: #333; line-height: 1.55; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.more-btn, .cart-btn { height: 32px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.more-btn { border: 1px solid #e1241a; color: #e1241a; background: #fff; }
.cart-btn { border: 1px solid #e1241a; color: #fff; background: #e1241a; }

/* ===== Single Post ===== */
.single-main, .page-main { max-width: 1600px; margin: 0 auto; }
.single-container, .page-container { max-width: 1200px; margin: 0 auto; }
.single-hero img, .page-hero-img { width: 100%; height: auto; display: block; border-radius: 8px; margin-bottom: 32px; }
.single-title, .page-title { font-size: 36px; font-weight: 800; color: #0b1a3a; margin-bottom: 12px; }
.single-meta { font-size: 13px; color: #9ca3af; margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
.single-content, .page-content { font-size: 15px; line-height: 1.8; color: #374151; }
.single-content img, .page-content img { max-width: 100%; height: auto; border-radius: 4px; }
.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.pagination { margin-top: 40px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; color: #555; text-decoration: none; }
.pagination .page-numbers.current { background: #c52227; color: #fff; border-color: #c52227; }

/* ===== Product Single ===== */
.product-single-main { max-width: 1600px; margin: 0 auto; padding: 30px 24px 70px; }
.product-single-container { max-width: 1200px; margin: 0 auto; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 24px; }
.product-gallery img { width: 100%; height: auto; border-radius: 8px; }
.product-detail-title { font-size: 32px; font-weight: 800; color: #0b1a3a; margin-bottom: 16px; }
.product-maker { margin-bottom: 12px; font-size: 14px; color: #6b7280; }
.product-description { font-size: 15px; line-height: 1.8; color: #374151; margin-bottom: 24px; }
.product-actions { margin-top: 24px; }

/* ===== 404 ===== */
.error-404-main { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.error-container h1 { font-size: 120px; font-weight: 800; color: #c52227; line-height: 1; }
.error-container h2 { font-size: 28px; color: #1f2937; margin-bottom: 16px; }
.error-container p { font-size: 15px; color: #6b7280; margin-bottom: 28px; max-width: 480px; }

/* ===== Search ===== */
.search-main { max-width: 1600px; margin: 0 auto; padding: 40px 24px 70px; }
.search-header h1 { font-size: 32px; font-weight: 800; color: #0b1a3a; margin-bottom: 28px; }
.search-header span { color: #c52227; }

/* ===== Page Hero ===== */
.page-hero { position: relative; width: 100%; min-height: 300px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 40px; border-radius: 8px; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.page-hero-content { position: relative; z-index: 1; color: #fff; text-align: center; }
.page-hero-content h1 { font-size: 48px; font-weight: 800; }

/* ===== Mobile ===== */
.mobile-header { display: none; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 998; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.sidebar-drawer { position: fixed; top: 0; left: 0; width: 280px; max-width: 80vw; height: 100%; background: #fff; z-index: 999; transform: translateX(-100%); transition: transform .35s cubic-bezier(.4, 0, .2, 1); overflow-y: auto; box-shadow: 4px 0 24px rgba(0, 0, 0, .15); }
.sidebar-drawer.active { transform: translateX(0); }
.mobile-nav { padding: 20px 0; }
.sidebar-drawer-header { display: flex; justify-content: flex-end; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.sidebar-drawer-close { font-size: 28px; color: #666; cursor: pointer; line-height: 1; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; }
.sidebar-drawer-close:hover { background: #f5f5f5; color: #111; }
.mobile-menu-list { list-style: none; margin: 0; padding: 0; }
.mobile-menu-list li { border-bottom: 1px solid #f0f0f0; }
.mobile-menu-list li a { display: block; padding: 14px 24px; font-size: 15px; font-weight: 500; color: #333; text-decoration: none; transition: background .2s; }
.mobile-menu-list li a:hover { background: #f5f7ff; color: #c52227; }
.mobile-menu-list .sub-menu { list-style: none; margin: 0; padding: 0; background: #f9fafb; display: none; }
.mobile-menu-list .sub-menu.open { display: block; }
.mobile-menu-list .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-list .menu-item-has-children > a::after { content: '+'; font-size: 18px; font-weight: 400; color: #999; transition: transform .2s; }
.mobile-menu-list .menu-item-has-children.open > a::after { content: '−'; }
.mobile-menu-list .sub-menu li a { padding-left: 40px; font-size: 14px; color: #555; }

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .exh-card { flex: 0 0 calc((100% - 24px * 1.5) / 2.5); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .info-list { display: none; }
}
@media (max-width: 860px) {
    .collection-layout { grid-template-columns: 1fr; }
    .sidebar { border-right: none; padding-right: 0; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .header-top, .nav, .filter-bar { display: none; }
    .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e5e7eb; }
    .hamburger-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 6px; gap: 5px; }
    .hamburger-btn span { display: block; width: 22px; height: 2px; background: #0b1a3a; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
    .mobile-logo { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; letter-spacing: 1px; text-decoration: none; }
    .mobile-logo .wt { color: #0b1a3a; }
    .mobile-logo .machinery { color: #c52227; font-weight: 700; }
    .mobile-cart { position: relative; display: inline-flex; align-items: center; gap: 2px; background: none; border: none; color: #4b5563; text-decoration: none; }
    .mobile-cart svg { width: 22px; height: 22px; }
    .mobile-cart .badge { position: static; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 999px; background: #c52227; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
    .product-loop { grid-template-columns: 1fr; }
    .product-card .p-title { font-size: 28px; }
    .feature-title { font-size: 32px; }
    .feature-subtitle { font-size: 16px; }
}
@media (max-width: 640px) {
    .nav-inner { gap: 16px; }
    .nav-menu { gap: 22px; overflow-x: auto; }
    .products-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-title, .exhibition-title { font-size: 32px; }
    .exh-card { flex: 0 0 calc(100% - 40px); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer { padding-top: 50px; }
}


/* ===== WooCommerce Product Card (Catalog) ===== */
.catalog-card { background: #f3f3f3; min-width: 0; display: flex; flex-direction: column; transition: box-shadow .3s ease; }
.catalog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.catalog-img { background: #f8f8f8; aspect-ratio: 1 / .88; display: flex; align-items: center; justify-content: center; padding: 28px; position: relative; overflow: hidden; }
.catalog-img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .25s ease; }
.catalog-img .hover-img { position: absolute; inset: 0; width: 80%; height: 80%; margin: auto; opacity: 0; }
.catalog-card:hover .catalog-img .main-img { opacity: 0; }
.catalog-card:hover .catalog-img .hover-img { opacity: 1; }
.catalog-body { padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.catalog-title { font-size: 16px; font-weight: 800; color: #111827; line-height: 1.3; }
.catalog-title a { color: inherit; text-decoration: none; }
.catalog-meta { font-size: 13px; color: #333; line-height: 1.55; min-height: 52px; }
.sku-lines { border: 1px solid #e5e5e5; background: #fff; max-height: 48px; overflow: auto; padding: 5px 8px; font-size: 12px; line-height: 1.55; color: #555; }
.inventory { color: #9ca3af; font-size: 12px; margin-top: 3px; }
.qty-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid #ddd; background: #fff; height: 24px; border-radius: 3px; }
.qty-control button { width: 22px; height: 100%; border: none; background: #fff; color: #e1241a; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1; }
.qty-control button:hover { background: #fef2f2; }
.qty-control .qty-value { width: 26px; text-align: center; font-size: 12px; font-weight: 600; border-left: 1px solid #eee; border-right: 1px solid #eee; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.more-btn, .cart-btn { height: 32px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s, color .2s; }
.more-btn { border: 1px solid #e1241a; color: #e1241a; background: #fff; }
.more-btn:hover { background: #e1241a; color: #fff; }
.cart-btn { border: 1px solid #e1241a; color: #fff; background: #e1241a; }
.cart-btn:hover { background: #c41a14; }

/* ===== WooCommerce Single Product ===== */
.product-single-main { max-width: 1600px; margin: 0 auto; padding: 30px 24px 70px; }
.product-single-container { max-width: 1200px; margin: 0 auto; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 24px; }
.product-gallery { position: sticky; top: 100px; }
.product-main-img img { width: 100%; height: auto; border-radius: 8px; background: #f8f8f8; }
.product-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.thumb-item { width: 64px; height: 64px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color .2s; background: #f8f8f8; }
.thumb-item.active { border-color: #c52227; }
.thumb-item:hover { border-color: #c52227; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-title { font-size: 28px; font-weight: 800; color: #0b1a3a; margin-bottom: 16px; }
.product-sku { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.product-sku strong { color: #374151; }
.product-attr-row { font-size: 14px; color: #4b5563; margin-bottom: 8px; }
.product-attr-row strong { color: #1f2937; margin-right: 6px; }
.product-price { font-size: 24px; font-weight: 800; color: #e1241a; margin: 16px 0; }
.product-price del { font-size: 16px; color: #9ca3af; font-weight: 400; }
.product-price ins { text-decoration: none; }
.product-stock { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.product-stock strong { color: #059669; }
.product-description { font-size: 14px; line-height: 1.8; color: #374151; margin-bottom: 24px; }
.product-add-to-cart { margin-top: 20px; }
.product-add-to-cart .single_add_to_cart_button { background: #e1241a; color: #fff; border: none; padding: 12px 32px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.product-add-to-cart .single_add_to_cart_button:hover { background: #c41a14; }
.product-add-to-cart .quantity input { width: 60px; height: 40px; text-align: center; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; margin-right: 12px; }

.product-tabs-section { margin-top: 60px; border-top: 1px solid #e5e7eb; padding-top: 40px; }
.product-related-section { margin-top: 60px; }
.product-related-section .products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* WooCommerce Tabs Override */
.woocommerce-tabs { margin: 0; }
.woocommerce-tabs .tabs { display: flex; gap: 0; border-bottom: 2px solid #e5e7eb; margin-bottom: 24px; list-style: none; padding: 0; }
.woocommerce-tabs .tabs li { margin: 0; }
.woocommerce-tabs .tabs li a { display: block; padding: 12px 24px; font-size: 14px; font-weight: 600; color: #6b7280; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; }
.woocommerce-tabs .tabs li.active a { color: #c52227; border-bottom-color: #c52227; }
.woocommerce-tabs .panel { font-size: 14px; line-height: 1.8; color: #374151; }

@media (max-width: 860px) {
    .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-gallery { position: static; }
    .product-related-section .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .product-related-section .products-grid { grid-template-columns: 1fr; }
}

/* ===== 分类信息 - 富文本样式 ===== */
.qing-ci-desc ul,
.qing-ci-desc ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}
.qing-ci-desc li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}
.qing-ci-desc h1,
.qing-ci-desc h2,
.qing-ci-desc h3,
.qing-ci-desc h4,
.qing-ci-desc h5,
.qing-ci-desc h6 {
    margin: 0 0 0.5em;
    line-height: 1.4;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
}
.qing-ci-desc p {
    margin: 0 0 1em;
}
.qing-ci-desc a {
    color: #e1241a;
    text-decoration: underline;
}
.qing-ci-desc strong,
.qing-ci-desc b {
    font-weight: 700;
}
.qing-ci-desc img {
    max-width: 100%;
    height: auto;
}
.qing-ci-desc span[style] {
    /* 保留内联颜色等样式 */
}

/* ===== 产品内容表格样式 ===== */
.qing-pc-content {
    line-height: 1.7;
}
.qing-pc-content .table-container {
    width: 100%;
    overflow-x: auto;
}
.qing-pc-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 0;
}
.qing-pc-content table th,
.qing-pc-content table td {
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    text-align: left;
}
.qing-pc-content table th {
    font-weight: 600;
}
.qing-pc-content table.text-center td {
    text-align: center;
}

/* ===== 文档下载小部件 ===== */
.qing-dl-wrap {
    display: inline-block;
}
.qing-dl-cover {
    margin-bottom: 12px;
}
.qing-dl-cover img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.qing-dl-title {
    font-size: 18px;
    font-weight: 700;
    color: #c52227;
    margin: 16px 0;
}
.qing-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #c52227;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background .2s;
}
.qing-dl-btn:hover {
    background: #9b1b1f;
    color: #fff;
}
.qing-dl-btn svg {
    flex-shrink: 0;
}



