:root {
  --green-950: #183f2c;
  --green-800: #23613f;
  --green-650: #2f7a4d;
  --green-100: #edf6ef;
  --orange: #c85f22;
  --ink: #1f2923;
  --muted: #69736c;
  --line: #e2e6e3;
  --surface: #fff;
  --canvas: #f7f8f6;
  --danger: #b52d2d;
  --shadow: 0 8px 24px rgba(23, 57, 41, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.65 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 44px; min-height: 68px; padding: 9px max(24px, calc((100vw - 1180px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--green-950); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; font: 700 22px serif; background: var(--green-650); border-radius: 5px; }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-size: 18px; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: 11px; }
nav { display: flex; gap: 34px; margin-right: auto; }
nav a:hover { color: var(--green-650); }
.account-actions { display: flex; align-items: center; gap: 10px; }

main { min-height: calc(100vh - 250px); }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 64px; }
.hero { color: #fff; background: #245f3e; }
.hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 68px; align-items: center; width: min(1180px, calc(100% - 40px)); margin: auto; padding: 60px 0; }
.eyebrow { margin: 0 0 10px; color: #cde4d4; font-weight: 600; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(32px, 4vw, 48px); line-height: 1.18; letter-spacing: -.02em; }
.hero-copy { max-width: 680px; color: rgba(255,255,255,.84); font-size: 17px; }
.hero-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-panel { padding: 26px 28px; color: var(--ink); background: #fff; border-left: 5px solid #d9a45f; box-shadow: var(--shadow); }
.hero-panel > strong { font-size: 22px; }
.hero-panel p { margin: 8px 0 22px; color: var(--muted); }
.hero-contact { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.hero-contact b { color: var(--green-800); font-size: 18px; }
.category-strip { background: #fff; border-bottom: 1px solid var(--line); }
.category-strip > div { display: flex; justify-content: center; gap: clamp(34px, 8vw, 100px); width: min(1180px, calc(100% - 40px)); margin: auto; padding: 17px 0; color: #465349; }
.category-strip span::before { content: "·"; margin-right: 10px; color: var(--green-650); font-weight: 800; }
.home-products { padding-top: 42px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 30px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.feature-card .number { color: var(--orange); font: 700 36px/1 Georgia, serif; }
.feature-card h3 { margin: 14px 0 6px; }
.feature-card p { margin: 0; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; color: #fff; background: var(--green-650); border: 1px solid var(--green-650); border-radius: 5px; font-weight: 650; }
.btn:hover { background: var(--green-800); border-color: var(--green-800); }
.btn-secondary { color: var(--green-800); background: #fff; border-color: var(--line); }
.btn-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.45); }
.btn-danger { color: var(--danger); background: #fff; border-color: #e9bbbb; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { cursor: not-allowed; opacity: .5; }

.toolbar { display: flex; gap: 12px; margin-bottom: 24px; }
.toolbar input { flex: 1; }
.field { display: grid; gap: 7px; }
.field span { color: #45534c; font-weight: 650; }
.field small { color: var(--muted); }
input, select, textarea { width: 100%; min-height: 43px; padding: 9px 12px; color: var(--ink); background: #fff; border: 1px solid #cfd9d3; border-radius: 8px; outline: none; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-650); box-shadow: 0 0 0 3px rgba(46,119,84,.12); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; padding: 0; transition: transform .16s ease, box-shadow .16s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; color: var(--muted); background: #f0f3ef; }
.product-image { position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.image-fallback { font-size: 14px; }
.product-sold-out .product-image img { filter: saturate(.7); opacity: .74; }
.stock-badge { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; color: #fff; background: rgba(31, 41, 35, .78); border-radius: 3px; font-size: 12px; }
.product-body { padding: 17px; }
.product-body h3 { min-height: 50px; margin: 4px 0; font-size: 17px; line-height: 1.45; }
.product-category { margin-bottom: 4px; color: var(--green-650); font-size: 12px; }
.seller-name { margin: 12px 0 0; padding-top: 11px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta, .muted { color: var(--muted); }
.price { color: var(--orange); font-size: 22px; font-weight: 750; }
.price small { font-size: 13px; font-weight: 500; }
.price-inquiry { font-size: 19px; }
.detail-price { margin: 18px 0; font-size: 28px; }
.text-link { color: var(--green-650); font-weight: 600; }
.result-count { color: var(--muted); }
.tag { display: inline-flex; padding: 3px 8px; color: var(--green-800); background: var(--green-100); border-radius: 99px; font-size: 12px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 32px; }
.detail-image { overflow: hidden; min-height: 410px; border: 1px solid var(--line); border-radius: 8px; }
.detail-image img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.detail-info h1 { font-size: 34px; }
.seller-line { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sku-list { display: grid; gap: 10px; margin: 18px 0; }
.sku-option { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.sku-option input { width: auto; min-height: auto; }
.notice { padding: 14px 16px; color: #745022; background: #fff6e8; border: 1px solid #f0d9b3; border-radius: 9px; }
.info-table { display: grid; grid-template-columns: 130px 1fr; margin-top: 22px; border-top: 1px solid var(--line); }
.info-table dt, .info-table dd { margin: 0; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.info-table dt { color: var(--muted); }

.auth-shell { width: min(460px, calc(100% - 40px)); margin: 50px auto 80px; }
.auth-shell .card { padding: 34px; }
.auth-shell form { display: grid; gap: 18px; }
.status-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding: 18px 20px; background: var(--green-100); border: 1px solid #cfe3d5; border-radius: 12px; }
.order-list { display: grid; gap: 16px; }
.order-head, .order-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.order-items { margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-item { display: flex; justify-content: space-between; gap: 12px; }
.order-item + .order-item { margin-top: 8px; }
.amount { font-size: 20px; font-weight: 750; }
.amount-pending { color: var(--orange); font-size: 16px; }
.empty, .loading { padding: 64px 20px; color: var(--muted); text-align: center; background: #fff; border: 1px dashed #cdd7d1; border-radius: 14px; }
.error { color: var(--danger); }
.document { max-width: 860px; }
.document h2 { margin-top: 34px; }
.document li + li { margin-top: 9px; }

footer { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; padding: 38px max(24px, calc((100vw - 1180px) / 2)); color: rgba(255,255,255,.72); background: var(--green-950); }
footer strong { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; justify-content: end; gap: 18px; }
.filing { grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 13px 17px; color: #fff; background: var(--green-950); border-radius: 9px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 10px 20px; }
  nav { order: 3; width: 100%; overflow-x: auto; }
  .hero-inner, .detail-layout { grid-template-columns: 1fr; }
  .hero-inner { padding: 54px 0; }
  .grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .account-actions .user-name { display: none; }
  nav { gap: 18px; font-size: 13px; }
  .container { width: min(100% - 28px, 1180px); padding-top: 28px; }
  .grid, .product-grid, .form-grid, footer { grid-template-columns: 1fr; }
  .category-strip > div { justify-content: flex-start; gap: 24px; overflow-x: auto; }
  .detail-info h1 { font-size: 28px; }
  .detail-image { min-height: 280px; }
  .footer-links { justify-content: start; }
  .filing { grid-column: 1; }
}
