:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --text: #1f2933;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --danger: #b42318;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

.site-main {
  flex: 1 0 auto;
}

body.dhmip-dark {
  --bg: #111827;
  --surface: #17202e;
  --surface-soft: #1f2937;
  --text: #f3f4f6;
  --muted: #a7b0bf;
  --line: #2f3b4d;
  --shadow: none;
}

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

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.dhmip-dark .site-header {
  background: rgba(23, 32, 46, 0.94);
}

.header-inner,
.footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.header-actions,
.primary-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand-text {
  font-weight: 700;
  font-size: 18px;
}

.custom-logo {
  max-height: 42px;
  width: auto;
}

.primary-nav ul,
.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 14px;
}

.primary-nav a:hover,
.footer-nav a:hover {
  color: var(--accent);
}

.btn,
button,
.dhmip-submit-form button {
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 650;
}

.btn:hover,
button:hover {
  background: var(--accent-dark);
}

.btn-small {
  min-height: 34px;
  padding-inline: 12px;
}

.icon-btn {
  width: 34px;
  min-height: 34px;
  padding: 0;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.home-search {
  padding: 46px 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.dhmip-dark .home-search {
  background: var(--surface);
}

.home-search h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  text-align: center;
}

.hero-search-form,
.inline-search {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-search-form input,
.inline-search input,
.dhmip-submit-form input,
.dhmip-submit-form textarea,
.dhmip-submit-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
}

.hero-search-form input {
  min-height: 50px;
  font-size: 16px;
}

.hot-keywords,
.notice-bar {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hot-keywords a {
  color: var(--accent);
}

.notice-bar {
  justify-content: flex-start;
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-section {
  padding: 28px 0;
}

.compact-section {
  padding-top: 8px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2,
.section-head h3,
.archive-head h1,
.detail-main h1,
.submit-layout h1 {
  margin: 0;
  line-height: 1.25;
}

.section-head h2 {
  font-size: 22px;
}

.section-head h3 {
  font-size: 18px;
}

.section-head a {
  color: var(--accent);
  font-size: 14px;
}

.site-grid,
.article-grid,
.mixed-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.site-card,
.article-card,
.detail-side section,
.submit-panel,
.empty-state,
.faq-section details,
.info-columns section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-card {
  padding: 14px;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-card:hover,
.article-card:hover,
.site-row:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: var(--shadow);
}

.site-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  color: var(--accent);
  font-weight: 800;
}

.site-icon.large {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  border-radius: 12px;
}

.site-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-icon.large img {
  width: 46px;
  height: 46px;
}

.site-info {
  min-width: 0;
}

.site-info strong,
.site-info small,
.site-card p,
.site-row em {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.site-info strong {
  -webkit-line-clamp: 1;
  font-size: 15px;
}

.site-info small,
.site-card-foot,
.site-row span,
.domain,
.archive-head p {
  color: var(--muted);
  font-size: 13px;
}

.site-card p {
  margin: 0;
  color: var(--muted);
  -webkit-line-clamp: 2;
}

.site-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag,
.term-line a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--accent);
  font-size: 12px;
}

.dhmip-dark .tag,
.dhmip-dark .term-line a {
  background: #123a38;
}

.visit-link {
  margin-left: auto;
  color: var(--accent);
  font-weight: 650;
}

.site-list {
  display: grid;
  gap: 8px;
}

.site-row {
  display: grid;
  grid-template-columns: 160px 160px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-row em {
  color: var(--muted);
  font-style: normal;
  -webkit-line-clamp: 1;
}

.category-cloud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.category-cloud a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-cloud span {
  color: var(--muted);
  font-size: 13px;
}

.category-block {
  margin-top: 24px;
}

.article-card {
  padding: 16px;
}

.article-card h2,
.article-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.archive-head {
  padding: 28px 0 8px;
}

.archive-head h1 {
  font-size: 30px;
}

.inline-search {
  margin: 16px 0 0;
  max-width: 620px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  padding: 28px 0;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.site-detail-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-detail-head h1 {
  font-size: 30px;
}

.site-detail-head p {
  margin: 4px 0;
  color: var(--muted);
}

.term-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.term-line a,
.keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  color: #475467;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.term-line a:hover {
  color: var(--accent);
  border-color: rgba(63, 99, 242, 0.28);
  background: #eef2ff;
}

.ai-note {
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: var(--radius);
  font-size: 14px;
}

.dhmip-dark .ai-note {
  background: #12351f;
  border-color: #245c39;
  color: #bbf7d0;
}

.backup-domain-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 18px;
}

.backup-domain-panel span {
  display: inline-flex;
  padding: 3px 9px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.backup-domain-panel h2 {
  margin: 8px 0 6px;
  color: #78350f;
  font-size: 20px;
}

.backup-domain-panel p {
  margin: 0;
  color: #92400e;
  font-size: 13px;
  line-height: 1.65;
}

.backup-domain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.backup-domain-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 14px;
}

.backup-domain-list strong {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-domain-list em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-microsite {
  margin-top: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0) 34%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.microsite-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.microsite-head span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  background: #ecfdf3;
  color: #047857;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.microsite-head h2 {
  margin: 8px 0 6px;
  font-size: 24px;
  line-height: 1.25;
}

.microsite-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.microsite-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.microsite-link-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.microsite-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.microsite-link-card em {
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  overflow: hidden;
  color: #0f766e;
  background: #f0fdfa;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.microsite-link-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.microsite-link-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.microsite-link-card span {
  align-self: end;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.microsite-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.microsite-module-grid section {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.microsite-module-grid h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.microsite-module-grid p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.microsite-module-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 13px;
}

.site-microsite-source_code {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0) 36%),
    var(--surface);
}

.site-microsite-cloud_drive,
.site-microsite-video {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0) 34%),
    var(--surface);
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.source-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-item {
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.source-item:first-child {
  background: linear-gradient(135deg, #ecfdf5, #fff);
}

.source-item em,
.source-module-list span,
.micro-strip a {
  width: fit-content;
  max-width: 100%;
  padding: 3px 9px;
  overflow: hidden;
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-item strong {
  color: #0f172a;
  font-size: 17px;
  line-height: 1.45;
}

.source-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.source-item span {
  align-self: end;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

.source-module-list {
  display: grid;
  gap: 10px;
}

.source-module-list section {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.source-module-list h3,
.resource-board h3,
.portal-side-modules h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.source-module-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.micro-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.resource-channel-list {
  display: grid;
  gap: 8px;
}

.resource-channel-list a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 14px;
}

.resource-channel-list span {
  grid-row: span 2;
  display: inline-flex;
  justify-content: center;
  padding: 4px 6px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.resource-channel-list strong {
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-channel-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.resource-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resource-board section,
.portal-side-modules section {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.resource-board p,
.portal-side-modules p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.resource-board ul {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 13px;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
}

.portal-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-feature-list a {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 138px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.portal-feature-list small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.portal-feature-list strong {
  color: #101828;
  line-height: 1.45;
}

.portal-feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.portal-side-modules {
  display: grid;
  gap: 10px;
}

.nav-entry {
  margin-top: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-entry h2 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.nav-entry h2:first-child {
  margin-top: 0;
}

.nav-entry-analysis {
  color: #344054;
}

.info-columns {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-columns section {
  padding: 16px;
}

.info-columns h2,
.faq-section h2,
.detail-side h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.info-columns ul {
  margin: 0;
  padding-left: 18px;
}

.faq-section {
  margin-top: 16px;
}

.faq-section details {
  padding: 12px 14px;
  margin-top: 8px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 650;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-side section {
  padding: 16px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-list a {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.mini-list a:last-child {
  border-bottom: 0;
}

.mini-list span {
  color: var(--muted);
  font-size: 13px;
}

.submit-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  padding: 36px 0;
}

.submit-layout p {
  color: var(--muted);
}

.submit-panel,
.empty-state {
  padding: 22px;
}

.dhmip-submit-form {
  display: grid;
  gap: 14px;
}

.dhmip-submit-form p {
  margin: 0;
}

.dhmip-submit-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 650;
}

.dhmip-submit-form span {
  color: var(--danger);
}

.dhmip-submit-message {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #eef8f6;
  color: var(--accent);
}

.dhmip-pay-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dhmip-pay-box h2 {
  margin: 0;
  font-size: 18px;
}

.dhmip-pay-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dhmip-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dhmip-package-grid label {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.dhmip-package-grid label:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(63, 99, 242, 0.12);
}

.dhmip-package-grid input {
  width: auto;
  min-height: auto;
}

.dhmip-package-grid span {
  color: var(--accent);
  font-weight: 800;
}

.dhmip-package-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.dhmip-pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.dhmip-pay-methods label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.dhmip-pay-methods input {
  width: auto;
  min-height: auto;
}

.empty-state {
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.empty-state p {
  color: var(--muted);
}

.site-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.nav-links,
.page-numbers {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.page-numbers {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
}

.page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 980px) {
  .site-grid,
  .article-grid,
  .mixed-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-layout,
  .submit-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .primary-nav ul {
    width: max-content;
  }

  .home-search {
    padding-top: 30px;
  }

  .hero-search-form,
  .inline-search {
    flex-direction: column;
  }

  .site-grid,
  .article-grid,
  .mixed-results,
  .info-columns,
  .detail-side,
  .dhmip-package-grid {
    grid-template-columns: 1fr;
  }

  .category-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-detail-head {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .site-detail-head .btn {
    grid-column: 1 / -1;
  }

  .site-icon.large {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }
}

/* OneNav-like dense directory homepage */
:root {
  --bg: #f3f5f7;
  --surface-soft: #f8fafc;
  --accent: #3f63f2;
  --accent-dark: #294bd6;
  --radius: 8px;
  --container: 1380px;
}

.nav-hero {
  padding: 24px 0 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(63, 99, 242, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f3f5f7 100%);
  border-bottom: 1px solid var(--line);
}

.nav-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.nav-hero-title h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.nav-hero-title p {
  margin: 0 auto 16px;
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
}

.nav-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-search-form input {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  outline: 0;
}

.nav-search-form button {
  min-height: 46px;
  border-radius: 9px;
  background: var(--accent);
}

.nav-hotwords {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.nav-hotwords span {
  color: #98a2b3;
}

.nav-hotwords a {
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-workspace {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 16px;
  padding-top: 18px;
}

.nav-workspace.no-sidebar {
  grid-template-columns: 1fr;
}

.nav-sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.sidebar-card,
.quick-panel,
.nav-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.sidebar-card {
  padding: 10px;
}

.sidebar-card h2 {
  margin: 4px 6px 8px;
  color: #344054;
  font-size: 14px;
}

.sidebar-link {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 14px;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--accent);
  background: #eef2ff;
}

.sidebar-link em {
  color: #98a2b3;
  font-style: normal;
  font-size: 12px;
}

.submit-card p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.nav-content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.quick-panel,
.nav-section {
  padding: 14px;
}

.section-head.tight {
  margin-bottom: 10px;
}

.section-head.tight h2 {
  position: relative;
  padding-left: 10px;
  font-size: 17px;
  font-weight: 800;
}

.section-head.tight h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 15px;
  transform: translateY(-50%);
  background: var(--accent);
  border-radius: 3px;
}

.section-head.tight span,
.section-head.tight a {
  color: var(--muted);
  font-size: 13px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.quick-grid a {
  min-height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.quick-grid a:hover {
  border-color: rgba(63, 99, 242, 0.35);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.quick-grid span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.quick-grid strong {
  font-size: 13px;
}

.compact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.site-card {
  min-height: 132px;
  padding: 11px;
  gap: 8px;
  border-radius: 9px;
}

.site-card-main {
  gap: 8px;
}

.site-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 8px;
}

.site-icon img {
  width: 22px;
  height: 22px;
}

.site-info strong {
  font-size: 14px;
}

.site-info small {
  font-size: 12px;
}

.site-card p {
  min-height: 38px;
  font-size: 13px;
  line-height: 1.45;
}

.site-card-foot {
  font-size: 12px;
}

.visit-link {
  padding: 2px 7px;
  background: #eef2ff;
  border-radius: 6px;
}

.inline-empty {
  padding: 13px 14px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed #d0d5dd;
  border-radius: 9px;
  font-size: 14px;
}

.notice-bar {
  margin-top: 0;
  border-radius: 9px;
  font-size: 13px;
}

.theme-ad {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}

.theme-ad img {
  display: block;
  max-width: 100%;
}

@media (max-width: 1180px) {
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-workspace {
    grid-template-columns: 1fr;
  }

  .nav-sidebar {
    position: static;
    display: block;
  }

  .sidebar-card:first-child {
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .sidebar-card h2,
  .submit-card,
  .ad-entry-card,
  .monetization-card {
    display: none;
  }

  .sidebar-link {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #fff;
  }

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

@media (max-width: 560px) {
  .nav-hero-title h1 {
    font-size: 24px;
  }

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

  .quick-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }
}

/* Generated per-site pages. The public template only mounts these blocks. */
.generated-site-page {
  min-height: 100vh;
  padding-bottom: 42px;
  background: #f4f6f9;
}

.generated-site-page .generated-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.generated-site-page a {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.generated-site-hero {
  padding: 28px 0 18px;
}

.generated-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #8d97a6;
  font-size: 14px;
}

.generated-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.generated-primary,
.generated-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
}

.generated-primary {
  background: #f43f4f;
  color: #fff;
  box-shadow: 0 14px 26px rgba(244, 63, 79, 0.22);
}

.generated-primary:hover {
  background: #e73343;
  color: #fff;
  transform: translateY(-1px);
}

.generated-secondary {
  background: #fff;
  border: 1px solid #e3e8f2;
  color: #3b4657;
}

.generated-secondary:hover {
  border-color: rgba(244, 63, 79, 0.28);
  color: #f43f4f;
}

.anna-library-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(67, 97, 238, 0.12), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(244, 63, 79, 0.12), transparent 22%),
    #f4f6fb;
}

.generated-site-page > .anna-library-page,
.generated-site-page > .kfz-board-page {
  min-height: 100vh;
  padding-bottom: 42px;
}

.anna-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 22px 52px rgba(40, 49, 73, 0.1);
}

.anna-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: #0a0a0a;
  border-radius: 22px;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
}

.anna-hero-panel h1,
.kfz-board-hero h1 {
  margin: 0;
  color: #1f2937;
  font-size: 42px;
  line-height: 1.15;
}

.anna-hero-panel p {
  max-width: 720px;
  margin: 16px 0 18px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.anna-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  padding: 10px;
  background: #f4f7ff;
  border: 1px solid #e3e9ff;
  border-radius: 18px;
}

.anna-search-box span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  color: #8a94a6;
  background: #fff;
  border-radius: 12px;
}

.anna-source-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(11, 18, 32, 0.96), rgba(31, 41, 55, 0.94)),
    #111827;
  border-radius: 24px;
  color: #fff;
}

.anna-source-card strong {
  font-size: 22px;
}

.anna-source-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.75;
}

.anna-source-card div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.anna-source-card span {
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #eef2ff;
  font-size: 13px;
  font-weight: 750;
}

.anna-mirror-strip {
  margin-top: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(40, 49, 73, 0.07);
}

.anna-mirror-strip h2,
.generated-block h2,
.kfz-section h2 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 22px;
}

.anna-mirror-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anna-mirror-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: #f43f4f;
  border-radius: 12px;
  color: #fff;
  font-weight: 850;
}

.anna-mirror-list a:hover {
  background: #e73343;
  color: #fff;
  transform: translateY(-1px);
}

.generated-block-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.generated-block,
.kfz-section {
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(40, 49, 73, 0.07);
}

.generated-block p,
.kfz-section p {
  margin: 0;
  color: #586174;
  line-height: 1.75;
}

.generated-block ul,
.kfz-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #4b5563;
  line-height: 1.8;
}

.anna-timeline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.anna-timeline article {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 18px;
}

.anna-timeline strong {
  color: #111827;
}

.anna-timeline span {
  color: #667085;
}

.kfz-board-page {
  background:
    linear-gradient(180deg, #eef4ff 0, #f6f8fb 280px),
    #f6f8fb;
}

.kfz-board-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 22px 52px rgba(40, 49, 73, 0.1);
}

.kfz-board-hero p {
  max-width: 740px;
  margin: 14px 0 18px;
  color: #536073;
  font-size: 17px;
  line-height: 1.8;
}

.kfz-board-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  background:
    radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.18), transparent 26%),
    linear-gradient(145deg, #172033, #26364f);
  border-radius: 24px;
  color: #fff;
}

.kfz-board-card strong {
  font-size: 22px;
}

.kfz-board-card span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

.kfz-board-card span:last-child {
  border-bottom: 0;
}

.kfz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.kfz-tabs a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #dfe7f3;
  border-radius: 999px;
  color: #344054;
  font-weight: 750;
}

.kfz-tabs a:hover {
  border-color: rgba(59, 130, 246, 0.32);
  color: #2563eb;
  transform: translateY(-1px);
}

.kfz-board-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 16px;
}

.kfz-forum-list {
  display: grid;
  gap: 10px;
}

.kfz-forum-list a {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
}

.kfz-forum-list a:hover {
  border-color: rgba(59, 130, 246, 0.34);
  box-shadow: 0 12px 24px rgba(40, 49, 73, 0.08);
  transform: translateY(-1px);
}

.kfz-forum-list em {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eef4ff;
  color: #2563eb;
  font-style: normal;
  font-weight: 900;
}

.kfz-forum-list strong {
  color: #172033;
  font-size: 17px;
}

.kfz-forum-list span {
  color: #8a94a6;
  font-size: 13px;
}

.kfz-forum-list small {
  color: #f43f4f;
  font-size: 13px;
  font-weight: 800;
}

.kfz-side-stack {
  display: grid;
  gap: 14px;
}

.kfz-search-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 20px;
}

.kfz-search-card span {
  padding: 12px;
  background: #f7faff;
  border: 1px solid #e5ebf5;
  border-radius: 14px;
  color: #98a2b3;
}

.kfz-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .anna-hero-panel,
  .kfz-board-hero,
  .kfz-board-grid {
    grid-template-columns: 1fr;
  }

  .generated-block-grid,
  .kfz-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .generated-site-page .generated-wrap {
    width: min(100% - 24px, 1180px);
  }

  .anna-hero-panel,
  .kfz-board-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .anna-hero-panel h1,
  .kfz-board-hero h1 {
    font-size: 31px;
  }

  .anna-search-box {
    grid-template-columns: 1fr;
  }

  .generated-block-grid,
  .kfz-section-grid {
    grid-template-columns: 1fr;
  }

  .anna-timeline article,
  .kfz-forum-list a {
    grid-template-columns: 1fr;
  }
}

/* Full-width clone-like site detail page */
.site-clone-page {
  min-height: 100vh;
  padding-bottom: 42px;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.72) 0 40px, transparent 40px),
    #f5f6f8;
}

.site-clone-hero {
  padding: 26px 0 20px;
}

.clone-breadcrumb {
  margin-bottom: 18px;
}

.clone-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.58fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.clone-preview-card {
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(20, 24, 36, 0.13);
}

.clone-preview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #9aa0a8;
  font-size: 16px;
}

.clone-preview-title img,
.clone-preview-title span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef3ff;
  color: #4f67c8;
  object-fit: cover;
  font-size: 12px;
  font-weight: 800;
}

.clone-preview-title strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clone-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  margin-top: 8px;
  overflow: hidden;
  background: #f4f4f5;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
}

.clone-preview-frame > img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.clone-preview-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #98a2b3;
  text-align: center;
}

.clone-preview-empty img,
.clone-preview-empty span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e7ec;
  color: #667085;
  object-fit: contain;
  font-size: 34px;
  font-weight: 800;
}

.clone-preview-empty strong {
  color: #667085;
  font-size: 22px;
}

.clone-preview-empty em {
  color: #98a2b3;
  font-style: normal;
}

.clone-identity {
  min-width: 0;
  padding: 2px 0 0;
}

.clone-identity h1 {
  margin: 0 0 18px;
  color: #464a50;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.18;
}

.clone-stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 52px;
  color: #969ca5;
  font-size: 19px;
}

.clone-summary {
  max-width: 1040px;
  margin: 0 0 24px;
  color: #4f5660;
  font-size: 22px;
  line-height: 1.9;
}

.clone-facts {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  color: #4f5660;
  font-size: 18px;
}

.clone-facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: flex-start;
}

.clone-facts span {
  flex: 0 0 96px;
  color: #4f5660;
}

.clone-facts strong,
.clone-facts strong a {
  color: #4f5660;
  font-weight: 500;
}

.clone-mirrors nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}

.clone-mirrors a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 260px;
  min-height: 38px;
  padding: 0 14px;
  overflow: hidden;
  background: #f43f4f;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clone-mirrors a:hover {
  background: #e73343;
  color: #fff;
  transform: translateY(-1px);
}

.clone-mirrors i {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  font-style: normal;
  opacity: 0.86;
}

.clone-mirrors i::before,
.clone-mirrors i::after {
  content: "";
  position: absolute;
  display: block;
}

.clone-mirrors i::before {
  right: 1px;
  top: 1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.clone-mirrors i::after {
  right: 2px;
  top: 3px;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.clone-metric-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 36px;
}

.clone-metric-badges span {
  display: inline-flex;
  overflow: hidden;
  min-height: 28px;
  border-radius: 9px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.clone-metric-badges em,
.clone-metric-badges strong {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-style: normal;
}

.clone-metric-badges em {
  background: rgba(255, 255, 255, 0.15);
}

.clone-badge-blue {
  background: #3b82f6;
}

.clone-badge-orange {
  background: #f59e0b;
}

.clone-badge-green {
  background: #22c55e;
}

.clone-badge-red {
  background: #f43f4f;
}

.clone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 28px;
}

.clone-primary-btn,
.clone-outline-btn,
.clone-safe-btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-size: 21px;
  font-weight: 760;
}

.clone-primary-btn {
  min-width: 210px;
  padding: 0 24px;
  background: #f43f4f;
  color: #fff;
  box-shadow: 0 14px 24px rgba(244, 63, 79, 0.28);
}

.clone-primary-btn:hover {
  background: #e73343;
  color: #fff;
  transform: translateY(-1px);
}

.clone-primary-btn span {
  font-size: 28px;
  line-height: 1;
}

.clone-outline-btn {
  min-width: 172px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid #f43f4f;
  color: #f43f4f;
}

.clone-safe-btn {
  width: 62px;
  background: #f43f4f;
  color: #fff;
  font-size: 0;
}

.clone-safe-btn::before {
  content: "";
  width: 24px;
  height: 26px;
  display: block;
  clip-path: polygon(50% 0, 88% 18%, 80% 72%, 50% 100%, 20% 72%, 12% 18%);
  background: #fff;
}

.clone-secondary-cta {
  min-width: 220px;
}

.clone-tag-block {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.clone-folder-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  background: #fff2e8;
  border-radius: 999px;
  color: #ff6b19;
  font-size: 18px;
  font-weight: 760;
}

.clone-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  max-width: 100%;
  padding: 10px 26px;
  background: #e9efff;
  border-radius: 999px;
  color: #4f79ff;
  font-size: 20px;
  line-height: 1.15;
}

.clone-keywords a {
  color: #4f79ff;
}

.clone-microsite,
.clone-content-grid {
  display: grid;
  gap: 18px;
}

.clone-microsite {
  margin-top: 8px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(20, 24, 36, 0.08);
}

.clone-section-head {
  display: grid;
  gap: 8px;
  max-width: 980px;
}

.clone-section-head span {
  width: fit-content;
  padding: 4px 12px;
  background: #eef3ff;
  border-radius: 999px;
  color: #4f63d6;
  font-size: 13px;
  font-weight: 780;
}

.clone-section-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: 28px;
  line-height: 1.28;
}

.clone-section-head p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.clone-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.clone-channel-card {
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(244, 63, 79, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff, #f9fbff);
  border: 1px solid #e8edf5;
  border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.clone-channel-card:hover {
  border-color: rgba(244, 63, 79, 0.32);
  box-shadow: 0 14px 26px rgba(20, 24, 36, 0.09);
  transform: translateY(-2px);
}

.clone-channel-card small {
  width: fit-content;
  padding: 3px 9px;
  background: #fff1f3;
  border-radius: 999px;
  color: #f43f4f;
  font-size: 12px;
  font-weight: 780;
}

.clone-channel-card strong {
  color: #172033;
  font-size: 18px;
  line-height: 1.35;
}

.clone-channel-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.58;
}

.clone-channel-card em {
  align-self: end;
  color: #f43f4f;
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
}

.clone-module-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.clone-module-board section,
.clone-analysis-card,
.clone-info-columns section,
.clone-faq-card,
.clone-related-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(20, 24, 36, 0.06);
}

.clone-module-board section {
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.clone-module-board h3,
.clone-analysis-card h2,
.clone-info-columns h2,
.clone-faq-card h2,
.clone-related-card h2 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 20px;
}

.clone-module-board p,
.clone-analysis-card p,
.clone-faq-card p {
  color: #4f5660;
  line-height: 1.78;
}

.clone-module-board ul,
.clone-info-columns ul {
  margin: 0;
  padding-left: 20px;
  color: #4f5660;
  line-height: 1.8;
}

.clone-content-grid {
  margin-top: 18px;
}

.clone-analysis-card {
  padding: 24px;
}

.clone-analysis-card h2:not(:first-child) {
  margin-top: 24px;
}

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

.clone-info-columns section {
  padding: 18px;
}

.clone-faq-card,
.clone-related-card {
  padding: 22px;
}

.clone-faq-card > div {
  display: grid;
  gap: 10px;
}

.clone-faq-card details {
  padding: 14px 16px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 14px;
}

.clone-faq-card summary {
  cursor: pointer;
  color: #172033;
  font-weight: 760;
}

.clone-related-card > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.clone-related-card a {
  display: grid;
  gap: 4px;
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 14px;
}

.clone-related-card strong {
  color: #172033;
}

.clone-related-card span {
  color: #98a2b3;
  font-size: 13px;
}

.site-clone-page .comments-area,
.site-clone-page .comment-respond {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .clone-hero-grid {
    grid-template-columns: 1fr;
  }

  .clone-stat-line {
    margin-bottom: 28px;
  }

  .clone-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 860px) {
  .site-clone-page {
    background: #f5f6f8;
  }

  .clone-preview-frame,
  .clone-preview-frame > img {
    min-height: 280px;
  }

  .clone-identity h1 {
    font-size: 31px;
  }

  .clone-summary {
    font-size: 17px;
    line-height: 1.75;
  }

  .clone-facts {
    font-size: 15px;
  }

  .clone-facts span {
    flex-basis: 82px;
  }

  .clone-mirrors a {
    min-height: 34px;
    font-size: 15px;
  }

  .clone-primary-btn,
  .clone-outline-btn,
  .clone-safe-btn {
    min-height: 48px;
    font-size: 17px;
  }

  .clone-channel-grid,
  .clone-module-board,
  .clone-info-columns,
  .clone-related-card > div {
    grid-template-columns: 1fr 1fr;
  }

  .clone-keywords {
    border-radius: 18px;
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .site-clone-hero {
    padding-top: 14px;
  }

  .clone-hero-grid {
    gap: 18px;
  }

  .clone-preview-card {
    padding: 10px;
  }

  .clone-preview-frame,
  .clone-preview-frame > img {
    min-height: 230px;
  }

  .clone-stat-line {
    gap: 10px 14px;
    font-size: 14px;
  }

  .clone-facts > div {
    display: grid;
    gap: 6px;
  }

  .clone-facts span {
    flex-basis: auto;
  }

  .clone-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .clone-primary-btn,
  .clone-outline-btn,
  .clone-safe-btn {
    width: 100%;
    min-width: 0;
  }

  .clone-safe-btn {
    font-size: 16px;
  }

  .clone-safe-btn::before {
    margin-right: 8px;
  }

  .clone-safe-btn::after {
    content: "访问前自行核验";
  }

  .clone-channel-grid,
  .clone-module-board,
  .clone-info-columns,
  .clone-related-card > div {
    grid-template-columns: 1fr;
  }
}

/* Soft directory skin: less blocky, closer to mature navigation sites */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #172033;
  --muted: #697586;
  --line: #e8edf5;
  --accent: #3f63f2;
  --accent-dark: #2548d8;
  --shadow: 0 18px 46px rgba(31, 45, 78, 0.08);
  --soft-shadow: 0 10px 28px rgba(31, 45, 78, 0.06);
  --radius: 18px;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(63, 99, 242, 0.08), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, #f5f7fb 34%, #f5f7fb 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(226, 232, 240, 0.78);
  box-shadow: 0 8px 28px rgba(31, 45, 78, 0.04);
}

.brand-mark {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  box-shadow: 0 10px 20px rgba(63, 99, 242, 0.22);
}

.primary-nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

.primary-nav a:hover {
  background: #eef3ff;
}

.btn,
button,
.dhmip-submit-form button {
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(63, 99, 242, 0.18);
}

.btn-small {
  min-height: 36px;
  padding-inline: 16px;
}

.btn-ghost {
  background: #eef3ff;
  color: var(--accent);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #e3eaff;
  color: var(--accent-dark);
}

.nav-hero {
  padding: 30px 0 20px;
  background:
    radial-gradient(circle at 70% 10%, rgba(20, 184, 166, 0.13), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0));
  border-bottom: 0;
}

.nav-hero-inner {
  max-width: 980px;
}

.nav-hero-title h1 {
  margin-bottom: 8px;
  color: #111827;
  font-size: 34px;
  letter-spacing: 0;
}

.nav-hero-title p {
  margin-bottom: 18px;
  color: #667085;
}

.nav-search-form {
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  box-shadow: 0 22px 58px rgba(31, 45, 78, 0.11);
}

.nav-search-form input {
  min-height: 48px;
  padding-left: 20px;
  font-size: 15px;
}

.nav-search-form button {
  min-height: 48px;
  border-radius: 999px;
}

.nav-hero-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #98a2b3;
  font-size: 13px;
}

.nav-hero-actions a {
  color: var(--accent);
  font-weight: 650;
}

.nav-hotwords {
  margin-top: 12px;
}

.nav-hotwords a {
  background: rgba(255, 255, 255, 0.7);
  border-color: #e8edf5;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.nav-hotwords a:hover {
  color: var(--accent);
  border-color: rgba(63, 99, 242, 0.24);
  transform: translateY(-1px);
}

.nav-workspace {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding-top: 16px;
}

.nav-sidebar {
  top: 84px;
}

.sidebar-card,
.quick-panel,
.nav-section,
.notice-bar,
.theme-ad,
.nav-content-head {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.sidebar-card {
  padding: 12px;
}

.sidebar-card h2 {
  margin: 5px 8px 10px;
  color: #344054;
  font-size: 13px;
  letter-spacing: 0;
}

.sidebar-link {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #2444c9;
  background: linear-gradient(135deg, #eef3ff, #f4f7ff);
}

.submit-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.submit-card strong {
  display: block;
  color: #1d2939;
  font-size: 15px;
}

.sidebar-stats {
  display: grid;
  gap: 10px;
}

.sidebar-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: #f8fbff;
  border-radius: 14px;
}

.sidebar-stats strong {
  color: #1d2939;
  font-size: 18px;
}

.sidebar-stats span {
  color: var(--muted);
  font-size: 12px;
}

.nav-content {
  gap: 12px;
}

.nav-content-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
}

.nav-content-head div {
  display: grid;
  gap: 1px;
}

.nav-content-head strong {
  color: #1d2939;
  font-size: 16px;
}

.nav-content-head span,
.nav-content-head a {
  color: var(--muted);
  font-size: 13px;
}

.nav-content-head a {
  color: var(--accent);
  font-weight: 650;
}

.notice-bar {
  align-items: center;
  padding: 12px 16px;
  color: #475467;
}

.quick-panel,
.nav-section {
  padding: 16px;
}

.section-head.tight {
  margin-bottom: 12px;
}

.section-head.tight h2 {
  padding-left: 0;
  color: #172033;
  font-size: 18px;
}

.section-head.tight h2::before {
  display: none;
}

.section-head.tight h2::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: #14b8a6;
  vertical-align: middle;
}

.quick-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 9px;
}

.quick-grid a {
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr);
  place-items: stretch;
  align-items: center;
  justify-content: start;
  padding: 8px 10px;
  background: linear-gradient(180deg, #f9fbff, #f4f7fb);
  border-color: #edf1f7;
  border-radius: 16px;
  transition: all 0.18s ease;
}

.quick-grid a:hover {
  border-color: rgba(63, 99, 242, 0.25);
  box-shadow: 0 12px 26px rgba(31, 45, 78, 0.08);
}

.quick-grid span {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: #eef3ff;
  color: var(--accent);
}

.quick-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #28364d;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.site-card {
  position: relative;
  min-height: 118px;
  padding: 12px;
  gap: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #eaf0f7;
  border-radius: 18px;
  box-shadow: none;
  transition: all 0.18s ease;
}

.site-card:hover {
  border-color: rgba(63, 99, 242, 0.26);
  box-shadow: 0 14px 34px rgba(31, 45, 78, 0.1);
  transform: translateY(-2px);
}

.site-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 18px 0 0 18px;
  background: transparent;
}

.site-card:hover::before {
  background: linear-gradient(180deg, var(--accent), #14b8a6);
}

.site-card-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.22);
}

.site-card-main {
  gap: 9px;
}

.site-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 0;
  border-radius: 15px;
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px rgba(63, 99, 242, 0.08);
}

.site-icon img {
  width: 23px;
  height: 23px;
}

.site-info strong {
  color: #1d2939;
}

.site-info small {
  color: #8a95a5;
}

.site-card p {
  min-height: 36px;
  color: #667085;
}

.site-card-foot {
  gap: 7px;
  color: #98a2b3;
}

.tag {
  min-height: 22px;
  background: #ecfdf3;
  color: #039855;
}

.tag-soft {
  background: #eef3ff;
  color: var(--accent);
}

.tag-top {
  background: #fff7ed;
  color: #c2410c;
}

.visit-link {
  padding: 4px 10px;
  color: var(--accent);
  background: #eef3ff;
  border-radius: 999px;
}

.inline-empty {
  border-radius: 16px;
  background: #f9fbff;
}

.site-footer {
  background: rgba(255, 255, 255, 0.86);
}

.archive-hero {
  margin-top: 26px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.archive-hero h1 {
  font-size: 28px;
}

.archive-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
  max-width: 620px;
  margin-top: 16px;
  padding: 7px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.archive-search input {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.archive-search button {
  min-height: 40px;
}

.archive-category-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-category-strip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  font-size: 13px;
}

.archive-category-strip span {
  color: #98a2b3;
}

.archive-grid {
  margin-top: -6px;
}

.site-detail-head {
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.12), transparent 24%),
    linear-gradient(180deg, #fff, #fbfdff);
}

.site-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}

.site-detail-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  background: #f3f6fb;
  border-radius: 999px;
  color: #667085;
  font-size: 12px;
}

.site-detail-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.nav-entry,
.detail-side section,
.info-columns section,
.faq-section details,
.submit-panel {
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.detail-cta-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
}

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

.ad-entry-card p,
.monetization-card p,
.monetize-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.ad-entry-card .btn {
  margin-top: 12px;
  width: 100%;
}

.advertise-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
  padding: 34px 0 22px;
}

.advertise-hero h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 36px;
  line-height: 1.2;
}

.advertise-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.ad-preview-card,
.advertise-section,
.advertise-side section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.ad-preview-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.ad-preview-banner {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.2), transparent 26%),
    linear-gradient(135deg, #eef3ff, #f8fbff);
  color: var(--accent);
  font-weight: 800;
}

.ad-preview-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 16px;
}

.ad-preview-row span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}

.ad-preview-row.subtle span {
  background: #eef3ff;
  color: var(--accent);
}

.ad-preview-row strong {
  color: #1d2939;
}

.ad-preview-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.advertise-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 0 0 34px;
}

.advertise-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.advertise-section {
  padding: 18px;
}

.ad-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ad-type-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #edf1f7;
  border-radius: 18px;
}

.ad-type-card > span,
.native-ad-list article span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.ad-type-card h3,
.native-ad-list h3 {
  margin: 0;
  color: #1d2939;
  font-size: 18px;
}

.ad-type-card p,
.native-ad-list p,
.advertise-side p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.ad-type-card div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.ad-type-card strong,
.native-ad-price strong {
  color: var(--accent);
  font-size: 18px;
}

.ad-type-card a {
  color: var(--accent);
  font-weight: 700;
}

.native-ad-list {
  display: grid;
  gap: 10px;
}

.native-ad-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 18px;
}

.native-ad-price {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.ad-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ad-process span {
  display: grid;
  gap: 8px;
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 18px;
  color: #344054;
  font-weight: 650;
}

.ad-process strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eef3ff;
  color: var(--accent);
  font-size: 13px;
}

.advertise-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.advertise-side section {
  padding: 16px;
}

.advertise-side h2 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 18px;
}

.mini-package-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-package-list a,
.package-summary-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
  border-radius: 999px;
  color: #344054;
  font-size: 13px;
}

.mini-package-list strong,
.package-summary-list strong {
  color: var(--accent);
  font-size: 12px;
}

.monetize-section {
  background:
    radial-gradient(circle at 92% 0%, rgba(20, 184, 166, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.96));
}

.monetize-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.monetize-grid a {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 13px;
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 18px;
  transition: all 0.18s ease;
}

.monetize-grid a:hover {
  border-color: rgba(63, 99, 242, 0.25);
  box-shadow: 0 12px 26px rgba(31, 45, 78, 0.08);
  transform: translateY(-1px);
}

.monetize-grid strong {
  color: #1d2939;
  font-size: 14px;
}

.monetize-grid span {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.monetize-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.snapshot-card {
  overflow: hidden;
}

.site-screenshot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.benefit-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
}

.benefit-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.benefit-line:last-child {
  border-bottom: 0;
}

.benefit-line span {
  color: var(--muted);
  font-size: 13px;
}

.benefit-line strong {
  color: #1d2939;
  font-size: 13px;
  text-align: right;
}

.package-summary-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.submit-rules {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.9));
}

.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 18px;
}

.search-hero .archive-search {
  margin-top: 0;
}

.comment-respond,
.comments-area {
  margin-top: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.comment-respond h3,
.comments-area h2,
.comments-area h3 {
  margin-top: 0;
  color: #172033;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-weight: 650;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  color: var(--text);
  font: inherit;
}

.comment-form textarea {
  min-height: 130px;
  resize: vertical;
}

.comment-form .form-submit input {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
}

.submit-copy {
  position: sticky;
  top: 88px;
  align-self: start;
}

.submit-copy h1 {
  font-size: 30px;
}

.submit-steps,
.submit-benefits {
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.submit-steps {
  display: grid;
  gap: 10px;
}

.submit-steps span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #344054;
  font-weight: 650;
}

.submit-steps strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef3ff;
  color: var(--accent);
  font-size: 13px;
}

.submit-benefits h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.submit-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .nav-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-sidebar {
    position: static;
    display: block;
  }

  .sidebar-card:first-child {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .sidebar-card h2,
  .submit-card,
  .ad-entry-card,
  .monetization-card {
    display: none;
  }

  .sidebar-link {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid var(--line);
  }

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

  .submit-copy {
    position: static;
  }

  .search-hero {
    grid-template-columns: 1fr;
  }

  .advertise-hero,
  .advertise-layout {
    grid-template-columns: 1fr;
  }

  .ad-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .microsite-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-layout,
  .resource-layout,
  .portal-layout,
  .backup-domain-panel {
    grid-template-columns: 1fr;
  }

  .portal-feature-list,
  .resource-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nav-search-form {
    border-radius: 22px;
  }

  .nav-content-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-search {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .site-detail-actions {
    justify-items: stretch;
  }

  .microsite-head {
    display: grid;
  }

  .quick-grid,
  .compact-grid,
  .monetize-grid,
  .ad-type-grid,
  .ad-process,
  .microsite-link-grid,
  .microsite-module-grid,
  .source-shelf,
  .portal-feature-list,
  .resource-board,
  .backup-domain-list {
    grid-template-columns: 1fr;
  }

  .native-ad-list article {
    grid-template-columns: 1fr;
  }

  .native-ad-price {
    justify-items: stretch;
  }
}
