:root {
    --primary: #126b52;
    --primary-dark: #0b4f3d;
    --primary-soft: #e9f3ef;
    --ink: #1d2b26;
    --text: #52635b;
    --muted: #718078;
    --paper: #f4f7f5;
    --white: #ffffff;
    --line: #e1e9e5;
    --price: #b7533f;
    --gold: #b98735;
    --max: 1280px;
    --shadow: 0 12px 34px rgba(24, 57, 46, .075);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.page-width { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: var(--white);
    box-shadow: 0 6px 24px rgba(22, 51, 42, .08);
}
.utility-bar { height: 32px; color: #d4e5df; background: var(--primary-dark); font-size: 12px; }
.utility-inner { display: flex; height: 32px; align-items: center; justify-content: space-between; }
.utility-inner > div { display: flex; gap: 24px; }
.utility-inner a:hover { color: var(--white); }
.header-main { display: grid; min-height: 82px; grid-template-columns: 260px minmax(300px, 620px) 178px; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 250px; height: 64px; object-fit: contain; object-position: left center; }
.site-search { display: grid; height: 46px; grid-template-columns: minmax(0, 1fr) 88px; border: 2px solid var(--primary); border-radius: 10px; background: var(--white); }
.site-search input { min-width: 0; padding: 0 18px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.site-search input::placeholder { color: #96a39d; }
.site-search button { color: var(--white); background: var(--primary); border: 0; cursor: pointer; font-weight: 700; }
.site-search button:hover { background: var(--primary-dark); }
.header-quote { display: flex; min-height: 48px; justify-content: center; padding: 4px 14px; border-left: 1px solid var(--line); flex-direction: column; }
.header-quote small { color: var(--muted); font-size: 12px; }
.header-quote strong { color: var(--primary); font-size: 15px; }
.nav-toggle { display: none; }

.category-nav { color: var(--white); background: var(--primary); }
.category-nav__inner { display: flex; min-height: 44px; align-items: center; }
.category-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 28px; font-size: 14px; font-weight: 600; }
.category-nav a:hover { background: rgba(255, 255, 255, .12); }
.category-nav .category-all { width: 232px; justify-content: center; background: var(--primary-dark); }

.marketplace { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 18px; padding: 20px 0 24px; }
.category-panel { overflow: hidden; min-height: 530px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.category-panel__title { padding: 19px 22px; color: var(--white); background: var(--primary-dark); font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.category-filter, .category-link { display: flex; width: 100%; min-height: 57px; align-items: center; justify-content: space-between; padding: 0 20px; color: var(--text); background: var(--white); border: 0; border-bottom: 1px solid #edf2f0; cursor: pointer; text-align: left; }
.category-filter::after { content: "›"; color: #9baaa4; }
.category-filter:hover, .category-filter.is-active, .category-link:hover { color: var(--primary); background: var(--primary-soft); }
.category-filter.is-active { box-shadow: inset 4px 0 0 var(--primary); font-weight: 700; }
.category-link { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; flex-direction: column; }
.category-link span { font-weight: 600; }
.category-link small { color: var(--muted); }

.marketplace-main { min-width: 0; }
.marketplace-hero { display: grid; min-height: 280px; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); overflow: hidden; border-radius: 12px; background: linear-gradient(130deg, #0b4f3d 0%, #126b52 62%, #21856a 100%); box-shadow: var(--shadow); }
.marketplace-hero__copy { padding: 40px 42px; color: var(--white); }
.eyebrow { margin: 0 0 9px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.marketplace-hero .eyebrow { color: #a8d1c3; }
.marketplace-hero h1 { max-width: 620px; margin: 0; font-size: clamp(32px, 3vw, 48px); line-height: 1.18; letter-spacing: 1px; }
.marketplace-hero__copy > p:not(.eyebrow) { max-width: 640px; margin: 17px 0 0; color: rgba(255, 255, 255, .76); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 700; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--primary); }
.marketplace-hero .button-primary { color: var(--primary-dark); background: var(--white); }
.button-secondary { color: var(--white); border-color: rgba(255, 255, 255, .44); }
.button-light { color: var(--primary-dark); background: var(--white); }
.button-outline { color: var(--white); border-color: rgba(255, 255, 255, .44); }
.marketplace-hero__image { position: relative; overflow: hidden; min-height: 280px; }
.marketplace-hero__image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, var(--primary) 0%, transparent 30%); }
.marketplace-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-hero__image span { position: absolute; z-index: 2; right: 18px; bottom: 18px; padding: 7px 12px; color: var(--primary-dark); background: rgba(255, 255, 255, .94); border-radius: 7px; font-size: 12px; font-weight: 700; }

.specification-panel { margin-top: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.specification-panel__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.specification-panel__heading h2 { margin: 0; font-size: 21px; }
.specification-panel__heading .eyebrow { margin-bottom: 2px; }
.specification-panel__heading > span { color: var(--muted); font-size: 12px; }
.specification-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.specification-grid button, .specification-grid a { display: flex; min-height: 68px; align-items: flex-start; justify-content: center; padding: 11px 14px; color: var(--text); background: #f8faf9; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; flex-direction: column; }
.specification-grid button:hover, .specification-grid button.is-active, .specification-grid a:hover { color: var(--primary); background: var(--primary-soft); border-color: #8ab5a6; }
.specification-grid strong { color: inherit; font-size: 14px; }
.specification-grid span { margin-top: 2px; color: var(--muted); font-size: 12px; }

.trust-strip { color: var(--white); background: var(--primary-dark); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-grid > div { min-height: 92px; padding: 20px 26px; border-right: 1px solid rgba(255, 255, 255, .13); }
.trust-grid > div:first-child { border-left: 1px solid rgba(255, 255, 255, .13); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: 17px; }
.trust-grid span { margin-top: 3px; color: rgba(255, 255, 255, .62); font-size: 12px; }

.section { padding: 76px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
.section-heading h2, .process-intro h2, .factory-layout h2, .contact-layout h2 { margin: 0; font-size: 36px; line-height: 1.25; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); }
.section-tools { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 13px; }
.section-tools a { color: var(--primary); font-weight: 700; }

.products-section { background: var(--paper); }
.product-grid { display: grid; min-height: 360px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { border-color: #a9c5bb; box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card__image { overflow: hidden; aspect-ratio: 1 / 1; background: #eef3f0; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.product-card:hover img { transform: scale(1.025); }
.product-card__body { padding: 17px; }
.product-card__tag { display: inline-flex; margin-bottom: 8px; padding: 3px 7px; color: var(--primary); font-size: 11px; font-weight: 700; border: 1px solid #c9ded6; border-radius: 4px; background: var(--primary-soft); }
.product-card h3 { min-height: 46px; margin: 0; font-size: 16px; line-height: 1.45; }
.product-card p { min-height: 40px; margin: 7px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.product-card__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.product-price strong { color: var(--price); font-size: 22px; }
.product-price del { margin-left: 7px; color: #98a59f; font-size: 11px; }
.product-open { color: var(--primary); font-size: 12px; font-weight: 700; }
.product-loading, .product-empty { display: grid; min-height: 320px; grid-column: 1 / -1; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.product-empty[hidden] { display: none; }

.custom-section { color: var(--white); background: #133e33; }
.section-heading-light .eyebrow { color: #9bc7b8; }
.section-heading-light > p { color: rgba(255, 255, 255, .64); }
.custom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.custom-card { display: grid; min-height: 280px; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 28px; padding: 28px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .055); }
.custom-card img { width: 180px; height: 210px; object-fit: cover; border-radius: 9px; }
.custom-tag { color: #a8d1c3; font-size: 12px; }
.custom-card h3 { margin: 5px 0 0; font-size: 28px; }
.custom-card p { margin: 10px 0 20px; color: rgba(255, 255, 255, .67); font-size: 14px; }
.text-link { color: #d9ece5; font-weight: 700; }

.process-section { background: var(--white); }
.process-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.process-intro > p:not(.eyebrow) { margin: 18px 0 26px; color: var(--muted); }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--primary); font-size: 24px; font-weight: 800; }
.process-list strong { font-size: 16px; }
.process-list p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.factory-section { background: var(--paper); }
.factory-layout { display: grid; grid-template-columns: 1.06fr .94fr; gap: 58px; align-items: center; }
.factory-media { overflow: hidden; min-height: 420px; border-radius: 12px; box-shadow: var(--shadow); }
.factory-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.factory-layout > div:last-child > p:not(.eyebrow) { margin: 18px 0 26px; color: var(--muted); }
.factory-layout dl { margin: 0; }
.factory-layout dl > div { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.factory-layout dt { color: var(--primary); font-weight: 700; }
.factory-layout dd { margin: 0; color: var(--text); }

.contact-section { padding: 68px 0; color: var(--white); background: var(--primary); }
.contact-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; }
.contact-layout .eyebrow { color: #a8d1c3; }
.contact-layout > div:first-child > p:not(.eyebrow) { color: rgba(255, 255, 255, .66); }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-details > div:not(.contact-actions) { padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.contact-details span, .contact-details strong, .contact-details a { display: block; }
.contact-details span { color: rgba(255, 255, 255, .58); font-size: 12px; }
.contact-details strong, .contact-details > div > a { margin-top: 6px; font-size: 18px; }
.contact-actions { display: flex; grid-column: 1 / -1; gap: 10px; }

.site-footer { color: #aebdb7; background: #0a2019; }
.footer-inner { display: flex; min-height: 136px; align-items: center; justify-content: space-between; gap: 36px; }
.footer-brand img { width: 230px; height: 58px; padding: 5px; background: rgba(255, 255, 255, .94); border-radius: 8px; }
.footer-brand p { margin: 5px 0 0; font-size: 12px; }
.footer-meta { display: flex; gap: 22px; font-size: 12px; }
.floating-contact { position: fixed; z-index: 80; right: 22px; bottom: 22px; display: flex; min-width: 152px; padding: 10px 16px; color: var(--white); background: var(--primary); border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; box-shadow: 0 12px 28px rgba(10, 55, 42, .26); flex-direction: column; }
.floating-contact span { color: rgba(255, 255, 255, .68); font-size: 11px; }
.floating-contact strong { font-size: 14px; }

@media (max-width: 1100px) {
    .header-main { grid-template-columns: 220px minmax(280px, 1fr) 150px; gap: 18px; }
    .brand img { width: 215px; }
    .category-nav a { padding: 0 20px; }
    .marketplace { grid-template-columns: 210px minmax(0, 1fr); }
    .category-nav .category-all { width: 210px; }
    .marketplace-hero { grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr); }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .page-width { width: min(calc(100% - 28px), var(--max)); }
    .utility-bar, .header-quote { display: none; }
    .header-main { display: grid; min-height: 68px; grid-template-columns: 176px 1fr 58px; gap: 12px; }
    .brand img { width: 172px; height: 50px; }
    .site-search { height: 42px; grid-template-columns: 1fr 66px; }
    .site-search input { padding: 0 12px; font-size: 13px; }
    .nav-toggle { display: inline-flex; height: 40px; align-items: center; justify-content: center; color: var(--primary); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
    .category-nav { position: absolute; top: 68px; right: 0; display: none; width: min(82vw, 340px); height: calc(100vh - 68px); background: var(--primary-dark); }
    .category-nav.open { display: block; }
    .category-nav__inner { width: 100%; padding: 14px 20px; flex-direction: column; align-items: stretch; }
    .category-nav a, .category-nav .category-all { width: 100%; justify-content: flex-start; padding: 15px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); background: transparent; }
    .marketplace { grid-template-columns: 1fr; }
    .category-panel { display: flex; min-height: 0; overflow-x: auto; padding: 8px; gap: 8px; box-shadow: none; }
    .category-panel__title { display: none; }
    .category-filter, .category-link { width: auto; min-width: max-content; min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; }
    .category-link { justify-content: center; padding-top: 0; padding-bottom: 0; }
    .category-link small { display: none; }
    .category-filter::after { display: none; }
    .marketplace-hero { grid-template-columns: 1fr; }
    .marketplace-hero__image { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .custom-grid, .process-layout, .factory-layout, .contact-layout { grid-template-columns: 1fr; gap: 34px; }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .header-main { grid-template-columns: 154px 1fr 48px; }
    .brand img { width: 150px; }
    .site-search { grid-template-columns: 1fr 52px; }
    .site-search input { width: 100%; }
    .site-search button { font-size: 12px; }
    .marketplace-hero__copy { padding: 30px 24px; }
    .marketplace-hero h1 { font-size: 32px; }
    .hero-actions { flex-direction: column; }
    .button { width: 100%; }
    .specification-panel__heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .specification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section { padding: 58px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .section-heading h2, .process-intro h2, .factory-layout h2, .contact-layout h2 { font-size: 29px; }
    .section-tools { width: 100%; justify-content: space-between; }
    .product-grid { gap: 10px; }
    .product-card__body { padding: 12px; }
    .product-card h3 { min-height: 42px; font-size: 14px; }
    .product-card p { display: none; }
    .product-card__footer { margin-top: 10px; align-items: flex-start; flex-direction: column; }
    .product-price strong { font-size: 19px; }
    .custom-card { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 20px; }
    .custom-card img { width: 96px; height: 132px; }
    .custom-card h3 { font-size: 23px; }
    .contact-details { grid-template-columns: 1fr; }
    .contact-actions { grid-column: auto; flex-direction: column; }
    .footer-inner, .footer-meta { align-items: flex-start; flex-direction: column; }
    .footer-inner { padding: 28px 0 96px; }
    .footer-meta { gap: 4px; }
    .floating-contact { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
