* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #182230;
  background: #f4f7fb;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.page { min-height: 100vh; background: #f4f7fb; }
.topbar { height: 34px; background: #0e3a45; color: rgba(255,255,255,.78); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.topbar-inner, .nav-inner, .section-inner { width: min(1240px, calc(100vw - 48px)); margin: 0 auto; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar-links { display: flex; align-items: center; gap: 18px; white-space: nowrap; }

.nav {
  height: 66px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #dfe8ef;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: #16806f; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.brand-name { display: block; font-size: 18px; font-weight: 700; line-height: 1.15; }
.brand-sub { display: block; color: #64748b; font-size: 12px; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: #263849; flex: 1; }
.nav-links a:first-child { color: #0f766e; font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn, .search-tab, .consult-btn {
  min-height: 34px;
  border-radius: 6px;
  border: 1px solid #cbd8e3;
  background: #fff;
  color: #24364a;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

.btn.primary, .btn.is-active, .consult-btn { background: #166bba; border-color: #166bba; color: #fff; }
.btn.light { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); }

.message-stack { width: min(1240px, calc(100vw - 48px)); margin: 14px auto 0; display: grid; gap: 8px; }
.message { border: 1px solid #b7d7c9; background: #edf8f3; color: #126149; border-radius: 8px; padding: 10px 12px; font-size: 13px; }

.hero {
  min-height: 520px;
  position: relative;
  color: #fff;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(8,37,45,.92) 0%, rgba(8,37,45,.74) 42%, rgba(8,37,45,.24) 100%),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.hero-inner { width: min(1240px, calc(100vw - 48px)); margin: 0 auto; padding: 72px 0 46px; display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 34px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border-radius: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.92); font-size: 13px; margin-bottom: 18px; }
.hero h1 { width: min(720px, 100%); margin: 0; font-size: 44px; line-height: 1.16; font-weight: 800; letter-spacing: 0; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn { min-height: 42px; padding: 0 18px; font-size: 14px; border-color: rgba(255,255,255,.52); }
.search-panel, .hero-publish { background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.72); border-radius: 8px; box-shadow: 0 18px 50px rgba(10, 22, 36, .28); }
.search-panel { width: min(820px, 100%); margin-top: 34px; padding: 14px; }
.search-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.search-tab { background: #f7fafc; color: #34495d; }
.search-tab.active { background: #e6f4f1; color: #0f766e; border-color: #9fd5ca; }
.search-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.search-input { min-height: 42px; border: 1px solid #cbd8e3; border-radius: 6px; padding: 10px 14px; font-size: 14px; color: #475569; display: flex; align-items: center; background: #fff; }
.hotwords { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: #5f7084; font-size: 12px; }
.hotwords strong { color: #334155; }

.hero-publish { padding: 20px; color: #172033; }
.hero-publish h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; color: #142437; }
.publish-label, .market-form label, .action-panel label { display: block; margin: 12px 0 6px; color: #263849; font-size: 12px; font-weight: 700; }
.field { width: 100%; min-height: 38px; border: 1px solid #d7e2ec; background: #f8fbfd; color: #334155; border-radius: 6px; padding: 8px 11px; font-size: 13px; }
.textarea { min-height: 96px; resize: vertical; }
.publish-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-publish .btn { width: 100%; min-height: 40px; margin-top: 14px; }
.publish-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5edf3; color: #64748b; font-size: 12px; }

.stats-strip { width: min(1240px, calc(100vw - 48px)); margin: -34px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 3; }
.stat { background: #fff; border: 1px solid #dfe8ef; border-radius: 8px; padding: 14px 16px; box-shadow: 0 12px 28px rgba(15, 31, 45, .08); }
.stat b { display: block; color: #172033; font-size: 17px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.category-tree { width: min(1240px, calc(100vw - 48px)); margin: 18px auto 0; background: linear-gradient(135deg, rgba(10, 40, 52, .98), rgba(18, 78, 90, .94)), url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1800&q=80"); background-size: cover; background-position: center; border: 1px solid rgba(185, 221, 226, .34); border-radius: 8px; padding: 18px; overflow: visible; position: relative; z-index: 18; box-shadow: 0 22px 50px rgba(8, 31, 45, .18); }
.category-tree-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.category-eyebrow { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: rgba(255,255,255,.10); color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; margin-bottom: 9px; }
.category-tree-head h3 { margin: 0; color: #fff; font-size: 22px; line-height: 1.25; }
.category-head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.category-head-actions .btn { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; }
.category-head-actions .btn.primary { background: #f7c948; border-color: #f7c948; color: #173246; }
.primary-category-list { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.primary-category { position: relative; min-height: 118px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 13px 12px; background: rgba(255,255,255,.10); backdrop-filter: blur(10px); transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.primary-category:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); border-color: rgba(247, 201, 72, .86); box-shadow: 0 16px 32px rgba(4, 18, 28, .26); }
.category-code { width: 34px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(247, 201, 72, .18); color: #f7c948; font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.primary-category strong { display: block; color: #fff; font-size: 15px; margin-bottom: 7px; }
.category-hot { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.category-hot span { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.82); font-size: 11px; }
.category-flyout { display: none; position: absolute; top: calc(100% + 8px); left: 0; width: 760px; max-width: calc(100vw - 64px); background: #fff; border: 1px solid #bfd3df; border-radius: 8px; box-shadow: 0 24px 60px rgba(5, 20, 32, .24); padding: 18px; grid-template-columns: repeat(3, 1fr); gap: 14px; z-index: 40; }
.primary-category:nth-child(n+5) .category-flyout { left: auto; right: 0; }
.primary-category:hover .category-flyout { display: grid; }
.category-group b { display: block; color: #0f766e; font-size: 13px; margin-bottom: 8px; }
.category-group span { display: block; color: #52677a; font-size: 12px; line-height: 1.8; }
.tree-action { grid-column: 1 / -1; display: flex; justify-content: flex-end; border-top: 1px solid #e6eef4; padding-top: 12px; }

.promo-band { width: min(1240px, calc(100vw - 48px)); margin: 18px auto 0; display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 12px; }
.promo-card { min-height: 118px; border-radius: 8px; padding: 18px; border: 1px solid #dbe7ef; color: #fff; position: relative; overflow: hidden; background: linear-gradient(90deg, #0e3a45, #236978); box-shadow: 0 12px 26px rgba(15, 31, 45, .08); }
.promo-card { display: block; }
.promo-card.warm { background: linear-gradient(90deg, #803414, #bd6b2c); }
.promo-card.blue { background: linear-gradient(90deg, #165497, #3583bd); }
.promo-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15, 31, 45, .12); }
.promo-content b { display: block; font-size: 18px; line-height: 1.3; margin-bottom: 13px; }
.promo-link { min-height: 30px; display: inline-flex; align-items: center; border-radius: 6px; background: rgba(255,255,255,.96); color: #173246; padding: 0 10px; font-size: 12px; font-weight: 700; }

.main-section { padding: 42px 0 0; }
.section-title, .page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-title h2, .page-head h1 { margin: 0; font-size: 24px; line-height: 1.25; color: #162334; }
.market-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .8fr); gap: 18px; align-items: stretch; }
.market-layout-balanced { align-items: start; }
.market-side-column { display: grid; gap: 18px; align-content: start; }
.list-panel, .table-panel, .detail-main, .action-panel, .provider-card, .form-shell, .trust-list { background: #fff; border: 1px solid #dfe8ef; border-radius: 8px; overflow: hidden; }
.list-panel { display: flex; flex-direction: column; }
.panel-head { min-height: 48px; padding: 10px 16px; border-bottom: 1px solid #e4edf4; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 16px; color: #172033; }
.panel-tabs { display: flex; gap: 8px; font-size: 12px; color: #64748b; flex-wrap: wrap; }
.panel-tabs span, .tag { min-height: 23px; display: inline-flex; align-items: center; border: 1px solid #d5e5ee; border-radius: 6px; padding: 2px 8px; background: #f6fafc; color: #506274; font-size: 12px; }
.panel-tabs a { min-height: 23px; display: inline-flex; align-items: center; border: 1px solid #d5e5ee; border-radius: 6px; padding: 2px 8px; background: #f6fafc; color: #506274; font-size: 12px; text-decoration: none; }
.panel-tabs .active { background: #e9f3fb; border-color: #b9d5ed; color: #166bba; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); flex: 1; }
.home-service-grid { grid-template-rows: repeat(2, minmax(0, auto)); }
.service-card { min-height: 0; padding: 16px; border-right: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); display: flex; flex-direction: column; gap: 10px; }
.service-card[data-card-href], .need-row[data-card-href], .rank-row[data-card-href], .recommend-card[data-card-href] { cursor: pointer; }
.service-card:nth-child(2n) { border-right: none; }
.service-card-photo { height: 118px; border-radius: 8px; background: linear-gradient(135deg, #dbeafe, #e0f2fe); position: relative; overflow: hidden; }
.service-card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.20) 100%); pointer-events: none; }
.service-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.service-card-mark { min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #edf4fb; color: #166bba; font-size: 12px; font-weight: 800; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.service-card h4, .need-row h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #172033; line-height: 1.5; min-height: 42px; }
.service-card p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.7; min-height: 62px; }
.service-meta, .need-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: #64748b; font-size: 12px; }
.service-stats { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #64748b; font-size: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid #edf2f7; }
.price, .detail-price { color: #bf4d13; font-size: 16px; font-weight: 800; }
.needs-list { padding: 0 16px 4px; display: grid; grid-template-rows: repeat(3, minmax(0, auto)); gap: 0; }
.need-row { padding: 16px 0; border-bottom: 1px solid #edf2f7; display: flex; flex-direction: column; justify-content: space-between; min-height: 192px; }
.need-row:last-child { border-bottom: none; }
.need-row p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.65; }

.rank-solution-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.rank-list { padding: 8px 16px 12px; flex: 1; }
.rank-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf2f7; }
.rank-num { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: #edf4fb; color: #166bba; font-size: 12px; font-weight: 800; }
.rank-row:nth-child(-n+3) .rank-num { background: #fff2df; color: #bf4d13; }
.rank-name { min-width: 0; }
.rank-name b, .rank-name span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name b { color: #172033; font-size: 13px; line-height: 1.35; }
.rank-name span { color: #64748b; font-size: 12px; margin-top: 4px; }
.rank-trend { color: #bf4d13; font-size: 12px; font-weight: 700; white-space: nowrap; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; flex: 1; }
.home-solution-grid { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.solution-card { min-height: 0; border: 1px solid #dfe8ef; border-radius: 8px; padding: 14px; background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%); display: flex; flex-direction: column; gap: 8px; justify-content: space-between; }
.solution-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.solution-index { min-width: 30px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #eef7f4; color: #0f766e; font-size: 12px; font-weight: 800; }
.solution-arrow { color: #166bba; font-size: 12px; font-weight: 700; }
.solution-card h4 { margin: 0; color: #172033; font-size: 14px; line-height: 1.45; min-height: 40px; }
.solution-card p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.7; min-height: 58px; }
.solution-card span { color: #0f766e; font-size: 12px; font-weight: 700; }

.recommend-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.recommend-card { min-height: 316px; background: #fff; border: 1px solid #dfe8ef; border-radius: 8px; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.recommend-card:hover { transform: translateY(-2px); border-color: #b8ccd9; box-shadow: 0 16px 32px rgba(15, 31, 45, .12); }
.recommend-photo { height: 126px; background: linear-gradient(135deg, #dbeafe, #e0f2fe); position: relative; overflow: hidden; }
.recommend-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.24) 100%); pointer-events: none; }
.recommend-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recommend-body { padding: 12px; display: flex; flex-direction: column; min-height: 190px; }
.recommend-card h4 { margin: 0 0 8px; color: #172033; font-size: 14px; font-weight: 700; line-height: 1.45; min-height: 42px; }
.recommend-price { color: #bf4d13; font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.recommend-card .company { color: #52677a; font-size: 12px; line-height: 1.6; min-height: 38px; }
.recommend-metrics, .recommend-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: #64748b; font-size: 12px; }
.recommend-metrics { padding-top: 10px; border-top: 1px solid #edf2f7; margin-top: auto; }
.recommend-action .tag { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consult-btn { min-height: 30px; padding: 0 10px; font-size: 12px; }
.score { color: #bf4d13; font-weight: 800; }

.consult-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: linear-gradient(90deg, rgba(15, 118, 110, .96), rgba(22, 107, 186, .88)); color: #fff; border-radius: 8px; padding: 22px 24px; border: 1px solid #b8d8df; }
.consult-strip h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.consult-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.consult-actions .btn { min-height: 38px; background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.96); color: #173246; }
.consult-actions .btn.primary { background: #fffbeb; border-color: #fffbeb; color: #934014; }
.trust-list { padding: 18px; }
.trust-list h3 { margin: 0 0 13px; color: #172033; font-size: 16px; }
.trust-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #edf2f7; }
.trust-item:first-of-type { border-top: none; }
.trust-num { width: 30px; height: 30px; border-radius: 8px; background: #eef7f4; color: #0f766e; display: grid; place-items: center; font-size: 13px; font-weight: 800; }

.plain-page { padding: 34px 0 46px; }
.commercial-page {
  position: relative;
}
.commercial-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 440px;
  background:
    radial-gradient(circle at 10% 10%, rgba(15,118,110,.14), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(217,119,6,.12), transparent 28%),
    linear-gradient(180deg, #eef5fb 0%, rgba(244,247,251,0) 100%);
  pointer-events: none;
}
.commercial-page > .section-inner,
.commercial-page > .detail-layout,
.commercial-page > .catalog-market-layout,
.commercial-page > .demand-market-layout {
  position: relative;
  z-index: 1;
}
.commercial-hero,
.commercial-panel,
.commercial-section {
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 48px rgba(15, 31, 45, .08);
}
.commercial-hero {
  padding: 28px 30px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(247,251,255,.96) 52%, rgba(239,249,248,.94) 100%);
}
.commercial-hero::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22,107,186,.16) 0%, rgba(22,107,186,0) 68%);
}
.commercial-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1f4a61;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(201, 219, 231, .95);
  margin-bottom: 12px;
}
.commercial-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
  color: #122638;
  letter-spacing: -.02em;
}
.commercial-hero p {
  width: min(760px, 100%);
  margin: 16px 0 0;
  color: #566a7d;
  font-size: 14px;
  line-height: 1.82;
}
.commercial-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.commercial-actions .btn.primary {
  background: linear-gradient(135deg, #0f766e 0%, #166bba 100%);
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(22, 107, 186, .18);
}
.commercial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.commercial-stat {
  min-height: 92px;
  border: 1px solid #e0ebf2;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.commercial-stat span {
  color: #64748b;
  font-size: 12px;
}
.commercial-stat strong {
  color: #13263a;
  font-size: 24px;
  line-height: 1;
}
.commercial-section {
  padding: 20px;
  margin-bottom: 18px;
}
.commercial-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.commercial-section-head h2 {
  margin: 0;
  font-size: 22px;
  color: #162334;
}
.commercial-section-head p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}
.catalog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.catalog-market-layout, .demand-market-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.catalog-market-layout { grid-template-columns: 292px minmax(0, 1fr); overflow: visible; }
.demand-market-layout { grid-template-columns: 292px minmax(0, 1fr); overflow: visible; }
.category-sidebar { background: #fff; border: 1px solid #dfe8ef; border-radius: 8px; padding: 16px; position: sticky; top: 82px; max-height: calc(100vh - 104px); overflow: auto; }
.category-sidebar h2 { margin: 0 0 12px; font-size: 16px; color: #172033; }
.category-side-group { border-top: 1px solid #edf2f7; padding: 12px 0; }
.category-side-group:first-of-type { border-top: none; padding-top: 0; }
.category-side-group h3 { margin: 0 0 9px; font-size: 14px; color: #0f766e; }
.side-subcategory { display: grid; gap: 5px; margin-top: 9px; }
.side-subcategory b { color: #172033; font-size: 12px; }
.side-subcategory div, .side-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.side-subcategory span, .side-tags span { display: inline-flex; min-height: 22px; align-items: center; border-radius: 6px; background: #f6fafc; color: #52677a; padding: 2px 7px; font-size: 11px; border: 1px solid #e1ebf2; }
.category-sidebar.compact { max-height: none; }
.service-category-sidebar { position: sticky; top: 82px; border: 1px solid #dfe8ef; border-radius: 8px; background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 100%); padding: 14px; overflow: visible; box-shadow: 0 14px 32px rgba(15, 31, 45, .06); }
.service-category-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e7eef4; margin-bottom: 12px; }
.service-category-head h2 { margin: 0; font-size: 16px; color: #172033; }
.service-category-head p { margin: 6px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.service-category-badge { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: #eef7f4; color: #0f766e; font-size: 12px; font-weight: 700; }
.service-category-list { display: grid; gap: 8px; }
.service-category-item { position: relative; }
.service-category-trigger { width: 100%; display: grid; gap: 4px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 11px 12px; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.service-category-trigger strong { color: #172033; font-size: 14px; font-weight: 700; }
.service-category-trigger span { color: #64748b; font-size: 12px; line-height: 1.4; }
.service-category-item.is-default .service-category-trigger,
.service-category-item.is-hovered .service-category-trigger,
.service-category-item:hover .service-category-trigger { border-color: #bfd6ea; background: #f3f8fd; box-shadow: 0 10px 22px rgba(15, 31, 45, .08); }
.service-category-flyout { position: absolute; top: 0; left: calc(100% + 14px); width: 760px; max-width: calc(100vw - 420px); display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; border: 1px solid #d9e5ef; border-radius: 8px; background: rgba(255,255,255,.98); box-shadow: 0 24px 60px rgba(8, 24, 38, .16); z-index: 12; }
.service-category-item.is-hovered .service-category-flyout,
.service-category-item:focus-within .service-category-flyout,
.service-category-item:hover .service-category-flyout { display: grid; }
.service-category-group { display: grid; gap: 8px; }
.service-category-group a { text-decoration: none; }
.service-category-group b { color: #0f766e; font-size: 13px; }
.service-category-group div { display: flex; flex-wrap: wrap; gap: 6px; }
.service-category-group span { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 6px; background: #f8fbfd; border: 1px solid #e2ebf2; color: #52677a; font-size: 12px; }
.service-category-group a:hover span { border-color: #bfd6ea; background: #f3f8fd; color: #172033; }
.market-search { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; margin-bottom: 14px; }
.toolbar-search { margin-bottom: 0; }
.catalog-list-area { min-width: 0; display: grid; gap: 14px; }
.catalog-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #64748b; font-size: 13px; }
.catalog-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.catalog-product-card { min-height: 292px; background: #fff; border: 1px solid #dfe8ef; border-radius: 8px; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.catalog-product-card:hover { transform: translateY(-2px); border-color: #b8ccd9; box-shadow: 0 16px 32px rgba(15, 31, 45, .12); }
.catalog-empty-state { min-height: 160px; display: grid; place-items: center; border: 1px dashed #d6e2eb; border-radius: 8px; background: #fff; color: #64748b; font-size: 13px; grid-column: 1 / -1; }
.simple-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.simple-pagination .is-disabled { opacity: .48; cursor: not-allowed; }
.page-current { color: #64748b; font-size: 13px; }
.demand-list-area { display: grid; gap: 12px; }
.demand-list-card { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; background: #fff; border: 1px solid #dfe8ef; border-radius: 8px; padding: 16px; }
.demand-list-card h2 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; color: #172033; }
.demand-meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.demand-meta-row div { border: 1px solid #edf2f7; border-radius: 8px; padding: 9px; background: #f8fbfd; }
.demand-intro { display: grid; gap: 5px; color: #64748b; font-size: 12px; line-height: 1.6; }
.demand-intro b { color: #172033; }
.demand-card-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.review-list-actions { align-items: stretch; min-width: 120px; }
.review-inline-actions { align-items: stretch; min-width: 320px; }
.review-form-stack { display: grid; gap: 16px; }
.review-readonly-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: #f8fbfd;
  color: #52677a;
  font-size: 13px;
  line-height: 1.6;
}
.review-readonly-note b { color: #172033; font-size: 14px; }
.review-readonly-note.compact { font-size: 12px; padding: 12px; }
.ops-user-head { align-items: flex-end; }
.ops-user-list { display: grid; gap: 12px; }
.ops-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  padding: 16px;
}
.ops-user-main { min-width: 0; }
.ops-user-main h2 { margin: 10px 0; font-size: 18px; line-height: 1.3; color: #172033; }
.ops-user-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; color: #52677a; font-size: 12px; line-height: 1.5; }
.ops-user-meta.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ops-user-meta span { min-width: 0; overflow-wrap: anywhere; }
.ops-user-meta b { display: block; margin-bottom: 3px; color: #172033; }
.ops-user-actions { display: flex; flex-direction: column; gap: 8px; align-content: center; align-items: flex-end; }
.ops-user-actions .btn, .ops-user-actions button { width: 108px; min-height: 32px; padding-inline: 10px; }
.ops-user-actions form { margin: 0; }
.ops-user-actions.stacked { margin-bottom: 18px; }
.ops-user-detail-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.ops-user-record { border-top: 1px solid #e4edf4; padding-top: 12px; margin-top: 12px; }
.ops-user-record:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.ops-user-record h3 { margin: 8px 0; font-size: 16px; color: #172033; }
.ops-user-record p { margin: 8px 0 0; color: #52677a; font-size: 13px; line-height: 1.7; }
.mini-grid.single { grid-template-columns: 1fr; }
.provider-upload-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  color: #52677a;
  font-size: 12px;
}
.provider-upload-preview.inline { max-width: 360px; }
.provider-upload-preview img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #dfe8ef;
  background: #f8fbfd;
}
.provider-upload-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.provider-upload-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dfe8ef;
  background: #f8fbfd;
}
.provider-upload-saved-image {
  display: grid;
  gap: 8px;
  align-content: start;
}
.provider-upload-saved-image .btn { width: 100%; min-height: 30px; }
.provider-upload-saved-image img { margin: 0; }
.provider-upload-gallery.review { max-width: 560px; }
.provider-upload-gallery.public { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.provider-profile-hero-image { margin: 12px 0; }
.provider-profile-hero-image img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dfe8ef;
}
.provider-apply-shell { max-width: none; padding: 24px; }
.provider-apply-form { gap: 16px; }
.provider-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.provider-form-grid label, .provider-apply-form label { display: grid; gap: 6px; color: #334155; font-size: 13px; font-weight: 700; }
.provider-upload-field {
  display: grid;
  gap: 10px;
  border: 1px dashed #cbd8e3;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-top: 10px;
}
.provider-upload-field .section-title.compact { margin-bottom: 0; }
.provider-upload-field h3 { margin: 0; font-size: 14px; color: #172033; }
.provider-upload-input-list { display: grid; gap: 8px; }
.provider-upload-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.provider-upload-input-row .btn { min-width: 72px; }
.provider-case-card {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  margin-top: 12px;
}
.provider-case-list { display: grid; gap: 10px; }
.provider-case-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.provider-case-summary h3 { margin: 8px 0 0; color: #172033; font-size: 16px; line-height: 1.4; }
.provider-case-summary p { margin: 8px 0 0; color: #52677a; font-size: 13px; line-height: 1.7; }
.case-detail-panel { padding: 20px; }
.case-detail-panel .detail-section p { color: #52677a; font-size: 14px; line-height: 1.85; }
.section-title.compact { align-items: center; margin-bottom: 8px; }
.section-title.compact h2 { font-size: 16px; }
.provider-apply-submit { width: fit-content; min-width: 180px; }
.market-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.market-table th { text-align: center; color: #334155; background: #f8fbfd; border-bottom: 1px solid #e4edf4; padding: 11px; font-weight: 700; }
.market-table td { border-bottom: 1px solid #edf2f7; padding: 13px 11px; vertical-align: middle; text-align: center; color: #44576a; }
.market-table td.market-cell-main { text-align: left; width: 28%; }
.market-table td b { display: block; margin-bottom: 5px; color: #172033; }
.market-table td span { display: block; color: #64748b; font-size: 12px; line-height: 1.5; }
.market-table .col-index { width: 72px; text-align: center; }
.market-table .col-rank { width: 78px; text-align: center; }
.market-table .col-compact { width: 96px; }
.market-table .col-action { width: 116px; text-align: center; }
.market-table .col-price { white-space: nowrap; }
.catalog-table .col-provider { width: 180px; }
.catalog-table .col-category { width: 180px; }
.catalog-table .col-metric { width: 166px; }
.market-table-empty { text-align: center !important; color: #64748b; padding: 24px 12px !important; }
.rank-pill { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #edf4fb; color: #166bba; font-size: 12px; font-weight: 800; }
.ranking-table tbody tr:nth-child(-n+3) .rank-pill { background: #fff2df; color: #bf4d13; }
.pagination-bar { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #52606e; font-size: 13px; }
.pagination-summary { min-width: 96px; }
.pagination-nav { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 12px; border: 1px solid #c6cdd6; border-radius: 6px; background: #fff; color: #334150; text-decoration: none; }
.page-link.is-current { border-color: #c5d8ec; background: #e8f0f9; color: #123f70; font-weight: 700; }
.page-link.is-disabled { background: #f3f5f7; color: #98a3af; border-color: #d9dee4; }
.page-size-switcher { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.page-size-switcher label { display: inline-flex; align-items: center; gap: 8px; }
.page-size-select { height: 34px; min-width: 76px; border: 1px solid #c6cdd6; border-radius: 6px; background: #fff; padding: 0 28px 0 10px; color: #334150; font: inherit; cursor: pointer; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.detail-main, .action-panel, .form-shell { padding: 20px; }
.detail-main h1, .form-shell h1 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; }
.detail-main p { color: #52677a; font-size: 13px; line-height: 1.75; }
.detail-section { border: 1px solid #e4edf4; background: #f8fbfd; border-radius: 8px; padding: 14px; margin: 12px 0; }
.detail-section h2 { margin: 0 0 8px; font-size: 16px; color: #172033; }
.action-panel form + h2 { margin-top: 20px; padding-top: 16px; border-top: 1px solid #edf2f7; }
.detail-grid, .mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.detail-grid div, .mini-grid div { border: 1px solid #e4edf4; background: #f8fbfd; border-radius: 8px; padding: 12px; }
dt { color: #64748b; font-size: 12px; }
dd { margin: 5px 0 0; font-size: 13px; font-weight: 700; color: #172033; }
.action-panel h2, .provider-card h2 { margin: 0 0 12px; font-size: 18px; }
.inline-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.market-form { display: grid; gap: 8px; }
.form-shell { max-width: 720px; }
.provider-directory-page { position: relative; }
.provider-directory-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  background:
    radial-gradient(circle at 10% 8%, rgba(235, 138, 52, .18), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(16, 102, 142, .18), transparent 30%),
    linear-gradient(135deg, rgba(9, 58, 70, .10) 0%, rgba(9, 58, 70, 0) 30%),
    linear-gradient(180deg, #eef5fb 0%, #f8fbfd 56%, rgba(244, 247, 251, 0) 100%);
  pointer-events: none;
}
.provider-directory-hero,
.provider-capability-band { position: relative; z-index: 1; }
.provider-directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) 320px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.provider-hero-copy,
.provider-hero-panel {
  border: 1px solid rgba(206, 224, 236, .92);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 38px rgba(15, 31, 45, .08);
}
.provider-hero-copy {
  padding: 24px 26px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(247,251,255,.96) 54%, rgba(239,249,248,.92) 100%);
}
.provider-hero-copy::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -54px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22,107,186,.14) 0%, rgba(22,107,186,0) 70%);
}
.provider-hero-copy::before {
  content: "";
  position: absolute;
  left: -56px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(235,138,52,.14) 0%, rgba(235,138,52,0) 68%);
}
.provider-hero-copy h1 {
  width: min(720px, 100%);
  margin: 0;
  font-size: 31px;
  line-height: 1.18;
  color: #102638;
  letter-spacing: -.02em;
}
.provider-hero-copy p {
  width: min(660px, 100%);
  margin: 12px 0 0;
  color: #52697b;
  font-size: 13px;
  line-height: 1.7;
}
.provider-hero-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.provider-hero-signal span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #224761;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(201, 219, 231, .95);
  box-shadow: 0 6px 14px rgba(15, 31, 45, .04);
}
.provider-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.provider-hero-actions .btn {
  min-height: 34px;
  padding: 0 12px;
}
.provider-hero-actions .btn.primary {
  background: linear-gradient(135deg, #0f766e 0%, #166bba 100%);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(22, 107, 186, .16);
}
.provider-hero-actions .btn:not(.primary) {
  background: rgba(255,255,255,.88);
}
.provider-hero-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,250,255,.98) 100%),
    linear-gradient(135deg, rgba(18,107,186,.04), rgba(15,118,110,.03));
}
.provider-panel-head {
  display: grid;
  gap: 4px;
}
.provider-panel-head span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.provider-panel-head b {
  color: #162334;
  font-size: 17px;
  line-height: 1.35;
}
.provider-overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.provider-overview-metric {
  min-height: 72px;
  border: 1px solid #e0ebf2;
  border-radius: 8px;
  padding: 12px 12px 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.provider-overview-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0f766e, #166bba);
}
.provider-overview-metric:nth-child(2)::before { background: linear-gradient(180deg, #166bba, #3b82f6); }
.provider-overview-metric:nth-child(3)::before { background: linear-gradient(180deg, #d97706, #f59e0b); }
.provider-overview-metric:nth-child(4)::before { background: linear-gradient(180deg, #0f766e, #14b8a6); }
.provider-overview-metric span {
  color: #64748b;
  font-size: 11px;
}
.provider-overview-metric strong {
  color: #13263a;
  font-size: 22px;
  line-height: 1;
}
.provider-hero-note {
  padding-top: 6px;
  border-top: 1px solid #e9f0f5;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.provider-capability-band {
  margin-bottom: 16px;
}
.provider-directory-head h2,
.provider-list-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: #162334;
}
.provider-list-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.provider-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 180px 180px auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.provider-filter-toolbar .field {
  min-height: 34px;
  background: rgba(255,255,255,.94);
}
.provider-capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.provider-capability-pill {
  min-height: 62px;
  border: 1px solid #dae7ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.provider-capability-pill::after {
  content: "";
  position: absolute;
  inset: auto -18px -30px auto;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22,107,186,.08) 0%, rgba(22,107,186,0) 70%);
}
.provider-capability-pill.accent:nth-child(1) {
  background: linear-gradient(135deg, rgba(15,118,110,.10), rgba(255,255,255,.98));
  border-color: #b9dfda;
}
.provider-capability-pill.accent:nth-child(2) {
  background: linear-gradient(135deg, rgba(22,107,186,.10), rgba(255,255,255,.98));
  border-color: #c6dcef;
}
.provider-capability-pill.accent:nth-child(3) {
  background: linear-gradient(135deg, rgba(217,119,6,.10), rgba(255,255,255,.98));
  border-color: #edd4af;
}
.provider-capability-pill.accent:nth-child(4) {
  background: linear-gradient(135deg, rgba(168,85,247,.10), rgba(255,255,255,.98));
  border-color: #dfcbfb;
}
.provider-capability-pill b {
  color: #16324a;
  font-size: 14px;
  line-height: 1.3;
}
.provider-capability-pill span {
  color: #64748b;
  font-size: 11px;
}
.provider-capability-pill:hover {
  transform: translateY(-1px);
  border-color: #bfd3e3;
  box-shadow: 0 10px 20px rgba(15, 31, 45, .07);
}
.provider-capability-pill.is-active {
  border-color: #8fc2ba;
  background: linear-gradient(135deg, rgba(15,118,110,.16), rgba(255,255,255,.98));
  box-shadow: 0 12px 24px rgba(15, 118, 110, .10);
}
.provider-filter-state { margin-top: 12px; margin-bottom: 0; }
.provider-filter-state .tag:last-child {
  background: #fff;
  color: #166bba;
  border-color: #c8d9ea;
  text-decoration: none;
}
.provider-list-head {
  position: relative;
  z-index: 1;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}
.provider-grid.rich { align-items: stretch; }
.provider-card {
  overflow: hidden;
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 26px rgba(15, 31, 45, .08);
  min-height: 0;
  border-color: #dbe7ef;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: provider-rise .45s ease both;
  position: relative;
}
.provider-card:nth-child(2n) { animation-delay: .04s; }
.provider-card:nth-child(3n) { animation-delay: .08s; }
.provider-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 31, 45, .12);
  border-color: #bfd3e3;
}
.provider-card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0f766e, #166bba);
  z-index: 2;
}
.provider-card:nth-child(3n) .provider-card-accent {
  background: linear-gradient(180deg, #d97706, #f59e0b);
}
.provider-card:nth-child(4n) .provider-card-accent {
  background: linear-gradient(180deg, #7c3aed, #a855f7);
}
.provider-card-shell {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 0;
}
.provider-photo {
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
}
.provider-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 12, 21, .04) 0%, rgba(3, 12, 21, .50) 100%),
    linear-gradient(120deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 42%);
  transition: opacity .18s ease, transform .18s ease;
}
.provider-card:hover .provider-photo::after { transform: scale(1.02); }
.provider-photo-overlay {
  position: absolute;
  inset: 10px 10px auto 10px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}
.provider-photo-overlay .tag {
  background: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.9);
  color: #173246;
  backdrop-filter: blur(8px);
  font-size: 11px;
}
.provider-rank {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-width: 54px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(12, 23, 34, .34);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.provider-body {
  padding: 12px 12px 13px;
  display: grid;
  gap: 8px;
  min-height: 0;
}
.provider-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.provider-title-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.provider-card h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: #172033;
}
.provider-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 11px;
}
.provider-meta-line span {
  position: relative;
}
.provider-meta-line span + span::before {
  content: "•";
  margin-right: 10px;
  color: #a1b0bc;
}
.provider-rating {
  min-width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff4de 0%, #fffaf0 100%);
  border: 1px solid #f2d5a2;
  color: #bf4d13;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.provider-tag-row { margin: -2px 0 0; gap: 6px; }
.provider-tag-row .tag { font-size: 11px; }
.provider-summary {
  margin: 0;
  color: #5a6d7f;
  font-size: 13px;
  line-height: 1.58;
  min-height: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.provider-strength {
  display: grid;
  gap: 5px;
  margin: 0;
}
.provider-strength b { color: #172033; font-size: 12px; }
.provider-strength div { display: flex; flex-wrap: wrap; gap: 6px; }
.provider-strength span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef7f4 0%, #f7fbfa 100%);
  color: #0f766e;
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid #cfe7de;
}
.provider-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
}
.provider-metrics span {
  min-height: 46px;
  border: 1px solid #e5edf3;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 8px 9px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  color: #52677a;
}
.provider-metrics b {
  color: #172033;
  font-size: 15px;
  line-height: 1;
}
.provider-metrics small {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}
.provider-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 2px;
  align-items: stretch;
}
.provider-actions form { margin: 0; }
.provider-actions form .btn,
.provider-actions > .btn { width: 100%; }
.provider-actions .btn {
  min-height: 30px;
  padding-inline: 9px;
  font-size: 12px;
}
.provider-actions .btn.primary {
  background: linear-gradient(135deg, #0f766e 0%, #166bba 100%);
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(22, 107, 186, .14);
}
@media (prefers-reduced-motion: reduce) {
  .provider-card { animation: none; }
}
@keyframes provider-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.footer-hint { margin-top: 38px; background: #fff; border-top: 1px solid #dfe8ef; padding: 22px 0; color: #64748b; font-size: 12px; }

@media (max-width: 1120px) {
  .recommend-grid, .catalog-product-grid { grid-template-columns: repeat(3, 1fr); }
  .primary-category-list { grid-template-columns: repeat(2, 1fr); }
  .category-flyout { position: static; width: auto; max-width: none; margin-top: 10px; }
  .service-category-flyout { width: 620px; max-width: calc(100vw - 360px); }
  .provider-directory-hero { grid-template-columns: 1fr; }
  .provider-capability-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-filter-toolbar { grid-template-columns: 1fr 1fr; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav-links, .topbar-links { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-inner, .stats-strip, .market-layout, .service-grid, .rank-solution-layout, .solution-grid, .promo-band, .consult-strip, .detail-layout, .provider-grid, .inline-form, .catalog-market-layout, .demand-market-layout, .demand-list-card { grid-template-columns: 1fr; }
  .ops-user-card, .ops-user-detail-layout { grid-template-columns: 1fr; }
  .ops-user-meta, .ops-user-meta.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip { margin-top: 0; padding-top: 14px; }
  .search-row, .publish-duo, .market-search, .demand-meta-row { grid-template-columns: 1fr; }
  .topbar-inner, .nav-inner, .section-inner, .hero-inner, .stats-strip, .category-tree, .promo-band { width: min(100% - 28px, 1240px); }
  .hero { min-height: auto; }
  .hero-inner { padding: 52px 0 34px; }
  .category-tree-head { align-items: flex-start; flex-direction: column; }
  .category-head-actions { justify-content: flex-start; }
  .market-table { min-width: 760px; }
  .table-panel { overflow-x: auto; }
  .category-sidebar { position: static; max-height: none; }
  .service-category-sidebar { position: static; }
  .service-category-flyout { position: static; display: none; width: auto; max-width: none; margin-top: 10px; box-shadow: none; }
  .service-category-item.is-hovered .service-category-flyout,
  .service-category-item:focus-within .service-category-flyout { display: grid; }
  .catalog-summary, .pagination-bar { align-items: flex-start; flex-direction: column; }
  .demand-card-actions { flex-direction: row; justify-content: flex-start; }
  .review-list-actions, .review-inline-actions { min-width: 0; }
  .ops-user-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commercial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .nav { height: auto; }
  .nav-inner { padding: 10px 0; align-items: center; gap: 10px; }
  .brand { min-width: 176px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 16px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { flex: none; }
  .nav-actions .btn:first-child { display: none; }
  .hero-inner { padding: 28px 0 20px; gap: 16px; }
  .hero-kicker { margin-bottom: 10px; font-size: 12px; }
  .hero h1 { font-size: 28px; }
  .hero-actions { margin-top: 16px; gap: 8px; }
  .hero-actions .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .search-panel { margin-top: 16px; padding: 10px; }
  .search-tabs { gap: 6px; }
  .search-tab { padding: 0 8px; font-size: 12px; }
  .hotwords { display: none; }
  .hero-publish { display: none; }
  .recommend-grid, .primary-category-list, .catalog-product-grid { grid-template-columns: 1fr; }
  .section-title, .page-head { align-items: flex-start; flex-direction: column; }
  .ops-user-meta, .ops-user-meta.compact { grid-template-columns: 1fr; }
  .ops-user-actions { flex-direction: column; }
  .provider-form-grid { grid-template-columns: 1fr; }
  .provider-upload-input-row { grid-template-columns: 1fr; }
  .provider-case-summary { grid-template-columns: 1fr; align-items: stretch; }
  .provider-upload-gallery, .provider-upload-gallery.public { grid-template-columns: 1fr; }
  .commercial-hero { padding: 20px 18px; }
  .commercial-hero h1 { font-size: 26px; }
  .commercial-section { padding: 16px; }
  .commercial-section-head { align-items: flex-start; flex-direction: column; }
  .consult-actions { justify-content: flex-start; }
  .service-grid, .solution-grid { grid-template-columns: 1fr; }
  .home-service-grid, .home-solution-grid, .needs-list { grid-template-rows: none; }
  .service-category-head { flex-direction: column; }
  .service-category-flyout { grid-template-columns: 1fr; }
  .catalog-product-grid, .provider-grid, .provider-capability-strip, .provider-overview-metrics, .provider-metrics { grid-template-columns: 1fr; }
  .provider-directory-hero { gap: 14px; margin-bottom: 16px; }
  .provider-hero-copy, .provider-hero-panel { padding: 18px; }
  .provider-hero-copy h1 { font-size: 26px; }
  .provider-hero-signal { margin-top: 14px; }
  .provider-hero-actions { margin-top: 16px; }
  .provider-filter-toolbar { grid-template-columns: 1fr; }
  .provider-photo { aspect-ratio: 16 / 9; min-height: 0; }
  .provider-summary { min-height: 0; }
  .provider-grid { grid-template-columns: 1fr; }
  .provider-actions { grid-template-columns: 1fr; }
  .provider-actions .btn, .provider-actions form { width: 100%; }
}
