﻿/* ===== Site switch dropdown ===== */
.site-switch {
  position: relative;
  flex-shrink: 0;
}

.site-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-switch-btn:hover,
.site-switch.open .site-switch-btn {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.site-flag {
  font-size: 14px;
  line-height: 1;
}

.site-current {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-caret {
  color: var(--text-muted);
  transition: transform 0.2s;
}

.site-switch.open .site-caret {
  transform: rotate(180deg);
}

.site-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: max-content;
  max-width: none;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 27, 51, 0.12);
  z-index: 120;
  white-space: nowrap;
}

.site-option {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 28px;
  height: 20px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-name {
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-soon {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: #A0A6B5;
  white-space: nowrap;
}

.site-option:hover:not(.is-disabled) {
  background: var(--primary-softer);
  color: var(--primary);
}

.site-option:hover:not(.is-disabled) .site-code {
  background: rgba(47, 107, 255, 0.12);
  color: var(--primary);
}

.site-option.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.site-option.active .site-code {
  background: var(--primary);
  color: #fff;
}

.site-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  font-weight: 500;
}

.site-option.is-disabled:hover {
  background: transparent;
  color: var(--text-secondary);
}

/* legacy toggle hidden if any leftover */
.lang-switch {
  display: none !important;
}

/* ===== Footer ===== */
.site-footer {
  background: #0F1B33;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1.1fr;
  gap: 32px 28px;
  padding-bottom: 40px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-grid li {
  margin-bottom: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
}

.footer-brand strong {
  font-size: 16px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact li {
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.footer-contact a {
  color: inherit;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible;
}

.footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
  overflow: visible;
}

.footer-meta-links > a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.footer-meta-links > a:hover {
  color: #fff;
}

.site-footer .site-switch {
  overflow: visible;
}

.site-footer .footer-col-contact,
.site-footer .footer-contact {
  overflow: visible;
}

.site-footer .site-switch-btn {
  height: 32px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 12px;
}

.site-footer .site-switch-btn:hover,
.site-footer .site-switch.open .site-switch-btn {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.site-footer .site-caret {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer .site-current {
  max-width: 72px;
}

.site-footer .site-switch-menu {
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
}

.footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-wechat {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
}
.footer-col-wechat .footer-wechat {
  margin-top: 2px;
}
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 96px;
}
.footer-qr img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
  display: block;
}
.footer-qr span {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.footer-qr em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.3;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  min-width: 0;
  flex: 1 1 320px;
}

.footer-legal > * + *::before {
  content: "·";
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.28);
}

.footer-bottom-inner .footer-beian {
  color: inherit;
  text-decoration: none;
}

.footer-bottom-inner .footer-beian:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  flex: 0 1 auto;
  margin-left: auto;
  white-space: nowrap;
}

.footer-stats b {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

@media (max-width: 900px) {
  .footer-bottom-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-stats {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* ===== Page hero (subpages) ===== */
.page-hero {
  padding: var(--page-band-pad-top) 0 var(--page-band-pad-bottom);
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(47, 107, 255, 0.1), transparent),
    linear-gradient(180deg, #F5F8FF 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: var(--page-title-size);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
}

/* 与首页同款的背景图卡片 Hero */
.page-hero--visual {
  position: relative;
  overflow: hidden;
  margin: 20px auto 0;
  max-width: min(1180px, calc(100% - 32px));
  padding: 56px 0 52px;
  min-height: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: #F7F9FF;
  display: flex;
  align-items: center;
}

.page-hero--visual .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-hero--visual .page-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
  transform: scale(1.02);
}

.page-hero--visual .page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(247, 249, 255, 0.55) 0%,
      rgba(247, 249, 255, 0.94) 14%,
      rgba(247, 249, 255, 0.9) 40%,
      rgba(247, 249, 255, 0.42) 58%,
      rgba(247, 249, 255, 0.08) 75%,
      rgba(247, 249, 255, 0) 90%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 42%, rgba(255, 255, 255, 0.28) 100%);
}

.page-hero--visual .page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-left: clamp(8px, 4vw, 48px);
}

.page-hero--visual h1 {
  margin-bottom: 12px;
  color: var(--text);
}

.page-hero--visual p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
}

@media (max-width: 768px) {
  .page-hero--visual {
    margin: 12px 12px 0;
    max-width: none;
    min-height: 200px;
    padding: 40px 0;
  }
  .page-hero--visual .page-hero-inner {
    margin-left: 0;
  }
  .page-hero--visual .page-hero-bg-img {
    object-position: 60% center;
  }
  .page-hero--visual .page-hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(247, 249, 255, 0.88) 0%,
        rgba(247, 249, 255, 0.72) 55%,
        rgba(247, 249, 255, 0.45) 100%
      );
  }
}

/* ===== Auth pages: register hero + soft background ===== */
.page-hero--auth.page-hero--visual {
  min-height: 220px;
  padding: 48px 0 44px;
}

.page-hero--auth.page-hero--visual .page-hero-bg-img {
  object-position: 68% center;
}

.auth-page {
  background:
    radial-gradient(ellipse 70% 42% at 88% 8%, rgba(47, 107, 255, 0.07), transparent 62%),
    radial-gradient(ellipse 55% 38% at 12% 92%, rgba(91, 140, 255, 0.06), transparent 58%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 42%, #f5f8ff 100%);
}

.auth-page-section {
  position: relative;
  padding-top: 8px;
}

.auth-page-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("../assets/images/register-hero.svg") center 12% / min(1200px, 96vw) auto no-repeat;
  opacity: 0.055;
  z-index: 0;
}

.auth-page-section > .container {
  position: relative;
  z-index: 1;
}

.page-section {
  padding: 40px 0 56px;
}

.page-section.alt {
  background: var(--bg-soft);
}

/* ===== Market ===== */
.market-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filter-tab {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--primary-softer);
  border-color: var(--primary-light);
  color: var(--primary);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.market-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.market-card h3 {
  font-size: 17px;
}

.market-card p {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.market-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 供需/资讯等列表顶栏：与 page-hero 共用标题区节奏 ===== */
.hall-bar {
  padding: var(--page-band-pad-top) 0 16px;
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(47, 107, 255, 0.1), transparent),
    linear-gradient(180deg, #F5F8FF 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.hall-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hall-bar-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.hall-bar-title h1 {
  font-size: var(--page-title-size);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.hall-bar-title p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(520px, 48vw);
}

.hall-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.hall-hero-actions .btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.hall-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hall-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.hall-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.hall-tab strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.hall-tab:hover strong {
  color: var(--primary);
}

.hall-tab.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 27, 51, 0.08);
}

.hall-tab.active strong {
  color: var(--primary);
}

.hall-bar .filter-tabs {
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.hall-bar .filter-tab {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.hall-section {
  padding: 28px 0 48px;
  background: var(--bg-soft);
}

.hall-section.page-section {
  padding: 28px 0 48px;
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hall-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hall-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hall-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hall-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.hall-tag.supply {
  color: #0F7B6C;
  background: #E6F7F3;
}

.hall-tag.demand {
  color: #B45309;
  background: #FFF7ED;
}

.hall-cat {
  font-size: 12px;
  color: var(--text-muted);
}

.hall-urgent {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #FF5A5A;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.hall-card h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.hall-card h3 a {
  color: inherit;
  text-decoration: none;
}
.hall-card h3 a:hover {
  color: var(--primary);
}

.hall-card > p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hall-attrs {
  margin-bottom: 12px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: 8px;
}

.hall-attrs li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hall-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.hall-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.hall-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.hall-bids {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Provider ===== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.benefit-card .num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px 18px;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  margin: 0;
  font-size: 14px;
  line-height: 1;
}

.provider-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.provider-form h3 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: #9aa3b5;
  opacity: 1;
}

.form-field textarea {
  height: 110px;
  padding: 10px 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
  background: #fff;
}

.provider-form .btn {
  grid-column: 1 / -1;
  width: 100%;
}

.provider-form .form-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff7e8;
  border: 1px solid #f3d19e;
  color: #9a6700;
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Solutions / About / Resources ===== */
.solution-grid,
.value-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.solution-card,
.value-card,
.resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.solution-card {
  display: flex;
  flex-direction: column;
}

.solution-card:hover,
.resource-card:hover, .soft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.solution-card h3,
.value-card h3,
.resource-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.solution-card p,
.value-card p,
.resource-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.resource-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-softer);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.solution-card .solution-more {
  margin-top: 16px;
  align-self: flex-start;
}

/* ===== Software marketplace (资源中心) ===== */
.shop-bar .filter-tabs {
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.shop-bar .filter-tab {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.shop-section {
  padding: 28px 0 48px;
  background: var(--bg-soft);
}

.shop-section.page-section {
  padding: 28px 0 48px;
}

.soft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.soft-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.soft-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 255, 0.28);
}

.soft-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 160px;
  background: linear-gradient(135deg, #1e40af, #60a5fa);
  overflow: hidden;
  order: -1;
}

.soft-cover .soft-cover-img,
.soft-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.soft-card-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  pointer-events: none;
}

.soft-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.tag-ai { color: #6B3FA0; background: #F3E8FF; }
.tag-soft { color: var(--primary); background: var(--primary-softer); }
.tag-erp { color: #0F7B6C; background: #E6F7F3; }
.tag-saas { color: #B45309; background: #FFF7ED; }

.soft-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #FF5A5A;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.soft-icon {
  display: none;
}

.soft-card h3 {
  font-size: 15px;
  margin: 14px 16px 6px;
  line-height: 1.35;
}

.soft-card > p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin: 0 16px 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.soft-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.soft-vendor {
  font-size: 12px;
  color: var(--text-muted);
}

.soft-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.soft-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.soft-actions {
  display: flex;
  gap: 8px;
  margin: 0 16px;
}

.soft-actions .btn {
  flex: 1;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.resource-publish {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2F6BFF, #5B8CFF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.resource-publish h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.resource-publish p {
  opacity: 0.9;
  font-size: 13px;
  margin: 0;
}

.resource-publish .btn {
  background: #fff;
  color: var(--primary);
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
}

.insight-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: min(360px, 100%);
}

/* 资讯/政策/资源名录：隐藏页眉大标题（保留 h1 供 SEO） */
body[data-insight] .hall-bar-title,
body[data-page="agencies"] .hall-bar-title,
body[data-page="factories"] .hall-bar-title,
body[data-page="resources"] .hall-bar-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-page="resources"] .resources-bar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="resources"] .resources-search {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
}

body[data-page="resources"] .resources-search input[type="search"] {
  height: 40px;
  font-size: 14px;
}

body[data-page="resources"] .resources-search .btn,
body[data-page="resources"] .hall-hero-actions .btn {
  height: 40px;
  padding: 0 16px;
}

body[data-page="resources"] .hall-hero-actions {
  flex-shrink: 0;
}

body[data-page="agencies"] .hall-bar-top {
  display: none;
}

body[data-page="factories"] .factory-bar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

body[data-page="factories"] .factory-search {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
}

body[data-page="factories"] .factory-search input[type="search"] {
  height: 40px;
  font-size: 14px;
}

body[data-page="factories"] .factory-search .btn {
  height: 40px;
  padding: 0 18px;
}

body[data-page="factories"] .factory-view-toggle {
  flex-shrink: 0;
}

body[data-insight] .hall-bar-top {
  justify-content: stretch;
  align-items: stretch;
}

body[data-insight] .insight-search {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
  gap: 10px;
}

body[data-insight] .insight-search input[type="search"] {
  flex: 1 1 auto;
  height: 40px;
  font-size: 14px;
}

body[data-insight] .insight-search .btn {
  height: 40px;
  padding: 0 18px;
  flex-shrink: 0;
}

.insight-search input[type="search"] {
  flex: 1;
  height: 36px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  color: var(--text);
}

.insight-search input[type="search"]:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
}

.insight-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.insight-cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
  align-self: start;
}

.insight-cover {
  display: block;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background-color: #1e40af;
  background-image: linear-gradient(135deg, #1e40af, #60a5fa);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* 列表页左侧封面固定宽度，避免污染详情/推荐封面尺寸 */
.insight-card > .insight-cover-link .insight-cover {
  width: 148px;
}

.insight-cover--default { background-image: url("/assets/images/covers/zh/default.svg?v=20260802cover7"); }
.insight-cover--policy { background-image: url("/assets/images/covers/zh/policy.svg?v=20260802cover7"); }
.insight-cover--wh { background-image: url("/assets/images/covers/zh/wh.svg?v=20260802cover7"); }
.insight-cover--pay { background-image: url("/assets/images/covers/zh/pay.svg?v=20260802cover7"); }
.insight-cover--ads { background-image: url("/assets/images/covers/zh/ads.svg?v=20260802cover7"); }
.insight-cover--kpi { background-image: url("/assets/images/covers/zh/kpi.svg?v=20260802cover7"); }
.insight-cover--sea { background-image: url("/assets/images/covers/zh/sea.svg?v=20260802cover7"); }
.insight-cover--ops { background-image: url("/assets/images/covers/zh/ops.svg?v=20260802cover7"); }
.insight-cover--tt { background-image: url("/assets/images/covers/zh/tt.svg?v=20260802cover7"); }
.insight-cover--return { background-image: url("/assets/images/covers/zh/return.svg?v=20260802cover7"); }
.insight-cover--local { background-image: url("/assets/images/covers/zh/local.svg?v=20260802cover7"); }
.insight-cover--erp { background-image: url("/assets/images/covers/zh/erp.svg?v=20260802cover7"); }
.insight-cover--comp { background-image: url("/assets/images/covers/zh/comp.svg?v=20260802cover7"); }
.insight-cover--epr { background-image: url("/assets/images/covers/zh/epr.svg?v=20260802cover7"); }
.insight-cover--us { background-image: url("/assets/images/covers/zh/us.svg?v=20260802cover7"); }
.insight-cover--uk { background-image: url("/assets/images/covers/zh/uk.svg?v=20260802cover7"); }
.insight-cover--data { background-image: url("/assets/images/covers/zh/data.svg?v=20260802cover7"); }
.insight-cover--cert { background-image: url("/assets/images/covers/zh/cert.svg?v=20260802cover7"); }

html[data-lang="en"] .insight-cover--default { background-image: url("/assets/images/covers/en/default.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--policy { background-image: url("/assets/images/covers/en/policy.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--wh { background-image: url("/assets/images/covers/en/wh.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--pay { background-image: url("/assets/images/covers/en/pay.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--ads { background-image: url("/assets/images/covers/en/ads.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--kpi { background-image: url("/assets/images/covers/en/kpi.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--sea { background-image: url("/assets/images/covers/en/sea.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--ops { background-image: url("/assets/images/covers/en/ops.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--tt { background-image: url("/assets/images/covers/en/tt.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--return { background-image: url("/assets/images/covers/en/return.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--local { background-image: url("/assets/images/covers/en/local.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--erp { background-image: url("/assets/images/covers/en/erp.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--comp { background-image: url("/assets/images/covers/en/comp.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--epr { background-image: url("/assets/images/covers/en/epr.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--us { background-image: url("/assets/images/covers/en/us.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--uk { background-image: url("/assets/images/covers/en/uk.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--data { background-image: url("/assets/images/covers/en/data.svg?v=20260802cover7"); }
html[data-lang="en"] .insight-cover--cert { background-image: url("/assets/images/covers/en/cert.svg?v=20260802cover7"); }

.insight-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

.insight-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.insight-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.insight-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.insight-body h3 a {
  color: inherit;
}

.insight-body h3 a:hover {
  color: var(--primary);
}

.insight-body > p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.insight-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.insight-mini-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.insight-mini-tag:hover,
.insight-mini-tag.active {
  color: var(--primary);
  border-color: rgba(47, 107, 255, 0.35);
  background: var(--primary-softer);
}

.insight-filter-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.insight-clear-filter {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.insight-cats-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.insight-cat-side {
  text-align: left;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.insight-cat-side:hover,
.insight-cat-side.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-softer);
}

.insight-card .btn {
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
}

.insight-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--primary-light);
  color: var(--primary);
}

.pager-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.insight-empty {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.insight-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h, 64px) + 12px);
}

.insight-side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.insight-side-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.insight-recommend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insight-recommend li + li {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.insight-recommend a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.insight-recommend a:hover {
  color: var(--primary);
}

.insight-cover-sm {
  width: 64px !important;
  height: 48px;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  flex-shrink: 0;
}

.insight-cover-sm .insight-cover-img {
  width: 64px;
  height: 48px;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-position: center center;
}

.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.insight-tag-btn {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  line-height: 1.2;
}

.insight-tag-btn:hover,
.insight-tag-btn.active {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-softer);
}

.insight-side-cta p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.insight-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--primary);
  background: var(--primary-softer);
  margin-bottom: 8px;
}

.insight-tag.policy {
  color: #0F7B6C;
  background: #E6F7F3;
}

@media (max-width: 960px) {
  .insight-layout {
    grid-template-columns: 1fr;
  }

  .insight-side {
    position: static;
    order: 2;
  }

  .insight-main {
    order: 1;
  }
}

@media (max-width: 560px) {
  .insight-search {
    width: 100%;
    min-width: 0;
  }

  .insight-card {
    grid-template-columns: 1fr;
  }

  .insight-cover-link {
    width: 100%;
  }

  .insight-cover,
  .insight-cover-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .hall-bar-top {
    flex-direction: column;
    align-items: stretch;
  }
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.about-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.about-panel h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.contact-box {
  background: linear-gradient(135deg, #2F6BFF, #5B8CFF);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-box h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.contact-box p {
  opacity: 0.9;
}

.contact-box .btn {
  background: #fff;
  color: var(--primary);
}

/* ===== H5 / multi-device ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

.site-header {
  padding-top: env(safe-area-inset-top);
}

body.nav-open {
  overflow: hidden;
}

.btn,
.filter-tab,
.lang-btn,
.menu-toggle,
.service-link {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: none) {
  .service-card:hover,
  .market-card:hover,
  .solution-card:hover,
  .resource-card:hover, .soft-card:hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hall-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .soft-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .solution-grid,
  .value-grid,
  .resource-grid,
  .about-block {
    grid-template-columns: 1fr;
  }

  .provider-form {
    grid-template-columns: 1fr;
  }

  .hall-bar-title p {
    max-width: 42vw;
  }

  .hall-bar-row {
    flex-wrap: wrap;
  }

  .hall-bar .filter-tabs {
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --page-band-pad-top: 28px;
    --page-band-pad-bottom: 20px;
    --page-title-size: 24px;
  }

  .page-section {
    padding: 40px 0;
  }

  .hall-bar-title h1 {
    white-space: normal;
  }

  .market-grid,
  .benefit-grid,
  .steps,
  .soft-grid,
  .hall-grid {
    grid-template-columns: 1fr;
  }

  .hall-tabs {
    width: 100%;
  }

  .hall-tab {
    flex: 1;
    text-align: center;
  }

  .hall-bar {
    padding: 10px 0 8px;
  }

  .hall-bar-top {
    align-items: center;
  }

  .hall-bar-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .hall-bar-title p {
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .hall-bar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hall-section,
  .hall-section.page-section {
    padding: 12px 0 40px;
  }

  .shop-section,
  .shop-section.page-section {
    padding: 12px 0 40px;
  }

  .site-footer {
    padding-top: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding-bottom: 20px;
  }

  /* 品牌、快速链接通栏；联系与关注并排减高度 */
  .footer-inner > .footer-col:first-child,
  .footer-col-links {
    grid-column: 1 / -1;
  }

  /* 品牌简介压成两行，少占高度 */
  .footer-col > p[data-i18n="footer.aboutDesc"] {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: none;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
  }

  .footer-brand {
    margin-bottom: 8px;
  }

  .footer-col h4 {
    margin-bottom: 8px;
    font-size: 13px;
  }

  /* 快速链接保持多列，避免一列拉超高 */
  .footer-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 8px;
  }

  .footer-links-grid a,
  .footer-contact li,
  .footer-contact a {
    font-size: 12px;
    line-height: 1.4;
  }

  .footer-col ul li,
  .footer-contact li {
    margin-bottom: 4px;
  }

  .footer-meta-links {
    margin-top: 8px;
    gap: 6px 10px;
  }

  .footer-meta-links > a {
    font-size: 12px;
  }

  .footer-wechat {
    gap: 10px;
    justify-content: flex-start;
  }

  .footer-qr {
    min-width: 0;
    gap: 4px;
  }

  .footer-qr img {
    width: 64px;
    height: 64px;
  }

  .footer-qr em {
    display: none;
  }

  .footer-qr span {
    font-size: 11px;
  }

  .hero-actions .btn,
  .contact-box .btn {
    width: 100%;
  }

  .market-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    min-height: 44px;
  }

  /* 仅移动端抽屉内加大点击热区，不改桌面顶栏字号 */
  .site-header.is-drawer.menu-open .nav-link,
  .site-header.menu-open .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .resource-publish {
    padding: 22px;
  }
}

/* Prevent FOUC of untranslated keys briefly */
html:not(.i18n-ready) [data-i18n]:empty {
  visibility: hidden;
}

/* ===== Dual-language inline spans ===== */
html[lang="en"] .i18n-zh { display: none !important; }
html:not([lang="en"]) .i18n-en { display: none !important; }

/* 璇█鍒囨崲鏃舵枃妗堣交寰繃娓?*/
[data-i18n],
.i18n-zh,
.i18n-en {
  transition: opacity 0.15s ease;
}

/* ===== Auth / content extras ===== */
.auth-form,
.search-form {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.auth-form-wide {
  max-width: 560px;
  grid-template-columns: 1fr 1fr;
}
.auth-form-wide .form-field.full,
.auth-form-wide .auth-steps,
.auth-form-wide .auth-type-toggle,
.auth-form-wide .btn,
.auth-form-wide .auth-hint,
.auth-form-wide [data-type-panel] {
  grid-column: 1 / -1;
}
.auth-form-wide [data-type-panel]:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-form-wide [data-type-panel] .form-field.full {
  grid-column: 1 / -1;
}
.search-form {
  max-width: 640px;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.search-form input {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: var(--bg-soft);
}
.auth-switch { font-size: 13px; color: var(--text-muted); text-align: center; }
.auth-switch a,
.auth-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 600;
  font-size: 12px;
}
.auth-switch a:hover,
.auth-switch-link:hover {
  color: #fff;
  background: #2557e6;
}
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-label-row label { margin-bottom: 0; }
.auth-forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.auth-tab {
  border: 0;
  background: transparent;
  height: 36px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.auth-code-inputs {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.auth-social-btn.wechat {
  color: #07c160;
  border-color: rgba(7, 193, 96, 0.35);
}
.auth-social-btn.google:hover,
.auth-social-btn.wechat:hover {
  border-color: var(--primary-light);
}
.auth-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.auth-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: none;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}
.auth-step .auth-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(15, 27, 51, 0.08);
  font-size: 11px;
  font-weight: 700;
}
.auth-step .auth-step-label {
  letter-spacing: 0.02em;
}
.auth-step.active {
  color: var(--primary);
  background: rgba(47, 107, 255, 0.1);
}
.auth-step.active .auth-step-num {
  background: var(--primary);
  color: #fff;
}
.auth-step.done {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}
.auth-step.done .auth-step-num {
  background: #059669;
  color: #fff;
}
.auth-step:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}
.auth-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-type-btn {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
}
.auth-type-btn strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.auth-type-btn small {
  color: var(--text-muted);
  font-size: 12px;
}
.auth-type-btn.active {
  border-color: var(--primary);
  background: rgba(47, 107, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}
.auth-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.auth-modal[hidden] { display: none !important; }
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.auth-modal-dialog {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 12px;
  text-align: center;
}
.auth-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
.auth-modal-tip {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.auth-qr {
  margin: 4px auto 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
  background: #fff;
}
body.auth-modal-open { overflow: hidden; }
.hall-card.is-highlight {
  outline: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.15);
}
.hall-card.is-user-post .hall-urgent {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

@media (max-width: 640px) {
  .auth-form-wide {
    grid-template-columns: 1fr;
  }
  .auth-form-wide [data-type-panel]:not([hidden]) {
    grid-template-columns: 1fr;
  }
  .auth-type-toggle {
    grid-template-columns: 1fr;
  }
}

.content-block { max-width: 960px; }
.content-block--legal { max-width: 1100px; }

/* ===== Legal agreements (tabbed) ===== */
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: calc(var(--header-h, 72px) + 16px);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.legal-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.legal-tab:hover {
  background: var(--primary-softer);
  color: var(--primary);
}

.legal-tab.active {
  background: var(--primary);
  color: #fff;
}

.legal-panels {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px 32px;
  box-shadow: var(--shadow-card);
}

.legal-panel h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.legal-updated {
  margin: 0 0 20px !important;
  font-size: 13px;
  color: var(--text-muted) !important;
}

.legal-lead {
  font-size: 15px;
  color: var(--text) !important;
  line-height: 1.75;
  margin-bottom: 18px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-panel h3 {
  margin: 22px 0 10px;
  font-size: 16px;
  color: var(--text);
}

.legal-panel p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal-tabs {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .legal-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    width: auto;
  }

  .legal-panels {
    padding: 22px 18px 24px;
  }
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 24px;
}
.detail-desc { color: var(--text-secondary); line-height: 1.8; margin: 12px 0 18px; }
.detail-list { margin: 12px 0; }
.detail-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.page-hero--article {
  padding: 48px 0 36px;
}

.page-hero--article h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.35;
  margin-bottom: 16px;
  max-width: none;
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-type {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.article-cat {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--primary-softer);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.article-hero-meta time,
.article-views {
  color: var(--text-muted);
}

.article-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(47, 107, 255, 0.28);
  box-shadow: 0 1px 2px rgba(47, 107, 255, 0.06);
}

.article-body h3 { margin: 22px 0 10px; font-size: 18px; }
.article-body p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }

.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.article-nav-link {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-width: 0;
}
.article-nav-link:hover:not(.is-disabled) {
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-nav-cover.insight-cover,
.article-nav-cover {
  display: block;
  width: 88px !important;
  height: 66px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  flex-shrink: 0;
  min-height: 0;
  overflow: hidden;
}
.article-nav-cover .insight-cover-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}
.article-nav-cover--empty {
  background: linear-gradient(135deg, #e8eefc, #f3f6fc);
  border: 1px dashed var(--border);
}
.article-nav-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.article-nav-link .nav-label {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.article-nav-link strong {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-nav-link.next {
  grid-template-columns: minmax(0, 1fr) 88px;
  text-align: right;
}
.article-nav-link.next .article-nav-cover {
  order: 2;
}
.article-nav-link.next .article-nav-body {
  order: 1;
  align-items: flex-end;
}
.article-nav-link.is-disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.article-related {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.article-disclaimer {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}
.article-disclaimer h3 {
  font-size: 14px;
  margin: 0 0 10px;
  color: var(--text);
}
.article-disclaimer ol {
  margin: 0;
  padding-left: 18px;
}
.article-disclaimer li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
  list-style: decimal;
}
.article-disclaimer li:last-child {
  margin-bottom: 0;
}
.article-related-head {
  margin-bottom: 16px;
}
.article-related-head h2 {
  font-size: 18px;
  margin: 0;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.article-related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.article-related-card:hover {
  border-color: rgba(47, 107, 255, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-related-cover.insight-cover,
.article-related-cover {
  display: block;
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  min-height: 0;
}
.article-related-cover .insight-cover-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
}
.article-related-card h3 {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 720px) {
  .article-pager {
    grid-template-columns: 1fr;
  }
  .article-nav-link,
  .article-nav-link.next {
    grid-template-columns: 72px minmax(0, 1fr);
    text-align: left;
  }
  .article-nav-link.next .article-nav-cover {
    order: 0;
  }
  .article-nav-link.next .article-nav-body {
    order: 0;
    align-items: flex-start;
  }
  .article-nav-cover.insight-cover,
  .article-nav-cover {
    width: 72px !important;
    height: 54px;
  }
  .article-related-grid {
    grid-template-columns: 1fr;
  }
  .article-related-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .article-related-cover.insight-cover,
  .article-related-cover {
    width: 96px !important;
    flex: 0 0 96px;
    aspect-ratio: 4 / 3;
  }
}

.user-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.user-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h, 64px) + 16px);
}
.user-nav a {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}
.user-nav a::after,
.user-nav a::before,
.user-nav a.active::after,
.user-nav a.active::before {
  content: none !important;
  display: none !important;
}
.user-nav a.active,
.user-nav a:hover {
  background: var(--primary-softer);
  color: var(--primary);
}
.user-nav-logout {
  margin-top: 8px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #be123c;
  cursor: pointer;
}
.user-nav-logout:hover {
  background: #fff1f2;
}
.user-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 320px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.uc-profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.uc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-softer);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}
.uc-profile-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.uc-profile-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.uc-company-top {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 4px !important;
}
.uc-profile-main {
  min-width: 0;
  flex: 1;
}
.uc-company-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.uc-verify-wrap {
  display: inline-flex;
  align-items: center;
}
.uc-verify-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}
.uc-verify-badge.is-pending {
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  cursor: pointer;
}
.uc-verify-badge.is-pending:hover {
  background: #ffedd5;
}
.uc-verify-badge.is-verified {
  color: #0f7b6c;
  background: #e6f7f3;
  border: 1px solid #99e6d4;
}
.uc-verify-tip {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.6;
}
.uc-verify-section {
  grid-column: 1 / -1;
  margin: 8px 0 4px;
  padding: 16px 16px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.uc-verify-section .uc-form-title {
  margin-bottom: 6px;
}
.uc-verify-section-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.uc-verify-uploads {
  display: grid;
  gap: 2px;
}
.uc-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.uc-form-title {
  font-size: 16px;
  margin: 0 0 16px;
}
.uc-verify-success {
  padding: 28px 20px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: 12px;
}
.uc-verify-success strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: #0f7b6c;
}
.uc-verify-success p {
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.uc-profile-card .btn {
  margin-left: auto;
}
.uc-form-title {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 15px;
}
.uc-bind-block {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.uc-bind-list {
  display: grid;
  gap: 12px;
}
.uc-bind-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}
.uc-bind-item.is-bound {
  background: #fff;
  border-color: rgba(47, 107, 255, 0.28);
}
.uc-bind-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.uc-bind-icon.wechat {
  color: #07c160;
}
.uc-bind-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.uc-bind-info strong {
  font-size: 14px;
}
.uc-bind-status {
  font-size: 12px;
  color: var(--text-muted);
}
.uc-bind-item.is-bound .uc-bind-status {
  color: #059669;
  font-weight: 600;
}
.uc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.uc-stats article {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.uc-stats strong {
  display: block;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 4px;
}
.uc-stats span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.uc-block {
  margin-bottom: 22px;
}
.uc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.uc-block-head h3 {
  margin: 0;
  font-size: 16px;
}
.uc-block-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.uc-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.uc-shortcuts a {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.uc-shortcuts a:hover {
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: var(--shadow-card);
}
.uc-shortcuts span {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.uc-shortcuts small {
  color: var(--text-muted);
  font-size: 12px;
}
.uc-activity {
  list-style: none;
  margin: 0;
  padding: 0;
}
.uc-activity li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.uc-activity time {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.uc-list-head {
  display: grid;
  gap: 10px;
  padding: 0 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  align-items: end;
}
.uc-list {
  display: flex;
  flex-direction: column;
}
.uc-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.uc-cols-quotes {
  grid-template-columns: minmax(180px, 1.6fr) 0.9fr 0.7fr 0.8fr 0.75fr 0.7fr 88px;
}
.uc-cols-orders {
  grid-template-columns: minmax(180px, 1.5fr) 0.75fr 0.85fr 0.75fr 0.9fr 0.7fr 88px;
}
.uc-cols-favorites {
  grid-template-columns: minmax(200px, 1.8fr) 0.7fr 0.8fr 0.75fr 140px;
}
.uc-cols-demands {
  grid-template-columns: minmax(180px, 1.6fr) 0.7fr 0.75fr 0.7fr 0.55fr 0.7fr 88px;
}
.uc-cols-supplies {
  grid-template-columns: minmax(180px, 1.5fr) 0.7fr 0.75fr 0.9fr 0.75fr 0.65fr 88px;
}
.uc-row.uc-msg {
  grid-template-columns: 1fr;
}
.uc-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}
.uc-row p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.uc-row small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.uc-price {
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.uc-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--primary-softer);
  color: var(--primary);
}
.uc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.btn-ghost {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  height: 32px;
  padding: 0 8px;
  box-shadow: none;
}
.btn-ghost:hover {
  color: #be123c;
  background: #fff1f2;
  transform: none;
}
.uc-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff7ed;
  color: #b45309;
}
.uc-tag.ok {
  background: #e6f7f3;
  color: #0f7b6c;
}
.uc-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
}
.uc-form {
  box-shadow: none;
  border: 0;
  padding: 0;
  max-width: 640px;
}

.user-menu {
  position: relative;
}
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.user-menu-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 8px;
  z-index: 80;
}
.user-menu-panel a,
.user-logout-btn,
.user-menu-disabled {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 0;
  background: transparent;
  cursor: pointer;
}
.user-menu-panel a:hover,
.user-logout-btn:hover {
  background: var(--primary-softer);
  color: var(--primary);
}
.user-menu-disabled {
  color: #9ca3af;
  cursor: not-allowed;
}
.user-menu-disabled:hover {
  background: #f3f4f6;
  color: #9ca3af;
}
.user-logout-btn {
  color: #be123c;
}
.user-logout-btn:hover {
  background: #fff1f2;
  color: #be123c;
}

@media (max-width: 900px) {
  .user-layout { grid-template-columns: 1fr; }
  .user-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .uc-stats { grid-template-columns: repeat(2, 1fr); }
  .uc-shortcuts { grid-template-columns: 1fr 1fr; }
  .uc-list-head { display: none; }
  .uc-row,
  .uc-cols-quotes,
  .uc-cols-orders,
  .uc-cols-favorites,
  .uc-cols-demands,
  .uc-cols-supplies {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .uc-actions {
    justify-content: flex-start;
  }
}
.table-list { display: flex; flex-direction: column; gap: 10px; }
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}
.table-row a { color: var(--primary); font-size: 13px; word-break: break-all; }
.sitemap-group { margin-bottom: 32px; }
.sitemap-group h2 { font-size: 18px; margin-bottom: 12px; }
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-size: 72px; color: var(--primary); line-height: 1; }

@media (max-width: 900px) {
  .detail-layout,
  .user-layout { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .table-row { grid-template-columns: 1fr; }
}

/* ===== Product / Demand detail ===== */
.product-crumb {
  padding: 10px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.product-crumb .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.product-crumb a { color: var(--text-secondary); }
.product-crumb a:hover { color: var(--primary); }
.product-crumb .current { color: var(--text); font-weight: 600; }

.product-section {
  padding: 16px 0 48px;
  background: var(--bg-soft);
}

.product-top {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  align-items: start;
}
.product-gallery,
.product-buy {
  min-width: 0;
}

.product-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  padding: 0;
}
.product-thumb.active,
.product-thumb:hover {
  border-color: var(--primary);
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.product-cat {
  font-size: 12px;
  color: var(--text-muted);
}
.product-buy h1 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.product-price-box {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--primary-softer);
  border-radius: 10px;
  margin-bottom: 14px;
}
.product-price-box .label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.product-price-box .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.product-price-box .unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.product-sold {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.product-price-box.demand {
  background: #FFF7ED;
}
.product-price-box.demand .price { color: #B45309; }

.product-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.product-attrs > div {
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.product-attrs dt {
  color: var(--text-muted);
  min-width: 48px;
}
.product-attrs dd { color: var(--text); font-weight: 600; }

.product-sku { margin-bottom: 14px; }
.sku-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.sku-label {
  width: 72px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 8px;
}
.sku-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sku-opt {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.sku-opt.active,
.sku-opt:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-softer);
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-secondary);
}
.qty-box input {
  width: 48px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 10px;
}
.product-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.product-actions .btn-ghost {
  flex: 0 0 auto;
  min-width: 88px;
}
.product-tip {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.product-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.product-panel h2 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.product-rich p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.product-rich h3 {
  font-size: 14px;
  margin: 14px 0 8px;
}
.product-rich ul {
  padding-left: 18px;
  margin-bottom: 8px;
}
.product-rich li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  list-style: disc;
}

.spec-table { display: flex; flex-direction: column; }
.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.spec-row span { color: var(--text-muted); }
.spec-row strong { color: var(--text); font-weight: 600; }

.product-disclaimer ol {
  padding-left: 18px;
  margin: 0;
}
.product-disclaimer li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
  list-style: decimal;
}

.product-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.product-related-head h2 { font-size: 18px; }
.product-related-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.product-related-cover {
  height: 120px;
  border-radius: 10px;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
}

.product-cover--pay,
.product-cover--comp,
.product-cover--data,
.product-cover--wh,
.product-cover--ops,
.product-cover--ads,
.product-cover--kpi {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.product-cover--pay { background-image: url("/assets/images/covers/zh/pay.svg?v=20260802cover7"); }
.product-cover--comp { background-image: url("/assets/images/covers/zh/comp.svg?v=20260802cover7"); }
.product-cover--data { background-image: url("/assets/images/covers/zh/data.svg?v=20260802cover7"); }
.product-cover--wh { background-image: url("/assets/images/covers/zh/wh.svg?v=20260802cover7"); }
.product-cover--ops { background-image: url("/assets/images/covers/zh/ops.svg?v=20260802cover7"); }
.product-cover--ads { background-image: url("/assets/images/covers/zh/ads.svg?v=20260802cover7"); }
.product-cover--kpi { background-image: url("/assets/images/covers/zh/kpi.svg?v=20260802cover7"); }
html[data-lang="en"] .product-cover--pay { background-image: url("/assets/images/covers/en/pay.svg?v=20260802cover7"); }
html[data-lang="en"] .product-cover--comp { background-image: url("/assets/images/covers/en/comp.svg?v=20260802cover7"); }
html[data-lang="en"] .product-cover--data { background-image: url("/assets/images/covers/en/data.svg?v=20260802cover7"); }
html[data-lang="en"] .product-cover--wh { background-image: url("/assets/images/covers/en/wh.svg?v=20260802cover7"); }
html[data-lang="en"] .product-cover--ops { background-image: url("/assets/images/covers/en/ops.svg?v=20260802cover7"); }
html[data-lang="en"] .product-cover--ads { background-image: url("/assets/images/covers/en/ads.svg?v=20260802cover7"); }
html[data-lang="en"] .product-cover--kpi { background-image: url("/assets/images/covers/en/kpi.svg?v=20260802cover7"); }

@media (max-width: 900px) {
  .product-top { grid-template-columns: 1fr; }
  .product-main-img { max-width: 420px; margin: 0 auto; }
  .product-attrs { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .sku-row { flex-direction: column; gap: 6px; }
  .sku-label { padding-top: 0; }
  .product-actions .btn {
    flex: 1 1 calc(50% - 10px);
  }
  .product-actions .btn-primary {
    flex: 1 1 100%;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .product-top {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 18px;
  }
  .product-actions .btn {
    padding: 0 16px;
    font-size: 14px;
  }
}

/* ===== Deal detail (供需对接，BD沃克式) ===== */
.deal-section {
  padding: 24px 0 56px;
  background: var(--bg-soft);
}
.deal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.deal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}
.deal-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.deal-title-row h1 {
  flex: 1 1 100%;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  color: #c62828;
  font-weight: 800;
  margin: 6px 0 0;
}
body[data-deal="supply"] .deal-title-row h1 {
  color: var(--text);
}
.deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.deal-meta-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.deal-warn {
  font-size: 13px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.deal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  font-size: 13px;
}
.deal-table th,
.deal-table td {
  border: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
.deal-table th {
  width: 96px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.deal-em {
  color: #c62828;
  font-weight: 800;
}
.deal-contact {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 22px;
  background: #fafbff;
}
.deal-contact-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.deal-contact-head h2 {
  font-size: 15px;
  margin: 0;
}
.deal-free {
  font-size: 11px;
  font-weight: 700;
  color: #0f7b6c;
  background: #e6f7f3;
  padding: 2px 8px;
  border-radius: 999px;
}
.deal-contact-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  min-height: 0;
  position: relative;
}
.deal-contact-blur,
.deal-contact-real {
  flex: 1 1 auto;
  min-width: 0;
}
.deal-contact-blur .blur {
  filter: blur(5px);
  user-select: none;
}
.deal-contact-blur p,
.deal-contact-real p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 2;
  margin: 0;
}
.deal-reveal {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  flex: 0 0 auto;
  align-self: center;
  min-width: 200px;
  margin: 0;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.25);
}

@media (max-width: 720px) {
  .deal-contact-body {
    flex-direction: column;
    align-items: stretch;
  }
  .deal-reveal {
    width: 100%;
    min-width: 0;
  }
}
.deal-desc h2 {
  font-size: 16px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.deal-desc p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 14px;
}
.deal-desc ul {
  padding-left: 18px;
  margin: 0 0 16px;
}
.deal-desc li {
  list-style: disc;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 4px;
}
.deal-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.deal-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h, 64px) + 16px);
}
.deal-side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.deal-side-card h3 {
  font-size: 15px;
  margin: 0 0 14px;
}
.deal-party-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.deal-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff7ed;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.deal-avatar.supply {
  background: var(--primary-softer);
  color: var(--primary);
}
.deal-party-top h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.deal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.deal-badges span {
  font-size: 10px;
  font-weight: 700;
  color: #0f7b6c;
  background: #e6f7f3;
  padding: 2px 6px;
  border-radius: 4px;
}
.deal-party-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  text-align: center;
}
.deal-party-stats strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}
.deal-party-stats span {
  font-size: 11px;
  color: var(--text-muted);
}
.deal-party-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.deal-recommend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.deal-recommend a {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 600;
}
.deal-recommend a:hover { color: var(--primary); }
.deal-side-cta p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 14px;
}
@media (max-width: 960px) {
  .deal-layout { grid-template-columns: 1fr; }
  .deal-side { position: static; }
  .deal-table th { width: 80px; }
}
@media (max-width: 560px) {
  .deal-table,
  .deal-table tbody,
  .deal-table tr,
  .deal-table th,
  .deal-table td {
    display: block;
    width: 100%;
  }
  .deal-table tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
  }
  .deal-table th,
  .deal-table td {
    border: 0;
    border-bottom: 1px solid var(--border);
  }
  .deal-table td:last-child { border-bottom: 0; }
}

/* ===== Deal reviews ===== */
.deal-reviews {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.deal-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 16px;
}
.deal-reviews-head h2 {
  font-size: 16px;
  margin: 0;
  margin-right: auto;
}
.deal-reviews-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rev-filter {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.rev-filter.active,
.rev-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-softer);
}
.rev-sort {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: #fff;
}
.deal-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.deal-review-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px 140px;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.rev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-softer);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.rev-avatar.dim {
  background: #f1f5f9;
  color: #94a3b8;
}
.rev-user {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 4px;
}
.rev-user strong { color: var(--text); }
.rev-user span { color: var(--text-muted); font-size: 12px; }
.rev-verified {
  color: #0f7b6c !important;
  background: #e6f7f3;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px !important;
}
.rev-company {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.rev-text {
  display: inline-block;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.rev-text.good,
.rev-text.bad {
  background: var(--bg-soft);
  padding: 4px 8px;
  border-radius: 6px;
}
.rev-text.bad {
  background: #fff1f2;
  color: #be123c;
}
.rev-score {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding-top: 8px;
}
.rev-score.up { color: #0f7b6c; }
.rev-score.down { color: #be123c; }
.deal-review-item time {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  padding-top: 8px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .deal-review-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .rev-score,
  .deal-review-item time {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }
  /* 中屏仍保持两列链接，不再压成单列占高 */
  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 很窄屏：链接两列更易点，联系与二维码并排压缩高度 */
@media (max-width: 400px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ===== Provider Console (独立服务商后台) ===== */
.pc-nav .pc-nav-brand {
  padding: 8px 12px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.pc-nav .pc-nav-brand strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
}
.pc-nav .pc-nav-brand small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.pc-nav-switch {
  margin-top: 10px;
  border: 1px dashed rgba(47, 107, 255, 0.35);
  color: var(--primary) !important;
}
.pc-nav-switch:hover {
  background: var(--primary-softer);
}
.pc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.pc-stat-grid article {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.pc-stat-grid strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.pc-stat-grid span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.pc-finance-stats {
  grid-template-columns: repeat(3, 1fr);
}
.pc-provider-gate {
  margin-bottom: 8px;
}
.pc-gate-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.pc-gate-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}
.pc-gate-card > p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.pc-gate-steps {
  margin: 0 0 20px;
  padding: 14px 16px 14px 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.pc-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pc-form-tip {
  grid-column: 1 / -1;
  margin: -4px 0 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.pc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pc-tab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.pc-tab.active,
.pc-tab:hover {
  border-color: rgba(47, 107, 255, 0.4);
  color: var(--primary);
  background: var(--primary-softer);
}
.pc-cols-listing,
.pc-cols-demand,
.pc-cols-resource,
.pc-cols-factory {
  grid-template-columns: minmax(160px, 1.6fr) 0.85fr 0.85fr 0.85fr 0.8fr 0.7fr 88px;
}
.pc-cols-income {
  grid-template-columns: minmax(200px, 2fr) 1fr 0.9fr 0.8fr;
}
.pc-cols-withdraw {
  grid-template-columns: 1fr 0.9fr minmax(140px, 1.4fr) 0.9fr 0.8fr;
}
.pc-money-plus {
  color: #059669;
  font-weight: 700;
}
.user-panel .provider-form.uc-form {
  max-width: none;
  margin: 0;
  border: 0;
  box-shadow: none;
  padding: 8px 0 0;
  background: transparent;
}
@media (max-width: 900px) {
  .pc-stat-grid,
  .pc-finance-stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .pc-stat-grid,
  .pc-finance-stats {
    grid-template-columns: 1fr;
  }
}


/* ===== Factory hub (资源中心 · 工厂收录) ===== */
.factory-hub {
  margin-top: 4px;
}
.factory-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.factory-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.factory-chip-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}
.factory-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.3;
}
.factory-chip-row[data-factory-filters="region"],
.factory-chip-row[data-factory-filters="industry"] {
  max-height: none;
}
.factory-chip.active,
.factory-chip:hover {
  border-color: rgba(47, 107, 255, 0.4);
  color: var(--primary);
  background: var(--primary-softer);
}
.factory-view-toggle {
  display: inline-flex;
  align-self: flex-end;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.factory-view-btn {
  border: 0;
  background: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}
.factory-view-btn + .factory-view-btn {
  border-left: 1px solid var(--border);
}
.factory-view-btn.active {
  background: var(--primary);
  color: #fff;
}
.factory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
.factory-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.factory-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.factory-card-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 168px;
  gap: 14px;
  padding: 16px;
  align-items: center;
}
.factory-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--primary-softer);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}
.factory-info h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.factory-info h3 a {
  color: inherit;
}
.factory-info h3 a:hover {
  color: var(--primary);
}
.factory-biz,
.factory-stats,
.factory-contact {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.factory-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--primary);
  font-weight: 600;
}
.factory-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 168px;
  max-width: 100%;
}
.factory-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 80px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--c, #2f6bff), #0b1220);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
}
.factory-thumb .factory-cover-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.factory-thumb span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 18px 10px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}
.factory-cover {
  position: relative;
  display: none;
  min-height: 0;
  aspect-ratio: 16 / 10;
  padding: 20px;
  background: linear-gradient(160deg, var(--c, #2f6bff), #111827);
  color: #fff;
  text-decoration: none;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
}
.factory-hub.is-list .factory-cover {
  display: none !important;
}
.factory-cover .factory-cover-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.factory-cover strong,
.factory-cover > span {
  position: relative;
  z-index: 1;
}
.factory-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.72));
  z-index: 0;
}
.factory-cover strong {
  font-size: 18px;
}
.factory-cover > span {
  font-size: 13px;
  opacity: 0.95;
}
.factory-hub.is-gallery .factory-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.factory-hub.is-gallery .factory-card-body {
  display: none;
}
.factory-hub.is-gallery .factory-cover {
  display: flex;
}
.factory-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h, 64px) + 16px);
}
.factory-side-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.factory-side-block h4 {
  margin: 0 0 12px;
  font-size: 15px;
}
.factory-side-list,
.factory-side-supply {
  list-style: none;
  margin: 0;
  padding: 0;
}
.factory-side-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.factory-side-list li:last-child {
  border-bottom: 0;
}
.factory-side-list a {
  color: var(--text);
  font-weight: 600;
}
.factory-side-list span {
  color: var(--text-muted);
  white-space: nowrap;
}
.factory-side-supply li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.factory-side-supply li:last-child {
  border-bottom: 0;
}
.factory-side-thumb {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--c, #2f6bff), #111827);
  overflow: hidden;
  flex-shrink: 0;
}
.factory-side-thumb .factory-cover-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.factory-side-supply a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.factory-side-supply strong {
  color: #be123c;
  font-size: 14px;
}
@media (max-width: 960px) {
  .factory-layout {
    grid-template-columns: 1fr;
  }
  .factory-side {
    position: static;
  }
  .factory-card-body {
    grid-template-columns: 56px 1fr;
  }
  .factory-products {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .factory-hub.is-gallery .factory-main {
    grid-template-columns: 1fr;
  }
}

/* ===== Agency directory (资源名录) ===== */
.agency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.agency-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.agency-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2f6bff, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}
.agency-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.agency-card-top h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}
.agency-card-top h3 a {
  color: inherit;
}
.agency-card-top h3 a:hover {
  color: var(--primary);
}
.agency-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(47, 107, 255, 0.1);
  border-radius: 999px;
  padding: 3px 8px;
}
.agency-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.agency-intro {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.agency-tags span {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.agency-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.agency-foot .btn {
  margin-left: auto;
}
@media (max-width: 900px) {
  .agency-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Provider home (服务商主页) ===== */
.provider-home-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}
.provider-home-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}
.provider-home-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--primary-softer);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}
.provider-home-name {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.3;
  word-break: break-word;
}
.provider-home-region {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.provider-home-desc {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.provider-home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.provider-home-tags span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.provider-home-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}
.provider-home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.provider-home-stats article {
  text-align: center;
  padding: 14px 10px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.provider-home-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.provider-home-stats span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.provider-home-section-head {
  margin-bottom: 14px;
}
.provider-home-section-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.provider-home-section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.provider-listing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.provider-listing-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.provider-listing-item:hover {
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: var(--shadow-card);
}
.provider-listing-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.provider-listing-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.provider-listing-status {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
}
.provider-listing-status.is-muted {
  color: var(--text-muted);
}
@media (max-width: 800px) {
  .provider-home-top {
    grid-template-columns: 64px 1fr;
  }
  .provider-home-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .provider-home-stats {
    grid-template-columns: 1fr 1fr;
  }
  .provider-listing-item {
    grid-template-columns: auto 1fr;
  }
  .provider-listing-status {
    grid-column: 2;
  }
}

/* ===== Contact / CS page ===== */
.page-hero-desc {
  margin: 10px 0 0;
  max-width: 640px;
  color: var(--text-secondary, #5b6472);
  font-size: 15px;
  line-height: 1.6;
}
.contact-cs {
  max-width: 920px;
}
.contact-cs-lead {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.06);
  border: 1px solid rgba(47, 107, 255, 0.12);
  color: var(--text-secondary, #5b6472);
  font-size: 14px;
  line-height: 1.65;
}
.contact-cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.contact-cs-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.contact-cs-card:hover {
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.contact-cs-card.is-static {
  cursor: default;
}
.contact-cs-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted, #8b93a1);
}
.contact-cs-card strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #111827);
  word-break: break-all;
}
.contact-cs-card em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted, #8b93a1);
}
.contact-cs-wechat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 20px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
  margin-bottom: 24px;
}
.contact-cs-wechat-copy {
  flex: 1;
  min-width: 0;
}
.contact-cs-wechat-copy h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.contact-cs-wechat-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary, #5b6472);
}
.contact-cs-qr-row {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.contact-cs-qr {
  margin: 0;
  text-align: center;
}
.contact-cs-qr img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
}
.contact-cs-qr figcaption {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #5b6472);
}
.contact-cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 800px) {
  .contact-cs-grid {
    grid-template-columns: 1fr;
  }
  .contact-cs-wechat {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* 需求商机：对齐政策解读列表布局 */
body[data-page="opportunities"] .hall-bar-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body[data-page="opportunities"] .hall-bar-top {
  justify-content: stretch;
  align-items: stretch;
}
body[data-page="opportunities"] .insight-search {
  width: 100%;
  max-width: none;
  min-width: 0;
}
body[data-page="opportunities"] .opp-intro {
  margin: 0 0 14px;
  color: var(--text-secondary, #5b6472);
  font-size: 14px;
  line-height: 1.65;
}
body[data-page="opportunities"] .opp-card {
  /* 继承 .insight-card 双列封面布局 */
  align-items: start;
}
body[data-page="opportunities"] .opp-card .insight-body {
  min-width: 0;
  padding: 2px 2px 0 0;
}
body[data-page="opportunities"] .opp-card .insight-meta {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
body[data-page="opportunities"] .opp-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.45;
  font-weight: 700;
}
body[data-page="opportunities"] .opp-card h3 a {
  color: var(--text, #1f2937);
  text-decoration: none;
}
body[data-page="opportunities"] .opp-card h3 a:hover {
  color: var(--primary, #2f6bff);
}
body[data-page="opportunities"] .opp-card .insight-body > p {
  margin-bottom: 10px;
  -webkit-line-clamp: 3;
}
body[data-page="opportunities"] .opp-source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  min-width: 0;
}
body[data-page="opportunities"] .opp-source-row .insight-cat {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary, #2f6bff);
  background: var(--primary-softer, #eef4ff);
  padding: 2px 8px;
  border-radius: 999px;
}
body[data-page="opportunities"] .opp-source {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-page="opportunities"] .opp-source:hover {
  text-decoration: underline;
}
.opp-potential {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.opp-potential--high { color: #b45309; background: #fff7ed; }
.opp-potential--medium { color: #1d4ed8; background: #eff6ff; }
.opp-potential--low { color: #64748b; background: #f1f5f9; }

body[data-page="opportunities"] .insight-recommend li a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}
body[data-page="opportunities"] .insight-side-card h3 {
  margin-bottom: 12px;
}
body[data-page="opportunities"] .insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opp-detail-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 12px);
  padding: 24px 28px;
  box-shadow: var(--shadow-card, none);
}
.opp-detail-card h1 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 8px 0 12px;
  line-height: 1.35;
}
.opp-summary {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary, #5b6472);
}
.opp-source-line {
  margin: 12px 0 20px;
  font-size: 14px;
}
.opp-detail-card .insight-meta {
  margin-bottom: 10px;
}
.opp-content {
  word-break: break-word;
  font-family: inherit;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  line-height: 1.8;
  font-size: 15px;
  color: #334155;
  margin: 0 0 8px;
  min-height: 80px;
}
.opp-content--original {
  background: #fff;
  border-color: #cbd5e1;
  min-height: 120px;
}
.opp-content--original p {
  margin: 0;
  white-space: normal;
}
.opp-content--analysis {
  background: #f8fafc;
}
.opp-lead-block + .opp-lead-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}
.opp-lead-block h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
.opp-lead-block p {
  margin: 0;
  color: #334155;
}
.opp-detail-card h2 {
  margin: 24px 0 10px;
  font-size: 18px;
}
.opp-disclaimer {
  margin: 20px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}
.opp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.opp-login-gate {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.opp-login-gate p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #334155;
}

@media (max-width: 800px) {
  body[data-page="opportunities"] .insight-card.opp-card {
    grid-template-columns: 1fr;
  }
  body[data-page="opportunities"] .opp-card > .insight-cover-link .insight-cover {
    width: 100%;
    max-height: 160px;
  }
  .opp-detail-card {
    padding: 18px 16px;
  }
}
