/* =========================================================
   Manxing Grain Storage - Frontend style (grainsilo.com style)
   ========================================================= */

:root {
    /* A1 Industrial Green + Warm Gold — aligned with Manxing logo (blue star + red wordmark) */
    --primary-50: #e6f2ec;
    --primary-100: #c2dfcf;
    --primary: #0d7c5a;
    --primary-dark: #085e44;
    --primary-700: #064833;
    --primary-900: #032a1f;
    /* Desaturated warm gold accent — avoids conflict with logo red */
    --accent: #b0803a;
    --accent-dark: #966828;
    --accent-50: #f5ede0;
    /* Logo-extracted brand colors for accent use */
    --logo-red: #f00000;
    --logo-blue: #0050a0;
    /* Industrial neutral (steel gray) */
    --steel-light: #717c87;
    --steel: #4a5560;
    --steel-dark: #2d343c;
    /* Text/background */
    --dark: #13251f;
    --text: #1a2e25;
    --muted: #5e7068;
    --light: #f7f9f8;
    --white: #ffffff;
    --border: #dde6e0;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(13, 124, 90, .10);
    --shadow-lg: 0 18px 50px rgba(13, 124, 90, .16);
    --font: 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--dark);
    color: #c2d0c8;
    font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.topbar a { color: #c2d0c8; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-left { display: flex; gap: 20px; align-items: center; }
.topbar .tb-right { display: flex; gap: 16px; align-items: center; }

/* ---------- Header ---------- */
.header { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1.5rem; }
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo .logo-img {
    height: 48px; width: auto; object-fit: contain;
}

/* ---------- Navigation ---------- */
.nav { display: flex; gap: 0; align-items: center; }
.nav-item { position: relative; }
.nav-item > a {
    padding: 14px 12px; color: var(--text); font-weight: 600; font-size: .95rem;
    border-radius: 8px; position: relative; display: inline-flex; align-items: center; gap: 4px;
    line-height: 1; white-space: nowrap; height: 44px; cursor: pointer;
}
.nav-item > a:hover, .nav-item > a.active { color: var(--primary); background: #e6f2ec; }
.nav-item > a.active::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px;
    background: var(--accent); border-radius: 3px;
}
.caret { font-size: .7rem; opacity: .6; flex-shrink: 0; line-height: 1; }
.nav-item.has-mega:hover .mega-panel,
.nav-item.has-mega:focus-within .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-panel {
    position: absolute; top: 100%; left: 0; z-index: 200;
    background: #fff; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg); padding: 24px;
    min-width: 520px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.mega-panel .mega-viewall {
    display: inline-block; margin-top: 16px; color: var(--primary);
    font-weight: 700; font-size: .9rem; text-decoration: none;
    border-top: 1px solid var(--border); padding-top: 12px; width: 100%;
}
.mega-grid { display: grid; gap: 20px 28px; }
.mega-3col { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
.mega-2col { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.mega-1col { grid-template-columns: 1fr; min-width: 240px; }
.mega-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.mega-col a { display: block; padding: 6px 0; color: var(--text); font-weight: 500; font-size: .9rem; text-decoration: none; border-radius: 0; }
.mega-col a:hover { color: var(--primary); background: transparent; }

/* ---------- Mobile Accordion Drawer (02-§2) ---------- */
.mobile-accordion { border: none; }
.mobile-accordion > summary { padding: 14px 18px; font-weight: 700; color: var(--dark); list-style: none; cursor: pointer; position: relative; }
.mobile-accordion > summary::-webkit-details-marker { display: none; }
.mobile-accordion > summary::after { content: '▸'; position: absolute; right: 18px; color: var(--primary); }
.mobile-accordion[open] > summary::after { transform: rotate(90deg); }
.mobile-sub { padding: 0 18px 8px; }
.mobile-sub a { display: block; padding: 8px 12px; color: var(--text); font-size: .9rem; text-decoration: none; border-left: 3px solid var(--border); margin-bottom: 2px; }
.mobile-sub a:hover { color: var(--primary); border-left-color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-cta .btn { padding: 10px 20px; font-size: .9rem; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: .95rem;
    border: none; cursor: pointer; transition: all .2s; line-height: 1.2;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 12px 24px; text-decoration: none; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- SVG Icons ---------- */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ic-sm { width: 18px; height: 18px; }
.ic-md { width: 24px; height: 24px; }
.ic-lg { width: 32px; height: 32px; }
.ic-xl { width: 40px; height: 40px; }
.ic-accent { color: var(--accent); }
.ic-primary { color: var(--primary); }
.ic-white { color: #fff; }
.ic-muted { color: var(--muted); }
.icon-text { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Hero Banner - manxingsilos.com style ---------- */
.index_banner { position: relative; overflow: hidden; }

.index_banner_lunbo { width: 100%; }
.index_banner_lunbo a {
	display: block;
	height: 680px;
	overflow: hidden;
}

.index_banner_lunbo a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.public_lunbo_dots {
	text-align: center;
	padding-top: clamp(0.938rem, 0.77rem + 0.7vw, 1.563rem);
}

.public_lunbo_dots .swiper-pagination-bullet {
	outline: none;
	opacity: 1;
	width: clamp(0.625rem, 0.257rem + 1.55vw, 2rem);
	height: clamp(0.125rem, 0.058rem + 0.28vw, 0.375rem);
	margin: 0 clamp(0.125rem, -0.009rem + 0.56vw, 0.625rem);
	background: #c2c2c2;
	border-radius: 0;
	transition: all 0.4s;
}

.public_lunbo_dots .swiper-pagination-bullet.swiper-pagination-bullet-active {
	width: clamp(0.938rem, 0.486rem + 1.9vw, 2.625rem);
	background: var(--accent, #b0803a);
}

.index_banner_dots {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: clamp(0.625rem, -0.462rem + 4.58vw, 4.688rem);
	transform: translate(-50%, 0);
	padding-top: 0;
}

.ind_banner_progress_bar {
	position: absolute;
	z-index: 2;
	left: 0;
	bottom: 0;
	width: 0%;
	height: clamp(0.125rem, 0.025rem + 0.42vw, 0.5rem);
	background: var(--accent, #b0803a);
}

.ind_banner_progress_bar.active {
	width: 100%;
	transition: all 8s linear;
}

/* Legacy hero styles (for other pages) */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,46,37,.88) 0%, rgba(8,46,37,.65) 45%, rgba(8,46,37,.2) 100%); }
.hero .container { position: relative; z-index: 2; padding: 120px 20px; }
.hero h1 { font-size: 3rem; line-height: 1.15; font-weight: 800; max-width: 640px; margin-bottom: 18px; }
.hero p { font-size: 1.15rem; max-width: 560px; margin-bottom: 30px; color: #d6e5db; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-bottom: 8px; }
.section-head h2 { font-size: 2.2rem; color: var(--dark); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .card-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card .card-body h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 8px; }
.card .card-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.card .card-link { margin-top: 14px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Icon feature ---------- */
.feature { display: flex; gap: 18px; padding: 22px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.feature .feature-icon {
    width: 54px; height: 54px; flex-shrink: 0; border-radius: 12px;
    background: #e6f2ec; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.feature .feature-icon svg.icon { display: block; margin: 0; }
.feature h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ---------- Stats ---------- */
.stats { background: var(--primary); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; padding: 60px 20px; text-align: center; }
.stat .stat-num { font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.stat .stat-label { color: #e6f2ec; margin-top: 4px; }
@media (max-width: 992px) { .stats .container { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .stats .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band {
    background:
        linear-gradient(135deg, rgba(13,124,90,.96) 0%, rgba(8,94,68,.97) 60%, rgba(6,72,51,.98) 100%),
        repeating-linear-gradient(45deg, rgba(176,128,58,.08) 0 2px, transparent 2px 14px);
    color: #fff;
    padding: 48px 32px;
    border-radius: 18px;
    border: 1px solid rgba(176,128,58,.25);
    box-shadow: 0 18px 50px rgba(13,124,90,.28), inset 0 1px 0 rgba(255,255,255,.06);
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 40px 0 24px;
}
.cta-band::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--accent), #e8c07a);
    border-radius: 0 0 4px 4px;
}
.cta-band::after {
    content: '';
    position: absolute;
    right: -60px; bottom: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(176,128,58,.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cta-band > h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.cta-band > h2::before {
    content: '🌾';
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.cta-band > p {
    color: #d0e6d7;
    max-width: 640px;
    margin: 0 auto 26px;
    font-size: 1rem;
    line-height: 1.6;
}
.cta-band .btn {
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: .98rem;
    border-radius: 12px;
    transition: all .25s ease;
    letter-spacing: .01em;
}
.cta-band .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #e8c07a 100%);
    color: #13251f;
    border: none;
    box-shadow: 0 8px 22px rgba(176,128,58,.35);
}
.cta-band .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(176,128,58,.5);
}
.cta-band .btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.6);
    backdrop-filter: blur(4px);
}
.cta-band .btn-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    transform: translateY(-2px);
}
.cta-band .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
@media (max-width: 600px) {
    .cta-band { padding: 36px 20px; border-radius: 14px; margin: 28px 0 16px; }
    .cta-band > h2 { font-size: 1.35rem; }
    .cta-band .btn { min-width: 150px; flex: 1; padding: 12px 20px; }
    .cta-band .btn-group { gap: 10px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: #b8c6be; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: linear-gradient(120deg, var(--dark), #1c3a30); color: #fff; padding: 60px 0; }
.page-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #c2d9ce; max-width: 640px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data-table th, table.data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.data-table th { background: var(--light); color: var(--dark); font-weight: 700; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #f7faf8; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 6px; font-size: .92rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-family: var(--font); font-size: .95rem; color: var(--text); background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,124,90,.12);
}
.form-error { display: block; margin-top: 4px; color: #c0392b; font-size: .82rem; font-weight: 600; }
.file-upload-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 8px; cursor: pointer; transition: border-color .2s, background .2s; }
.file-upload-btn:hover { border-color: var(--primary); background: #f7faf8; }
.file-upload-btn .file-upload-text { display: inline-block; padding: 6px 14px; background: var(--light); border-radius: 6px; font-weight: 600; font-size: .88rem; color: var(--text); }
.file-upload-btn .file-name { font-size: .88rem; color: var(--muted); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .92rem; cursor: pointer; }
.checkbox-item input[type=checkbox] { width: auto; }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-item summary { padding: 18px 20px; cursor: pointer; font-weight: 600; color: var(--dark); list-style: none; position: relative; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::marker { display: none; content: ''; }
.accordion-item summary::after { content: '+'; position: absolute; right: 20px; font-size: 1.4rem; color: var(--primary); }
.accordion-item[open] summary::after { content: '−'; }
.accordion-item .acc-body { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #a8bab1; padding: 60px 0 0; }
.footer > .container { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; font-weight: 700; }
.footer a { color: #a8bab1; }
.footer a:hover { color: var(--accent); }
.footer ul li { margin-bottom: 8px; font-size: .9rem; }
.footer .footer-about p { font-size: .9rem; margin-top: 12px; line-height: 1.6; }
.footer .footer-logo { display: inline-flex; align-items: center; text-decoration: none; }
.footer .footer-logo img { height: 44px; width: auto; object-fit: contain; }
.footer .footer-contact li { font-size: .9rem; line-height: 1.6; }
.footer .footer-contact li > span { white-space: nowrap; margin-right: 6px; }
.footer .footer-contact li > a { white-space: nowrap; }
.footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: .85rem; }
.footer .footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer .footer-bottom a { color: #a8bab1; margin: 0 4px; }
.footer .footer-bottom a:hover { color: var(--accent); }
.footer .footer-bottom-links { display: inline-flex; gap: 15px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; } .mb-4 { margin-bottom: 40px; }
.text-muted { color: var(--muted); }
.font-bold { font-weight: 700; }
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700;
    background: #e6f2ec; color: var(--primary);
}
.badge-accent { background: #f5ede0; color: var(--accent-dark); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch .lang-current {
    display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 6px 12px; border-radius: 6px;
    font-size: .85rem; color: var(--text); font-weight: 600; border: 1px solid var(--border);
    background: #fff; transition: border-color .2s, background .2s;
}
.lang-switch .lang-current:hover { border-color: var(--primary); background: #e6f2ec; }
.lang-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--border);
    border-radius: 8px; box-shadow: var(--shadow-lg); min-width: 140px; display: none; z-index: 200; overflow: hidden;
}
.lang-switch.open .lang-dropdown { display: block; }
.lang-dropdown a { display: block; padding: 9px 16px; color: var(--text); font-size: .88rem; transition: background .15s; }
.lang-dropdown a:hover { background: #e6f2ec; color: var(--primary); }
.lang-dropdown a.active { color: var(--primary); font-weight: 700; }

/* ---------- Contact / info cards ---------- */
.info-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: #fff; }
.info-card .ic-icon { width: 48px; height: 48px; border-radius: 10px; background: #e6f2ec; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.info-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 6px; }
.info-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Contact page layout ---------- */
.contact-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; }
@media (max-width: 992px) { .contact-layout { grid-template-columns: 1fr; gap: 28px; } }

.contact-response-banner {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    background: linear-gradient(100deg, #e6f2ec, #f4f7f5);
    border-left: 4px solid var(--primary); border-radius: 8px; margin-bottom: 24px;
}
.contact-response-banner .icon { color: var(--primary); }
.contact-response-banner strong { color: var(--dark); }

.form-section { border: none; padding: 0; margin-bottom: 28px; }
.form-section + .form-section { padding-top: 24px; border-top: 1px dashed var(--border); }
.form-section-title {
    display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--primary);
    margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent);
    width: fit-content;
}
.form-group label .icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--muted); }

/* Quick contact 2×2 grid (replaces stacked emoji cards) */
.quick-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.qc-item {
    display: flex; flex-direction: column; gap: 6px; padding: 18px;
    border: 1px solid var(--border); border-radius: 10px; background: #fff;
    transition: border-color .2s, transform .2s;
}
.qc-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.qc-item .qc-icon {
    width: 38px; height: 38px; border-radius: 8px; background: #e6f2ec; color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.qc-item .qc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.qc-item .qc-value { font-size: .92rem; color: var(--dark); font-weight: 600; word-break: break-word; }
.qc-item a { color: var(--dark); }
.qc-item a:hover { color: var(--primary); }
@media (max-width: 480px) { .quick-contact { grid-template-columns: 1fr; } }

/* Office card with map */
.office-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; margin-bottom: 24px; }
.office-card .oc-head {
    display: flex; align-items: center; gap: 10px; padding: 18px 22px 12px;
    border-bottom: 1px solid var(--border);
}
.office-card .oc-head .icon { color: var(--accent); }
.office-card .oc-head h3 { font-size: 1.05rem; color: var(--dark); }
.office-card .oc-body { padding: 16px 22px 22px; }
.office-card .oc-body p { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.office-card .oc-map { height: 140px; background: var(--light); border-radius: 8px; overflow: hidden; margin-top: 12px; border: 1px solid var(--border); }
.office-card .oc-map img { width: 100%; height: 100%; object-fit: cover; }

/* Social links */
.social-links { display: flex; gap: 10px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #e6f2ec; color: var(--primary); transition: background .2s, color .2s, transform .2s;
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.social-btn .icon { width: 18px; height: 18px; }

/* ---------- Tool styles ---------- */
.tool-shell { max-width: 900px; margin: 0 auto; }
.tool-output { padding: 24px; background: var(--light); border-radius: var(--radius); border: 1px solid var(--border); }
.tool-output .out-big { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.tool-result-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.tool-result-row:last-child { border-bottom: none; }
.tool-result-row .r-label { color: var(--muted); }
.tool-result-row .r-value { font-weight: 700; color: var(--dark); }

/* Step lists for "How to Use" sections (10-§8) */
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list li { counter-increment: step; position: relative; padding: 14px 0 14px 56px; border-bottom: 1px dashed var(--border); color: var(--muted); }
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
    content: counter(step); position: absolute; left: 0; top: 14px;
    width: 36px; height: 36px; line-height: 36px; text-align: center;
    background: var(--primary); color: #fff; border-radius: 50%;
    font-weight: 700; font-size: .95rem;
}
.step-list li strong { color: var(--dark); display: inline; }
.tool-shell .badge-free { display: inline-block; margin-bottom: 1rem; padding: .35rem .7rem; background: var(--light); border-radius: var(--radius); font-size: .82rem; color: var(--primary); font-weight: 600; }
.info-card code { background: var(--light); padding: 1px 6px; border-radius: 4px; font-size: .9em; color: var(--primary); }

/* ---------- Capacity Calculator layout ---------- */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc-sticky { position: sticky; top: 100px; }
@media (max-width: 992px) { .calc-layout { grid-template-columns: 1fr; } .calc-sticky { position: static; } }

.calc-input-group { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px dashed var(--border); }
.calc-input-group:last-child { border-bottom: none; margin-bottom: 0; }
.calc-input-group-title {
    display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 14px;
}
.calc-input-group-title .icon { color: var(--accent); }

/* Result hero (big number) */
.calc-result-hero { text-align: center; padding: 8px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.calc-result-hero .crh-label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.calc-result-hero .crh-value { font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1.1; margin: 4px 0; }
.calc-result-hero .crh-unit { font-size: 1.1rem; color: var(--muted); font-weight: 600; }

/* Capacity visualization bar */
.capacity-bar { margin: 18px 0; }
.capacity-bar .cb-track { height: 14px; background: #e2e8e4; border-radius: 7px; overflow: hidden; }
.capacity-bar .cb-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 7px; transition: width .4s ease; }
.capacity-bar .cb-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* Result detail cards (2×2) */
.calc-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.crg-item { padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.crg-item .crg-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.crg-item .crg-value { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-top: 2px; }
.crg-item .crg-sub { font-size: .78rem; color: var(--muted); }

/* Calculator actions */
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calc-actions .btn { flex: 1; min-width: 130px; }

/* Quick presets */
.calc-presets { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 20px; padding:14px 16px; background:linear-gradient(100deg,var(--light),#fff); border:1px solid var(--border); border-radius:var(--radius); }
.calc-presets .cp-label { font-size:.82rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-right:4px; }
.calc-presets .cp-btn { padding:7px 14px; border:1px solid var(--primary-100); border-radius:20px; background:#fff; color:var(--primary); font-size:.85rem; font-weight:600; cursor:pointer; transition:all .2s; }
.calc-presets .cp-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); transform:translateY(-1px); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer > .container { grid-template-columns: 1fr 1fr; }
    .stats .container { grid-template-columns: repeat(2, 1fr); }
    .nav { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero .container { padding: 80px 20px; }
}
@media (max-width: 600px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .section-head h2 { font-size: 1.7rem; }
    .footer .container { grid-template-columns: 1fr; }
    .header-cta .btn { display: none; }
}

/* ---------- Floating Quick-Inquiry & Contact Button Group (manxingbulk.com style) ---------- */
.floating-cta {
    position: fixed; right: 24px; bottom: 69px; z-index: 1000;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
    /* bottom value controlled by JS to avoid footer; transition makes movement smooth */
    transition: bottom .2s ease-out;
}
/* Unified round buttons */
.floating-btn {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.2);
    transition: transform .28s, box-shadow .28s, opacity .28s, visibility .28s;
    border: none; cursor: pointer; text-decoration: none;
    flex-shrink: 0;
}
.floating-btn:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.floating-btn .icon { width: 24px; height: 24px; }
/* Button colors (per screenshot: Quote=orange, WhatsApp=green, Phone=orange, Back-to-top=dark gray) */
.floating-quote    { background: linear-gradient(135deg, #f5a623, #e8943a); }
.floating-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.floating-phone    { background: linear-gradient(135deg, #f5a623, #e8943a); }
.floating-top      { background: linear-gradient(135deg, #2d343c, #4a5560); }
.invisible { visibility: hidden; opacity: 0; }
@media (max-width: 600px) {
    .floating-cta { right: 14px; bottom: 18px; gap: 10px; }
    .floating-btn { width: 48px; height: 48px; }
    .floating-btn .icon { width: 20px; height: 20px; }
}

/* ---------- Quick-Inquiry Modal ---------- */
.qi-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(8, 26, 19, .6);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: qiFadeIn .22s ease-out;
}
.qi-overlay[hidden] { display: none; }
@keyframes qiFadeIn { from { opacity: 0; } to { opacity: 1; } }
.qi-modal {
    position: relative; width: 100%; max-width: 460px;
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 70px rgba(8, 40, 30, .35);
    animation: qiSlideUp .28s ease-out;
    max-height: 92vh; overflow-y: auto;
}
@keyframes qiSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.qi-modal .qi-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 34px; height: 34px; border: none; cursor: pointer;
    background: #f1f5f3; color: var(--dark); font-size: 1.5rem; line-height: 1;
    border-radius: 50%; transition: background .2s, transform .2s;
}
.qi-modal .qi-close:hover { background: #e2e8e4; transform: rotate(90deg); }
.qi-modal .qi-header {
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    color: #fff; padding: 30px 28px 22px;
}
.qi-modal .qi-header h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; }
.qi-modal .qi-header p { color: #d0e6d7; font-size: .92rem; }
.qi-form { padding: 24px 28px 28px; }
.qi-form .form-group { margin-bottom: 14px; }
.qi-form .form-group label { font-size: .88rem; margin-bottom: 4px; }
.qi-form .form-group input,
.qi-form .form-group textarea { padding: 11px 14px; font-size: .94rem; }
.qi-form .btn { width: 100%; margin-top: 6px; }
.qi-success {
    margin-top: 14px; padding: 12px 16px; background: #f0fdf4;
    border: 1px solid #bbf7d0; border-radius: 8px; color: #15803d;
    font-weight: 600; font-size: .92rem; text-align: center;
}
.qi-error {
    margin-top: 14px; padding: 12px 16px; background: #fef2f2;
    border: 1px solid #fecaca; border-radius: 8px; color: #b91c1c;
    font-size: .88rem; text-align: center;
}

/* =========================================================
   * Industrial enhancement layer (per grainsilo.com / manxingsilo.com)
   Layered on existing design system, remove "AI template feel", add industrial vibe
   ========================================================= */

/* -- Typography hierarchy: more industrial, heavier headings -- */
h1, h2, h3 { letter-spacing: -.015em; }
.section-head h2 { font-size: 2.45rem; font-weight: 900; position: relative; display: inline-block; }
.section-head h2::after {
    content: ''; display: block; width: 64px; height: 4px; margin: 14px auto 0;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
}
.section-head .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px;
    background: var(--accent-50); border: 1px solid #e0c28a; border-radius: 20px;
    font-size: .72rem; margin-bottom: 14px;
}
.section-head .eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section-head p { font-size: 1.1rem; max-width: 680px; margin-left: auto; margin-right: auto; }

/* -- Hero: industrial gradient + grid texture -- */
.hero .hero-overlay {
    background:
        linear-gradient(100deg, rgba(3,46,37,.92) 0%, rgba(8,46,37,.7) 45%, rgba(8,46,37,.25) 100%),
        repeating-linear-gradient(135deg, transparent 0 40px, rgba(255,255,255,.015) 40px 41px);
}
.hero h1 { font-size: 3.2rem; font-weight: 900; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero p { font-size: 1.2rem; }
.hero .container { padding: 130px 20px 110px; }
.hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none; z-index: 1;
}
.hero .hero-actions .btn { box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* -- Trust badges: industrial steel gray bg -- */
.trust-badges { background: linear-gradient(180deg, var(--steel-dark), var(--dark)) !important; border-bottom: 3px solid var(--accent); }
.trust-badges .icon-text { font-weight: 600; letter-spacing: .3px; }

/* -- Persona / feature cards: industrial hover + image treatment -- */
.persona-card { border-top: 3px solid transparent; }
.persona-card:hover { border-top-color: var(--accent); }
.persona-card .feature-icon {
    width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 16px;
    background: linear-gradient(145deg, #e6f2ec, #d5e9dc);
    box-shadow: inset 0 -3px 0 rgba(13,124,90,.12);
    display: flex; align-items: center; justify-content: center;
}
.persona-card .feature-icon svg.icon {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0;
}
.card .card-img { background: var(--steel-dark); }
.card .card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,46,37,.35), transparent 55%);
    opacity: 0; transition: opacity .3s;
}
.card:hover .card-img::after { opacity: 1; }
.card .card-body { border-top: 1px solid var(--border); }
.card .card-link { transition: gap .2s; }
.card:hover .card-link { gap: 10px; }

/* -- Stats: industrial gauge feel -- */
.stats { background: linear-gradient(160deg, var(--primary-dark), var(--primary-900)); position: relative; }
.stats::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,.02) 80px 81px);
    pointer-events: none;
}
.stat { position: relative; z-index: 1; padding: 10px; }
.stat .stat-num { font-size: 3rem; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.stat .stat-label { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: .85; }

/* -- Page hero: add bg texture and left color block -- */
.page-hero {
    background:
        linear-gradient(120deg, rgba(3,46,37,.96), rgba(28,46,37,.85)),
        repeating-linear-gradient(45deg, transparent 0 30px, rgba(255,255,255,.02) 30px 31px);
    border-bottom: 3px solid var(--accent); position: relative;
}
.page-hero::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent);
}
.page-hero h1 { font-size: 2.6rem; font-weight: 900; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-img { background-image: linear-gradient(120deg, rgba(3,46,37,.94), rgba(28,46,37,.82)), var(--hero-bg); background-size: cover; background-position: center; }

/* -- Section rhythm: alternating bg + top thin line -- */
.section { position: relative; }
.section-alt { background: linear-gradient(180deg, var(--light), #edf2ef); }

/* -- Industrial info-card -- */
.info-card { box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(13,124,90,.05); }
.info-card .ic-icon { background: linear-gradient(145deg, var(--primary-50), #d5e9dc); box-shadow: inset 0 -3px 0 rgba(13,124,90,.12); }

/* -- Buttons: more solid industrial feel -- */
.btn-primary { box-shadow: 0 4px 0 var(--primary-700); }
.btn-primary:hover { box-shadow: 0 6px 0 var(--primary-700); }
.btn-accent { box-shadow: 0 4px 0 var(--accent-dark); }
.btn-accent:hover { box-shadow: 0 6px 0 var(--accent-dark); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.2) !important; }

/* -- Step list (How to Use): industrial numbering -- */
.step-list li::before { background: linear-gradient(145deg, var(--primary), var(--primary-dark)); box-shadow: 0 4px 10px rgba(13,124,90,.3); }

/* -- Breadcrumb: integrate into page -- */
.breadcrumb { padding: 14px 0; }

/* -- Contact page enhancements -- */
.contact-response-banner {
    background: linear-gradient(100deg, #e6f2ec, #f4f7f5);
    border-left-width: 5px; box-shadow: 0 2px 8px rgba(13,124,90,.06);
}
.form-section-title { border-bottom: 3px solid var(--accent); padding-bottom: 10px; }
.form-reassure { display:flex; align-items:center; gap:8px; margin-top:12px; font-size:.82rem; color:var(--muted); }
.why-trust { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:24px; }
.why-trust .wt-item { display:flex; align-items:center; gap:8px; padding:14px 12px; background:linear-gradient(145deg,#fff,var(--light)); border:1px solid var(--border); border-radius:10px; }
.why-trust .wt-item .wt-icon { width:34px; height:34px; border-radius:8px; background:linear-gradient(145deg,var(--primary-50),#d5e9dc); color:var(--primary); display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.why-trust .wt-item strong { display:block; font-size:1.1rem; color:var(--dark); line-height:1.1; }
.why-trust .wt-item span { font-size:.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; }
@media (max-width:480px) { .why-trust { grid-template-columns:1fr; } }
.office-card { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(13,124,90,.06); }
.office-card .oc-head { background: linear-gradient(180deg, var(--light), #fff); }
.office-card .oc-map { border: 1px solid var(--border); box-shadow: inset 0 2px 8px rgba(0,0,0,.05); }
.qc-item { box-shadow: 0 1px 0 var(--border); }
.qc-item .qc-icon { background: linear-gradient(145deg, var(--primary-50), #d5e9dc); box-shadow: inset 0 -3px 0 rgba(13,124,90,.12); }
.social-btn { box-shadow: 0 2px 6px rgba(13,124,90,.1); }

/* -- Calculator enhancements -- */
.calc-layout .info-card { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(13,124,90,.06); }
.calc-input-group-title { border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.tool-output {
    background: linear-gradient(180deg, var(--light), #edf2ef);
    border-top: 3px solid var(--primary);
    box-shadow: 0 8px 24px rgba(13,124,90,.08);
}
.calc-result-hero .crh-value {
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.capacity-bar .cb-fill { background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent)); box-shadow: 0 0 12px rgba(13,124,90,.3); }
.crg-item { transition: transform .2s, box-shadow .2s; }
.crg-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13,124,90,.1); border-color: var(--primary-100); }

/* -- Tool page badge -- */
.badge-free { background: linear-gradient(100deg, var(--accent-50), #fff) !important; border: 1px solid #e0c28a !important; color: var(--accent-dark) !important; }

/* -- Footer enhancements -- */
.footer { border-top: 3px solid var(--accent); background: linear-gradient(180deg, var(--dark), #0a1814); }
.footer h4 { position: relative; padding-left: 12px; }
.footer h4::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--accent); border-radius: 2px; }

/* -- Responsive tweaks -- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.4rem; }
    .hero .container { padding: 90px 20px 80px; }
    .section-head h2 { font-size: 2rem; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 1.9rem; }
    .page-hero h1 { font-size: 1.8rem; }
    .section-head h2 { font-size: 1.6rem; }
    .calc-result-hero .crh-value { font-size: 2.2rem; }
    .stat .stat-num { font-size: 2.2rem; }
}

/* =========================================================
   ★ Detail Page Enhancements — Product & Project pages
   ========================================================= */

/* —— Product Hero —— */
.product-hero { margin-bottom: 2.5rem; }
.product-hero-img img { transition: transform .4s ease, box-shadow .4s ease; }
.product-hero-img:hover img { transform: scale(1.02); }
.product-hero-info h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.product-cta-row { margin-top: 1.5rem; }

/* 产品页专属样式已拆分到 product-pages.css（便于前端单独优化） */

/* —— Project Hero Image —— */
.project-hero-img { position: relative; display: block; }
.project-hero-badges {
    position: absolute; bottom: 16px; left: 16px; display: flex; gap: 10px; flex-wrap: wrap;
}
.project-hero-badges .badge {
    background: rgba(13,124,90,.92); color: #fff; border: none; backdrop-filter: blur(4px);
    font-size: .85rem; padding: 6px 14px; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* —— Product Feature Cards —— */
.grid-4:has(.feature:nth-child(5):last-child) {
    grid-template-columns: repeat(3, 1fr) !important;
}
.feature {
    transition: transform .25s, box-shadow .25s;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    height: 100%;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13,124,90,.12);
    border-color: var(--primary-100);
}
.feature .feature-icon {
    margin-bottom: 1rem;
    background: var(--primary-50);
    color: var(--primary);
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    transition: background .25s, color .25s, transform .25s;
}
.feature:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(-6deg) scale(1.08);
}
.feature h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* —— Spec Table Enhancement —— */
.spec-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .92rem; }
.spec-table thead th {
    background: var(--dark); color: #fff; font-weight: 700; text-transform: uppercase;
    font-size: .8rem; letter-spacing: .5px; padding: 14px 16px; text-align: left;
}
.spec-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.spec-table tbody tr:nth-child(even) { background: var(--light); }
.spec-table tbody tr:hover { background: var(--primary-50); }

/* —— Gallery Hover —— */
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--radius); display: block;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,124,90,.65) 0%, transparent 50%);
    opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }

/* —— Equipment Card (Project) —— */
.equipment-card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.equipment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(13,124,90,.14);
    border-color: var(--primary-100);
}
.equipment-card .card-img { position: relative; overflow: hidden; }
.equipment-card .card-img img { transition: transform .4s ease; }
.equipment-card:hover .card-img img { transform: scale(1.08); }
.equipment-card h4 { font-size: 1rem; color: var(--dark); margin-bottom: 8px; font-weight: 700; }
.equipment-card p { font-size: .88rem; color: var(--muted); margin-bottom: 4px; }
.equipment-card .eq-notes {
    display: block; margin-top: 10px; padding: 8px 12px;
    background: var(--accent-50); border-left: 3px solid var(--accent);
    font-size: .82rem; color: var(--steel); border-radius: 0 6px 6px 0;
}

/* —— Installation Steps —— */
.step-card {
    text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius);
    border: 1px solid var(--border); background: #fff; transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(13,124,90,.1); }
.step-num {
    width: 48px; height: 48px; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; box-shadow: 0 4px 12px rgba(13,124,90,.25);
}
.step-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.step-card p { font-size: .85rem; color: var(--muted); }

/* —— Checklist —— */
.checklist { list-style: none; padding: 0; }
.checklist li {
    padding: 10px 0 10px 36px; position: relative; color: var(--text);
    font-size: .92rem; border-bottom: 1px solid var(--border);
}
.checklist li::before {
    content: '✓'; position: absolute; left: 0; top: 10px;
    width: 24px; height: 24px; background: var(--primary-50); color: var(--primary);
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
}
.checklist li:last-child { border-bottom: none; }

/* —— CTA Band —— */
.cta-band {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-700) 100%);
    color: #fff; padding: 3.5rem 2rem; border-radius: var(--radius);
    text-align: center; margin: 2.5rem 0;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; font-size: 1.05rem; }
.cta-band .btn { margin: 0 .5rem; }

/* —— Download Cards —— */
.download-card {
    border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
    background: #fff; transition: transform .25s, box-shadow .25s; text-align: center;
}
.download-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(13,124,90,.12); }
.dl-icon {
    width: 48px; height: 48px; margin: 0 auto 12px;
    background: var(--primary-50); color: var(--primary);
    border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
}
.download-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.download-card .badge { display: inline-block; margin: 8px 0; }

/* —— Project Timeline —— */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 768px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* —— Accordion —— */
.accordion-item {
    border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px;
    overflow: hidden; transition: box-shadow .25s;
}
.accordion-item:hover { box-shadow: 0 6px 18px rgba(13,124,90,.08); }
.accordion-item summary {
    padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--dark);
    list-style: none; background: #fff; display: flex; align-items: center; justify-content: space-between;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::marker { display: none; content: ''; }
.accordion-item summary::after {
    content: '+'; font-size: 1.3rem; color: var(--primary); font-weight: 300; transition: transform .25s;
}
.accordion-item[open] summary::after { content: '−'; }
.accordion-item[open] summary { background: var(--primary-50); }
.acc-body { padding: 0 22px 18px; color: var(--muted); line-height: 1.7; }

/* —— Data table wrap —— */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.04); }

/* —— Page Hero —— */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: #fff; padding: 3.5rem 0 2.5rem;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, transparent 0, transparent 30px, rgba(255,255,255,.03) 30px, rgba(255,255,255,.03) 31px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.page-hero .badge {
    background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
}

/* —— Project Gallery Enhancement —— */
.project-gallery { gap: 1.5rem; }
.gallery-figure {
    margin: 0; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
    background: #fff; border: 1px solid var(--border);
}
.gallery-figure:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(13,124,90,.14);
}
.gallery-figure-img {
    aspect-ratio: 4/3; overflow: hidden; background: var(--steel-dark);
    position: relative;
}
.gallery-figure-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.gallery-figure:hover .gallery-figure-img img { transform: scale(1.08); }
.gallery-figure-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,124,90,.4) 0%, transparent 60%);
    opacity: 0; transition: opacity .3s;
}
.gallery-figure:hover .gallery-figure-img::after { opacity: 1; }
.gallery-figure figcaption {
    padding: 12px 16px; font-size: .88rem; color: var(--muted);
    border-top: 1px solid var(--border); line-height: 1.5;
}

/* —— Gallery Tabs Enhancement —— */
.gallery-tabs .tab-bar {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.tab-btn {
    padding: 10px 18px; background: transparent; border: none;
    color: var(--muted); font-weight: 600; cursor: pointer;
    border-radius: 8px 8px 0 0; transition: all .2s;
    position: relative; bottom: -2px;
    border-bottom: 3px solid transparent;
}
.tab-btn:hover { color: var(--primary); background: var(--primary-50); }
.tab-btn.btn-active {
    color: var(--primary); background: var(--primary-50);
    border-bottom-color: var(--primary);
}
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* —— Section Headings (Detail Pages) —— */
.section h2, .section .container > h2 {
    font-size: 1.85rem; font-weight: 800; color: var(--dark);
    margin-top: 2.5rem; letter-spacing: -.015em;
    position: relative; padding-left: 16px;
}
.section h2::before, .section .container > h2::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 5px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 3px;
}
.section h3 {
    font-size: 1.2rem; font-weight: 700; color: var(--dark);
    margin-top: 1.5rem; margin-bottom: .75rem;
}

/* —— Breadcrumb Enhancement —— */
.breadcrumb {
    padding: 16px 0; font-size: .88rem; color: var(--muted);
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .crumb-sep { color: var(--border); margin: 0 4px; }

/* —— Data Table Enhancement —— */
.data-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    font-size: .92rem;
}
.data-table th {
    background: var(--dark); color: #fff; font-weight: 700;
    padding: 14px 16px; text-align: left;
    text-transform: uppercase; font-size: .78rem; letter-spacing: .5px;
}
.data-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    color: var(--text);
}
.data-table tr:nth-child(even) td { background: var(--light); }
.data-table tr:hover td { background: var(--primary-50); }

/* =========================================================
   ★ Article Page — TOC 侧边栏布局
   ========================================================= */

/* 文章主内容 + TOC 双列布局 */
.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
}

/* TOC 侧边栏容器 */
.article-toc {
    position: relative;
}

/* TOC 卡片悬浮效果 */
.info-card-toc {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* TOC 列表样式 */
.info-card-toc ul {
    margin-top: 8px;
    padding-left: 0;
    list-style: none;
}

.info-card-toc li {
    margin-bottom: 6px;
}

.info-card-toc a {
    font-size: 0.9rem;
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.info-card-toc a:hover {
    background: var(--light);
}

/* =========================================================
   ★ 响应式修复 — 卡片图片自适应高度
   ========================================================= */

/* 自适应高度卡片图片（替代固定高度） */
.card-img-responsive {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-img-responsive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Hero Banner Responsive ---------- */
@media (max-width: 992px) {
	.index_banner_lunbo a { height: 500px; }
}
@media (max-width: 768px) {
	.index_banner_lunbo a { height: 400px; }
}
@media (max-width: 480px) {
	.index_banner_lunbo a { height: 300px; }
}

/* =========================================================
   ★ 响应式断点 — 文章页 & 高列数 Grid
   ========================================================= */

/* 平板端（<= 992px） */
@media (max-width: 992px) {
    /* 文章页 TOC 侧边栏堆叠 */
    .article-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-toc {
        order: -1; /* TOC 移到内容上方 */
    }

    .info-card-toc {
        position: static;
        max-height: none;
    }
}

/* 移动端（<= 600px） */
@media (max-width: 600px) {
    .article-grid {
        gap: 16px;
    }

    /* TOC 在移动端简化为紧凑列表 */
    .info-card-toc {
        padding: 12px 16px;
    }

    .info-card-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .info-card-toc li {
        margin-bottom: 0;
    }

    .info-card-toc a {
        font-size: 0.82rem;
        padding: 3px 6px;
    }
}

/* 小屏手机（<= 480px） */
@media (max-width: 480px) {
    .info-card-toc ul {
        display: block;
    }
}
/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pagination li {
    display: inline-flex;
}
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    color: #1a3a4a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination li a:hover {
    background: #e6f2ec;
    border-color: #1a3a4a;
    color: #1a3a4a;
}
.pagination li.active span {
    background: #1a3a4a;
    border-color: #1a3a4a;
    color: #fff;
}
.pagination li.disabled span {
    background: #f5f5f5;
    border-color: #e5e5e5;
    color: #999;
    cursor: not-allowed;
}
.pagination li:first-child a,
.pagination li:first-child span,
.pagination li:last-child a,
.pagination li:last-child span {
    padding: 0 16px;
}

/* ---------- Language Switcher Fix ---------- */
.lang-switch {
    position: relative;
    display: inline-block;
}
.lang-switch .lang-current {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .85rem;
    color: var(--text);
    font-weight: 600;
    border: 1px solid var(--border);
    background: #fff;
    transition: border-color .2s, background .2s;
    white-space: nowrap;
}
.lang-switch .lang-current:hover {
    border-color: var(--primary);
    background: #e6f2ec;
}
.lang-switch .lang-current img,
.lang-switch .lang-dropdown a img {
    width: 18px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    display: none;
    z-index: 200;
    overflow: hidden;
}
.lang-switch.open .lang-dropdown {
    display: block;
}
.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: var(--text);
    font-size: .88rem;
    transition: background .15s;
    text-decoration: none;
}
.lang-dropdown a:hover {
    background: #e6f2ec;
    color: var(--primary);
}
.lang-dropdown a.active {
    color: var(--primary);
    font-weight: 700;
    background: #f0f7f3;
}
