/*
Theme Name: OPC China
Theme URI: https://example.com/opc-china
Author: Shidai Feiying
Description: A focused WordPress theme for China's one-person company industry intelligence, policy explainers, tax guidance, legal cases, and founder operations.
Version: 0.2.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: opc-china
*/

:root {
  --opc-red: #d71920;
  --opc-red-dark: #ae1017;
  --opc-ink: #222;
  --opc-muted: #777;
  --opc-line: #e6e6e6;
  --opc-bg: #f5f5f5;
  --opc-panel: #fff;
  --opc-dark: #2a2a2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--opc-bg);
  color: var(--opc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--opc-red);
}

.wrap {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  background: var(--opc-panel);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 300px;
}

.brand-logo {
  display: block;
  width: 318px;
  max-width: min(318px, 72vw);
  height: auto;
}

.screen-reader-brand {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.brand-title {
  font-size: 30px;
  font-weight: 800;
  color: #111;
}

.brand-subtitle {
  color: var(--opc-muted);
  font-size: 13px;
}

.header-search {
  display: flex;
  width: min(460px, 100%);
  border: 2px solid var(--opc-red);
  height: 42px;
  background: #fff;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 13px;
  outline: 0;
  font-size: 14px;
}

.header-search button {
  width: 86px;
  border: 0;
  background: var(--opc-red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.site-nav {
  background: var(--opc-red);
  border-bottom: 3px solid var(--opc-red-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 46px;
  overflow-x: auto;
}

.main-nav a {
  color: #fff;
  padding: 0 19px;
  line-height: 46px;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--opc-red-dark);
  color: #fff;
}

.portal-main {
  padding: 22px 0 36px;
}

.screen-reader-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.headline-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
  gap: 18px;
  margin-bottom: 20px;
}

.lead-story,
.mini-headline {
  position: relative;
  display: block;
  overflow: hidden;
  background: #333;
  color: #fff;
}

.lead-story {
  min-height: 340px;
}

.mini-headline {
  min-height: 161px;
}

.headline-pair {
  display: grid;
  gap: 18px;
}

.story-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.82), rgba(40, 40, 40, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 10px);
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(34px, 7vw, 86px);
  font-weight: 900;
}

.story-art-large {
  font-size: clamp(48px, 9vw, 120px);
}

.headline-section .story-art {
  font-size: 0;
}

.has-home-image .story-art {
  background-image: var(--opc-home-top-image);
  background-position: center;
  background-size: cover;
  color: transparent;
}

.story-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.story-overlay strong {
  font-size: 30px;
  line-height: 1.25;
}

.story-overlay em {
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
}

.kicker {
  width: fit-content;
  background: var(--opc-red);
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 700;
}

.mini-headline strong {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 18px;
  line-height: 1.35;
  z-index: 2;
}

.lead-story > .story-overlay:not(.managed-story-overlay),
.mini-headline > strong {
  display: none;
}

.lead-story > .managed-story-overlay {
  background: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.mini-story-overlay {
  gap: 6px;
  padding: 16px;
}

.mini-headline .managed-story-overlay strong {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  font-size: 20px;
  line-height: 1.35;
}

.mini-story-overlay em {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.content-column,
.sidebar-column {
  display: grid;
  gap: 18px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--opc-line);
  border: 1px solid var(--opc-line);
}

.channel-grid a {
  display: grid;
  place-items: center;
  min-height: 54px;
  background: #fff;
  color: #333;
  font-weight: 700;
}

.channel-grid a:hover {
  background: #fff5f5;
}

.section-heading,
.side-panel h2 {
  border-bottom: 2px solid var(--opc-red);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  padding: 12px 16px 0;
}

.section-heading h2,
.side-panel h2 {
  margin: 0;
  width: fit-content;
  background: var(--opc-red);
  color: #fff;
  padding: 7px 14px;
  font-size: 17px;
}

.section-heading span {
  color: var(--opc-muted);
  font-size: 13px;
  padding-bottom: 9px;
}

.article-list {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--opc-line);
  border-top: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--opc-line);
}

.article-row:last-child {
  border-bottom: 0;
}

.thumb {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.86), rgba(40, 40, 40, 0.88)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 9px);
}

.thumb-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb span {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--opc-red);
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 700;
}

.article-copy {
  min-width: 0;
}

.article-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.article-copy p {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #888;
  font-size: 13px;
}

.article-cat {
  color: var(--opc-red);
}

.side-panel {
  background: #fff;
  border: 1px solid var(--opc-line);
}

.side-panel ul,
.side-panel ol {
  margin: 0;
  padding: 12px 16px 16px;
}

.ticker-panel li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
  list-style: none;
  font-size: 14px;
}

.ticker-panel li:last-child {
  border-bottom: 0;
}

.ticker-panel li span {
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--opc-red);
}

.tag-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
}

.tag-panel a {
  background: #f3f3f3;
  border: 1px solid #e0e0e0;
  padding: 5px 10px;
  color: #555;
  font-size: 13px;
}

.ops-card {
  padding-bottom: 16px;
}

.ops-card p {
  margin: 14px 16px;
  color: #666;
  font-size: 14px;
}

.ops-card a {
  display: inline-block;
  margin: 0 16px;
  background: var(--opc-red);
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
}

.hot-panel ol {
  counter-reset: hot;
  list-style: none;
}

.hot-panel li {
  counter-increment: hot;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 14px;
}

.hot-panel li::before {
  content: counter(hot);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.hot-panel li:nth-child(-n + 3)::before {
  background: var(--opc-red);
}

.notice {
  padding: 18px;
  background: #fff;
  border-left: 4px solid var(--opc-red);
  color: #666;
}

.channel-main {
  padding-top: 0;
}

.channel-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
  padding: 32px 0 26px;
  border-bottom: 1px solid var(--opc-line);
}

.channel-hero h1 {
  margin: 12px 0 8px;
  font-size: 36px;
  line-height: 1.2;
}

.channel-hero p {
  margin: 0;
  max-width: 720px;
  color: #666;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 360px;
}

.channel-tags a {
  background: #fff;
  border: 1px solid var(--opc-line);
  padding: 7px 11px;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.pagination {
  padding: 16px 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a,
.nav-links span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  background: #fff;
  border: 1px solid var(--opc-line);
  padding: 0 10px;
  font-size: 13px;
}

.nav-links .current {
  background: var(--opc-red);
  border-color: var(--opc-red);
  color: #fff;
}

.site-footer {
  background: #2c2c2c;
  color: #cfcfcf;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links strong {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 26px;
  padding: 24px 0 18px;
}

.footer-grid h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
}

.footer-grid p {
  margin: 0;
}

.copyright {
  margin: 0;
  padding: 13px 0 20px;
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 0;
}

.article h1 {
  font-size: 38px;
  line-height: 1.25;
}

.meta {
  color: var(--opc-muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .header-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding: 16px 0;
  }

  .brand {
    min-width: 0;
  }

  .headline-section,
  .portal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .channel-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .channel-tags {
    justify-content: flex-start;
    max-width: none;
  }

  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 20px, 1200px);
  }

  .brand-title {
    font-size: 21px;
  }

  .brand-logo {
    width: 280px;
    max-width: 100%;
  }

  .lead-story {
    min-height: 300px;
  }

  .story-overlay strong {
    font-size: 22px;
  }

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

.primary-channel-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 22px;
}

.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid var(--opc-line);
  border-top: 0;
  padding: 16px;
}

.tool-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--opc-line);
  background: linear-gradient(180deg, #fff, #fff7f7);
}

.tool-card b {
  font-size: 18px;
}

.tool-card span {
  color: #666;
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: #777;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--opc-red);
}

.breadcrumb em {
  font-style: normal;
  color: #555;
}

.single-layout {
  align-items: start;
}

.single-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--opc-line);
}

.single-post {
  padding: 28px 30px;
}

.single-title {
  border-bottom: 1px solid var(--opc-line);
  padding-bottom: 18px;
}

.single-title h1 {
  margin: 0 0 12px;
  color: #191919;
  font-size: 32px;
  line-height: 1.28;
}

.single-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #888;
  font-size: 13px;
}

.single-info a {
  color: var(--opc-red);
}

.single-entry {
  padding-top: 20px;
  color: #333;
  font-size: 16px;
  line-height: 1.9;
}

.single-entry img {
  max-width: 100%;
  height: auto;
}

.single-entry h2,
.single-entry h3 {
  margin: 32px 0 16px;
  border-left: 4px solid var(--opc-red);
  padding-left: 12px;
  line-height: 1.35;
  color: #1f2933;
  font-weight: 800;
}

.single-entry h2 {
  font-size: 26px;
}

.single-entry h3 {
  font-size: 22px;
}

.single-entry .source-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #fafafa;
  border-left: 3px solid var(--opc-red);
  color: #777;
  font-size: 14px;
  line-height: 1.7;
}

.end-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 28px 0 18px;
  color: #999;
  font-size: 12px;
  text-transform: uppercase;
}

.end-line i {
  height: 1px;
  background: var(--opc-line);
}

.single-notice,
.single-meta {
  background: #fafafa;
  border: 1px solid var(--opc-line);
  padding: 12px 14px;
  color: #777;
  font-size: 13px;
}

.single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.single-nav span {
  min-height: 48px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--opc-line);
  font-size: 14px;
}

.related-post {
  background: #fff;
  border: 1px solid var(--opc-line);
}

.related-t {
  border-bottom: 2px solid var(--opc-red);
}

.related-t h2 {
  width: fit-content;
  margin: 0;
  background: var(--opc-red);
  color: #fff;
  padding: 8px 14px;
  font-size: 17px;
}

.compact-related {
  border: 0;
}

.related-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px dashed #ddd;
}

.related-row time {
  flex: none;
  color: #999;
  font-size: 13px;
}

.news-list {
  background: #fff;
  border: 1px solid var(--opc-line);
  border-top: 0;
}

.news-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--opc-line);
}

.news-row:last-child {
  border-bottom: 0;
}

.product-main {
  padding-top: 0;
}

.product-hero,
.product-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--opc-line);
}

.product-hero h1,
.product-detail-hero h1 {
  margin: 12px 0 8px;
  font-size: 40px;
  line-height: 1.15;
}

.product-hero p,
.product-detail-hero p {
  max-width: 720px;
  margin: 0;
  color: #666;
}

.hero-action,
.detail-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 16px;
  background: var(--opc-red);
  color: #fff;
  font-weight: 700;
}

.hero-action:hover,
.detail-actions a:hover {
  background: var(--opc-red-dark);
  color: #fff;
}

.product-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 22px;
}

.product-filter {
  display: grid;
  gap: 1px;
  background: var(--opc-line);
  border: 1px solid var(--opc-line);
}

.product-filter h2,
.product-filter a {
  margin: 0;
  background: #fff;
  padding: 13px 15px;
}

.product-filter h2 {
  background: var(--opc-red);
  color: #fff;
  font-size: 17px;
}

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

.product-card a {
  display: grid;
  gap: 12px;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--opc-line);
  padding: 16px;
}

.product-cover {
  display: grid;
  place-items: center;
  min-height: 120px;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.88), rgba(41, 41, 41, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 10px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 22px;
  font-weight: 900;
  overflow: hidden;
}

.product-cover img {
  max-width: 72%;
  max-height: 88px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  padding: 10px;
}

.community-card .product-cover img,
.community-main .product-cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.community-card .product-cover,
.community-main .product-cover {
  background:
    linear-gradient(135deg, rgba(174, 16, 23, 0.88), rgba(71, 71, 71, 0.92)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0 2px, transparent 2px 10px);
}

.product-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.product-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.product-card dl,
.detail-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.product-card dl div,
.detail-facts div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  color: #666;
  font-size: 13px;
}

.product-card dt,
.detail-facts dt {
  color: #999;
}

.product-card dd,
.detail-facts dd {
  margin: 0;
}

.product-card b {
  color: var(--opc-red);
  font-size: 14px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-actions .ghost {
  background: #fff;
  border: 1px solid var(--opc-line);
  color: #333;
}

.detail-facts {
  width: min(360px, 100%);
  background: #fff;
  border: 1px solid var(--opc-line);
  padding: 16px;
}

.detail-logo-card,
.detail-cover-card {
  display: grid;
  place-items: center;
  width: min(220px, 100%);
  min-height: 160px;
  background: #fff;
  border: 1px solid var(--opc-line);
  padding: 18px;
}

.detail-logo-card img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.detail-cover-card {
  width: min(360px, 100%);
  padding: 0;
  overflow: hidden;
}

.detail-cover-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-detail-body {
  padding-top: 22px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 2px solid var(--opc-red);
  padding: 0 18px;
  background: #fff;
}

.detail-section-title h2 {
  margin: 0;
  background: var(--opc-red);
  color: #fff;
  padding: 8px 15px;
  font-size: 17px;
}

.detail-section-title span {
  min-width: 0;
  overflow: hidden;
  color: #777;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-body .single-entry,
.product-detail-body .end-line {
  margin-right: 26px;
  margin-left: 26px;
}

.oldsite-detail-image {
  margin: 24px 26px 0;
  padding: 16px;
  border: 1px solid var(--opc-line);
  background: #fafafa;
}

.oldsite-detail-image img {
  display: block;
  width: 100%;
  height: auto;
}

.community-code-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 26px 0;
}

.community-code-grid figure {
  width: 180px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--opc-line);
  background: #fafafa;
  text-align: center;
}

.community-code-grid img {
  width: 100%;
  height: auto;
}

.community-code-grid figcaption {
  margin-top: 8px;
  color: #666;
  font-size: 13px;
}

@media (max-width: 920px) {
  .primary-channel-grid,
  .split-showcase,
  .product-layout,
  .product-grid,
  .product-hero,
  .product-detail-hero,
  .single-nav {
    grid-template-columns: 1fr;
  }

  .split-showcase,
  .product-hero,
  .product-detail-hero {
    display: grid;
  }

  .product-grid,
  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .news-row {
    grid-template-columns: 1fr;
  }
}

/* Old-site replicas for /comPower and /community. */
.oldsite-channel {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.oldsite-channel *,
.oldsite-channel *::before,
.oldsite-channel *::after {
  box-sizing: border-box;
}

.oldsite-empty {
  grid-column: 1 / -1;
  padding: 48px;
  border-radius: 16px;
  background: #fff;
  color: #646464;
  text-align: center;
}

.oldsite-empty-dark {
  background: #1d2136;
  color: rgba(255, 255, 255, 0.62);
}

.comPower-page {
  background: #e2ebfd;
  color: #091221;
}

.comPower-page .banner-section {
  line-height: 0;
}

.comPower-page .banner-img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  animation: comPowerBannerIn 0.9s ease forwards;
}

.comPower-page .search-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px;
}

.comPower-page .title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #091221;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
}

.comPower-page .title-l {
  color: #2b54fe;
}

.comPower-page .sub-title {
  max-width: 980px;
  color: #091221;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

.comPower-page .search-div {
  display: flex;
  align-items: center;
  width: min(656px, 100%);
  height: 62px;
  margin-top: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: #fff;
}

.comPower-page .icon-search-img {
  width: 20px;
  height: 20px;
  margin-right: 20px;
}

.comPower-page .search-input {
  flex: 1;
  height: 100%;
}

.comPower-page .search-input-text {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: #091221;
  font-size: 15px;
}

.comPower-page .tab-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.comPower-page .tab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 88px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #2b2b2b;
  cursor: pointer;
}

.comPower-page .tab-item:hover {
  opacity: 0.82;
  color: #2b54fe;
}

.comPower-page .tab-item.active-tab {
  background: #2b54fe;
  color: #fff;
}

.comPower-page .tab-item-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.comPower-page .tab-item-label {
  font-size: 14px;
  line-height: 20px;
}

.comPower-page .tool-list-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, 395px);
  justify-content: center;
  gap: 24px;
  width: calc(100% - 48px);
  max-width: 1700px;
  margin: 0 auto;
}

.comPower-page .tool-item {
  display: block;
  width: 395px;
  height: 192px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.comPower-page .tool-item:hover {
  transform: translateY(-2px);
  color: inherit;
}

.comPower-page .tool-item .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.comPower-page .tool-item .left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.comPower-page .tool-item .img-box {
  flex: none;
  width: 64px;
  height: 64px;
  margin-right: 20px;
  overflow: hidden;
  border-radius: 50%;
}

.comPower-page .tool-item .logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comPower-page .tool-item .info-box {
  min-width: 0;
}

.comPower-page .tool-item .name {
  display: -webkit-box;
  margin-bottom: 10px;
  overflow: hidden;
  color: #091221;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.comPower-page .tool-item .tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comPower-page .tool-item .tag-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid #2e55f6;
  border-radius: 4px;
  color: #2e55f6;
  font-size: 12px;
  line-height: 18px;
}

.comPower-page .tool-item .icon-right {
  width: 36px;
  height: 36px;
}

.comPower-page .tool-item .bottom {
  display: -webkit-box;
  overflow: hidden;
  color: #646464;
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.comPower-page .page-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 0;
}

.comPower-page .page-img-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comPower-page .page-img-box.disabled-page-img {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.comPower-page .page-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comPower-page .page-number-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 56px;
  min-height: 40px;
  padding: 4px 16px;
  border-radius: 999px;
  background: #fff;
}

.comPower-page .page-number-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  border-radius: 20px;
  color: #73767d;
  font-size: 14px;
}

.comPower-page .page-number-item.active-page-number {
  border: 1px solid #2e55f6;
  color: #091221;
}

.tool-detail-page {
  min-height: 680px;
  padding: 64px 24px;
}

.tool-detail-mask.is-page {
  position: static;
  display: flex;
  justify-content: center;
  width: 100%;
  background: transparent;
}

.tool-detail-dialog {
  width: min(620px, 100%);
  max-height: none;
  padding: 24px 32px 28px;
  overflow: visible;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(68, 47, 255, 0.16);
}

.tool-detail-dialog .detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.tool-detail-dialog .detail-header-left {
  display: flex;
  align-items: center;
}

.tool-detail-dialog .detail-logo-box {
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.tool-detail-dialog .detail-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-detail-dialog .detail-name {
  margin: 0;
  color: #091221;
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
}

.tool-detail-dialog .detail-title {
  margin-top: 4px;
  color: #091221;
  font-size: 12px;
  line-height: 17px;
}

.tool-detail-dialog .detail-close {
  color: #091221;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

.tool-detail-dialog .detail-content {
  color: #3d3d3d;
  font-size: 14px;
  line-height: 26px;
  white-space: pre-wrap;
}

.tool-detail-dialog .detail-content-img {
  width: 100%;
  max-height: 220px;
  margin-top: 20px;
  object-fit: cover;
}

.tool-detail-dialog .detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(288px, 100%);
  height: 40px;
  margin: 24px auto 0;
  border-radius: 4px;
  background: #442fff;
  box-shadow: 0 3px 8px rgba(68, 47, 255, 0.35);
  color: #fff;
  font-size: 14px;
}

.tool-detail-dialog .detail-btn:hover {
  color: #fff;
  opacity: 0.9;
}

.tool-detail-dialog .detail-btn-arrow {
  margin-left: 8px;
}

.community-page {
  min-height: 720px;
  background: #0a0e1a;
  color: #fff;
}

.community-hero {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.community-hero__img {
  display: block;
  width: 100%;
  height: 760px;
  object-fit: cover;
}

.community-parks {
  margin: 0 auto 100px;
  padding: 56px 140px 0;
}

.community-parks__title {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.community-parks__subtitle {
  max-width: 720px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.community-filter {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.community-filter__area {
  width: 200px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #455c80;
  border-radius: 6px;
  outline: 0;
  background: transparent;
  color: #6c8fbd;
  font-size: 16px;
}

.community-filter__area option {
  color: #111827;
}

.park-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 16px;
}

.park-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 24px;
  background: #1d2136;
}

.park-card__media {
  flex: none;
  position: relative;
  width: 640px;
  max-height: 624px;
}

.park-card__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 24px 0 0 24px;
  object-fit: cover;
}

.park-card__body {
  flex: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 48px 36px 30px;
}

.park-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.park-card__name {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
}

.park-card__focus {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #161a2a;
  color: #616990;
  font-size: 16px;
}

.park-card__desc {
  display: -webkit-box;
  height: 120px;
  margin: 0 0 20px;
  overflow: hidden;
  color: #616990;
  font-size: 16px;
  line-height: 24px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.benefit-cell {
  display: flex;
  align-items: center;
  padding: 26px 24px;
  border-radius: 16px;
  background: #171b2c;
}

.benefit-cell + .benefit-cell {
  margin-top: 16px;
}

.benefit-cell__highlight {
  flex: none;
  width: 120px;
  font-size: 20px;
  font-weight: 700;
}

.benefit-cell__sub {
  margin-left: 10px;
  color: #616990;
  font-size: 16px;
}

.benefit-cell--0 .benefit-cell__highlight {
  color: #f97316;
}

.benefit-cell--1 .benefit-cell__highlight {
  color: #01cb8d;
}

.benefit-cell--2 .benefit-cell__highlight {
  color: #c27aff;
}

.community-settle-btn {
  align-self: flex-end;
  min-width: 104px;
  height: 32px;
  margin-top: 24px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #2f76f5 0%, #5a8cff 100%);
  box-shadow: 0 6px 16px rgba(47, 118, 245, 0.28);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
}

.community-settle-btn:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 118, 245, 0.36);
}

.community-detail-page {
  min-height: 720px;
  background: #f5f5f7;
  color: #111827;
  font-size: 16px;
}

.community-detail__header {
  padding: 14px 160px 70px;
  background: #f9fbff;
}

.community-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
}

.community-detail__back:hover {
  color: #2f76f5;
}

.community-detail__back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  font-size: 24px;
  line-height: 1;
}

.community-detail__top {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.community-detail__cover {
  flex: none;
  width: 640px;
  height: 424px;
  overflow: hidden;
  background: #e5e7eb;
}

.community-detail__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-detail__right {
  flex: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.community-detail__summary-row {
  display: flex;
  min-height: 158px;
}

.community-detail__main {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
}

.community-detail__title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.community-detail__name {
  margin: 0;
  color: #111827;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
}

.community-detail__mini-settle {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: #2f76f5;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.community-detail__info-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 18px;
  margin-top: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
}

.info-item__label {
  flex: none;
  width: 88px;
  color: #9ca3af;
  text-align: justify;
  text-align-last: justify;
}

.info-item__value {
  min-width: 0;
  margin-left: 16px;
  color: #111827;
  font-weight: 500;
}

.community-detail__qr {
  flex: none;
  display: flex;
  width: 160px;
  flex-direction: column;
  align-items: center;
  color: #111827;
  text-align: center;
}

.community-detail__qr-code,
.community-detail__qr-img,
.community-detail__qr-empty {
  width: 110px;
  height: 110px;
  background: #fff;
}

.community-detail__qr-img,
.community-detail__qr-empty {
  border: 1px solid #d9dde5;
}

.community-detail__qr-img {
  display: block;
  object-fit: cover;
}

.community-detail__qr-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

.community-detail__qr-text {
  margin-top: 10px;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
}

.community-detail__qr-btn {
  height: 28px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #2f76f5;
  font-size: 16px;
  line-height: 28px;
}

.community-detail__policy {
  flex: 1;
  min-height: 142px;
  padding: 0 12px;
}

.community-detail__section-title {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.community-detail__desc {
  margin: 14px 0 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.community-detail__content {
  padding: 60px 160px 80px;
  background: #fff;
}

.community-detail__middle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 96px;
  align-items: stretch;
}

.community-detail__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 80px;
}

.metric-item__label {
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.metric-item__value {
  margin-top: 14px;
  color: #111827;
  font-size: 18px;
  line-height: 1.5;
}

.metric-item__value.is-link {
  color: #2f76f5;
}

.community-detail__facilities {
  margin-top: 46px;
}

.community-detail__facilities .community-detail__section-title {
  font-size: 24px;
}

.community-detail__facilities p {
  margin: 16px 0 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.8;
}

.community-detail__long-desc {
  margin-top: 54px;
  padding-top: 40px;
  border-top: 1px solid #dcdfe6;
  color: #111827;
  font-size: 18px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.community-detail__side-wrap {
  position: relative;
}

.community-detail__side-card {
  padding: 32px 34px;
  background: #f9fbff;
  color: #111827;
}

.side-card__title {
  margin-bottom: 28px;
  color: #666;
  font-size: 18px;
}

.side-card__item {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.6;
}

.side-card__item span {
  display: block;
  color: #666;
}

.side-card__item strong {
  display: block;
  margin-top: 16px;
  color: #000;
  font-weight: 400;
}

@keyframes comPowerBannerIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .community-parks,
  .community-detail__header,
  .community-detail__content {
    padding-right: 32px;
    padding-left: 32px;
  }

  .park-card,
  .community-detail__top,
  .community-detail__summary-row {
    flex-direction: column;
  }

  .park-card__media,
  .community-detail__cover {
    width: 100%;
  }

  .park-card__img {
    border-radius: 24px 24px 0 0;
  }

  .community-detail__middle {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .comPower-page .banner-img {
    height: 300px;
  }

  .comPower-page .title {
    flex-direction: column;
    font-size: 30px;
  }

  .comPower-page .tool-list-section {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 24px);
  }

  .comPower-page .tool-item {
    width: 100%;
  }

  .community-hero__img {
    height: 360px;
  }

  .community-parks {
    padding: 40px 16px 0;
  }

  .park-card__body {
    padding: 28px 20px;
  }

  .park-card__name,
  .community-detail__name {
    font-size: 26px;
  }

  .benefit-cell,
  .community-detail__metrics {
    grid-template-columns: 1fr;
  }

  .community-detail__header,
  .community-detail__content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .community-detail__metrics {
    gap: 22px;
  }
}
