/* Inner page common styles: breadcrumb, two-column layout, pagination, article */

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__sep {
  color: var(--color-text-muted);
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== Page hero (small) ===== */
.page-hero {
  background: linear-gradient(135deg, #EAF1FF 0%, #F5F8FF 60%, #FFFFFF 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 20px;
}

.page-hero__title {
  font-size: 26px;
  font-weight: 800;
}

.page-hero__desc {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* ===== Two-column layout ===== */
.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: flex-start;
}

.layout-2col__main {
  min-width: 0;
}

.layout-2col__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 1100px) {
  .layout-2col { grid-template-columns: 1fr; }
}

/* ===== Filter bar ===== */
.filter-bar {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}

.filter-row__label {
  color: var(--color-text-muted);
  width: 60px;
  flex-shrink: 0;
}

.filter-row__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
}

.filter-chip:hover {
  color: var(--color-primary);
}

.filter-chip.is-active {
  background: var(--color-primary);
  color: #fff;
}

/* ===== News list item (list-style) ===== */
.news-list {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background .2s;
}

.news-item:last-child { border-bottom: 0; }

.news-item:hover {
  background: var(--color-bg-soft);
}

.news-item__cover {
  width: 200px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.news-item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-item__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.news-item__title:hover { color: var(--color-primary); }

.news-item__excerpt {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: auto;
}

.news-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-numbers li {
  margin: 0;
}

.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 13px;
  transition: all .2s;
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination .is-disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
  background: var(--color-bg-soft);
}

/* ===== Side widget ===== */
.widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
}

.widget__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget__title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 2px;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text);
  padding: 7px 0;
  cursor: pointer;
  border-bottom: 1px dashed var(--color-border-light);
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list li:hover { color: var(--color-primary); }

.rank-list .rank-no {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.rank-list li:nth-child(1) .rank-no { background: #EF4444; color: #fff; }
.rank-list li:nth-child(2) .rank-no { background: #F59E0B; color: #fff; }
.rank-list li:nth-child(3) .rank-no { background: #FACC15; color: #fff; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  transition: all .2s;
}

.tag-cloud a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* ===== Article ===== */
.article {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
}

.article__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 20px;
}

.article__meta span { display: inline-flex; align-items: center; gap: 4px; }

.article__summary {
  background: var(--color-primary-soft);
  border-left: 3px solid var(--color-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 24px;
}

.article__content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text);
}

.article__content p { margin-bottom: 18px; }
.article__content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--color-primary);
}
.article__content img,
.article-content img {
  display: block;
  max-width: min(100%, 850px);
  height: auto;
  border-radius: var(--radius-md);
  margin: 16px auto;
}
.article__content ul { margin: 0 0 18px 22px; list-style: disc; }
.article__content ul li { margin-bottom: 6px; }

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-light);
}

.article__tags .tag-link {
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: all .2s;
}
.article__tags .tag-link:hover { background: var(--color-primary-soft); color: var(--color-primary); }

.article__share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.article__share a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.article__share a:hover { background: var(--color-primary); color: #fff; }

/* ===== FAQ ===== */
.faq {
  margin-top: 24px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__title {
  background: var(--color-bg-soft);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
}

.faq__item {
  padding: 14px 18px;
  border-top: 1px solid var(--color-border-light);
}

.faq__q {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--color-text);
}

.faq__q::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  margin-right: 8px;
}

.faq__a {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  padding-left: 26px;
}

/* ===== Logo / Call detail ===== */
.detail-head {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
}

.detail-head__cover {
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.detail-head__cover svg { width: 70%; height: 70%; }

.detail-head__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.detail-head__subtitle {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.detail-head__props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 20px;
}

.detail-prop__label {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.detail-prop__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.detail-prop__value.price {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .detail-head { grid-template-columns: 1fr; }
  .detail-head__cover { aspect-ratio: 16 / 10; }
  .article { padding: 22px 18px; }
  .news-item { grid-template-columns: 1fr; }
  .news-item__cover { width: 100%; height: 160px; }
}

/* ===== Auth form (login/register) ===== */
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 460px));
  justify-content: center;
  gap: 20px;
  align-items: start;
}

.auth-card {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.auth-card__title {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}

.auth-card__subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d7dce5;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color .2s;
  background: #fff;
}

.form-input:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47,107,255,.15);
}

.btn--block {
  width: 100%;
  height: 46px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-label .required { color: var(--color-danger); margin-right: 2px; }

.form-help {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
}
.form-textarea:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47,107,255,.15);
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.form-row .form-input { flex: 1; }

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 12px;
  margin: 22px 0 18px;
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border-light);
}

.auth-card__footer {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 18px;
}
.auth-card__footer a { color: var(--color-primary); }

.register-card {
  max-width: 460px;
}

.auth-grid .auth-card {
  width: 100%;
  max-width: none;
  margin: 40px 0;
}

.login-card {
  border: 1px solid rgba(47,107,255,.10);
}

.auth-switch-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 52px;
}

.auth-standalone-page {
  min-height: 100vh;
  background: #f3f5f8;
}

.auth-standalone-page .auth-switch-wrap {
  min-height: 100vh;
  align-items: center;
  margin: 0;
  padding: 18px;
}

.auth-switch-card {
  width: min(100%, 392px);
  max-width: 392px;
  margin: 0;
  padding: 30px 32px 32px;
  border: 1px solid #e5e8ef;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.auth-brand {
  text-align: center;
  margin-bottom: 22px;
}

.auth-brand a {
  display: inline-block;
  font-size: 21px;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: .2px;
}

.auth-brand span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.auth-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid #e5e8ef;
  border-radius: 0;
  background: transparent;
}

.auth-tabs label {
  height: 42px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all .2s;
}

#auth_login:checked ~ .auth-tabs label[for="auth_login"],
#auth_register:checked ~ .auth-tabs label[for="auth_register"] {
  color: var(--color-primary);
  box-shadow: inset 0 -2px 0 var(--color-primary);
}

.auth-panel {
  display: none;
}

#auth_login:checked ~ .auth-panels .auth-panel--login,
#auth_register:checked ~ .auth-panels .auth-panel--register {
  display: block;
}

.auth-panel .btn[for] {
  cursor: pointer;
}

.auth-notice {
  border-radius: var(--radius-md);
  padding: 11px 12px;
  margin-bottom: 16px;
  background: var(--color-danger-soft);
  color: var(--color-danger);
  font-size: 13px;
  line-height: 1.6;
}

.auth-notice.is-success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.captcha-line {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.captcha-code {
  height: 46px;
  border-radius: 4px;
  background: #f6f8fc;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border: 1px solid #d7dce5;
}

@media (max-width: 520px) {
  .captcha-line {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-grid .auth-card {
    margin: 0 auto 18px;
  }
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}
.social-login a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all .2s;
}
.social-login a:hover { background: var(--color-primary); color: #fff; }

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.checkbox-line a { color: var(--color-primary); }

/* ===== Submit call page ===== */
.submit-call-hero,
.submit-call-layout {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

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

.submit-call-main.section {
  padding: 24px;
}

.submit-call-login {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.submit-call-login p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.submit-call-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.submit-call-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.submit-call-textarea {
  min-height: 220px;
}

.submit-call-editor {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.submit-call-editor .wp-editor-wrap {
  margin: 0;
}

.submit-call-editor .wp-editor-container {
  border: 0;
}

.submit-call-editor textarea.wp-editor-area {
  min-height: 320px;
  font-family: inherit;
  line-height: 1.7;
}

.submit-package-field {
  margin: 6px 0 18px;
}

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

.submit-package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: all .2s;
}

.submit-package-card:hover {
  border-color: rgba(47,107,255,.32);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.submit-package-card input {
  position: absolute;
  right: 12px;
  top: 12px;
}

.submit-package-card:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.submit-package-card__name {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 800;
  padding-right: 24px;
}

.submit-package-card__price {
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 800;
}

.submit-package-card__desc {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.submit-call-submit {
  min-width: 180px;
  align-self: flex-start;
}

.submit-call-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.submit-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 2;
}

.submit-call-tip {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 1000px) {
  .submit-call-layout {
    grid-template-columns: 1fr;
  }

  .submit-package-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Logo gallery channel page ===== */
.alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.alpha-bar a {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  transition: all .2s;
}
.alpha-bar a:hover, .alpha-bar a.is-active {
  background: var(--color-primary);
  color: #fff;
}

.color-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.color-bar a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-border);
  transition: transform .2s;
}
.color-bar a:hover { transform: scale(1.15); }
.color-bar a.is-active { box-shadow: 0 0 0 2px var(--color-primary); }

/* ===== Search result types ===== */
.search-stats {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.search-stats em { color: var(--color-primary); font-style: normal; font-weight: 600; }

.search-result mark {
  background: rgba(47,107,255,.18);
  color: var(--color-primary);
  padding: 0 2px;
}

/* ===== Member center ===== */
.member-hero,
.member-layout {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.member-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 1100px) { .member-layout { grid-template-columns: 1fr; } }

.member-side {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 12px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.member-profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 12px;
}
.member-profile-mini__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.member-profile-mini__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.member-profile-mini__level {
  font-size: 11px;
  color: var(--color-warning);
  background: var(--color-warning-soft);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
  display: inline-block;
}

.member-side-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: all .2s;
}
.member-side-menu li a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}
.member-side-menu li a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
}

.member-main {
  min-width: 0;
}

.member-welcome-card,
.member-panel,
.member-login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.member-welcome-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.member-welcome-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.member-welcome-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) { .member-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .member-stats { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.stat-card b {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

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

.member-action-grid a {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px;
  border: 1px solid transparent;
  transition: all .2s;
}

.member-action-grid a:hover {
  border-color: rgba(47,107,255,.25);
  transform: translateY(-2px);
}

.member-action-grid b {
  display: block;
  color: var(--color-text);
  font-size: 15px;
  margin-bottom: 6px;
}

.member-action-grid span {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.member-panel {
  padding: 22px;
}

.member-form {
  max-width: 520px;
}

.member-empty {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
}

.member-table-link {
  color: var(--color-primary);
  font-weight: 600;
}

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

.member-download-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  transition: all .2s;
}

.member-download-card:hover {
  border-color: rgba(47,107,255,.28);
  background: #fff;
}

.member-download-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #fff;
}

.member-download-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .member-welcome-card {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .member-action-grid,
  .member-download-grid {
    grid-template-columns: 1fr;
  }
}
.stat-card__label {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-card__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
}
.stat-card__value .unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 2px;
}
.stat-card__trend {
  font-size: 12px;
  color: var(--color-success);
}
.stat-card__trend.is-down { color: var(--color-danger); }

.member-tables {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  margin-bottom: 20px;
}
.member-tables__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.member-tables__head h3 {
  font-size: 16px;
  font-weight: 700;
}

.data-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.data-table th {
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--color-bg-soft); }
.data-table .actions a {
  color: var(--color-primary);
  margin-right: 12px;
  font-size: 13px;
}
.data-table .actions a.danger { color: var(--color-danger); }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 13px;
}
.empty-state svg { color: var(--color-text-muted); opacity: .5; margin-bottom: 12px; }

/* ===== Order cards ===== */
.order-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  padding: 16px 20px;
  margin-bottom: 14px;
  transition: box-shadow .2s;
}
.order-card:hover { box-shadow: var(--shadow-card); }
.order-card__head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-muted);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--color-border-light);
  margin-bottom: 12px;
}
.order-card__head .order-no { color: var(--color-text); font-weight: 600; }
.order-card__body {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 16px;
  align-items: center;
}
.order-card__cover {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.order-card__title { font-size: 14px; font-weight: 600; }
.order-card__sub { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.order-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}
.order-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

/* ===== Checkout ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 1100px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}
.checkout-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-card__title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 2px;
}

.pay-method {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pay-method__item {
  flex: 1;
  min-width: 160px;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all .2s;
}
.pay-method__item:hover { border-color: var(--color-primary); }
.pay-method__item.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.pay-method__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pay-method__icon.is-wechat { background: #07C160; color: #fff; }
.pay-method__icon.is-alipay { background: #1677FF; color: #fff; }
.pay-method__icon.is-balance { background: var(--color-warning-soft); color: var(--color-warning); }
.pay-method__name { font-size: 14px; font-weight: 600; }
.pay-method__sub { font-size: 11px; color: var(--color-text-muted); }

.price-detail {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.price-detail__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.price-detail__row strong { color: var(--color-text); }
.price-detail__row.discount { color: var(--color-danger); }
.price-detail__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 4px;
  border-top: 1px dashed var(--color-border);
  margin-top: 10px;
}
.price-detail__total strong {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: 800;
}

/* ===== Pay page ===== */
.pay-qr-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  max-width: 460px;
  margin: 20px auto;
  text-align: center;
}
.pay-qr-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pay-qr-card__sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}
.pay-qr-card__amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 22px;
}
.pay-qr-card__qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.pay-qr-card__tip {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.pay-qr-card__countdown {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}
.pay-qr-card__countdown strong { color: var(--color-danger); }
.pay-qr-card__methods {
  display: flex;
  justify-content: center;
  gap: 18px;
  border-top: 1px dashed var(--color-border-light);
  padding-top: 18px;
}
.pay-qr-card__methods a {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pay-qr-card__methods a.is-active { color: var(--color-primary); font-weight: 600; }

/* ===== Pay result ===== */
.pay-result {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 36px 40px;
  box-shadow: var(--shadow-card);
  max-width: 540px;
  margin: 20px auto;
  text-align: center;
}
.pay-result__icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.pay-result__icon.is-success { background: var(--color-success-soft); color: var(--color-success); }
.pay-result__icon.is-fail    { background: var(--color-danger-soft); color: var(--color-danger); }
.pay-result__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.pay-result__sub {
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  font-size: 14px;
}
.pay-result__info {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
  text-align: left;
}
.pay-result__info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  color: var(--color-text-secondary);
}
.pay-result__info-row strong { color: var(--color-text); }
.pay-result__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== Submit call form ===== */
.upload-area {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s;
}
.upload-area:hover { border-color: var(--color-primary); color: var(--color-primary); }
.upload-area svg { margin-bottom: 8px; }

.plan-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .plan-options { grid-template-columns: 1fr; } }

.plan-card {
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.plan-card:hover { border-color: var(--color-primary); }
.plan-card.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.plan-card.is-recommended::before {
  content: "推荐";
  position: absolute;
  top: -8px;
  right: 14px;
  background: var(--color-warning);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.plan-card__name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.plan-card__price .currency { font-size: 14px; }
.plan-card__features {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.plan-card__features li {
  display: flex;
  align-items: center;
  gap: 4px;
}
.plan-card__features li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 700;
}

/* ===== AI generation ===== */
.ai-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 1100px) { .ai-layout { grid-template-columns: 1fr; } }

.ai-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.style-card {
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.style-card:hover { border-color: var(--color-primary); }
.style-card.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
}
.style-card svg { width: 36px; height: 36px; margin-bottom: 4px; }

.color-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.color-pick a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-border);
}
.color-pick a.is-active { box-shadow: 0 0 0 2px var(--color-primary); }

.ai-result-area {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  min-height: 480px;
}

.ai-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .ai-result-grid { grid-template-columns: repeat(2, 1fr); } }

.ai-result-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .2s;
}
.ai-result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.ai-result-card__cover {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-result-card__cover svg { width: 60%; height: 60%; }
.ai-result-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.ai-result-card__actions {
  display: flex;
  gap: 8px;
}
.ai-result-card__actions a {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all .2s;
}
.ai-result-card__actions a:hover { background: var(--color-primary); color: #fff; }

.ai-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  color: var(--color-text-muted);
  text-align: center;
}
.ai-empty svg { color: var(--color-primary-soft); margin-bottom: 16px; }

.prompt-echo {
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.prompt-echo strong { color: var(--color-primary); flex-shrink: 0; }

/* ===== Tag page ===== */
.tag-hero {
  background: linear-gradient(135deg, #2F6BFF 0%, #4D8BFF 100%);
  color: #fff;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.tag-hero__name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.tag-hero__name::before {
  content: "#";
  margin-right: 6px;
  opacity: .6;
}
.tag-hero__desc {
  font-size: 14px;
  opacity: .9;
  margin-bottom: 16px;
  max-width: 720px;
}
.tag-hero__stats {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.tag-hero__stats span strong { font-size: 18px; margin-right: 4px; }

/* ============================================================
   Polish & Wrap Fixes (全站美化补丁 + 换行修复)
   ============================================================ */

/* 通用：避免长串英文/链接撑破容器 */
.section, .card, .article-card, .news-card, .call-card,
.order-card, .stat-card, .data-table td,
.member-tables, .ai-form, .ai-result-grid {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 卡片统一动效 */
.call-card, .logo-card, .news-card, .stat-card, .order-card,
.plan-card, .article-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.call-card:hover, .news-card:hover, .order-card:hover, .plan-card:hover,
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,17,21,.08);
  border-color: var(--color-primary);
}

/* 征集卡标题：最多 2 行省略 */
.call-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  min-height: 2.9em;
}
.call-card__meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 新闻卡：标题/摘要折行控制 */
.news-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.news-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 文章卡 */
.article-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 订单卡标题不截断但限两行 */
.order-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 表格：表头不换行，单元格按需折行 */
.data-table th { white-space: nowrap; }
.data-table td { vertical-align: middle; }
.data-table td a {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 征集表格在窄屏可水平滚动 */
.call-table { width: 100%; }
.home-call__body .call-table,
.section .data-table {
  display: table;
}
@media (max-width: 1024px) {
  .home-call__body .call-table,
  .section .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* 分类 Tabs / 标签：自动换行 + 圆角统一 */
.tabs, .home-call__cats, .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  row-gap: 8px;
}
.tab, .tabs__item, .filter-tab {
  white-space: nowrap;
  transition: all .18s;
}
.tab:hover, .tabs__item:hover, .filter-tab:hover {
  color: var(--color-primary);
}

/* Header 导航在窄屏可水平滚动 */
.site-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav__item { white-space: nowrap; }

/* Header 操作按钮缩小 gap */
.site-header__inner { gap: 16px; }

/* 收缩侧栏时主区呼吸 */
.site-wrap.is-sidebar-collapsed .site-main {
  padding-left: 24px;
  padding-right: 24px;
}

/* Footer 列在窄屏自动折行 */
.site-footer__top {
  flex-wrap: wrap;
  row-gap: 24px;
}

/* 面包屑长串折行 */
.breadcrumb a, .breadcrumb span {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  display: inline-block;
}

/* 表单输入聚焦动效 */
.form-input, .form-textarea, .form-select {
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}

/* Auth 卡片阴影增强 */
.auth-card {
  box-shadow: 0 20px 50px rgba(15,17,21,.08);
}

/* 价格徽章统一对齐 */
.call-card__price, .order-card__price, .price-detail__total b {
  font-variant-numeric: tabular-nums;
}

/* 会员侧栏菜单 hover 动效 */
.member-side-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 6px);
  color: var(--color-text-secondary);
  font-size: 14px;
  transition: all .15s;
}
.member-side-menu a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}
.member-side-menu a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
}

/* AI 结果卡 hover */
.ai-result-grid > * {
  transition: transform .2s, box-shadow .2s;
}
.ai-result-grid > *:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(126,91,255,.18);
}

/* 通用：按钮聚焦可见性 */
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 标签换行不留下孤立空隙 */
.tag-link { white-space: nowrap; }

/* 选择项 sticky 价格区适配 */
@media (max-width: 1100px) {
  .checkout-layout { grid-template-columns: 1fr !important; }
  .checkout-layout > aside { position: static !important; }
  .ai-layout { grid-template-columns: 1fr !important; }
  .member-layout { grid-template-columns: 1fr !important; }
  .member-side { position: static !important; }
}

/* 窄屏 hero 文字缩放 */
@media (max-width: 700px) {
  .ai-hero, .tag-hero {
    padding: 24px 18px !important;
  }
  .ai-hero h1, .tag-hero__name {
    font-size: 22px !important;
  }
  .section__head {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .section__title { font-size: 18px; }
}

/* 防止行内 strong / 价格被截断 */
.pay-result__info-row strong,
.price-detail__row strong {
  word-break: keep-all;
  white-space: nowrap;
}

/* News channel and article polish */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(77, 139, 255, .20), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f5f8ff 46%, #eef5ff 100%);
  box-shadow: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 36px solid rgba(47, 107, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero__title {
  max-width: 920px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
  letter-spacing: 0;
}
.page-hero__desc {
  max-width: 860px;
  font-size: 15px;
  line-height: 1.9;
}

body.page-id-74 .layout-2col {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}
body.page-id-74 .page-hero {
  padding: 26px 32px;
  margin-bottom: 18px;
}
body.page-id-74 .page-hero::after {
  right: -46px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-width: 26px;
}
body.page-id-74 .page-hero__title {
  font-size: 28px;
  line-height: 1.25;
}
body.page-id-74 .page-hero__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
}
body.page-id-74 .news-list {
  display: block;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
body.page-id-74 .news-item {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 18px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.page-id-74 .news-item:hover {
  transform: none;
  background: linear-gradient(90deg, rgba(248, 250, 255, .9), transparent 70%);
  box-shadow: none;
}
body.page-id-74 .news-item__cover {
  width: 220px;
  height: 138px;
  border-radius: 10px;
  background: #f4f6fa;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: inset 0 0 0 5px #fff;
  padding: 5px;
}
.news-item__img,
.news-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}
body.page-id-74 .news-item__title {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0;
}
body.page-id-74 .news-item__title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.page-id-74 .news-item__excerpt {
  font-size: 14px;
  line-height: 1.85;
  -webkit-line-clamp: 3;
}
body.page-id-74 .news-item__meta span {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
}
body.page-id-74 .widget {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
body.page-id-74 .widget__title::before {
  width: 4px;
  height: 16px;
  background: var(--color-primary);
}
body.page-id-74 .widget__title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  font-size: 16px;
}
body.page-id-74 .rank-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--color-text-secondary);
  transition: all .2s;
}
body.page-id-74 .rank-list li a::after {
  content: "›";
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1;
  transition: transform .2s, color .2s;
}
body.page-id-74 .rank-list li a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
body.page-id-74 .rank-list li a:hover::after {
  color: var(--color-primary);
  transform: translateX(2px);
}
body.page-id-74 .rank-list li {
  border-bottom: 0;
  padding: 2px 0;
}

/* Calls archive polish */
.calls-hero {
  padding: 26px 32px;
  margin-bottom: 18px;
}

.calls-hero::after {
  right: -46px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-width: 26px;
}

.calls-hero .page-hero__title {
  font-size: 28px;
  line-height: 1.25;
}

.calls-hero .page-hero__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.calls-archive {
  padding: 24px;
  box-shadow: none;
}

.calls-archive .section__head {
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.calls-archive .section__title {
  font-size: 20px;
}

.calls-archive .tabs {
  background: transparent;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.calls-archive .tabs__item {
  border: 1px solid rgba(148, 163, 184, .20);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
}

.calls-archive .tabs__item:hover {
  border-color: rgba(47,107,255,.35);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.calls-archive .tabs__item.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: none;
}

.calls-archive .call-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.calls-archive .call-card {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(148, 163, 184, .20), 0 10px 28px rgba(15,23,42,.05);
}

.calls-archive .call-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

.calls-archive .call-card__cover {
  margin: 10px 10px 0;
  width: calc(100% - 20px);
  border-radius: 10px;
  background: #f4f6fa;
  border: 1px solid rgba(148, 163, 184, .20);
  box-shadow: inset 0 0 0 5px #fff;
  padding: 5px;
}

.calls-archive .call-card__img,
.calls-archive .call-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.calls-archive .call-card__body {
  padding: 14px 16px 16px;
}

.calls-archive .call-card__price {
  font-size: 19px;
}

.calls-archive .call-card__title {
  font-size: 14px;
  line-height: 1.55;
}

.calls-archive .call-card__meta {
  color: var(--color-text-muted);
}

.calls-archive .call-card__foot {
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.calls-archive .pagination {
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .calls-archive .call-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .calls-archive {
    padding: 18px;
  }

  .calls-archive .section__head {
    flex-direction: column;
  }

  .calls-archive .call-cards {
    grid-template-columns: 1fr;
  }
}

/* Logo gallery archive polish */
.logos-hero,
.ai-logo-hero {
  padding: 26px 32px;
  margin-bottom: 18px;
}

.logos-hero::after,
.ai-logo-hero::after {
  right: -46px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-width: 26px;
}

.logos-hero .page-hero__title,
.ai-logo-hero .page-hero__title {
  font-size: 28px;
  line-height: 1.25;
}

.logos-hero .page-hero__desc,
.ai-logo-hero .page-hero__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.logos-archive {
  padding: 24px;
  box-shadow: none;
}

.logos-archive .section__head {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.logos-archive .gallery-filters {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: #fbfcff;
  box-shadow: none;
}

.logos-archive .gallery-filter-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, .16);
}

.logos-archive .gallery-filter-row:last-child {
  border-bottom: 0;
}

.logos-archive .gallery-filter__label {
  color: var(--color-text);
  font-weight: 500;
  line-height: 30px;
  white-space: nowrap;
}

.logos-archive .gallery-filter__label::before {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 4px rgba(47,107,255,.10);
}

.logos-archive .alpha-chip {
  border: 1px solid rgba(148, 163, 184, .20);
  background: #fff;
  color: var(--color-text-secondary);
  min-width: 38px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

.logos-archive .alpha-chip:hover {
  border-color: rgba(47,107,255,.35);
  background: var(--color-primary-soft);
}

.logos-archive .alpha-chip.is-active {
  border-color: rgba(47,107,255,.28);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: none;
}

.logos-archive .color-chip {
  width: auto;
  height: 30px;
  min-width: 66px;
  padding: 0 10px 0 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-text-secondary);
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, .20);
  position: relative;
  font-size: 12px;
  font-weight: 500;
}

.logos-archive .color-chips,
.logos-archive .alpha-chips {
  gap: 7px;
}

.logos-archive .color-chip::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--chip-color, #cbd5e1);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.12);
}

.logos-archive .color-chip::after {
  content: attr(title);
  display: inline;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.logos-archive .color-chip:hover,
.logos-archive .color-chip.is-active {
  border-color: rgba(47,107,255,.35);
  background: var(--color-primary-soft) !important;
  color: var(--color-primary) !important;
  box-shadow: none;
}

.logos-archive .color-chip.is-active::before {
  background: var(--color-primary);
}

.logos-archive .logo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.logos-archive .logo-card {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(148, 163, 184, .20), 0 10px 28px rgba(15,23,42,.05);
}

.logos-archive .logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

.logos-archive .logo-card__icon {
  margin: 10px 10px 0;
  width: calc(100% - 20px);
  border-radius: 10px;
  background: #f4f6fa;
  border: 1px solid rgba(148, 163, 184, .20);
  box-shadow: inset 0 0 0 5px #fff;
  padding: 5px;
}

.logos-archive .logo-card__img,
.logos-archive .logo-card__icon img {
  border-radius: 7px;
}

.taxonomy-logo-archive {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.tax-logo_letter .taxonomy-logo-archive,
body.tax-logo_industry .taxonomy-logo-archive,
body.tax-logo_color .taxonomy-logo-archive {
  padding: 22px 24px 24px;
}

body.tax-logo_letter .taxonomy-logo-archive .section__head,
body.tax-logo_industry .taxonomy-logo-archive .section__head,
body.tax-logo_color .taxonomy-logo-archive .section__head {
  align-items: center;
  min-height: auto;
}

body.tax-logo_letter .taxonomy-logo-archive .section__title,
body.tax-logo_industry .taxonomy-logo-archive .section__title,
body.tax-logo_color .taxonomy-logo-archive .section__title {
  font-size: 18px;
  line-height: 1.35;
}

body.tax-logo_letter .taxonomy-logo-archive .gallery-filters,
body.tax-logo_industry .taxonomy-logo-archive .gallery-filters,
body.tax-logo_color .taxonomy-logo-archive .gallery-filters {
  margin-bottom: 24px;
  background: #fff;
}

body.tax-logo_letter .logos-archive .alpha-chip.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

body.tax-logo_letter .taxonomy-logo-archive .logo-grid,
body.tax-logo_industry .taxonomy-logo-archive .logo-grid,
body.tax-logo_color .taxonomy-logo-archive .logo-grid {
  align-items: stretch;
}

.taxonomy-logo-archive .taxonomy-empty {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px dashed rgba(47, 107, 255, .24);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.taxonomy-logo-archive .taxonomy-empty h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.35;
}

.taxonomy-logo-archive .taxonomy-empty p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.taxonomy-logo-archive .taxonomy-empty a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 6px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
}

.taxonomy-fallback-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 16px;
  padding-top: 4px;
}

.taxonomy-fallback-head h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.35;
}

.taxonomy-fallback-head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* AI logo page polish */
.ai-logo-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.ai-logo-panel,
.ai-logo-layout .widget {
  box-shadow: none;
}

.ai-logo-panel {
  padding: 24px;
}

.ai-logo-panel .filter-bar {
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.ai-logo-panel .filter-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.ai-logo-panel .filter-row:last-of-type {
  border-bottom: 0;
}

.ai-logo-panel .filter-row__label {
  width: 72px;
  color: var(--color-text);
  font-weight: 700;
}

.ai-logo-panel .filter-chip {
  border: 1px solid rgba(148, 163, 184, .20);
  background: #fff;
  padding: 6px 13px;
}

.ai-logo-panel .filter-chip:hover {
  border-color: rgba(47,107,255,.35);
  background: var(--color-primary-soft);
}

.ai-logo-layout .widget {
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

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

@media (max-width: 900px) {
  .logos-archive .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-logo-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .logos-archive {
    padding: 18px;
  }

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

.single-logo_news .page-hero {
  padding: 28px 32px;
  margin-bottom: 20px;
}
.single-logo_news .page-hero::after {
  right: -48px;
  bottom: -62px;
  width: 160px;
  height: 160px;
  border-width: 26px;
}
.single-logo_news .page-hero__title {
  max-width: 980px;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.28;
}
.single-logo_news .page-hero__desc {
  max-width: 920px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
}
.single-logo_news .article-content {
  max-width: 960px;
  margin: 20px auto 0;
  padding: 28px clamp(18px, 3vw, 34px);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.single-logo_news .article_content {
  max-width: 920px;
  margin: 0 auto;
}
.single-logo_news .article-content p {
  margin: 18px 0;
  color: #344054;
  font-size: 16px;
  line-height: 2.05;
}
.single-logo_news .article-content > .wp-post-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  margin: 0 auto 26px;
  border-radius: 14px;
  box-shadow: none;
}
.single-logo_news .article-content img {
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: none;
}
.single-logo_news .article-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.single-logo_news .picture_two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.single-logo_news .picture_two p {
  margin: 0;
}
.single-logo_news .picture_two img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.single-logo_news .old_and_new_logo {
  margin: 26px auto;
  padding: 18px;
  border-radius: 18px;
  background: #f7f9fc;
  border: 1px solid rgba(148, 163, 184, .20);
}
.single-logo_news .old_and_new_logo img {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  body.page-id-74 .layout-2col {
    grid-template-columns: 1fr;
  }
  body.page-id-74 .news-item {
    grid-template-columns: 1fr;
  }
  body.page-id-74 .news-item__cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .single-logo_news .page-hero {
    padding: 30px 22px;
  }
  .single-logo_news .article-content {
    padding: 22px 16px;
    border-radius: 16px;
  }
  .single-logo_news .picture_two {
    grid-template-columns: 1fr;
  }
  .single-logo_news .picture_two img {
    height: auto;
  }
}

/* Single news page final override */
body.single-logo_news .page-hero {
  max-width: 1180px !important;
  margin: 0 auto 18px !important;
  padding: 24px 28px !important;
  border-radius: 16px !important;
}

body.single-logo_news .page-hero::after {
  right: -42px !important;
  bottom: -54px !important;
  width: 140px !important;
  height: 140px !important;
  border-width: 24px !important;
}

body.single-logo_news .page-hero__title {
  max-width: 900px !important;
  font-size: clamp(26px, 2.2vw, 34px) !important;
  line-height: 1.3 !important;
}

body.single-logo_news .page-hero__desc {
  max-width: 860px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

body.single-logo_news .article-content.section {
  max-width: 1180px !important;
  margin: 18px auto 0 !important;
  padding: 28px clamp(18px, 3vw, 34px) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.single-logo_news .article-content > .wp-post-image {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin: 0 auto 24px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

body.single-logo_news .article-content > :not(.wp-post-image) {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

body.single-logo_news .article-content img:not(.wp-post-image) {
  max-width: 100% !important;
  height: auto !important;
  box-shadow: none !important;
}

body.single .article-content,
body.single .article_content {
  overflow: visible !important;
  max-height: none !important;
}

body.single .article-content::after {
  content: "";
  display: block;
  clear: both;
}

/* AI Logo workspace */
.ai-tool-hero {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  background:
    radial-gradient(circle at 84% 22%, rgba(126, 91, 255, .22), transparent 28%),
    radial-gradient(circle at 16% 20%, rgba(47, 107, 255, .16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f6f8ff 52%, #eef3ff 100%);
}

.ai-history-hero {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.ai-tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: none;
}

.ai-tool-main {
  display: grid;
  gap: 18px;
}

.ai-tool-form {
  margin: 0;
}

.ai-tool-card,
.ai-preview-card,
.ai-status-card,
.ai-result-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 14px;
  box-shadow: none;
}

.ai-tool-card {
  padding: 20px;
}

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

.ai-tool-card__head h2,
.ai-preview-meta h2 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 750;
  color: var(--color-text);
}

.ai-tool-card__head p,
.ai-preview-meta p {
  margin-top: 5px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.ai-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  color: #6d28d9;
  background: #f3e8ff;
  font-size: 12px;
  white-space: nowrap;
}

.ai-live-dot.is-working {
  color: #0369a1;
  background: #e0f2fe;
}

.ai-live-dot.is-working::before {
  background: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .16);
}

.ai-live-dot.is-done {
  color: #047857;
  background: #d1fae5;
}

.ai-live-dot.is-done::before {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .16);
}

.ai-live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .16);
}

.ai-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

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

.ai-field input,
.ai-field select,
.ai-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.ai-field input,
.ai-field select {
  height: 42px;
  padding: 0 13px;
}

.ai-field textarea {
  resize: vertical;
  min-height: 118px;
  padding: 12px 13px;
  line-height: 1.7;
}

.ai-field input:focus,
.ai-field select:focus,
.ai-field textarea:focus {
  border-color: rgba(47, 107, 255, .5);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .08);
}

.ai-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 16px;
}

.ai-chip {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.ai-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2F6BFF, #7E5BFF);
}

.ai-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.ai-model {
  position: relative;
  display: block;
  padding: 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}

.ai-model:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 107, 255, .28);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
}

.ai-model input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ai-model.is-active {
  border-color: rgba(47, 107, 255, .35);
  background: linear-gradient(135deg, #eef4ff, #f7f2ff);
}

.ai-model b,
.ai-model span {
  display: block;
}

.ai-model b {
  color: var(--color-text);
  font-size: 13.5px;
  line-height: 1.45;
}

.ai-model span {
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.ai-tool-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.ai-tool-message {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  line-height: 1.6;
}

.ai-tool-message.is-success {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.ai-tool-message.is-error {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.ai-preview-card {
  overflow: hidden;
}

.ai-preview-stage {
  min-height: 290px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 107, 255, .24), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(126, 91, 255, .22), transparent 30%),
    linear-gradient(135deg, #f8fbff, #eef3ff);
}

.ai-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(47, 107, 255, .35);
  animation: ai-orbit 12s linear infinite;
}

.ai-orbit::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2F6BFF;
  box-shadow: 0 0 24px rgba(47, 107, 255, .5);
}

@keyframes ai-orbit {
  to { transform: rotate(360deg); }
}

.ai-preview-logo {
  position: relative;
  z-index: 1;
  width: 138px;
  height: 138px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 24px 50px rgba(47, 107, 255, .18);
  backdrop-filter: blur(12px);
}

.ai-preview-meta {
  padding: 18px;
}

.ai-status-card {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ai-steps-card {
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.ai-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
  color: var(--color-text-secondary);
  background: #f8fafc;
}

.ai-step span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #64748b;
  background: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
}

.ai-step b {
  font-size: 13px;
}

.ai-step.is-active,
.ai-step.is-done {
  color: #1d4ed8;
  background: #eff6ff;
}

.ai-step.is-active span,
.ai-step.is-done span {
  color: #fff;
  background: #2F6BFF;
}

.ai-preview-stage.is-generating .ai-preview-logo {
  animation: ai-preview-pulse 1.2s ease-in-out infinite;
}

@keyframes ai-preview-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.ai-status-card div {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.ai-status-card span,
.ai-status-card b {
  display: block;
}

.ai-status-card span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.ai-status-card b {
  margin-top: 5px;
  color: var(--color-text);
  font-size: 16px;
}

.ai-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: none;
}

.ai-result-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.ai-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .09);
}

.ai-history-layout {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: none;
}

.ai-history-login {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: none;
}

.ai-history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 14px;
  background: #fbfcff;
  box-shadow: none;
}

.ai-history-toolbar h2 {
  font-size: 19px;
  line-height: 1.35;
  color: var(--color-text);
}

.ai-history-toolbar p {
  margin-top: 5px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.ai-history-toolbar b {
  color: var(--color-primary);
}

.ai-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-history-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.ai-history-card__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #f8fafc;
}

.ai-history-card__body {
  min-width: 0;
}

.ai-history-card__meta,
.ai-history-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.ai-history-card h3 {
  margin-top: 6px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.45;
}

.ai-history-card p {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.ai-history-card__foot {
  margin-top: 12px;
}

.ai-history-card__foot span {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #475569;
}

.ai-result-card > span {
  position: absolute;
  right: 16px;
  top: 14px;
  color: rgba(47, 107, 255, .14);
  font-size: 38px;
  font-weight: 800;
}

.ai-result-card b {
  display: block;
  margin-top: 12px;
  color: var(--color-text);
  font-size: 15px;
}

.ai-result-card p {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.ai-mini-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: conic-gradient(from 120deg, #2F6BFF, #7E5BFF, #2F6BFF);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, .72);
}

.ai-mini-logo--green {
  background: conic-gradient(from 120deg, #14b8a6, #22c55e, #2F6BFF, #14b8a6);
}

.ai-mini-logo--orange {
  background: conic-gradient(from 120deg, #f97316, #facc15, #ef4444, #f97316);
}

@media (max-width: 1100px) {
  .ai-tool-shell {
    grid-template-columns: 1fr;
  }

  .ai-tool-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .ai-form-grid,
  .ai-model-list,
  .ai-result-grid,
  .ai-status-card {
    grid-template-columns: 1fr;
  }

  .ai-tool-card,
  .ai-preview-meta {
    padding: 16px;
  }

  .ai-preview-stage {
    min-height: 220px;
  }

  .ai-history-toolbar,
  .ai-history-card {
    grid-template-columns: 1fr;
  }

  .ai-history-toolbar {
    align-items: flex-start;
  }

  .ai-history-grid {
    grid-template-columns: 1fr;
  }
}

/* Search grouped results */
.search-hero {
  width: 100%;
  padding: 22px 30px;
  margin-bottom: 18px;
}

.search-hero::after {
  right: -44px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-width: 26px;
}

.search-hero .breadcrumb {
  margin-bottom: 12px;
}

.search-hero .page-hero__title {
  font-size: 28px;
  line-height: 1.22;
}

.search-hero .page-hero__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.taxonomy-hero {
  padding: 22px 30px;
  margin-bottom: 18px;
}

.taxonomy-hero::after {
  right: -44px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-width: 26px;
}

.taxonomy-hero .breadcrumb {
  margin-bottom: 12px;
}

.taxonomy-hero .page-hero__title {
  font-size: 28px;
  line-height: 1.22;
}

.taxonomy-hero .page-hero__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}

section.search-results {
  width: 100%;
  margin: 0 0 24px;
  display: grid;
  gap: 18px;
}

.search-section {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 16px;
  padding: 20px;
}

.search-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 16px;
}

.search-section__title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-text);
}

.search-section__count {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.search-section__more {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-size: 13px;
}

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

.search-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.search-card:hover {
  border-color: rgba(47, 107, 255, .35);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.search-card.no-cover {
  display: block;
  min-height: 0;
}

.search-card__cover {
  display: block;
  width: 220px;
  height: 132px;
  border-radius: 10px;
  overflow: hidden;
  background: #F8FAFC;
}

.search-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.search-card--logo_news .search-card__img,
.search-card--logo_call .search-card__img {
  object-fit: cover;
}

.search-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.search-card__title {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card__title:hover {
  color: var(--color-primary);
}

.search-card__excerpt {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card__meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.search-card.no-cover .search-card__body {
  min-height: 122px;
}

.search-empty {
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  padding: 18px;
  color: var(--color-text-muted);
  background: #F8FAFC;
  font-size: 13px;
}

.search-empty--all {
  text-align: center;
  padding: 24px;
}

body.tag .taxonomy-hero,
body.tag .taxonomy-tag-results {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

body.tag .taxonomy-tag-results {
  display: block;
  margin-bottom: 28px;
}

body.tag .taxonomy-tag-results .search-section {
  margin-bottom: 20px;
  padding: 0 24px 8px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

body.tag .taxonomy-tag-results .search-section__head {
  padding: 20px 0 14px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

body.tag .taxonomy-tag-results .search-grid {
  display: block;
}

body.tag .taxonomy-tag-results .search-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.tag .taxonomy-tag-results .search-card:last-child {
  border-bottom: 0;
}

body.tag .taxonomy-tag-results .search-card:hover {
  border-color: rgba(148, 163, 184, .18);
  background: linear-gradient(90deg, rgba(248, 250, 255, .9), transparent 70%);
  box-shadow: none;
  transform: none;
}

body.tag .taxonomy-tag-results .search-card.no-cover {
  display: block;
}

body.tag .taxonomy-tag-results .search-card__cover {
  width: 220px;
  height: 138px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: #f4f6fa;
  box-shadow: inset 0 0 0 5px #fff;
  padding: 5px;
}

body.tag .taxonomy-tag-results .search-card__img {
  border-radius: 7px;
}

body.tag .taxonomy-tag-results .search-card__title {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0;
}

body.tag .taxonomy-tag-results .search-card__excerpt {
  font-size: 14px;
  line-height: 1.85;
  -webkit-line-clamp: 3;
}

body.tag .taxonomy-tag-results .search-card__meta span {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
}

/* Unified compact hero for all inner pages */
.site-main .page-hero {
  width: 100%;
  padding: 22px 30px;
  margin-bottom: 18px;
  border-radius: 16px;
}

.site-main .page-hero::after {
  right: -44px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-width: 26px;
}

.site-main .page-hero .breadcrumb {
  margin-bottom: 12px;
}

.site-main .page-hero__title {
  max-width: 920px;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: 0;
}

.site-main .page-hero__desc {
  max-width: 860px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .search-card__cover {
    width: 180px;
    height: 112px;
  }
}

@media (max-width: 640px) {
  .search-hero,
  .search-section {
    border-radius: 12px;
    padding: 16px;
  }

  .search-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-card,
  .search-card.no-cover {
    display: block;
  }

  .search-card__cover {
    width: 100%;
    height: 170px;
    margin-bottom: 12px;
  }

  body.tag .taxonomy-tag-results .search-section {
    padding: 0 16px 6px;
  }

  body.tag .taxonomy-tag-results .search-card,
  body.tag .taxonomy-tag-results .search-card.no-cover {
    display: block;
    padding: 18px 0;
  }

  body.tag .taxonomy-tag-results .search-card__cover {
    width: 100%;
    height: 170px;
    margin-bottom: 12px;
  }

  .site-main .page-hero {
    padding: 18px;
  }

  .site-main .page-hero__title {
    font-size: 24px;
  }
}

body.single .content-panel {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 22px clamp(18px, 3vw, 34px);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

body.single-logo_call .page-hero,
.call-single-summary,
body.single-logo_call .article-content.section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.call-single-summary {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(47, 107, 255, .16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 22%, rgba(47, 107, 255, .12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.call-single-summary__amount-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f6bff, #5d8cff);
  color: #fff;
  box-shadow: 0 16px 34px rgba(47, 107, 255, .22);
}

.call-single-summary__kicker {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .78;
}

.call-single-summary__amount-box strong {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.call-single-summary__amount-box em {
  margin-top: 8px;
  font-size: 13px;
  font-style: normal;
  opacity: .86;
}

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

.call-single-summary__item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
}

.call-single-summary__item span {
  display: block;
  margin-bottom: 7px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.call-single-summary__item b {
  display: block;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.45;
}

.call-single-summary__item.is-deadline b {
  color: #dc2626;
}

.call-single-summary__item.is-status b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, .12);
  color: #15803d;
}

.call-single-summary__link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: #0f172a;
  color: #fff;
  white-space: nowrap;
}

.call-single-summary__link:hover {
  background: var(--color-primary);
  color: #fff;
}

body.single-logo_call .article-content.section {
  margin-top: 18px;
  padding: 28px clamp(18px, 3vw, 34px);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  background: #fff;
}

body.single-logo_gallery .page-hero,
.logo-single-panel {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.logo-single-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}

.logo-single-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 0;
  min-height: 420px;
}

.logo-single-media {
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 48px);
  background:
    radial-gradient(circle at 24% 22%, rgba(47, 107, 255, .10), transparent 28%),
    linear-gradient(135deg, #f8fafc, #eef4ff);
}

.logo-single-image {
  display: block;
  width: min(100%, 680px);
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.logo-single-empty {
  display: grid;
  place-items: center;
  width: min(100%, 520px);
  aspect-ratio: 1 / .72;
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .18);
}

.logo-single-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.logo-single-kicker {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.logo-single-aside h2 {
  margin: 0 0 18px;
  color: var(--color-text);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
}

.logo-single-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, .16);
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.logo-single-meta div {
  min-width: 0;
}

.logo-single-meta span,
.logo-download-block span,
.logo-license {
  color: var(--color-text-muted);
  font-size: 12px;
}

.logo-single-meta b {
  display: block;
  margin-top: 5px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.logo-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.logo-tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  transition: background .2s, color .2s;
}

.logo-tag-list a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.logo-download-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 0 0;
}

.logo-download-block strong {
  display: block;
  margin-top: 4px;
  color: var(--color-text);
  font-size: 15px;
}

.logo-download-block.is-empty strong {
  color: var(--color-text-secondary);
}

.logo-download-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #64748b;
  white-space: nowrap;
}

.logo-license {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, .22);
  line-height: 1.65;
}

.logo-single-content {
  padding: 28px clamp(22px, 4vw, 48px) 38px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

.logo-single-copy {
  max-width: 850px;
  margin: 0 auto;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.85;
}

.logo-single-copy + .logo-single-copy {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

.logo-single-copy h2 {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.4;
  color: var(--color-text);
}

.logo-single-copy strong {
  color: var(--color-text);
  font-weight: 750;
}

.logo-single-copy p {
  margin-bottom: 16px;
}

.logo-single-copy img {
  display: block;
  max-width: min(100%, 850px);
  height: auto;
  margin: 18px auto;
  border-radius: 14px;
}

@media (max-width: 760px) {
  .call-single-summary {
    grid-template-columns: 1fr;
  }

  .call-single-summary__grid {
    grid-template-columns: 1fr;
  }

  .call-single-summary__link {
    width: 100%;
  }

  .logo-single-top {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .logo-single-media,
  .logo-single-aside,
  .logo-single-content {
    padding: 20px;
  }

  .logo-single-meta {
    grid-template-columns: 1fr;
  }

  .logo-download-block {
    align-items: stretch;
    flex-direction: column;
  }

  .logo-download-block .btn,
  .logo-download-empty {
    width: 100%;
  }
}

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

.single-section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-text);
}

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

.single-page-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.single-page-links > span {
  font-size: 13px;
  color: var(--color-text-muted);
}

.single-page-links > div {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.single-page-links a,
.single-page-links .post-page-numbers,
.single-page-links em {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-style: normal;
}

.single-page-links a:hover,
.single-page-links .post-page-numbers.current {
  border-color: rgba(47, 107, 255, .34);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.single-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.single-post-nav__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: #fbfcff;
  transition: border-color .2s, background .2s, transform .2s;
}

.single-post-nav__item:hover {
  border-color: rgba(47, 107, 255, .28);
  background: #f7faff;
  transform: translateY(-1px);
}

.single-post-nav__item span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.single-post-nav__item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
}

.single-post-nav__item.is-disabled {
  pointer-events: none;
  opacity: .55;
}

.single-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.single-related-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.single-related-card:hover {
  border-color: rgba(47, 107, 255, .28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  transform: translateY(-2px);
}

.single-related-card.no-cover {
  display: flex;
  min-height: 132px;
  background:
    radial-gradient(circle at 12% 16%, rgba(47, 107, 255, .10), transparent 28%),
    linear-gradient(135deg, #ffffff, #f8fbff);
}

.single-related-card__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef4ff;
}

.single-related-card__cover img,
.single-related-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-related-card__body {
  padding: 12px 13px 14px;
}

.single-related-card.no-cover .single-related-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
}

.single-related-card__body strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.single-related-card.no-cover .single-related-card__body strong {
  min-height: 0;
  -webkit-line-clamp: 3;
  font-size: 15px;
  font-weight: 750;
}

.single-related-card__body span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.single-comments__empty {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.comment-form-captcha {
  display: grid;
  grid-template-columns: auto auto 120px;
  align-items: center;
  justify-content: start;
  gap: 10px;
  margin: 12px 0 16px;
}

.comment-form-captcha label {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 650;
}

.comment-form-captcha__question {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 750;
}

.comment-form-captcha input[type="text"] {
  width: 120px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, .36);
  border-radius: 10px;
  background: #fff;
}

.single-comment-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.single-comment-list .comment {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 12px;
  background: #fbfcff;
}

.single-comments .comment-reply-title {
  margin: 18px 0 12px;
  font-size: 16px;
}

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

.single-comments .comment-form textarea,
.single-comments .comment-form input[type="text"],
.single-comments .comment-form input[type="email"],
.single-comments .comment-form input[type="url"] {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.single-comments .form-submit {
  margin: 0;
}

.single-comments .submit {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .single-post-nav,
  .single-related__grid {
    grid-template-columns: 1fr;
  }

  .comment-form-captcha {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .comment-form-captcha input[type="text"] {
    width: 100%;
  }
}

/* Tag archive pages use the same centered reading width as list pages. */
body.archive.tag .site-main .main-inner {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

body.archive.tag .site-main .taxonomy-hero,
body.archive.tag .site-main .taxonomy-tag-results {
  width: 100%;
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.archive.tag .site-main .taxonomy-hero {
  text-align: left;
}

/* Final tag archive alignment: match the search results page layout. */
body.archive.tag {
  white-space: normal;
}

body.archive.tag .site-main .main-inner {
  width: auto;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

body.archive.tag .site-main .taxonomy-hero,
body.archive.tag .site-main .taxonomy-tag-results {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.archive.tag .taxonomy-tag-results {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

body.archive.tag .taxonomy-tag-results .search-section {
  margin-bottom: 0;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}

body.archive.tag .taxonomy-tag-results .search-section__head {
  padding: 0 0 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

body.archive.tag .taxonomy-tag-results .search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.archive.tag .taxonomy-tag-results .search-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transform: none;
}

body.archive.tag .taxonomy-tag-results .search-card:last-child {
  border-bottom: 1px solid var(--color-border-light);
}

body.archive.tag .taxonomy-tag-results .search-card:hover {
  border-color: rgba(47, 107, 255, .35);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

body.archive.tag .taxonomy-tag-results .search-card.no-cover {
  display: block;
  min-height: 0;
}

body.archive.tag .taxonomy-tag-results .search-card__cover {
  display: block;
  width: 220px;
  height: 132px;
  margin-bottom: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: none;
  padding: 0;
}

body.archive.tag .taxonomy-tag-results .search-card__img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  display: block;
  background: #fff;
}

body.archive.tag .taxonomy-tag-results .search-card--logo_news .search-card__img,
body.archive.tag .taxonomy-tag-results .search-card--logo_call .search-card__img {
  object-fit: cover;
}

body.archive.tag .taxonomy-tag-results .search-card__title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

body.archive.tag .taxonomy-tag-results .search-card__excerpt {
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  body.archive.tag .taxonomy-tag-results .search-grid {
    grid-template-columns: 1fr;
  }

  body.archive.tag .taxonomy-tag-results .search-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  body.archive.tag .taxonomy-tag-results .search-card__cover {
    width: 180px;
    height: 112px;
  }
}

@media (max-width: 640px) {
  body.archive.tag .taxonomy-tag-results .search-section {
    border-radius: 12px;
    padding: 16px;
  }

  body.archive.tag .taxonomy-tag-results .search-card,
  body.archive.tag .taxonomy-tag-results .search-card.no-cover {
    display: block;
  }

  body.archive.tag .taxonomy-tag-results .search-card__cover {
    width: 100%;
    height: 170px;
    margin-bottom: 12px;
  }
}

