:root {
  --bg: #FFFFFF;
  --panel: #F7F8FA;
  --line: #E5E7EB;
  --text: #1A2230;
  --muted: #6B7280;
  --accent: #FF6A00;
  --accent-dark: #E05500;
  --navy: #10233F;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.topbar { background: var(--navy); color: #CBD5E1; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; height: 34px; align-items: center; }
.topbar a:hover { color: #fff; }
.topbar .right { display: flex; gap: 18px; }

/* nav */
nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: 0.5px; color: var(--navy); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--muted); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-bottom-color: var(--accent); }
.btn {
  display: inline-block; padding: 11px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 700; transition: all .15s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); background: #fff; }
.btn-outline:hover { background: #FFF3E8; }

/* hero */
.hero { background: linear-gradient(115deg, var(--navy) 0%, #1B3A63 55%, #2B4C7E 100%); color: #fff; padding: 72px 0 96px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; line-height: 1.15; max-width: 720px; }
.hero h1 em { font-style: normal; color: #FFA45C; }
.hero p.lead { margin-top: 18px; font-size: 17px; color: #C7D2E4; max-width: 620px; }
.hero-search {
  margin-top: 32px; display: flex; max-width: 640px; background: #fff;
  border-radius: 10px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.hero-search input { flex: 1; border: none; outline: none; padding: 15px 18px; font-size: 15px; }
.hero-search button { border: none; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; padding: 0 30px; cursor: pointer; }
.hero-search button:hover { background: var(--accent-dark); }

/* categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: -48px; position: relative; z-index: 2; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 12px; text-align: center; transition: all .15s ease;
}
.cat:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(255,106,0,.12); transform: translateY(-3px); }
.cat .ico { font-size: 26px; }
.cat p { font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--text); }

section { padding: 64px 0; }
section.alt { background: var(--panel); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 8px; }
.sec-head h2 { font-size: 28px; font-weight: 800; color: var(--navy); }
.sec-head a { color: var(--accent); font-weight: 600; font-size: 14px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: all .15s ease; display: flex; flex-direction: column;
}
.pcard:hover { box-shadow: 0 8px 24px rgba(16,35,63,.1); transform: translateY(-3px); }
.pimg {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #fff; font-weight: 800; letter-spacing: 1px;
}
.pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pbody h3 { font-size: 15px; font-weight: 600; line-height: 1.4; min-height: 42px; }
.price { margin-top: 8px; color: var(--accent); font-weight: 800; font-size: 17px; }
.price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.meta { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.sup { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--navy); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  background: #E8F1FF; color: #1D6FE0; border-radius: 4px; padding: 1px 6px;
}
.badge.gold { background: #FFF3E0; color: #C77700; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.chip {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted); background: #fff; cursor: pointer;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.searchbox { margin-left: auto; display: flex; }
.searchbox input {
  border: 1px solid var(--line); border-right: none; border-radius: 8px 0 0 8px;
  padding: 9px 14px; font-size: 14px; outline: none; width: 220px;
}
.searchbox button { border: none; background: var(--navy); color: #fff; padding: 0 18px; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 14px; }

/* rfq band */
.band {
  background: linear-gradient(110deg, #FFF4EA 0%, #FFE9D6 100%);
  border: 1px solid #FFD9B3; border-radius: 16px; padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.band h2 { font-size: 24px; font-weight: 800; color: var(--navy); }
.band p { color: #7A5C3F; margin-top: 6px; font-size: 15px; }

/* suppliers */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.scard h3 { font-size: 17px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.scard .tags { margin: 10px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.scard p { font-size: 13.5px; color: var(--muted); }
.srow { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }
.srow b { color: var(--navy); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat b { display: block; font-size: 34px; font-weight: 900; color: var(--accent); }
.stat span { font-size: 14px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 16px; margin-bottom: 6px; color: var(--navy); }
.step p { font-size: 13.5px; color: var(--muted); }

/* form */
.form-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.frow { margin-bottom: 18px; }
.frow label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.frow input, .frow textarea, .frow select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px;
  font-size: 14px; outline: none; font-family: inherit; background: #fff;
}
.frow input:focus, .frow textarea:focus { border-color: var(--accent); }
.contact-info h3 { font-size: 18px; color: var(--navy); margin-bottom: 14px; }
.contact-info p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }

/* footer */
footer { background: var(--navy); color: #9FB0C8; padding: 48px 0 32px; margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot-grid a { display: block; font-size: 13.5px; margin-bottom: 8px; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .sgrid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid, .sgrid, .steps, .cats { grid-template-columns: 1fr; }
  .searchbox { margin-left: 0; width: 100%; }
  .searchbox input { flex: 1; width: auto; }
}

/* grade badge */
.grade {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .4px;
  border-radius: 4px; padding: 1px 6px; margin-right: 6px;
}
/* warehouse row */
.wh { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
/* lot highlight strip */
.lot-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.lot-strip b { color: var(--navy); }
/* how it works */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow .step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; position: relative; }
.flow .step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 14px; }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* seller cards */
.sgrid.sellers { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .sgrid.sellers { grid-template-columns: 1fr; } }
.seller-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.seller-head h3 { font-size: 17px; color: var(--navy); }
.stall { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.seller-main { font-size: 14px; color: var(--text); margin: 12px 0 4px; }
.seller-kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 13px; margin-top: 12px; }
.seller-kv span { color: var(--muted); }
.seller-kv b { color: var(--navy); font-weight: 600; }
.contact-line { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--accent); font-weight: 700; }

/* ---- buyer cards ---- */
.sgrid.buyers { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .sgrid.buyers { grid-template-columns: 1fr; } }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
.bcard:hover { box-shadow: 0 8px 24px rgba(16,35,63,.08); }
.bhead { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.avatar { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg,#10233F,#2B4C7E); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.bhead h3 { font-size: 16px; color: var(--navy); line-height: 1.3; }
.pill { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pill.open { background: #E8F7EE; color: #1B8A4B; }
.pill.sourcing { background: #FFF4E5; color: #B26B00; }
.pill.closed { background: #F1F2F4; color: #6B7280; }
.brief { font-size: 13.5px; color: #374151; margin: 12px 0 4px; line-height: 1.65; border-left: 3px solid #FFD9B3; padding-left: 12px; }
/* trust score */
.trust { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #1B8A4B; }
.trust.warn { color: #B26B00; }
.trust.risk { color: #B42318; }
/* ---- rules ---- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.rcard h3 { font-size: 17px; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.rlist { list-style: none; }
.rlist li { font-size: 13.5px; color: #374151; padding: 9px 0 9px 30px; position: relative; border-bottom: 1px dashed var(--line); line-height: 1.6; }
.rlist li:last-child { border-bottom: none; }
.rlist li::before { content: attr(data-n); position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--panel); color: var(--navy); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rlist.dont li::before { background: #FDECEC; color: #B42318; }
/* penalty ladder */
.ladder { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 860px) { .ladder { grid-template-columns: 1fr; } }
.lstep { border-radius: 12px; padding: 22px 20px; border: 1px solid var(--line); background: #fff; }
.lstep .lv { font-size: 11px; font-weight: 800; letter-spacing: .8px; margin-bottom: 8px; }
.lstep h4 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.lstep p { font-size: 13px; color: var(--muted); }
.lstep.w1 { border-top: 4px solid #F59E0B; } .lstep.w1 .lv { color: #B26B00; }
.lstep.w2 { border-top: 4px solid #EF4444; } .lstep.w2 .lv { color: #B42318; }
.lstep.w3 { border-top: 4px solid #10233F; background: #10233F; } .lstep.w3 .lv { color: #FFA45C; } .lstep.w3 h4 { color: #fff; } .lstep.w3 p { color: #C7D2E4; }
/* ---- tabs ---- */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab { padding: 12px 22px; font-size: 15px; font-weight: 700; color: var(--muted); border: none; background: none; cursor: pointer; border-bottom: 3px solid transparent; }
.tab.on { color: var(--navy); border-bottom-color: var(--accent); }
.tabpane { display: none; }
.tabpane.on { display: block; }
/* notice box */
.notice { background: #FFF9F4; border: 1px solid #FFE0C2; border-radius: 12px; padding: 18px 22px; font-size: 13.5px; color: #7A5C3F; line-height: 1.7; }
.notice b { color: #B45309; }

/* ---- three sourcing paths ---- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .paths { grid-template-columns: 1fr; } }
.path { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; position: relative; }
.path .pnum { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--accent); margin-bottom: 10px; }
.path h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.path p { font-size: 13.5px; color: #374151; line-height: 1.65; }
.path .pfoot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.path .pfoot b { color: var(--navy); }

/* ---- agent cards ---- */
.sgrid.agents { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .sgrid.agents { grid-template-columns: 1fr; } }
.acard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
.acard:hover { box-shadow: 0 8px 24px rgba(16,35,63,.08); }
.ahead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ahead h3 { font-size: 16.5px; color: var(--navy); line-height: 1.3; }
.acity { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.atype { font-size: 10px; font-weight: 800; letter-spacing: .5px; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.atype.agent { background: #E8F0FC; color: #1D4ED8; }
.atype.partner { background: #F3E8FF; color: #6D28D9; }
.acovers { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; padding-left: 0; }
.anote { font-size: 13px; color: #374151; line-height: 1.65; margin: 12px 0 0; border-left: 3px solid #DCE6F5; padding-left: 12px; }
.akv { display: grid; grid-template-columns: 118px 1fr; gap: 4px 12px; font-size: 12.5px; margin-top: 14px; }
.akv span { color: var(--muted); }
.akv b { color: var(--navy); font-weight: 600; }
.abtn { margin-top: 14px; }
.abtn .btn { width: 100%; text-align: center; }

/* ---- role legend ---- */
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 860px) { .legend { grid-template-columns: 1fr; } }
.lg { border-radius: 12px; padding: 20px 22px; border: 1px solid var(--line); background: #fff; }
.lg.agent { border-left: 4px solid #1D4ED8; }
.lg.partner { border-left: 4px solid #6D28D9; }
.lg h4 { font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.lg p { font-size: 13px; color: #374151; line-height: 1.65; }
.lg .who { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* legal pages */
.prose h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 34px 0 10px; }
.prose h2:first-of-type { margin-top: 6px; }
.prose p { margin: 0 0 12px; color: #3C4A5A; }
.prose b { color: var(--navy); }
.prose a { color: var(--accent); font-weight: 600; }
.btn-ghost { display: inline-block; border: 1.5px solid var(--navy); color: var(--navy); padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 14px; background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
