/*
Theme Name: XinXin Equipment
Theme URI: https://example.com
Description: WordPress theme for an independent amphibious equipment supplier — amphibious excavators, long-reach and high-reach demolition fronts, material-handling booms, heavy-duty attachments and undercarriage spare parts. Includes product archives, application and tonnage-class taxonomies, enquiry forms, structured data, a News Harvester homepage module, and a historical URL restoration engine that 301-redirects legacy addresses. Not affiliated with any previous occupant of a domain it is installed on.
Author: XinXin Equipment
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vtdrillbits
Tags: custom-menu, custom-logo, featured-images, theme-options
*/

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
	--primary:     #123b26;
	--primary-2:   #1f5c3a;
	--accent:      #f2a900;
	--accent-dark: #c98a00;
	--light-bg:    #f2f4f7;
	--border:      #dde2e8;
	--text:        #2b3440;
	--text-light:  #6a7684;
	--white:       #ffffff;
	--nav-height:  92px;
	--radius:      3px;
	--shadow:      0 6px 22px rgba(16,32,48,.09);
	--shadow-lg:   0 14px 40px rgba(16,32,48,.16);
	--maxw:        1240px;
}

body {
	font-family: 'Roboto', system-ui, sans-serif;
	font-size: 15px; line-height: 1.7; color: var(--text);
	background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .25s; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h4, h5 {
	font-family: 'Barlow Condensed', 'Roboto', sans-serif;
	font-weight: 700; color: var(--primary); line-height: 1.2;
	letter-spacing: .01em; text-transform: uppercase;
}
h3 { font-family: 'Roboto', sans-serif; font-weight: 700; color: var(--primary); line-height: 1.35; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
h4, h5 { font-size: 1rem; }
p { margin-bottom: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--light-bg); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.section-title { margin: 0; }
.section-intro { max-width: 760px; margin: 6px 0 0; color: var(--text-light); font-size: .92rem; line-height: 1.55; }
.section-kicker { display: inline-block; margin-bottom: 8px; color: var(--accent-dark); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-title-left { margin: 0 0 22px; padding-left: 12px; border-left: 4px solid var(--accent); }
.section-more { font-weight: 600; font-size: .9rem; color: var(--accent-dark); white-space: nowrap; }
.section-more:hover { color: var(--accent); }
.archive-main > section { margin-bottom: 48px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; font-weight: 600; font-size: .9rem;
	border-radius: var(--radius); border: 2px solid transparent; transition: all .25s;
}
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--primary); }

/* ============================================================
   HEADER
   ============================================================ */
#wet-header { position: sticky; top: 0; z-index: 90; background: var(--primary); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-height); }
.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo a { display: flex; align-items: center; }
.site-logo img { display: block !important; max-height: 72px; width: auto; max-width: 250px; }
.home .site-logo, .home .site-logo a, .home .site-logo img { visibility: visible; opacity: 1; }
.logo-text { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.main-nav { min-width: 0; }
.mainmenu { display: flex; flex-wrap: nowrap; gap: 2px; }
.mainmenu > li { position: relative; }
.mainmenu > li > a {
	display: flex; align-items: center; gap: 6px; padding: 10px 12px;
	color: rgba(255,255,255,.88); font-size: .83rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.mainmenu > li > a:hover, .mainmenu > li.current-menu-item > a { color: var(--accent); }
.mainmenu .arrow-icon { font-size: .62rem; opacity: .7; }
.mainmenu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 260px;
	background: #fff; box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; padding: 8px 0;
}
.mainmenu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mainmenu .sub-menu a { display: block; padding: 9px 18px; font-size: .88rem; color: var(--text); }
.mainmenu .sub-menu a, .header-quote { white-space: nowrap; }
.mainmenu .sub-menu a:hover { background: var(--light-bg); color: var(--accent-dark); }
.mainmenu > li.has-mega-menu > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); min-width: 520px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

#whatsapp-btn {
	position: fixed; right: 18px; bottom: 18px; z-index: 95;
	width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: var(--shadow-lg);
}

/* ============================================================
   HERO / PAGE HERO
   ============================================================ */
.hero-bg { position: relative; min-height: 520px; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,33,47,.92) 0%, rgba(18,33,47,.7) 55%, rgba(18,33,47,.35) 100%); }
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 780px; }
.hero-inner h1 { color: #fff; margin-bottom: 16px; }
.hero-inner p { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.hero-eyebrow { display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 14px; margin-bottom: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.page-hero { background: var(--primary); color: #fff; padding: 48px 0 40px; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero-sub { color: rgba(255,255,255,.8); margin-bottom: 8px; }
.breadcrumb-nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.72); }
.breadcrumb-nav a { color: rgba(255,255,255,.9); }
.breadcrumb-nav a:hover { color: var(--accent); }

/* ============================================================
   4 + 1  /  1 + 4  SPLIT LAYOUT
   ============================================================ */
.split-41, .split-14 { display: grid; gap: 24px; align-items: stretch; margin-bottom: 8px; }
.split-41 { grid-template-columns: 1.55fr 1fr; }
.split-14 { grid-template-columns: 1fr 1.55fr; }
.split-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; height: 100%; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-thumb { display: block; overflow: hidden; background: var(--light-bg); }
.card-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; flex: 1; }
.card-title { font-family: 'Roboto', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--primary); line-height: 1.35; text-transform: none; }
.card-title a:hover { color: var(--accent-dark); }
.card-meta { font-size: .78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; }
.card-meta a { color: var(--accent-dark); }
.card-text { font-size: .9rem; color: var(--text-light); }
.card-link { margin-top: auto; padding-top: 10px; font-size: .84rem; font-weight: 600; color: var(--accent-dark); display: inline-flex; gap: 6px; align-items: center; }
.card-icon { font-size: 1.6rem; color: var(--accent); }

.feature-card .card-thumb img { aspect-ratio: 4/3.2; }
.feature-card .card-title { font-size: 1.35rem; }
.feature-card .card-body { padding: 22px 24px 26px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); transition: all .25s; }
.link-card:hover { box-shadow: var(--shadow); color: var(--accent-dark); }
.link-card-title { font-weight: 600; }
.link-card-text { display: block; font-size: .82rem; color: var(--text-light); font-weight: 400; }

.card-specs { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; color: var(--text-light); margin: 6px 0; }
.card-specs li span { display: inline-block; min-width: 82px; color: var(--text); font-weight: 600; }

.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: .84rem; background: #fff; }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ============================================================
   ARCHIVE / PAGE LAYOUT
   ============================================================ */
.archive-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.archive-side .widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.widget-title { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.tax-list li a { display: flex; justify-content: space-between; padding: 7px 0; font-size: .9rem; border-bottom: 1px dashed var(--border); }
.tax-list li a span { color: var(--text-light); font-size: .8rem; }
.tax-list li a:hover, .tax-list li.is-current > a { color: var(--accent-dark); font-weight: 600; }

.page-layout { max-width: 900px; }
.page-layout-form { display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: start; }
.single-post-layout { width: 100%; }
.single-article { width: 100%; min-width: 0; }
.single-article > .entry-content { font-size: 1rem; line-height: 1.75; }
.single-article .entry-image img { width: 100%; max-height: 680px; object-fit: contain; background: var(--light-bg); }

.entry-content h2 { margin: 32px 0 14px; }
.entry-content h3 { margin: 24px 0 10px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 20px; }
.entry-content ul li { list-style: disc; margin-bottom: 6px; }
.entry-content ol li { list-style: decimal; margin-bottom: 6px; }
.entry-content img { margin: 18px 0; border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.entry-content thead th { background: var(--light-bg); }
.entry-summary { font-size: 1.02rem; }
.answer-box { background: var(--light-bg); border-left: 4px solid var(--accent); padding: 18px 22px; margin-bottom: 26px; }
.answer-box h2 { margin: 0 0 8px; font-size: 1.1rem; }
.entry-meta { display: flex; gap: 16px; font-size: .84rem; color: var(--text-light); margin-bottom: 18px; }
.entry-image { margin-bottom: 24px; }
.term-intro, .term-specs { margin-bottom: 44px; }

/* Product single */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.product-media img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.vtdb-thumb { border: 1px solid var(--border); background: none; padding: 0; width: 76px; border-radius: var(--radius); overflow: hidden; }
.vtdb-thumb:hover, .vtdb-thumb.is-active { border-color: var(--accent); }
.product-terms { margin: 18px 0; font-size: .92rem; }
.product-terms li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.product-terms a { color: var(--accent-dark); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--primary); color: #fff; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.spec-table tbody th { background: var(--light-bg); width: 240px; font-weight: 600; color: var(--primary); }
.spec-table tbody tr:hover td { background: #fbfcfd; }
.inventory-table td a { color: var(--accent-dark); font-weight: 600; }
.table-note { font-size: .82rem; color: var(--text-light); margin-top: 10px; }

/* Inventory filters */
.inventory-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; background: var(--light-bg); border: 1px solid var(--border); padding: 18px; border-radius: var(--radius); margin-bottom: 26px; }
.inventory-filters label { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; }
.inventory-filters input, .inventory-filters select { padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-size: .9rem; font-weight: 400; text-transform: none; color: var(--text); }
.inventory-filter-actions { display: flex; align-items: flex-end; gap: 10px; }

/* FAQ */
.vtdb-faq { margin-top: 44px; }
.vtdb-faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.vtdb-faq-item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--primary); list-style: none; }
.vtdb-faq-item summary::-webkit-details-marker { display: none; }
.vtdb-faq-item summary::after { content: '+'; float: right; color: var(--accent); font-weight: 700; }
.vtdb-faq-item[open] summary::after { content: '-'; }
.vtdb-faq-a { padding: 0 18px 16px; color: var(--text-light); }

/* Quote CTA */
.quote-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 28px 32px; background: var(--primary); color: #fff; border-radius: var(--radius); }
.quote-cta h2 { color: #fff; margin-bottom: 4px; }
.quote-cta p { color: rgba(255,255,255,.8); margin: 0; font-size: .95rem; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.stat-row-3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--light-bg); border-bottom: 3px solid var(--accent); padding: 22px; text-align: center; }
.stat strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 2.2rem; color: var(--primary); }
.stat span { font-size: .84rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================
   FORMS
   ============================================================ */
.section-contact { background: var(--light-bg); }
.home-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.home-contact-direct { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-weight: 600; }
.home-contact-direct a { color: var(--accent-dark); }
.contact-form-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.contact-form-panel h2 { margin-bottom: 18px; }
.contact-list { margin: 20px 0; }
.contact-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.contact-list i { color: var(--accent); margin-top: 4px; }
.contact-wechat { display: inline-block; margin: 6px 0 22px; padding: 16px; border: 1px solid var(--border); background: #fff; }
.contact-wechat h3 { margin-bottom: 10px; }
.contact-wechat img { display: block; width: 180px; max-width: 100%; height: auto; margin: 0; border-radius: 3px; }
.contact-map { margin-top: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--light-bg); }
.contact-map iframe { display: block; width: 100%; min-height: 340px; border: 0; }

.wet-inquiry-form .wet-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wet-form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.wet-form-field > span { font-size: .78rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; }
.wet-form-field input, .wet-form-field select, .wet-form-field textarea {
	padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: #fff; width: 100%;
}
.wet-form-field input:focus, .wet-form-field select:focus, .wet-form-field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.wet-form-captcha { border: 1px dashed var(--border); background: var(--light-bg); padding: 12px; }
.wet-math-image { display: block; width: 210px; max-width: 100%; height: 72px; border: 1px solid #cad2db; border-radius: 5px; background: #f7f8fa; user-select: none; }
.wet-form-captcha input { max-width: 210px; background: #fff; }
.wet-file-hint { font-size: .76rem; color: var(--text-light); }
.wet-form-msg:not(:empty) { padding: 11px 14px; margin-bottom: 14px; border-radius: var(--radius); font-size: .9rem; }
.wet-form-msg.is-ok, .wet-form-msg.success, .wet-form-msg--success { background: #e8f6ec; color: #1c6b34; }
.wet-form-msg.is-error, .wet-form-msg.error, .wet-form-msg--error { background: #fdeaea; color: #a02323; }
.wet-form-msg--info { background: #e8f1fa; color: #24557c; }
.wet-form-submit { width: 100%; justify-content: center; margin-top: 6px; }

.company-intro { background: #fff; border-left: 4px solid var(--accent); padding: 24px 26px; box-shadow: var(--shadow); }
.company-intro h2 { margin: 0 0 12px; }
.company-intro-list { margin: 18px 0 0 !important; }
.company-intro-list li { display: flex; gap: 10px; list-style: none !important; margin: 9px 0; }
.company-intro-list i { color: var(--accent); margin-top: 5px; }
.home-about-grid { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.home-about-grid h2 { max-width: 420px; }
.catalog-overview p { color: var(--text-light); line-height: 1.75; }
.factory-overview > p { color: var(--text-light); line-height: 1.75; }
.factory-capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.factory-capability { padding: 20px; border: 1px solid var(--border); border-top: 3px solid var(--accent); background: #fff; }
.factory-capability h3 { margin-bottom: 8px; }
.factory-capability p { margin: 0; color: var(--text-light); font-size: .9rem; line-height: 1.65; }
.factory-overview-compact .factory-capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-factory { margin-bottom: 38px; }

/* Product quotation window reuses the /quote/ technical form. */
body.quote-modal-open { overflow: hidden; }
.quote-modal[hidden] { display: none; }
.quote-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; }
.quote-modal-backdrop { position: absolute; inset: 0; background: rgba(9, 20, 30, .76); backdrop-filter: blur(3px); }
.quote-modal-dialog {
	position: relative; z-index: 1; width: min(920px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
	background: var(--light-bg); border-radius: 6px; box-shadow: 0 24px 80px rgba(0,0,0,.32); padding: 28px;
}
.quote-modal-close { position: sticky; float: right; top: 0; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.8rem; line-height: 1; }
.quote-modal-copy { padding-right: 56px; margin-bottom: 18px; }
.quote-modal-copy h2 { margin-bottom: 4px; }
.quote-modal-copy p { color: var(--text-light); margin: 0; }
.quote-modal-form { clear: both; box-shadow: none; }

/* The blog index needs the full desktop canvas; widgets sit below the cards. */
.blog-layout-wide { grid-template-columns: minmax(0, 1fr); }
.blog-layout-wide .split-14 { grid-template-columns: minmax(360px, .9fr) minmax(0, 1.7fr); }
.blog-sidebar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.blog-sidebar-grid .widget { margin-bottom: 0; }

.search-form { display: flex; gap: 10px; margin-bottom: 28px; }
.search-form input { flex: 1; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); }

/* ============================================================
   PAGINATION
   ============================================================ */
.wet-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.wet-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--border); background: #fff; border-radius: var(--radius); font-weight: 600; font-size: .9rem;
}
.wet-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent-dark); }
.wet-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
#wet-footer { background: var(--primary); color: rgba(255,255,255,.76); }
.footer-main { display: grid; grid-template-columns: 1.15fr .72fr .72fr 1.75fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
#wet-footer h5 { color: #fff; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
#wet-footer a:hover { color: var(--accent); }
.footer-links li { padding: 5px 0; font-size: .9rem; }
.footer-logo .logo-txt { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; text-transform: uppercase; }
.footer-about p { font-size: .9rem; margin-top: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-item { display: flex; gap: 10px; font-size: .9rem; padding: 6px 0; }
.contact-item i { color: var(--accent); margin-top: 5px; }
.footer-form-note { margin: 0 0 14px; font-size: .84rem; line-height: 1.55; }
.footer-form .wet-form-row { gap: 10px; }
.footer-form .wet-form-field { gap: 3px; margin-bottom: 9px; }
.footer-form .wet-form-field > span { color: rgba(255,255,255,.7); }
.footer-form .wet-form-field input,
.footer-form .wet-form-field textarea { padding: 9px 10px; border-color: rgba(255,255,255,.24); }
.footer-form .wet-form-field textarea { min-height: 88px; }
.footer-form .wet-form-captcha { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.25); }
.footer-form .wet-math-image { min-height: 46px; }

/* Floating contents and recommendation windows on product/article pages. */
.vtdb-floating-tools { position: fixed; z-index: 900; right: 18px; bottom: 92px; }
.vtdb-tool-buttons { display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.vtdb-tool-toggle {
	display: flex; align-items: center; gap: 8px; min-width: 112px; padding: 10px 13px;
	border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: var(--primary); color: #fff;
	box-shadow: 0 8px 24px rgba(9,20,30,.2); font-size: .82rem; font-weight: 700;
}
.vtdb-tool-toggle:hover, .vtdb-tool-toggle[aria-expanded="true"] { background: var(--accent-dark); }
.vtdb-tool-panel {
	position: absolute; right: 126px; bottom: 0; width: min(390px, calc(100vw - 176px)); max-height: min(68vh, 620px);
	overflow-y: auto; padding: 22px; border: 1px solid var(--border); border-top: 4px solid var(--accent);
	border-radius: 5px; background: #fff; box-shadow: 0 18px 50px rgba(9,20,30,.26);
}
.vtdb-tool-panel[hidden] { display: none; }
.vtdb-tool-panel h2 { margin: 0 34px 14px 0; font-size: 1.2rem; }
.vtdb-tool-close { position: absolute; top: 9px; right: 10px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--text-light); font-size: 1.5rem; }
.vtdb-tool-close:hover { color: var(--accent-dark); }
.vtdb-toc-list { display: flex; flex-direction: column; }
.vtdb-toc-list a { padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: .86rem; line-height: 1.35; }
.vtdb-toc-list a:hover { color: var(--accent-dark); }
.vtdb-toc-list .toc-level-3 { padding-left: 12px; }
.vtdb-toc-list .toc-level-4 { padding-left: 24px; }
.vtdb-toc-list .toc-level-5 { padding-left: 36px; }
.vtdb-related-group + .vtdb-related-group { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.vtdb-related-list { margin: 0; padding: 0; }
.vtdb-related-item { border-bottom: 1px solid var(--border); }
.vtdb-related-group a { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; color: var(--text); font-size: .86rem; line-height: 1.35; }
.vtdb-related-group a:hover { color: var(--accent-dark); }
.vtdb-related-thumb { flex: 0 0 52px; }
.vtdb-related-thumb img { display: block; width: 52px; height: 52px; border-radius: 5px; object-fit: cover; }
.vtdb-related-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vtdb-related-headline { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.vtdb-related-meta { color: var(--text-light); font-size: .74rem; }

/* Match News Harvester's desktop single layout: sticky sidebar beside content. */
@media (min-width: 981px) {
	.single-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
	.single-detail-main, .single-article { min-width: 0; }
	.vtdb-floating-tools {
		position: sticky; z-index: auto; top: 90px; right: auto; bottom: auto; align-self: start;
		display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 110px);
	}
	.vtdb-tool-buttons, .vtdb-tool-close { display: none; }
	.vtdb-tool-panel, .vtdb-tool-panel[hidden] {
		display: block; position: static; width: auto; max-height: none; padding: 14px;
		border: 1px solid var(--border); border-radius: 7px; background: #fff; box-shadow: none; overflow: hidden;
	}
	.vtdb-tool-panel h2 { margin: 0 0 10px; font-family: 'Roboto', sans-serif; font-size: .9rem; letter-spacing: .02em; text-transform: none; }
	.vtdb-toc-panel { flex: 0 0 auto; }
	.vtdb-toc-list { max-height: 38vh; overflow-y: auto; }
	.vtdb-toc-list a { padding: 5px 10px; border-bottom: 0; border-left: 2px solid transparent; color: var(--text-light); font-size: .82rem; }
	.vtdb-toc-list a.is-active { border-left-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
	.vtdb-toc-list .toc-level-3 { padding-left: 24px; }
	.vtdb-toc-list .toc-level-4 { padding-left: 36px; }
	.vtdb-toc-list .toc-level-5 { padding-left: 48px; font-size: .76rem; }
	.vtdb-tool-panel:last-child { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
	.vtdb-related-group + .vtdb-related-group { margin-top: 16px; padding-top: 14px; }
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .84rem; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
	.product-grid, .link-grid { grid-template-columns: repeat(3, 1fr); }
	.inventory-filters { grid-template-columns: repeat(3, 1fr); }
	.archive-layout, .page-layout-form { grid-template-columns: 1fr; }
	.single-detail-main .product-single { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	:root { --nav-height: 82px; }
	.site-logo img { max-height: 62px; max-width: 210px; }
	.nav-toggle { display: flex; }
	.main-nav { position: fixed; top: var(--nav-height); right: 0; bottom: 0; width: 300px; background: var(--primary); padding: 18px; overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
	.main-nav.is-open { transform: translateX(0); }
	.mainmenu { flex-direction: column; gap: 0; }
	.mainmenu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: rgba(255,255,255,.06); border-top: 0; }
	.mainmenu > li.is-open > .sub-menu { display: block; }
	.mainmenu > li.has-mega-menu > .sub-menu { grid-template-columns: 1fr; }
	.mainmenu .sub-menu a { color: rgba(255,255,255,.82); }
	.mainmenu .sub-menu a:hover { background: rgba(255,255,255,.08); }
	.header-quote { display: none; }

	.split-41, .split-14 { grid-template-columns: 1fr; }
	.product-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.home-contact-grid, .product-single { grid-template-columns: 1fr; }
	.home-about-grid { grid-template-columns: 1fr; gap: 24px; }
	.factory-overview-compact .factory-capability-grid { grid-template-columns: 1fr; }
	.footer-main, .stat-row { grid-template-columns: repeat(2, 1fr); }
	.blog-layout-wide .split-14 { grid-template-columns: 1fr; }
	.blog-sidebar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
	.site-logo img { max-height: 58px; max-width: 175px; }
	.split-grid, .product-grid, .post-grid, .link-grid, .inventory-filters, .footer-main, .stat-row { grid-template-columns: 1fr; }
	.wet-inquiry-form .wet-form-row { grid-template-columns: 1fr; }
	.section { padding: 44px 0; }
	.quote-cta { flex-direction: column; align-items: flex-start; }
	.blog-sidebar-grid { grid-template-columns: 1fr; }
	.quote-modal { padding: 10px; }
	.quote-modal-dialog { max-height: calc(100vh - 20px); padding: 18px; }
	.vtdb-floating-tools { right: 10px; bottom: 76px; }
	.vtdb-tool-toggle { min-width: 46px; width: 46px; height: 46px; justify-content: center; padding: 0; border-radius: 50%; }
	.vtdb-tool-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.vtdb-tool-panel { position: fixed; right: 10px; bottom: 182px; width: calc(100vw - 20px); max-height: calc(100vh - 210px); }
	.factory-capability-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANNOUNCEMENT BAR + DISCLAIMER  (XinXin independence notice)
   ============================================================ */
#xx-announce {
	background: var(--primary);
	color: rgba(255,255,255,.92);
	font-size: .82rem;
	line-height: 1.45;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.xx-announce-inner {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .55rem 1rem;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
}
#xx-announce i { color: var(--accent); flex-shrink: 0; }
.xx-announce-text { flex: 0 1 auto; }
.xx-announce-link {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
	font-weight: 500;
}
.xx-announce-link:hover { color: var(--accent); }

.footer-disclaimer {
	background: rgba(0,0,0,.22);
	padding: 1.1rem 0;
	font-size: .8rem;
	line-height: 1.6;
	color: rgba(255,255,255,.62);
	border-top: 1px solid rgba(255,255,255,.08);
}
.footer-disclaimer strong { color: rgba(255,255,255,.82); }

.xx-disclaimer-box {
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	background: var(--light-bg);
	padding: 1.1rem 1.3rem;
	margin: 0 0 1.8rem;
	border-radius: var(--radius);
	font-size: .93rem;
	line-height: 1.65;
}
.xx-disclaimer-box strong { color: var(--primary); }

/* sticky header must clear the announcement bar */
body.admin-bar #xx-announce { top: 32px; }

@media (max-width: 782px) {
	.xx-announce-inner { padding: .5rem .8rem; font-size: .76rem; gap: .4rem; }
	.xx-announce-link { display: block; width: 100%; }
}

/* ============================================================
   INTERNAL LINKING / LONG-FORM TERM CONTENT
   ============================================================ */
.xx-auto-link {
	color: var(--primary-2);
	text-decoration: underline;
	text-decoration-color: rgba(31,92,58,.35);
	text-underline-offset: 2px;
}
.xx-auto-link:hover { color: var(--accent-dark); text-decoration-color: var(--accent); }

.xx-term-body { margin: 0 0 2.4rem; }
.xx-term-body h2 {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.45rem;
	color: var(--primary);
	margin: 2rem 0 .7rem;
	line-height: 1.25;
}
.xx-term-body p { margin: 0 0 1rem; line-height: 1.75; }
.xx-term-body ul, .xx-term-body ol { margin: 0 0 1.2rem 1.3rem; }
.xx-term-body li { margin-bottom: .55rem; line-height: 1.7; }
.xx-term-body strong { color: var(--primary); }

/* "You may also need" cross-silo block */
.xx-next-step { margin: 2.6rem 0 1.4rem; }
.xx-next-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}
.xx-next-card {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	padding: 1.1rem 1.2rem;
	background: var(--white);
	border: 1px solid var(--border);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
	text-decoration: none;
	transition: box-shadow .18s ease, transform .18s ease;
}
.xx-next-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.xx-next-title { font-weight: 700; color: var(--primary); font-size: 1.02rem; }
.xx-next-desc { font-size: .86rem; color: var(--text-light); line-height: 1.55; }
.xx-next-go { font-size: .82rem; color: var(--accent-dark); font-weight: 600; margin-top: auto; }

/* Pillar page prompt */
.xx-pillar-link {
	margin: 2rem 0;
	padding: 1rem 1.25rem;
	background: var(--light-bg);
	border-left: 4px solid var(--primary-2);
	border-radius: var(--radius);
	font-size: .93rem;
	line-height: 1.65;
}
.xx-pillar-link i { color: var(--primary-2); margin-right: .4rem; }
.xx-pillar-link a { color: var(--primary-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.xx-pillar-link a:hover { color: var(--accent-dark); }
