/* ============================================================
   纺织品国际国内综合交易平台 · 主样式表
   Design tokens → Base → Layout → Components → Utilities
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --brand-900: #0B2C4A;
  --brand-800: #10406E;
  --brand-700: #15558F;
  --brand-600: #1C6CB5;
  --brand-500: #2E86D6;
  --brand-300: #8FBEE8;
  --brand-100: #E2EDF8;
  --brand-50: #F3F8FD;

  --gold-700: #A87422;
  --gold-600: #C08A2E;
  --gold-500: #D9A441;
  --gold-100: #FAF1DE;

  --ink-900: #16202E;
  --ink-800: #22314A;
  --ink-700: #35435C;
  --ink-500: #5B6B85;
  --ink-400: #8A97AE;
  --ink-300: #AEB9CA;

  --line: #E4E9F1;
  --line-2: #EDF1F7;
  --bg: #F5F8FC;
  --bg-alt: #EEF3F9;
  --surface: #FFFFFF;

  /* 中国市场惯例：涨红跌绿 */
  --up: #E23B3B;
  --down: #17975F;
  --ok: #17975F;
  --ok-100: #E5F5EE;
  --warn: #D98717;
  --warn-100: #FDF2E2;
  --danger: #D64545;
  --danger-100: #FCEDED;
  --info-100: #E7F0FA;

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  --sh-xs: 0 1px 2px rgba(16, 40, 70, .05);
  --sh-sm: 0 2px 8px rgba(16, 40, 70, .06);
  --sh: 0 6px 22px rgba(16, 40, 70, .08);
  --sh-lg: 0 14px 40px rgba(16, 40, 70, .12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", Roboto, Helvetica, Arial, sans-serif;
  --font-num: "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;

  --header-h: 132px;
  --maxw: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.65;
  color: var(--ink-800); background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #CBD5E4; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 960px; }
.section { padding: 52px 0; }
.section--tight { padding: 34px 0; }
.section--alt { background: var(--bg-alt); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-b { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
.g-6 { grid-template-columns: repeat(6, 1fr); }
.page { min-height: 60vh; }

/* ---------- Section header ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head__l { max-width: 660px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.sec-title { font-size: 27px; letter-spacing: -.2px; }
.sec-sub { color: var(--ink-500); margin-top: 8px; font-size: 14px; }
.link-more { color: var(--brand-600); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link-more:hover { color: var(--brand-800); }
.link-more svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: var(--sh-xs); }
.hdr__utils { background: var(--brand-900); color: #CFE0F0; font-size: 12px; }
.hdr__utils .wrap { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.hdr__utils-l, .hdr__utils-r { display: flex; align-items: center; gap: 16px; }
.hdr__utils a, .hdr__utils button { color: #CFE0F0; display: inline-flex; align-items: center; gap: 5px; }
.hdr__utils a:hover, .hdr__utils button:hover { color: #fff; }
.hdr__utils svg { width: 13px; height: 13px; }
.hdr__utils .dot { width: 3px; height: 3px; border-radius: 50%; background: #4A6E93; }

.hdr__main { height: 66px; }
.hdr__main .wrap { height: 100%; display: flex; align-items: center; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(28, 108, 181, .3);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__txt strong { display: block; font-size: 16.5px; letter-spacing: .5px; color: var(--brand-900); line-height: 1.2; }
.logo__txt span { display: block; font-size: 10.5px; letter-spacing: .12em; color: var(--ink-400); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; }
.nav__item {
  padding: 8px 13px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  color: var(--ink-700); position: relative; white-space: nowrap; transition: .16s;
}
.nav__item:hover { color: var(--brand-600); background: var(--brand-50); }
.nav__item.is-active { color: var(--brand-700); font-weight: 700; }
.nav__item.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: -2px; height: 2px;
  background: var(--gold-500); border-radius: 2px;
}
.nav__hot {
  position: absolute; top: 1px; right: 0; font-size: 9px; background: var(--up); color: #fff;
  padding: 0 4px; border-radius: var(--r-full); line-height: 14px; font-weight: 700;
}

.hdr__search { flex: 0 1 300px; position: relative; }
.searchbox { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-full); padding: 0 6px 0 13px; height: 38px; transition: .18s; }
.searchbox:focus-within { border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px rgba(46, 134, 214, .12); }
.searchbox input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px; min-width: 0; }
.searchbox input::placeholder { color: var(--ink-300); }
.searchbox svg { width: 16px; height: 16px; color: var(--ink-400); flex: 0 0 auto; }

.hdr__cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hdr__burger { display: none; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink-700); place-items: center; }
.hdr__burger svg { width: 20px; height: 20px; }

.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--line); padding: 10px 0 14px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line-2); font-size: 14px; }

/* ---------- Footer ---------- */
.ftr { background: var(--brand-900); color: #ADC3D8; margin-top: 60px; font-size: 13px; }
.ftr__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; padding: 48px 0 34px; }
.ftr h4 { color: #fff; font-size: 14px; margin-bottom: 15px; font-weight: 600; }
.ftr li { margin-bottom: 9px; }
.ftr a:hover { color: #fff; }
.ftr__brand .logo__txt strong { color: #fff; }
.ftr__brand .logo__txt span { color: #7C9CBB; }
.ftr__brand p { margin-top: 14px; line-height: 1.85; font-size: 12.5px; }
.ftr__contact { margin-top: 16px; display: grid; gap: 8px; font-size: 12.5px; }
.ftr__contact div { display: flex; align-items: center; gap: 8px; }
.ftr__contact svg { width: 14px; height: 14px; color: var(--brand-300); flex: 0 0 auto; }
.ftr__bot { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.ftr__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ftr__badge { border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-sm); padding: 3px 9px; font-size: 11px; color: #C3D6E8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 17px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; transition: .18s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--brand-700); color: #fff; }
.btn--primary:hover { background: var(--brand-800); box-shadow: 0 5px 16px rgba(21, 85, 143, .26); }
.btn--gold { background: var(--gold-600); color: #fff; }
.btn--gold:hover { background: var(--gold-700); box-shadow: 0 5px 16px rgba(192, 138, 46, .28); }
.btn--outline { border-color: var(--line); background: #fff; color: var(--ink-700); }
.btn--outline:hover { border-color: var(--brand-500); color: var(--brand-600); }
.btn--ghost { color: var(--brand-600); }
.btn--ghost:hover { background: var(--brand-50); }
.btn--soft { background: var(--brand-100); color: var(--brand-700); }
.btn--soft:hover { background: #D3E4F5; }
.btn--lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: var(--r); }
.btn--sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn--xs { height: 26px; padding: 0 10px; font-size: 12px; border-radius: var(--r-xs); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #BC3535; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px;
  border-radius: var(--r-xs); font-size: 11.5px; font-weight: 600; line-height: 1;
}
.badge svg { width: 11px; height: 11px; }
.badge--brand { background: var(--brand-100); color: var(--brand-700); }
.badge--gold { background: var(--gold-100); color: var(--gold-700); }
.badge--ok { background: var(--ok-100); color: var(--ok); }
.badge--warn { background: var(--warn-100); color: var(--warn); }
.badge--danger { background: var(--danger-100); color: var(--danger); }
.badge--gray { background: var(--bg-alt); color: var(--ink-500); }
.badge--solid { background: var(--brand-700); color: #fff; }
.badge--up { background: var(--danger-100); color: var(--up); }
.badge--down { background: var(--ok-100); color: var(--down); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px;
  border-radius: var(--r-full); border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--ink-700); transition: .16s;
}
.chip:hover { border-color: var(--brand-400, var(--brand-500)); color: var(--brand-600); }
.chip.is-on { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.chip svg { width: 13px; height: 13px; }

/* ---------- Card ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card--pad { padding: 20px; }
.card--hover { transition: .2s; }
.card--hover:hover { box-shadow: var(--sh); border-color: #D2DEEC; transform: translateY(-2px); }

/* ---------- Product card ---------- */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: .2s; position: relative; }
.pcard:hover { box-shadow: var(--sh); border-color: #D2DEEC; transform: translateY(-3px); }
.pcard__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.pcard__media .swatch { position: absolute; inset: 0; }
.pcard__tags { position: absolute; top: 9px; left: 9px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.pcard__fav {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); display: grid; place-items: center; color: var(--ink-400);
  box-shadow: var(--sh-xs); transition: .16s;
}
.pcard__fav svg { width: 15px; height: 15px; }
.pcard__fav:hover { color: var(--up); }
.pcard__fav.is-on { color: var(--up); }
.pcard__body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__title { font-size: 13.5px; font-weight: 600; color: var(--ink-900); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.pcard__title a:hover { color: var(--brand-600); }
.pcard__price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.pcard__price b { font-size: 18px; color: var(--up); font-weight: 700; font-family: var(--font-num); }
.pcard__price small { color: var(--ink-400); font-size: 11.5px; }
.pcard__meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-400); flex-wrap: wrap; }
.pcard__cert { display: flex; gap: 4px; flex-wrap: wrap; }
.pcard__cert span { font-size: 10px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-500); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-400); }
.pcard__store { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-500); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__store svg { width: 12px; height: 12px; flex: 0 0 auto; }

/* 布纹占位：模拟织物经纬纹理 */
.swatch { position: relative; background: linear-gradient(135deg, var(--c1, #2E86D6), var(--c2, #10406E)); }
.swatch::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .13) 0 5px, transparent 5px 10px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .09) 0 5px, transparent 5px 10px);
}
.swatch::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 25% 15%, rgba(255, 255, 255, .34), transparent 62%);
}
.swatch__label {
  position: absolute; inset: auto 0 0 0; padding: 8px 10px; color: #fff; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: linear-gradient(transparent, rgba(0, 0, 0, .42));
}

/* ---------- Store card ---------- */
.scard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: .2s; }
.scard:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: #D2DEEC; }
.scard__banner { height: 74px; position: relative; }
.scard__logo {
  width: 54px; height: 54px; border-radius: var(--r); border: 3px solid #fff; margin: -27px 0 0 16px;
  position: relative; z-index: 1; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: var(--sh-sm);
}
.scard__body { padding: 10px 16px 16px; }
.scard__name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.scard__loc { font-size: 12px; color: var(--ink-400); display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.scard__loc svg { width: 12px; height: 12px; }
.scard__desc { font-size: 12.5px; color: var(--ink-500); margin-top: 9px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.scard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line-2); text-align: center; }
.scard__stats b { display: block; font-size: 15px; font-family: var(--font-num); color: var(--ink-900); }
.scard__stats span { font-size: 11px; color: var(--ink-400); }
.scard__foot { display: flex; gap: 8px; margin-top: 14px; }
.scard__foot .btn { flex: 1; }

/* ---------- Feature / value cards ---------- */
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: .2s; }
.fcard:hover { box-shadow: var(--sh); border-color: #D2DEEC; transform: translateY(-3px); }
.fcard__ico { width: 46px; height: 46px; border-radius: var(--r); display: grid; place-items: center; margin-bottom: 14px; background: var(--brand-100); color: var(--brand-700); }
.fcard__ico svg { width: 23px; height: 23px; }
.fcard__ico--gold { background: var(--gold-100); color: var(--gold-700); }
.fcard h4 { font-size: 15.5px; margin-bottom: 8px; }
.fcard p { font-size: 13px; color: var(--ink-500); line-height: 1.75; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--brand-900); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .5; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 26, 46, .94) 0%, rgba(8, 26, 46, .82) 42%, rgba(8, 26, 46, .34) 72%, rgba(8, 26, 46, .12) 100%); }
.hero__inner { position: relative; padding: 62px 0 58px; max-width: 660px; }
.hero__pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); border-radius: var(--r-full); padding: 5px 14px; font-size: 12.5px; margin-bottom: 20px; }
.hero__pill i { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.hero h1 { font-size: 43px; line-height: 1.22; color: #fff; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero__sub { margin-top: 18px; font-size: 15.5px; color: #C6D8EA; line-height: 1.85; max-width: 560px; }
.hero__search { margin-top: 26px; background: #fff; border-radius: var(--r); padding: 8px; display: flex; gap: 8px; box-shadow: var(--sh-lg); max-width: 620px; flex-wrap: wrap; }
.hero__search .seg { display: flex; background: var(--bg); border-radius: var(--r-sm); padding: 3px; flex: 0 0 auto; }
.hero__search .seg button { padding: 0 14px; height: 34px; border-radius: var(--r-xs); font-size: 13px; color: var(--ink-500); font-weight: 600; }
.hero__search .seg button.is-on { background: #fff; color: var(--brand-700); box-shadow: var(--sh-xs); }
.hero__search input { flex: 1 1 200px; border: 0; outline: 0; padding: 0 8px; font-size: 14px; min-width: 0; }
.hero__search .btn { flex: 0 0 auto; }
.hero__chips { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.hero__chips a { font-size: 12.5px; color: #B9CDE2; border: 1px solid rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: var(--r-full); transition: .16s; }
.hero__chips a:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero__stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 26px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-lg); overflow: hidden; }
.hero__stat { padding: 18px 20px; text-align: center; border-right: 1px solid var(--line-2); }
.hero__stat:last-child { border-right: 0; }
.hero__stat b { display: block; font-size: 26px; font-family: var(--font-num); color: var(--brand-800); letter-spacing: -.5px; }
.hero__stat span { font-size: 12.5px; color: var(--ink-500); }
.hero__wrap { position: relative; }

/* ---------- Category tile ---------- */
.cattile { position: relative; border-radius: var(--r); overflow: hidden; display: block; aspect-ratio: 1/1; color: #fff; }
.cattile .swatch { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.cattile:hover .swatch { transform: scale(1.08); }
.cattile__in { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(transparent 35%, rgba(6, 24, 44, .72)); }
.cattile h4 { color: #fff; font-size: 17px; }
.cattile p { font-size: 12px; color: rgba(255, 255, 255, .8); margin-top: 3px; }
.cattile__ico { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); display: grid; place-items: center; }
.cattile__ico svg { width: 19px; height: 19px; }

/* ---------- Trade mode card ---------- */
.tmode { position: relative; border-radius: var(--r-lg); padding: 26px; color: #fff; overflow: hidden; min-height: 198px; display: flex; flex-direction: column; justify-content: space-between; }
.tmode::before { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, var(--c1), var(--c2)); z-index: 0; }
.tmode::after { content: ""; position: absolute; inset: 0; opacity: .16; z-index: 0; background: repeating-linear-gradient(45deg, #fff 0 7px, transparent 7px 14px); }
.tmode > * { position: relative; z-index: 1; }
.tmode__tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); padding: 3px 10px; border-radius: var(--r-full); letter-spacing: .06em; }
.tmode h3 { color: #fff; font-size: 22px; margin-top: 14px; }
.tmode p { font-size: 13px; color: rgba(255, 255, 255, .85); margin-top: 9px; line-height: 1.75; }
.tmode ul { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.tmode li { font-size: 12.5px; color: rgba(255, 255, 255, .9); display: flex; align-items: center; gap: 7px; }
.tmode li svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ---------- News ---------- */
.ncard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; transition: .2s; }
.ncard:hover { box-shadow: var(--sh); border-color: #D2DEEC; }
.ncard__media { width: 200px; flex: 0 0 200px; position: relative; }
.ncard__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ncard__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-400); }
.ncard h4 { font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard:hover h4 { color: var(--brand-600); }
.ncard__sum { font-size: 12.5px; color: var(--ink-500); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Supply / demand row ---------- */
.srow { display: flex; gap: 14px; align-items: center; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: .18s; }
.srow + .srow { margin-top: 10px; }
.srow:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.srow__flag { width: 46px; height: 32px; border-radius: var(--r-xs); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: 0 0 auto; box-shadow: var(--sh-xs); }
.srow__main { flex: 1; min-width: 0; }
.srow__title { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.srow__title:hover { color: var(--brand-600); }
.srow__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-400); margin-top: 5px; }
.srow__meta span { display: inline-flex; align-items: center; gap: 4px; }
.srow__meta svg { width: 12px; height: 12px; }
.srow__cta { flex: 0 0 auto; display: flex; gap: 8px; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-400); padding: 16px 0; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand-600); }
.crumb svg { width: 13px; height: 13px; opacity: .6; }
.crumb b { color: var(--ink-700); font-weight: 500; }

/* ---------- Page hero (inner) ---------- */
.phero { background: linear-gradient(120deg, var(--brand-900), var(--brand-700) 60%, #1F6BAE); color: #fff; padding: 40px 0 46px; position: relative; overflow: hidden; }
.phero::after { content: ""; position: absolute; inset: 0; opacity: .1; background: repeating-linear-gradient(45deg, #fff 0 8px, transparent 8px 16px); }
.phero__in { position: relative; }
.phero h1 { color: #fff; font-size: 30px; letter-spacing: -.3px; }
.phero p { color: #BFD4E8; margin-top: 10px; font-size: 14px; max-width: 640px; }
.phero .crumb { padding: 0 0 12px; color: #9FBAD3; }
.phero .crumb a:hover { color: #fff; }
.phero .crumb b { color: #DCE8F4; }

/* ---------- Filter panel ---------- */
.filter { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.filter__sec { padding: 15px 16px; border-bottom: 1px solid var(--line-2); }
.filter__sec:last-child { border-bottom: 0; }
.filter__ttl { font-size: 13px; font-weight: 700; color: var(--ink-900); margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; }
.filter__ttl svg { width: 14px; height: 14px; color: var(--ink-400); cursor: pointer; }
.filter__opts { display: flex; flex-wrap: wrap; gap: 7px; }
.filter__tree > li > a { display: block; padding: 7px 9px; border-radius: var(--r-sm); font-size: 13px; color: var(--ink-700); }
.filter__tree > li > a:hover { background: var(--brand-50); color: var(--brand-600); }
.filter__tree > li > a.is-on { background: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.filter__hd { padding: 13px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.filter__hd h3 { font-size: 14px; display: flex; align-items: center; gap: 7px; }
.filter__hd svg { width: 16px; height: 16px; color: var(--brand-700); }

/* ---------- Toolbar ---------- */
.toolbar { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar__sorts { display: flex; gap: 2px; }
.toolbar__sorts button { height: 30px; padding: 0 12px; border-radius: var(--r-sm); font-size: 13px; color: var(--ink-500); font-weight: 500; }
.toolbar__sorts button:hover { background: var(--bg); }
.toolbar__sorts button.is-on { background: var(--brand-700); color: #fff; font-weight: 600; }
.toolbar__count { font-size: 13px; color: var(--ink-500); }
.toolbar__count b { color: var(--up); font-family: var(--font-num); }

/* ---------- Form ---------- */
.field { display: block; margin-bottom: 15px; }
.field__lb { display: block; font-size: 13px; font-weight: 600; color: var(--ink-800); margin-bottom: 7px; }
.field__lb em { font-style: normal; color: var(--up); margin-right: 2px; }
.field__hint { font-size: 12px; color: var(--ink-400); margin-top: 5px; }
.inp, .sel, .ta {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); height: 40px;
  padding: 0 12px; background: #fff; outline: 0; transition: .16s; font-size: 13.5px;
}
.ta { height: auto; padding: 10px 12px; resize: vertical; min-height: 96px; line-height: 1.7; }
.inp:focus, .sel:focus, .ta:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(46, 134, 214, .12); }
.inp::placeholder, .ta::placeholder { color: var(--ink-300); }
.inp-grp { display: flex; gap: 0; }
.inp-grp .inp { border-radius: 0; }
.inp-grp .inp:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.inp-grp .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; height: 40px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-500); line-height: 1.6; }
.checkline input { margin-top: 3px; accent-color: var(--brand-600); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: .16s; }
.tabs button:hover { color: var(--brand-600); }
.tabs button.is-on { color: var(--brand-700); border-bottom-color: var(--gold-500); }
.tabpane { display: none; }
.tabpane.is-on { display: block; }

/* ---------- Table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.tbl { font-size: 13px; min-width: 620px; }
.tbl th {
  background: var(--bg-alt); text-align: left; font-weight: 600; color: var(--ink-700);
  padding: 11px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--brand-50); }
.tbl .strong { font-weight: 600; color: var(--ink-900); }
.tbl .num { font-family: var(--font-num); }
.tbl-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; }
.pager button { min-width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink-700); }
.pager button:hover { border-color: var(--brand-500); color: var(--brand-600); }
.pager button.is-on { background: var(--brand-700); border-color: var(--brand-700); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.acc__it + .acc__it { border-top: 1px solid var(--line-2); }
.acc__hd { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-800); }
.acc__hd:hover { background: var(--brand-50); }
.acc__hd svg { width: 17px; height: 17px; color: var(--ink-400); transition: transform .2s; flex: 0 0 auto; }
.acc__it.is-open .acc__hd svg { transform: rotate(180deg); color: var(--brand-600); }
.acc__bd { display: none; padding: 0 17px 16px; font-size: 13px; color: var(--ink-500); line-height: 1.85; }
.acc__it.is-open .acc__bd { display: block; }

/* ---------- Stepper ---------- */
.steps { display: grid; gap: 16px; }
.step { display: flex; gap: 15px; }
.step__n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.step h4 { font-size: 15px; }
.step p { font-size: 13px; color: var(--ink-500); margin-top: 5px; line-height: 1.75; }

/* ---------- Timeline ---------- */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl__it { position: relative; padding-bottom: 26px; }
.tl__it::before { content: ""; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-500); }
.tl__it:first-child::before { background: var(--gold-500); border-color: var(--gold-700); }
.tl__yr { font-size: 13px; font-weight: 700; color: var(--brand-700); font-family: var(--font-num); }
.tl__body { font-size: 13.5px; color: var(--ink-700); margin-top: 3px; }
.tl__body p { color: var(--ink-500); font-size: 12.5px; margin-top: 3px; }

/* ---------- Stat block ---------- */
.statbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-align: center; }
.statbox b { display: block; font-size: 25px; font-family: var(--font-num); color: var(--brand-800); letter-spacing: -.5px; }
.statbox span { font-size: 12.5px; color: var(--ink-500); }

/* ---------- Modal / Drawer ---------- */
.ovl { position: fixed; inset: 0; background: rgba(11, 34, 58, .48); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.ovl.is-open { display: flex; }
.modal { background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 520px; box-shadow: var(--sh-lg); max-height: 88vh; display: flex; flex-direction: column; animation: pop .22s ease; }
.modal--lg { max-width: 720px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__hd { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.modal__hd h3 { font-size: 16px; }
.modal__x { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-400); }
.modal__x:hover { background: var(--bg); color: var(--ink-700); }
.modal__x svg { width: 17px; height: 17px; }
.modal__bd { padding: 20px 22px; overflow-y: auto; }
.modal__ft { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast { background: var(--ink-900); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); font-size: 13.5px; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 8px; animation: drop .25s ease; }
.toast svg { width: 16px; height: 16px; color: #5ED49A; }
.toast--warn svg { color: #F5C86B; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Misc atoms ---------- */
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.dashed { border-top: 1px dashed var(--line); margin: 16px 0; }
.txt-brand { color: var(--brand-600); }
.txt-up { color: var(--up); }
.txt-down { color: var(--down); }
.txt-mut { color: var(--ink-500); }
.txt-sm { font-size: 12.5px; }
.txt-xs { font-size: 12px; }
.b { font-weight: 700; }
.num { font-family: var(--font-num); }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-family: var(--font-num); color: var(--up); font-weight: 700; }
.strike { text-decoration: line-through; color: var(--ink-400); font-size: 12px; font-weight: 400; }
.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--gold-500); }
.rating svg { width: 13px; height: 13px; }
.rating b { color: var(--ink-700); font-size: 12.5px; margin-left: 3px; }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-400); }
.empty svg { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--ink-300); }
.empty p { font-size: 14px; }

.skeleton { background: linear-gradient(90deg, var(--line-2) 25%, #F6F8FC 50%, var(--line-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-sm); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Info grid / spec table ---------- */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec__i { padding: 12px 15px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.spec__i dt { font-size: 12px; color: var(--ink-400); }
.spec__i dd { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-800); font-weight: 600; }

/* ---------- Price ladder ---------- */
.ladder { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ladder table { font-size: 13px; }
.ladder th { background: var(--bg-alt); padding: 9px 14px; text-align: left; font-size: 12.5px; color: var(--ink-700); border-bottom: 1px solid var(--line); }
.ladder td { padding: 9px 14px; border-bottom: 1px solid var(--line-2); }
.ladder tr:last-child td { border-bottom: 0; }
.ladder tbody tr:nth-child(even) { background: #FCFDFE; }

/* ---------- Gallery ---------- */
.gallery__main { aspect-ratio: 1/1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); position: relative; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 9px; }
.gallery__thumbs button { aspect-ratio: 1/1; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; position: relative; }
.gallery__thumbs button.is-on { border-color: var(--brand-600); }

/* ---------- Sidebar widgets ---------- */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.side-card__hd { padding: 13px 16px; border-bottom: 1px solid var(--line-2); font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.side-card__hd svg { width: 16px; height: 16px; color: var(--brand-700); }
.side-card__bd { padding: 14px 16px; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--brand-600); }
.side-list .rank { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 3px; background: var(--bg-alt); color: var(--ink-500); font-size: 11.5px; font-weight: 700; margin-right: 8px; }
.side-list li:nth-child(1) .rank { background: var(--up); color: #fff; }
.side-list li:nth-child(2) .rank { background: #F08A4B; color: #fff; }
.side-list li:nth-child(3) .rank { background: var(--gold-500); color: #fff; }

/* ---------- Contact strip ---------- */
.cta-band { background: linear-gradient(110deg, var(--brand-900), var(--brand-700) 55%, #23699F); color: #fff; border-radius: var(--r-lg); padding: 38px 40px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; opacity: .1; background: repeating-linear-gradient(45deg, #fff 0 8px, transparent 8px 16px); }
.cta-band__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { color: #fff; font-size: 24px; }
.cta-band p { color: #BBD3E9; margin-top: 8px; font-size: 14px; }

/* ---------- Process flow ---------- */
.flow { display: grid; gap: 12px; }
.flow__item { display: flex; gap: 14px; align-items: flex-start; }
.flow__n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.flow__t { font-size: 14px; font-weight: 600; }
.flow__d { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; line-height: 1.7; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 620px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.auth-side { position: relative; padding: 40px; color: #fff; background: linear-gradient(150deg, var(--brand-900), var(--brand-600)); display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::after { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(45deg, #fff 0 8px, transparent 8px 16px); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-size: 26px; }
.auth-side ul { margin-top: 22px; display: grid; gap: 13px; }
.auth-side li { display: flex; gap: 10px; font-size: 13.5px; color: #CFE1F2; }
.auth-side li svg { width: 18px; height: 18px; color: var(--gold-500); flex: 0 0 auto; margin-top: 2px; }
.auth-main { padding: 40px; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Lang / currency switch ---------- */
.switch-sm { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-sm); overflow: hidden; }
.switch-sm button { padding: 2px 9px; font-size: 11.5px; color: #B9CDE2; font-weight: 600; }
.switch-sm button.is-on { background: rgba(255, 255, 255, .16); color: #fff; }
.switch-sm--dark { border-color: var(--line); }
.switch-sm--dark button { color: var(--ink-500); }
.switch-sm--dark button.is-on { background: var(--brand-700); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 0; }
  .nav__item { padding: 8px 9px; font-size: 13.5px; }
  .hdr__search { flex-basis: 220px; }
  .hero__inner { max-width: 600px; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 1024px) {
  .hdr__main .wrap { gap: 16px; }
  .nav, .hdr__search { display: none; }
  .hdr__burger { display: grid; }
  .g-5, .g-6 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .ftr__top { grid-template-columns: 1fr 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .ncard__media { width: 150px; flex-basis: 150px; }
  .hero__inner { max-width: 100%; }
  .hero__bg::after { background: linear-gradient(90deg, rgba(8, 26, 46, .95), rgba(8, 26, 46, .8)); }
}
@media (max-width: 768px) {
  .wrap { padding: 0 14px; }
  .hdr__utils .wrap { height: auto; padding: 6px 14px; justify-content: center; }
  .hdr__utils-l { display: none; }
  .hdr__main { height: 58px; }
  .hero__inner { padding: 40px 0 34px; }
  .hero h1 { font-size: 27px; }
  .hero__sub { font-size: 14px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat { border-bottom: 1px solid var(--line-2); }
  .hero__stat:nth-child(2n) { border-right: 0; }
  .sec-title { font-size: 22px; }
  .section { padding: 36px 0; }
  .g-2, .g-3, .g-4, .g-5, .g-6 { grid-template-columns: repeat(2, 1fr); }
  .row2, .row3 { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 22px; }
  .ncard { flex-direction: column; }
  .ncard__media { width: 100%; flex-basis: auto; aspect-ratio: 16/9; }
  .cta-band { padding: 26px 20px; }
  .cta-band h3 { font-size: 20px; }
  .srow { flex-wrap: wrap; }
  .srow__cta { width: 100%; }
  .srow__cta .btn { flex: 1; }
  .phero h1 { font-size: 23px; }
}

/* ---------- Print ---------- */
@media print {
  .hdr, .ftr, .btn, .ovl { display: none !important; }
}
