/* Shaoxing Maobiao Trading — styles */
:root {
  --indigo: #14284B;
  --indigo-2: #1E3763;
  --indigo-3: #2C4A7C;
  --gold: #C99A48;
  --gold-2: #E2BA6A;
  --gold-dark: #9C7330;
  --red: #C8372D;
  --silk: #F3ECDF;
  --paper: #FBF8F2;
  --ink: #1B2233;
  --muted: #5E6678;
  --line: #E6DFD1;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(20, 40, 75, .25);
  --serif: 'Cormorant Garamond', Georgia, 'Noto Serif SC', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lang-zh { --serif: 'Noto Serif SC', 'Songti SC', serif; --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Inter', sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; }
h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--indigo); letter-spacing: -.01em; }
body.lang-zh h2 { letter-spacing: .02em; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--gold-2); }
body.lang-zh .eyebrow { letter-spacing: .3em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-3); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-2); color: var(--indigo); }
.btn-gold:hover { background: #EDCB86; }
.btn-outline-light { border-color: rgba(243, 236, 223, .5); color: var(--silk); }
.btn-outline-light:hover { background: rgba(243, 236, 223, .1); border-color: var(--silk); }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--line); padding: .55rem 1rem; font-size: .88rem; }
.btn-ghost:hover { border-color: var(--indigo); background: var(--indigo); color: #fff; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(251, 248, 242, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-en { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1rem; line-height: 1.05; letter-spacing: .06em; white-space: nowrap; color: var(--silk); transition: color .3s; }
.brand-zh { font-family: 'Noto Serif SC', serif; font-size: .74rem; letter-spacing: .28em; white-space: nowrap; color: var(--gold-2); }
.scrolled .brand-en { color: var(--indigo); }
.scrolled .brand-zh { color: var(--gold-dark); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a, .lang-switch, .lang-switch *, .header-inner .btn { white-space: nowrap; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; padding: .5rem .8rem; border-radius: 999px; color: rgba(243, 236, 223, .85); transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.scrolled .nav a { color: var(--ink); }
.scrolled .nav a:hover { background: rgba(20, 40, 75, .06); color: var(--indigo); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; background: rgba(255, 255, 255, .1); border: 1px solid rgba(243, 236, 223, .25); border-radius: 999px; padding: 3px; }
.scrolled .lang-switch { background: #fff; border-color: var(--line); }
.lang-switch button { border: 0; background: transparent; color: var(--silk); font: 600 .8rem/1 var(--sans); padding: .45rem .7rem; border-radius: 999px; cursor: pointer; font-family: 'Inter', 'Noto Sans SC', sans-serif; }
.scrolled .lang-switch button { color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--gold-2); color: var(--indigo); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--silk); border-radius: 2px; transition: .3s; }
.scrolled .menu-toggle span { background: var(--indigo); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% 20%, #24457A 0%, transparent 60%), var(--indigo); color: var(--silk); padding: 150px 0 0; overflow: hidden; }
.hero-threads { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(243, 236, 223, .045) 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, rgba(243, 236, 223, .03) 0 1px, transparent 1px 14px); mask-image: linear-gradient(180deg, #000 40%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.015em; color: #fff; margin-bottom: .4em; }
body.lang-zh .hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: .03em; line-height: 1.25; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
body.lang-zh .hero h1 em { font-style: normal; }
.hero .lead { font-size: 1.1rem; color: rgba(243, 236, 223, .82); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; height: 440px; }
.fan { position: absolute; inset: 0; }
.fan .sw { position: absolute; width: 190px; height: 300px; left: 50%; top: 40px; border-radius: 14px; background-size: cover; box-shadow: 0 25px 50px -18px rgba(0, 0, 0, .55); transform-origin: 50% 120%; border: 1px solid rgba(255, 255, 255, .12); animation: fan-in 1s cubic-bezier(.2, .8, .2, 1) both; }
.fan .s1 { transform: translateX(-50%) rotate(-28deg); animation-delay: .05s; }
.fan .s2 { transform: translateX(-50%) rotate(-14deg); animation-delay: .12s; }
.fan .s3 { transform: translateX(-50%) rotate(0deg); animation-delay: .19s; }
.fan .s4 { transform: translateX(-50%) rotate(14deg); animation-delay: .26s; }
.fan .s5 { transform: translateX(-50%) rotate(28deg); animation-delay: .33s; }
@keyframes fan-in { from { opacity: 0; transform: translateX(-50%) rotate(0deg) translateY(30px); } }
.hero-card { position: absolute; left: 0; bottom: 20px; display: flex; gap: 12px; align-items: center; background: rgba(251, 248, 242, .96); color: var(--ink); padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); max-width: 320px; }
.hero-card strong { display: block; color: var(--indigo); font-size: .95rem; }
.hero-card span { font-size: .82rem; color: var(--muted); line-height: 1.4; display: block; }
.hero-card img { flex: none; }
.stats { list-style: none; margin: 64px 0 0; padding: 28px 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid rgba(243, 236, 223, .14); position: relative; }
.stats b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--gold-2); line-height: 1.1; }
.stats span { font-size: .85rem; color: rgba(243, 236, 223, .7); }

/* Sections */
.section { padding: 110px 0; }
.section-tint { background: var(--silk); }
.section-dark { background: var(--indigo); color: var(--silk); }
.section-dark h2 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-grid > div > p { color: var(--muted); font-size: 1.04rem; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.features li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .25s, box-shadow .25s; }
.features li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.features p { color: var(--muted); font-size: .92rem; margin: 0; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--silk); display: grid; place-items: center; margin-bottom: 14px; flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--indigo); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-swatch { display: block; height: 130px; background-size: cover; background-position: center; transition: transform .6s; }
.category-grid { grid-auto-flow: dense; }
.cat-card.featured { grid-column: span 2; grid-row: span 2; }
.cat-card.featured .cat-swatch { flex: 1; min-height: 280px; }
.cat-card.featured .cat-body { flex: none; }
.cat-card.featured .cat-name { font-size: 1.7rem; }
.cat-card:hover .cat-swatch { transform: scale(1.06); }
.cat-body { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 20px; position: relative; background: #fff; flex: 1; }
.cat-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--indigo); line-height: 1.2; }
body.lang-zh .cat-name { font-size: 1.2rem; }
.cat-alt { font-size: .78rem; color: var(--gold-dark); letter-spacing: .08em; font-weight: 600; }
.cat-desc { font-size: .88rem; color: var(--muted); margin: 8px 0 12px; line-height: 1.5; flex: 1; }
.cat-link { font-size: .85rem; font-weight: 600; color: var(--indigo); }
.cat-link b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--silk); font-size: .75rem; margin: 0 2px; }

/* Products */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 .86rem/1 var(--sans); padding: .6rem 1rem; border-radius: 999px; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--indigo); }
.chip.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-width: 240px; }
.search:focus-within { border-color: var(--indigo); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; padding: .7rem 0; width: 100%; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; animation: pop .45s ease both; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.product-swatch { position: relative; height: 200px; background-size: cover; background-position: center; }
.product-swatch::after { content: ''; position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, .12) 50%, #fff 58%); }
.product-swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product-swatch img { transform: scale(1.05); }
.product-swatch.photo { overflow: hidden; }
.product-swatch::after { z-index: 1; }
.tag, .sku { z-index: 2; position: absolute; top: 14px; font-size: .72rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; }
.tag { left: 14px; background: rgba(251, 248, 242, .94); color: var(--indigo); }
.sku { right: 14px; background: rgba(20, 40, 75, .85); color: var(--silk); letter-spacing: .05em; font-family: 'Inter', monospace; }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--indigo); margin-bottom: 0; }
body.lang-zh .product h3 { font-size: 1.2rem; }
.product-alt { font-size: .82rem; color: var(--gold-dark); font-weight: 600; margin: 2px 0 14px; }
.product dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 18px; padding-top: 14px; border-top: 1px dashed var(--line); flex: 1; align-content: start; }
.product dl .wide { grid-column: 1 / -1; }
.product dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.product dd { margin: 0; font-size: .9rem; font-weight: 500; }
.product .inquire { align-self: flex-start; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border: 1px solid rgba(243, 236, 223, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .03); transition: background .25s, border-color .25s; }
.steps li:hover { background: rgba(255, 255, 255, .07); border-color: var(--gold); }
.steps .num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 700; color: var(--gold-2); line-height: 1; display: block; margin-bottom: 14px; }
.steps h3 { color: #fff; }
.steps p { color: rgba(243, 236, 223, .7); font-size: .9rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-grid > div > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { margin: 0; }
.contact-list small { display: block; text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-dark); }
.map-link { display: block; width: fit-content; margin-top: 6px; font-size: .88rem; color: var(--gold-dark) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.inquiry { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.inquiry input, .inquiry select, .inquiry textarea { font: inherit; font-size: .95rem; color: var(--ink); padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .2s, box-shadow .2s; width: 100%; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(20, 40, 75, .1); }
.inquiry textarea { resize: vertical; }
.inquiry .btn { justify-self: start; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: #0E1D38; color: rgba(243, 236, 223, .75); padding: 64px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { width: 280px; height: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid rgba(243, 236, 223, .1); padding: 20px 0 28px; font-size: .82rem; }

/* Focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1120px) {
  .menu-toggle { display: flex; }
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; background: var(--paper); padding: 12px 16px 20px; gap: 2px; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); transform: translateY(-120%); transition: transform .35s ease; z-index: -1; }
  .nav.open { transform: none; }
  .nav a, .scrolled .nav a { color: var(--ink); padding: .8rem 1rem; border-radius: 10px; }
  .lang-switch { margin-left: auto; }
}
@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card.featured { grid-row: auto; }
  .cat-card.featured .cat-swatch { flex: none; height: 220px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: .5rem .55rem; }
}
@media (max-width: 920px) {
  .menu-toggle { display: flex; }
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; background: var(--paper); padding: 12px 16px 20px; gap: 2px; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); transform: translateY(-120%); transition: transform .35s ease; z-index: -1; }
  .nav.open { transform: none; }
  .nav a, .scrolled .nav a { color: var(--ink); padding: .8rem 1rem; border-radius: 10px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 380px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .section { padding: 76px 0; }
  .hero { padding-top: 116px; }
  .brand-en { font-size: .82rem; letter-spacing: .03em; }
  .brand-zh { font-size: .62rem; letter-spacing: .12em; }
  .brand img { width: 36px; height: 36px; }
  .header-inner { gap: 12px; }
  .hero-visual { height: 330px; }
  .fan .sw { width: 140px; height: 230px; }
  .hero-card { max-width: 260px; bottom: 0; }
  .category-grid, .product-grid, .features, .steps, .inquiry .row { grid-template-columns: 1fr; }
  .cat-card.featured { grid-column: auto; }
  .search { min-width: 0; width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .inquiry { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Factory */
.section-dark { background: var(--indigo); color: var(--silk); }
.section-dark h2 { color: var(--silk); }
.section-dark .section-head p { color: rgba(243, 236, 223, .75); }
.section-dark .eyebrow { color: var(--gold-2); }
.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.factory-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1.05; }
.factory-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.factory-item:hover img { transform: scale(1.05); }
.factory-item figcaption { position: absolute; inset: auto 0 0; padding: 32px 16px 14px; font-size: .9rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(10, 20, 40, .85)); }
@media (max-width: 920px) { .factory-grid { grid-template-columns: repeat(2, 1fr); } }
