/* Platform domain aggregation portal — 19lou-style */
:root {
  --bg: #f5f5f5;
  --paper: #fff;
  --ink: #222;
  --muted: #888;
  --brand: #8cb339;
  --brand-deep: #7a9e2f;
  --accent: #ff6600;
  --accent-deep: #e55c00;
  --line: #e5e5e5;
  --nav: #8cb339;
  --topbar: #f7f7f7;
  --link: #1a5fb4;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--brand-deep); }
.wrap { width: 1200px; max-width: calc(100% - 24px); margin: 0 auto; }
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* —— chrome —— */
.topbar {
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  gap: 12px;
}
.topbar-links { display: flex; flex-wrap: wrap; gap: 14px; }
.topbar-links a { color: var(--muted); }
.topbar-links a:hover { color: var(--brand); }
.masthead { background: var(--paper); padding: 20px 0 18px; }
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 52px;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 42%;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 780;
  flex-shrink: 0;
}
.brand-block a {
  color: var(--brand);
  font-size: 26px;
  font-weight: 780;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-block a:hover { color: var(--brand-deep); }
.search-box {
  display: flex;
  flex-direction: column;
  flex: 0 0 540px;
  width: 540px;
  max-width: 540px;
  margin-left: auto;
}
.search-form {
  display: flex;
  border: 2px solid var(--brand);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  width: 100%;
}
.search-form input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  min-height: 42px;
  font-size: 14px;
}
.search-form button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  flex-shrink: 0;
}
.search-form button:hover { background: var(--brand-deep); }
.channel-nav { background: var(--nav); }
.channel-nav-inner {
  display: flex;
  align-items: stretch;
  min-height: 42px;
  overflow: auto;
}
.channel-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  color: rgba(255, 255, 255, .95);
  font-size: 15px;
  white-space: nowrap;
}
.channel-nav a:hover,
.channel-nav a.is-active {
  background: rgba(0, 0, 0, .12);
  color: #fff;
}
.main { padding: 18px 0 48px; }

/* —— layout（参考站：主栏宽、侧栏约 300、间距更疏） —— */
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.portal-section,
.portal-article,
.portal-side-block {
  background: var(--paper);
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.portal-section-head {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.portal-section-head h1,
.portal-section-head h2 { margin: 0; font-size: 18px; color: var(--ink); }
.portal-section-head h1 { font-size: 20px; }
.portal-section-head p,
.portal-section-head span,
.portal-section-head .portal-section-more { margin: 0; color: var(--muted); font-size: 13px; }
.portal-section-head .portal-section-more:hover { color: var(--brand); }
.portal-side-block {
  padding: 0 0 10px;
  overflow: hidden;
}
.portal-side-block h2 {
  margin: 0 0 4px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  border-left: 3px solid var(--accent);
  font-size: 15px;
  font-weight: 700;
  color: #333;
  background: #f7f7f7;
}
.portal-side-block .portal-side-list,
.portal-side-block .portal-empty {
  margin: 0;
  padding: 6px 16px 10px;
}
.portal-breadcrumb {
  margin: 0 0 16px;
  color: #999;
  font-size: 13px;
  line-height: 1.6;
}
.portal-breadcrumb a { color: #666; }
.portal-breadcrumb a:hover { color: var(--brand); }
.portal-empty { color: var(--muted); margin: 0; }

/* —— news list (19lou dense) —— */
.portal-news-feed { list-style: none; margin: 0; padding: 0; }
.portal-news-feed > li {
  padding: 18px 0 16px;
  border-bottom: 1px dotted #cfcfcf;
}
.portal-news-feed > li:first-child { padding-top: 8px; }
.portal-news-feed > li:last-child { border-bottom: 0; }
.portal-news-feed .feed-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #2b5a8c;
  line-height: 1.45;
  margin: 0 0 10px;
}
.portal-news-feed .feed-title:hover { color: var(--brand-deep); }
.portal-news-feed .feed-summary {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portal-news-feed .feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: #999;
  font-size: 13px;
}
.portal-news-feed .feed-source em,
.portal-news-feed .feed-source a {
  font-style: normal;
  color: #8a9144;
}
.portal-news-feed .feed-source a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}
.portal-news-feed .feed-topic {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: #eef5d3;
  color: #8a9144;
  font-size: 12px;
  line-height: 1.2;
}
.portal-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--brand);
  border-radius: 2px;
  color: var(--brand);
  font-size: 12px;
  background: #fff;
}
.portal-tag-solid {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.portal-side-list { list-style: none; margin: 0; padding: 0; }
.portal-side-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #ececec;
  font-size: 13px;
  line-height: 1.5;
}
.portal-side-list li:last-child { border-bottom: 0; }
.portal-side-list a {
  color: #333;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-side-list a:hover { color: var(--brand); }

/* —— pager：参考站约 40px 方块、8px 间隔 —— */
.portal-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 4px 0 8px;
}
.portal-pager a,
.portal-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
}
.portal-pager .pager-nav {
  min-width: 92px;
  padding: 0 16px;
}
.portal-pager a:hover { border-color: var(--brand); color: var(--brand); }
.portal-pager .is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  min-width: 40px;
  padding: 0;
}
.portal-pager .is-disabled { color: #ccc; cursor: default; }

/* —— directory hero / filters —— */
.portal-dir-hero {
  background: linear-gradient(180deg, #8cb339 0%, #7aa32e 100%);
  border: 0;
  border-radius: 2px;
  padding: 32px 28px 26px;
  margin-bottom: 18px;
  text-align: center;
}
.portal-dir-hero h1 {
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 750;
  color: #fff;
  letter-spacing: .02em;
}
.portal-dir-search {
  display: flex;
  max-width: 760px;
  margin: 0 auto;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.portal-dir-search input {
  flex: 1;
  border: 0;
  outline: 0;
  min-height: 48px;
  padding: 0 18px;
  font-size: 15px;
}
.portal-dir-search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.portal-dir-search button:hover { background: var(--accent-deep); }
.portal-filters {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 18px 10px;
  margin-bottom: 12px;
}
.portal-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px dashed #e5e5e5;
}
.portal-filter-row:last-child { border-bottom: 0; }
.portal-filter-row .label {
  color: #999;
  flex-shrink: 0;
  min-width: 2.5em;
  font-weight: 600;
}
.portal-filter-row a {
  color: #666;
  padding: 3px 10px;
  border-radius: 3px;
  line-height: 1.4;
}
.portal-filter-row a:hover { color: var(--brand); }
.portal-filter-row a.is-on {
  background: var(--brand);
  color: #fff;
}
.portal-dir-total {
  margin: 0 0 14px;
  font-size: 14px;
  color: #666;
}
.portal-dir-total em {
  font-style: normal;
  font-weight: 700;
  color: #c47a1a;
  padding: 0 2px;
}
.portal-dir-section { margin-bottom: 28px; padding: 20px 22px 22px; }
.portal-dir-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.portal-dir-list-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.portal-dir-list-head h2::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--brand);
  border-radius: 1px;
  flex-shrink: 0;
}
.portal-dir-sort {
  color: #999;
  font-size: 13px;
}
.portal-dir-sort.is-on { color: var(--brand); font-weight: 600; }

/* —— company cards —— */
.portal-company-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.portal-company-card-rich {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px 18px 14px;
  min-height: 200px;
  color: inherit;
}
.portal-company-card-rich:hover { border-color: var(--brand); color: inherit; }
.portal-company-card-rich h3.name {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #2b5a8c;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-company-card-rich .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.portal-company-card-rich .tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-company-card-rich .tag-industry,
.portal-company-card-rich .tag-region {
  background: #f3f7e4;
  color: #6a8a2a;
}
.portal-company-card-rich .tag-status {
  background: #eaf6d8;
  color: #4f7a18;
}
.portal-company-card-rich .desc {
  flex: 1;
  margin: 0 0 14px;
  color: #888;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portal-company-card-rich .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.portal-company-card-rich .stats {
  color: #999;
  font-size: 12px;
  min-width: 0;
  white-space: nowrap;
}
.portal-company-card-rich .enter {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  border-radius: 2px;
}
.portal-company-card-rich:hover .enter { background: var(--brand-deep); color: #fff; }

.portal-company-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.portal-company-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  color: inherit;
  min-width: 0;
}
.portal-company-card:hover { border-color: var(--brand); color: inherit; }
.portal-company-thumb { aspect-ratio: 1; background: #eef2f5; overflow: hidden; }
.portal-company-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portal-company-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 100px;
  color: var(--muted);
  font-size: 12px;
  background: linear-gradient(135deg, #eef2f5, #e2e8f0);
}
.portal-company-card-body { padding: 8px 10px 10px; }
.portal-company-card-body strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-company-card-body span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-news-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.portal-news-columns li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px dotted #ccc;
  font-size: 14px;
}
.portal-news-columns a {
  color: var(--link);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-news-columns a:hover { color: var(--brand); }
.portal-news-columns time {
  color: var(--muted);
  font-size: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.portal-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.portal-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 0 0 10px;
  background: #fff;
  color: inherit;
  min-width: 0;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.portal-product-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  color: inherit;
}
.portal-product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  height: auto;
  margin-bottom: 0;
  background: #eef5d3;
  color: #6f8a2a;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .02em;
  overflow: hidden;
}
.portal-product-thumb .portal-product-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.portal-product-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 12px 4px;
  min-height: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--link);
}
.portal-product-card:hover strong { color: var(--brand-deep); }
.portal-product-price {
  display: block;
  margin: 0 12px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

/* —— shop（对齐 19 楼商铺主页） —— */
.main:has(.portal-shop-chrome) {
  padding-top: 0;
  overflow-x: clip;
}
.portal-shop-chrome {
  margin: 0 0 4px;
}
/* Banner / 商铺导航通铺：从 .wrap 内破出至视口全宽 */
.portal-shop-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}
.portal-shop-banner {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  padding: 48px 0 44px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 70% 40%, rgba(255, 255, 255, .14) 0%, transparent 55%),
    linear-gradient(115deg, #5f861c 0%, #7eab2a 38%, #9fc43f 72%, #b5c95a 100%);
}
/* 居中大字水印：透明叠色 + 轻阴影，避免重模糊留下「色块截取」感 */
.portal-shop-banner::after {
  content: attr(data-mark);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 15vw, 168px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .30);
  text-shadow:
    3px 4px 0 rgba(70, 100, 20, .18),
    0 10px 28px rgba(0, 0, 0, .12);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.portal-shop-banner-inner {
  position: relative;
  z-index: 1;
  width: 1200px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 0 4px;
}
.portal-shop-banner-inner > * { max-width: 640px; }
.portal-shop-banner h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.portal-shop-banner .lead {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, .94);
  line-height: 1.75;
}
.portal-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 102, 0, .28);
}
.portal-cta-phone:hover { background: var(--accent-deep); color: #fff; }
.portal-cta-phone-ico {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}
.portal-cta-phone-ico::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-sizing: border-box;
}
.portal-shop-nav {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}
.portal-shop-nav-inner {
  display: flex;
  flex-wrap: wrap;
  width: 1200px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 0 4px;
}
.portal-shop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  color: #333;
  font-size: 15px;
  border-bottom: 3px solid transparent;
}
.portal-shop-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.portal-shop-nav a:hover { color: var(--accent); }
.portal-shop-chrome .portal-breadcrumb {
  margin: 14px 0 16px;
  padding: 0 2px;
}

.portal-block-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 0 0 12px;
  border-left: 3px solid var(--brand);
}
.portal-block-title h2 { margin: 0; font-size: 18px; font-weight: 700; color: #222; }
.portal-block-title span,
.portal-block-title .portal-section-more {
  color: var(--muted);
  font-size: 13px;
}
.portal-block-title .portal-section-more:hover { color: var(--brand); }

.portal-shop-section {
  padding: 22px 24px 24px;
  margin-bottom: 18px;
}
.portal-shop-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portal-shop-news-list > li {
  padding: 14px 0 12px;
  border-bottom: 1px solid #eee;
}
.portal-shop-news-list > li:first-child { padding-top: 4px; }
.portal-shop-news-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.portal-shop-news-list a {
  display: block;
  color: #222;
  font-size: 15px;
  line-height: 1.55;
}
.portal-shop-news-list a:hover { color: var(--brand-deep); }
.portal-shop-news-time {
  margin: 6px 0 0;
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}

.portal-shop-faq .portal-block-title {
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.portal-faq-list { list-style: none; margin: 0; padding: 0; }
.portal-faq-list li {
  margin: 0;
  padding: 18px 0 16px;
  border-bottom: 1px dotted #d0d0d0;
}
.portal-faq-list li:last-child { border-bottom: 0; padding-bottom: 4px; }
.portal-faq-q,
.portal-faq-a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}
.portal-faq-q { font-weight: 700; margin-bottom: 10px; color: #222; }
.portal-faq-a { color: #555; padding-left: 0; }
.portal-faq-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.portal-faq-mark.q { background: var(--brand); }
.portal-faq-mark.a { background: var(--accent); }

.portal-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.portal-contact-cell {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px;
  text-align: center;
  background: #fafafa;
}
.portal-contact-cell .label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.portal-contact-cell .value { font-size: 16px; font-weight: 650; word-break: break-all; }
.portal-contact-cell .value.phone { color: var(--accent); font-size: 20px; }
.portal-contact-address { margin-top: 16px; color: #666; }

.portal-friend-links { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-friend-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  font-size: 13px;
  color: #334155;
}
.portal-friend-links a:hover { color: var(--brand); }

/* —— article detail（对齐 19 楼：疏朗标题区 + 舒适正文行距） —— */
.portal-article.portal-article-detail {
  padding: 28px 32px 32px;
}
.portal-article-title,
.portal-article h1 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  letter-spacing: .01em;
}
.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  color: #999;
  font-size: 13px;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.portal-meta-source { color: #999; }
.portal-meta .feed-source-link { color: #8a9144; }
.portal-meta .feed-source-link:hover { color: var(--brand-deep); text-decoration: underline; }
.portal-article-topic {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 2px;
  background: #eef5d3;
  color: #8a9144;
  font-size: 12px;
  line-height: 1.2;
}
.portal-body {
  margin-top: 4px;
  word-break: break-word;
  color: #333;
  font-size: 16px;
  line-height: 1.85;
}
.portal-body h2,
.portal-body h3 {
  margin: 1.6em 0 .7em;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #222;
}
.portal-body h3 { font-size: 17px; }
.portal-body p { margin: 0 0 1.15em; }
.portal-body strong { font-weight: 700; color: #222; }
.portal-body ul,
.portal-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.portal-body li {
  margin: 0 0 .45em;
  line-height: 1.8;
}
.portal-body li::marker { color: #aaa; }
.portal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14px;
}
.portal-body th,
.portal-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.portal-body th { background: #f7f7f7; }
.portal-article-footer {
  margin-top: 36px;
  padding-top: 8px;
}
.portal-article-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 20px;
}
.portal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #555;
  font-size: 13px;
  cursor: default;
  font-family: inherit;
}
button.portal-action-btn { cursor: pointer; }
button.portal-action-btn:hover { border-color: var(--brand); color: var(--brand); }
.portal-article-link-block {
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}
.portal-article-link-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.portal-article-self-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--link);
}
.portal-article-publisher { flex-shrink: 0; color: #999; font-size: 13px; }
.portal-article-self-url { margin: 8px 0 0; font-size: 13px; word-break: break-all; color: #666; }
.portal-article-self-url span { color: #999; }
.portal-article-nav {
  padding: 16px 0 8px;
  border-top: 1px solid #f0f0f0;
  display: grid;
  gap: 10px;
}
.portal-article-nav-item { margin: 0; font-size: 14px; color: #888; line-height: 1.6; }
.portal-article-nav-item a { color: var(--link); }
.portal-article-nav-item a:hover { color: var(--brand-deep); }
.portal-article-disclaimer {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #eef2e0;
  border-left: 3px solid var(--brand);
  background: #f9fbf3;
  border-radius: 2px;
}
.portal-article-disclaimer p {
  margin: 0;
  color: #888;
  font-size: 12px;
  line-height: 1.75;
}

.portal-side-contact { padding-bottom: 16px; }
.portal-side-contact .name {
  font-weight: 700;
  margin: 14px 16px 10px;
  font-size: 16px;
  color: #222;
}
.portal-side-contact .row {
  margin: 0 16px 8px;
  font-size: 13px;
  color: #666;
}
.portal-side-contact .phone {
  display: block;
  margin: 10px 16px 14px;
  font-size: 20px;
  font-weight: 750;
  color: var(--accent);
  letter-spacing: .02em;
}
.portal-side-contact .phone:hover { color: var(--accent-deep); }
.portal-side-contact .enter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px;
  min-height: 42px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 650;
  font-size: 15px;
}
.portal-side-contact .enter-btn:hover { background: var(--accent-deep); color: #fff; }

/* —— product detail（文章详情壳 + 19 楼报价盒/规格表） —— */
.portal-product-detail .portal-product-quick {
  border: 1px solid #f0d9b5;
  border-radius: 2px;
  padding: 18px 20px;
  margin: 0 0 22px;
  background: #fff8ef;
}
.portal-product-detail .portal-product-quick dl {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 10px 12px;
  margin: 0 0 16px;
  font-size: 14px;
}
.portal-product-detail .portal-product-quick dt { color: #888; }
.portal-product-detail .portal-product-quick dd { margin: 0; color: #333; word-break: break-word; }
.portal-product-detail .portal-product-quick dd a { color: #2b5a8c; }
.portal-product-detail .portal-product-quick dd a:hover { text-decoration: underline; }
.portal-product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 650;
}
.portal-btn-outline:hover { background: #f4f9e8; color: var(--brand-deep); }
.portal-product-gallery {
  margin: 0 0 22px;
}
.portal-product-gallery-main {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f5f5f5;
  border: 1px solid #eee;
}
.portal-product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.portal-product-gallery-thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: 2px solid #e8e8e8;
  background: #fafafa;
  cursor: pointer;
  line-height: 0;
}
.portal-product-gallery-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}
.portal-product-gallery-thumb.is-active,
.portal-product-gallery-thumb:hover {
  border-color: var(--brand);
}
.portal-product-body .portal-detail-section { margin: 0 0 1.6em; }
.portal-product-body .portal-detail-section h2,
.portal-product-spec h2 {
  margin: 0 0 12px;
  padding: 0 0 0 10px;
  border-left: 3px solid #2b5a8c;
  border-bottom: none;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.45;
}
.portal-product-spec { margin: 0 0 22px; }
.portal-product-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.portal-product-spec-table th,
.portal-product-spec-table td {
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.portal-product-spec-table th {
  width: 7em;
  background: #f7f7f7;
  color: #666;
  font-weight: 600;
}
.portal-product-bottom-contact {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  color: #666;
  font-size: 14px;
}
.portal-detail-section { margin: 22px 0; }
.portal-detail-section h2 {
  margin: 0 0 12px;
  padding: 0 0 8px 10px;
  border-left: 3px solid var(--brand);
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.portal-product-spec-list {
  margin: 0;
  padding-left: 1.3em;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}
.portal-product-spec-list li { margin: 0 0 .35em; }

/* —— footer —— */
.site-footer {
  margin-top: 8px;
  background: #3a3f44;
  color: #c8cdd2;
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 22px 0 12px;
  font-size: 13px;
}
.site-footer a { color: #c8cdd2; }
.site-footer a:hover { color: #fff; }
.site-footer-copy {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 14px 0 22px;
  color: #9aa1a8;
  font-size: 12px;
  text-align: center;
}
.site-footer-copy .site-footer-sep { margin: 0 8px; color: #6b7280; }
.site-footer-copy .site-footer-beian { color: #9aa1a8; }
.site-footer-copy .site-footer-beian:hover { color: #fff; }

.portal-company-copy {
  color: #333;
  font-size: 14px;
  line-height: 1.9;
  word-break: break-word;
}
.portal-more { margin: 16px 0 0; }
.portal-more a { color: var(--link); font-size: 14px; }
.portal-more a:hover { color: var(--brand-deep); }

/* —— 投诉反馈浮层（前端演示） —— */
.portal-feedback-rail {
  position: fixed;
  left: 0;
  top: 40%;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
}
.portal-feedback.is-collapsed .portal-feedback-rail { display: none; }
.portal-feedback-fab-hide {
  margin: 0 0 4px 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 120, .55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.portal-feedback-fab {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .2em;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: #e53935;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  padding: 20px 12px;
  min-width: 40px;
  min-height: 112px;
  cursor: pointer;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, .12);
  position: relative;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}
.portal-feedback-fab:hover { background: #d32f2f; }
.portal-feedback-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}
.portal-feedback-mask[hidden] { display: none !important; }
.portal-feedback-dialog {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  padding: 8px 28px 24px;
}
.portal-feedback-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.portal-feedback-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 18px;
}
.portal-feedback-tabs button {
  border: 0;
  background: transparent;
  padding: 14px 2px 10px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.portal-feedback-tabs button.is-active {
  color: #1f6feb;
  font-weight: 650;
  border-bottom-color: #1f6feb;
}
.portal-feedback-form { display: flex; flex-direction: column; gap: 8px; }
.portal-feedback-form[hidden] { display: none !important; }
.portal-feedback-label {
  margin-top: 6px;
  font-size: 14px;
  color: #222;
}
.portal-feedback-label span { color: #e53935; }
.portal-feedback-form input,
.portal-feedback-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  outline: 0;
  font-family: inherit;
}
.portal-feedback-form input:focus,
.portal-feedback-form textarea:focus {
  border-color: #1f6feb;
  box-shadow: 0 0 0 2px rgba(31, 111, 235, .12);
}
.portal-feedback-submit {
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: #1f6feb;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  min-height: 44px;
  cursor: pointer;
}
.portal-feedback-submit:hover { background: #1a5fd0; }
.portal-feedback-note {
  margin: 10px 0 0;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}
.portal-feedback-toast {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: #eef5d3;
  color: #5a6b1f;
  font-size: 13px;
  text-align: center;
}
body.portal-feedback-open { overflow: hidden; }

@media (max-width: 1200px) {
  .portal-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portal-company-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .masthead-inner { flex-wrap: wrap; }
  .brand-block { max-width: 100%; }
  .search-box { margin-left: 0; flex: 1 1 100%; width: 100%; max-width: none; min-width: 0; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-aside { order: 2; }
  .portal-company-cards { grid-template-columns: 1fr; }
  .portal-company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-news-columns { grid-template-columns: 1fr; }
  .portal-contact-grid { grid-template-columns: 1fr; }
  .portal-shop-banner { padding: 28px 0 24px; min-height: 0; }
  .portal-shop-banner h1 { font-size: 24px; }
  .portal-shop-banner::after { font-size: clamp(56px, 18vw, 96px); }
  .portal-shop-nav a { padding: 0 12px; font-size: 14px; min-height: 44px; }
  .portal-product-thumb { font-size: 28px; }
  .portal-product-card strong { font-size: 15px; }
  .portal-shop-section { padding: 18px 16px 20px; }
  .portal-article-link-head { flex-direction: column; gap: 6px; }
  .portal-article.portal-article-detail { padding: 20px 16px 24px; }
  .portal-article-title,
  .portal-article h1 { font-size: 22px; }
  .portal-body { font-size: 15px; }
  .portal-feedback-fab { font-size: 13px; padding: 14px 8px; }
  .portal-feedback-dialog { padding: 8px 18px 20px; }
  .portal-feedback-close { top: -10px; right: -6px; }
}
