/* 机构目录 - 纯静态样式 */
:root {
  --bg: #f5f6fa;
  --card-bg: #fff;
  --text: #2c3e50;
  --text-muted: #6c757d;
  --border: #e2e8f0;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.header {
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  text-align: left;
}

.header h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.header h1.title-bilingual {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.header h1 .title-zh {
  font-size: 1rem;
  font-weight: 600;
}

.header h1 .title-en {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 语言切换 - 可搜索下拉 */
.header-lang {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  max-width: 220px;
}

.lang-trigger {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  min-width: 160px;
  max-width: 250px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.42rem;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.lang-trigger:hover {
  border-color: #cbd5e1;
}

.lang-trigger-flag {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.lang-trigger-flag img {
  width: 1.25rem;
  height: 0.95rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.lang-trigger-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  line-height: 1.15;
  max-height: none;
  display: block;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lang-trigger-caret {
  color: #8a96a8;
  font-size: 0.9rem;
  margin-left: auto;
  padding-top: 0.1rem;
}

@media (max-width: 640px) {
  .header-lang .lang-trigger {
    min-width: auto;
    max-width: 52px;
    width: 52px;
    padding: 0.42rem 0.45rem;
    justify-content: center;
    gap: 0;
  }

  .header-lang .lang-trigger-label,
  .header-lang .lang-trigger-caret {
    display: none;
  }

  .contact-lang-trigger {
    max-width: none;
    width: 100%;
    padding: 0.45rem 0.6rem;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .contact-lang-trigger .lang-trigger-label,
  .contact-lang-trigger .lang-trigger-caret {
    display: inline;
  }
}

.lang-menu {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: min(92vw, 380px);
  max-height: 440px;
  background: #ebedf0;
  border: 1px solid #d7dce3;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 10px;
  z-index: 1100;
}

.footer-note {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 1.2rem;
}

.footer-note-inner {
  color: #8a93a1;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.lang-search-wrap {
  position: sticky;
  top: 0;
  padding-bottom: 8px;
  background: #ebedf0;
}

#lang-search {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #e3e5ea;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  color: #5f6f86;
}

#lang-search:focus {
  outline: none;
  border-color: #b8c1ce;
}

.lang-list {
  max-height: 355px;
  overflow-y: auto;
  padding-right: 2px;
}

.lang-item {
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.55rem 0.65rem;
  color: #202a35;
  font-size: 1rem;
  cursor: pointer;
}

.lang-item:hover {
  background: #d8dbe2;
}

.lang-item.active {
  background: #c4c8d0;
  font-weight: 600;
}

.lang-item-flag {
  min-width: 1.7rem;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.country-item-flag {
  min-width: 1.35rem;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.country-flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
}

.lang-item-flag img {
  width: 1.35rem;
  height: 1rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.country-item-flag img {
  width: 1.35rem;
  height: 1rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.country-flag-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-item-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0.55rem 1rem;
}

body {
  scroll-padding-top: 0;
}

/* 筛选区 */
.filters {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
  background: var(--card-bg);
  padding: 0.01rem 0.26rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 0.1rem;
  position: sticky;
  top: 0;
  z-index: 900;
  border: 1px solid #edf1f6;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.filter-group label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #94a3b8;
}

.filter-group select,
.filter-group input {
  padding: 0.36rem 0.58rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.86rem;
  min-width: 140px;
}

.filter-search-top {
  width: 100%;
  margin-bottom: 0;
  gap: 0;
}

.search-token-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 1.6rem;
  border: 1px solid #e7ecf3;
  border-radius: 999px;
  padding: 0.08rem 0.24rem;
  background: #fbfcfe;
}

.search-country-tokens {
  margin-top: 0.08rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem;
}

.search-country-tokens:empty {
  display: none;
  margin-top: 0;
}

.search-country-token {
  border: 1px solid #cfe2ff;
  background: #eef5ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.search-country-token-remove {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 0.9rem;
}

.search-token-wrap #search-name {
  border: 0;
  box-shadow: none;
  min-width: 90px;
  flex: 1;
  padding: 0.02rem 0.16rem;
  font-size: 0.72rem;
  background: transparent;
}

.search-token-wrap #search-name::placeholder {
  font-size: 0.64rem;
  color: #94a3b8;
}

.search-token-wrap #search-name:focus {
  outline: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  margin-top: -0.16rem;
}

.filter-row > .filter-group {
  flex: 1 1 calc(50% - 0.28rem);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-picker,
.trust-picker {
  position: relative;
  min-width: 120px;
  width: fit-content;
}

.country-trigger,
.trust-trigger {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0.03rem 0.01rem;
  font-size: 0.7rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.18rem;
  cursor: pointer;
  min-height: 1.14rem;
}

.country-trigger-caret,
.trust-trigger-caret {
  color: var(--text);
  font-size: 0.62rem;
}

.country-menu,
.trust-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -88px;
  width: 100%;
  min-width: 190px;
  max-height: 260px;
  overflow: hidden;
  border: 1px solid #e7ecf3;
  border-radius: 10px;
  background: #fbfcfe;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  z-index: 900;
}

.country-list,
.trust-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

.country-item,
.trust-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  font-size: 0.82rem;
}

.country-item:hover,
.trust-item:hover {
  background: #f1f5fb;
}

.country-item.active,
.trust-item.active {
  background: #e8f0ff;
}

.country-item-check {
  margin-left: auto;
  color: #1d4ed8;
  font-size: 0.74rem;
}

/* 结果统计 */
.results-meta {
  display: none;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 结果列表 - 卡片式，便于扩展大量数据 */
.results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
}

.result-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 0.56rem 0.58rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.result-card.is-updated-today {
  border-color: #f59e0b;
  animation: updatedPulse 1.1s ease-out;
}

.result-card.is-just-promoted {
  animation: updatedSlideIn 0.7s cubic-bezier(.22,.9,.24,1), updatedPulse 1.1s ease-out;
}

.updated-today-badge {
  display: inline-block;
  margin: -0.15rem 0 0.6rem;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7c5b00;
  background: #fff4ce;
  border: 1px solid #f8d77d;
}

@keyframes updatedPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
}

@keyframes updatedSlideIn {
  0% {
    opacity: 0;
    transform: translateX(36px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.result-card:hover {
  box-shadow: var(--shadow-hover);
}

.result-card h3 {
  margin: 0 0 0.24rem;
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.3;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-title-row h3 {
  margin-bottom: 0.24rem;
}

.card-contact-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid #cfe2ff;
  background: #eef5ff;
  color: #1d4ed8;
  text-decoration: none;
  line-height: 1;
  padding: 0 0.52rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.card-contact-btn:hover {
  background: #dbeafe;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.32rem;
}

.header-lang .lang-trigger {
  min-width: 84px;
  max-width: 140px;
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2vh 0;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
}

.contact-modal-dialog {
  position: relative;
  width: min(92vw, 460px);
  margin: 2vh auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-close:hover {
  background: #f8fafc;
  color: var(--text);
}

.contact-modal-dialog h2 {
  margin: 0;
  font-size: 1.1rem;
}

.contact-modal-hint {
  margin: 0.45rem 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.contact-agency {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.38rem;
}

.contact-form-grid label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.contact-form-grid input,
.contact-form-grid select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.48rem 0.65rem;
  font-size: 0.95rem;
}

.contact-form-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.48rem 0.65rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.field-optional {
  color: var(--text-muted);
  font-weight: 400;
}

.contact-lang-picker {
  position: relative;
}

.contact-lang-trigger {
  width: 100%;
  max-width: none;
  justify-content: flex-start;
}

.contact-lang-trigger .lang-trigger-label {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contact-lang-menu {
  left: 0;
  right: auto;
  width: 100%;
  max-width: none;
  max-height: 300px;
  background: #fff;
  border-color: var(--border);
  overflow: hidden;
  padding: 8px;
}

.contact-lang-menu .lang-search-wrap {
  background: #fff;
  padding-bottom: 8px;
}

#contact-lang-search {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

.contact-lang-menu .lang-list {
  max-height: 220px;
  padding-right: 0;
  background: #fff;
}

.contact-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

@media (max-width: 640px) {
  .main {
    padding: 0 0.36rem 0.7rem;
  }

  .filters {
    padding: 0.45rem 0.5rem;
    gap: 0.32rem;
    margin-bottom: 0.5rem;
  }

  .header-lang {
    right: 8px;
    bottom: 8px;
  }

  .header-lang .lang-trigger {
    min-width: 56px;
    max-width: 110px;
    padding: 0.48rem 0.22rem;
  }

  .country-menu,
  .trust-menu {
    left: -52px;
    min-width: 170px;
  }

  .search-country-tokens {
    gap: 0.14rem;
    margin-top: 0.05rem;
  }

  .search-country-token {
    padding: 0.1rem 0.32rem;
    font-size: 0.66rem;
    gap: 0.16rem;
    line-height: 1.1;
  }

  .search-country-token .country-item-flag img {
    width: 0.86rem;
    height: 0.64rem;
  }

  .search-country-token-remove {
    font-size: 0.78rem;
  }

  .contact-modal {
    padding: 8px 0 calc(10px + env(safe-area-inset-bottom));
  }

  .contact-modal-dialog {
    width: calc(100vw - 16px);
    margin: 0 auto;
    max-height: calc(100vh - 16px - env(safe-area-inset-bottom));
    border-radius: 10px;
  }
}

.btn-secondary,
.btn-primary {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.result-card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.65rem;
  font-size: 0.74rem;
}

.result-card .label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.result-card .value {
  color: var(--text);
}

.result-card .full-width {
  width: 100%;
  margin-top: 0.18rem;
}

/* 联系方式 */
.result-card .contacts {
  margin-top: 0.28rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem 0.45rem;
  font-size: 0.72rem;
}

.result-card .contact-item {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.result-card .contact-label {
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.result-card .contact-label.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  margin-right: 0.35rem;
  font-size: 0.95rem;
}

.result-card .contacts a {
  color: var(--primary);
  text-decoration: none;
}

.result-card .contacts a:hover {
  text-decoration: underline;
}

.results-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  background: var(--card-bg);
  border-radius: var(--radius);
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding: 0.35rem 0.2rem;
}

.pagination .pagination-nav {
  width: 2.25rem;
  height: 1.9rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid var(--border);
  background: #f8fbff;
  color: #334155;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pagination .pagination-nav:hover:not(:disabled) {
  background: #e8f0ff;
  border-color: #bfd5ff;
  color: #1d4ed8;
}

.pagination .pagination-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  background: #f3f6fb;
  border-radius: 12px;
  padding: 0.14rem;
}

.page-number {
  min-width: 1.95rem;
  height: 1.9rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
}

.page-number:hover {
  background: rgba(59,130,246,0.1);
}

.page-number.is-active {
  background: #dce8ff;
  color: #1d4ed8;
  font-weight: 700;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.9rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.page-jump:hover {
  background: #e8f0ff;
  color: var(--primary);
}

/* Trial visual refresh */
:root {
  --bg: #f4efe7;
  --bg-accent: #fff9f1;
  --card-bg: rgba(255, 252, 247, 0.88);
  --card-solid: #fffdf8;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(191, 97, 48, 0.28);
  --primary: #bf6130;
  --primary-hover: #9f4f24;
  --primary-soft: rgba(191, 97, 48, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 34px rgba(71, 56, 34, 0.08);
  --shadow-hover: 0 18px 42px rgba(71, 56, 34, 0.14);
}

body {
  font-family: "Aptos", "Segoe UI Variable", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(circle at top right, rgba(240, 188, 159, 0.28), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f2ece4 38%, #ece8e2 100%);
  color: var(--text);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.main {
  max-width: 1120px;
  padding: 1.25rem 1rem 2rem;
  position: relative;
}

.main::before {
  content: "";
  display: block;
  height: clamp(3.5rem, 10vw, 6.5rem);
  margin-bottom: 0.7rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.75), transparent 22%),
    linear-gradient(135deg, rgba(191, 97, 48, 0.96), rgba(236, 157, 81, 0.86) 48%, rgba(80, 111, 146, 0.84));
  box-shadow: 0 24px 50px rgba(115, 77, 41, 0.16);
}

.filters {
  gap: 0.8rem;
  background: rgba(255, 250, 244, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1rem;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(71, 56, 34, 0.1);
  margin-bottom: 1rem;
  top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.filter-search-top {
  gap: 0.55rem;
}

.search-token-wrap {
  min-height: 3.35rem;
  border: 1px solid rgba(191, 97, 48, 0.14);
  border-radius: 18px;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.search-token-wrap:focus-within {
  border-color: rgba(191, 97, 48, 0.4);
  box-shadow: 0 0 0 4px rgba(191, 97, 48, 0.1);
}

.search-token-wrap #search-name {
  padding: 0;
  font-size: 1rem;
}

.search-token-wrap #search-name::placeholder {
  font-size: 0.98rem;
  color: #9ca3af;
}

.search-country-tokens {
  gap: 0.4rem;
}

.search-country-token {
  border: 1px solid rgba(191, 97, 48, 0.18);
  background: rgba(191, 97, 48, 0.09);
  color: #8c461f;
  padding: 0.35rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-country-token-remove {
  color: #8c461f;
  font-size: 1rem;
}

.filter-row {
  gap: 0.75rem;
  margin-top: 0;
}

.filter-row > .filter-group {
  justify-content: stretch;
}

.country-picker,
.trust-picker {
  width: 100%;
}

.country-trigger,
.trust-trigger {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(191, 97, 48, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.country-trigger:hover,
.trust-trigger:hover,
.lang-trigger:hover,
.btn-secondary:hover,
.btn-primary:hover,
.card-contact-btn:hover {
  transform: translateY(-1px);
}

.country-menu,
.trust-menu {
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(191, 97, 48, 0.16);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 16px 40px rgba(71, 56, 34, 0.12);
}

.country-list,
.trust-list {
  padding: 0.5rem;
}

.country-item,
.trust-item {
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font-size: 0.92rem;
}

.country-item:hover,
.trust-item:hover {
  background: rgba(191, 97, 48, 0.08);
}

.country-item.active,
.trust-item.active {
  background: rgba(191, 97, 48, 0.14);
}

.results-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.9rem;
}

#results-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.84);
  border: 1px solid rgba(191, 97, 48, 0.12);
  color: #7c5541;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(71, 56, 34, 0.08);
}

.results {
  gap: 0.95rem;
}

.result-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 246, 0.88));
  border-radius: 24px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(191, 97, 48, 0.2);
}

.result-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: #17324d;
  line-height: 1.35;
}

.card-title-row {
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.card-contact-btn {
  height: 2.2rem;
  border: 1px solid rgba(191, 97, 48, 0.2);
  background: rgba(191, 97, 48, 0.1);
  color: #8c461f;
  padding: 0 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card-contact-btn:hover {
  background: rgba(191, 97, 48, 0.16);
}

.updated-today-badge {
  margin: -0.05rem 0 0.75rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  color: #8c461f;
  background: rgba(255, 240, 219, 0.95);
  border: 1px solid rgba(240, 164, 91, 0.42);
}

.result-card .row {
  gap: 0.4rem 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 0.32rem;
}

.result-card .label {
  color: #8b94a3;
  font-weight: 700;
}

.result-card .value {
  color: var(--text);
}

.result-card .full-width {
  margin-top: 0.15rem;
}

.result-card .contacts {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  gap: 0.5rem 0.8rem;
  font-size: 0.82rem;
}

.result-card .contact-item {
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(80, 111, 146, 0.08);
}

.result-card .contact-label {
  color: #6f7b8b;
}

.results-empty {
  padding: 3.5rem 1.25rem;
  background: rgba(255, 252, 247, 0.82);
  border-radius: 24px;
  border: 1px solid rgba(191, 97, 48, 0.12);
  box-shadow: var(--shadow);
}

.pagination {
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.55rem 0.2rem 1rem;
}

.pagination .pagination-nav,
.page-number,
.page-jump {
  height: 2.3rem;
  border-radius: 14px;
}

.pagination .pagination-nav {
  width: 2.5rem;
  border: 1px solid rgba(191, 97, 48, 0.14);
  background: rgba(255, 252, 247, 0.84);
  box-shadow: 0 8px 20px rgba(71, 56, 34, 0.06);
}

.page-numbers {
  gap: 0.22rem;
  background: rgba(255, 252, 247, 0.84);
  border: 1px solid rgba(191, 97, 48, 0.08);
  border-radius: 16px;
  padding: 0.2rem;
  box-shadow: 0 8px 20px rgba(71, 56, 34, 0.06);
}

.page-number:hover,
.page-jump:hover,
.pagination .pagination-nav:hover:not(:disabled) {
  background: rgba(191, 97, 48, 0.1);
  border-color: rgba(191, 97, 48, 0.22);
  color: #8c461f;
}

.page-number.is-active {
  background: linear-gradient(135deg, rgba(191, 97, 48, 0.16), rgba(236, 157, 81, 0.22));
  color: #8c461f;
}

.footer-note {
  max-width: 1120px;
  padding: 0 1rem 1.5rem;
}

.footer-note-inner {
  font-size: 0.8rem;
  color: #7c8594;
}

.header-lang {
  right: 18px;
  bottom: 18px;
}

.header-lang .lang-trigger,
.contact-lang-trigger {
  border: 1px solid rgba(191, 97, 48, 0.14);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.88);
  box-shadow: 0 16px 30px rgba(71, 56, 34, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lang-menu,
.contact-lang-menu {
  background: rgba(255, 250, 244, 0.98);
  border: 1px solid rgba(191, 97, 48, 0.14);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(71, 56, 34, 0.16);
}

.lang-search-wrap,
.contact-lang-menu .lang-search-wrap {
  background: transparent;
}

#lang-search,
#contact-lang-search {
  border: 1px solid rgba(191, 97, 48, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.lang-item {
  border-radius: 12px;
}

.lang-item:hover {
  background: rgba(191, 97, 48, 0.08);
}

.lang-item.active {
  background: rgba(191, 97, 48, 0.14);
}

.contact-modal-backdrop {
  background: rgba(42, 32, 21, 0.46);
  backdrop-filter: blur(6px);
}

.contact-modal-dialog {
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(42, 32, 21, 0.18);
  padding: 1.2rem;
}

.contact-modal-close,
.btn-secondary,
.btn-primary,
.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea {
  border-radius: 14px;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea {
  border-color: rgba(191, 97, 48, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
}

.btn-primary {
  background: linear-gradient(135deg, #bf6130, #d98953);
  border-color: transparent;
}

@media (max-width: 640px) {
  .main {
    padding: 0.75rem 0.5rem 1rem;
  }

  .main::before {
    height: 4.25rem;
    border-radius: 24px;
    margin-bottom: 0.6rem;
  }

  .filters {
    padding: 0.75rem;
    border-radius: 22px;
    top: 8px;
  }

  .search-token-wrap,
  .country-trigger,
  .trust-trigger {
    min-height: 2.8rem;
  }

  .card-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-contact-btn {
    width: 100%;
  }

  .result-card {
    padding: 0.9rem;
    border-radius: 20px;
  }

  .results-meta {
    justify-content: flex-start;
  }

  .header-lang {
    right: 10px;
    bottom: 10px;
  }

  .header-lang .lang-trigger {
    min-width: 56px;
    padding: 0.55rem 0.3rem;
  }

  .country-menu,
  .trust-menu {
    left: 0;
  }

  .contact-modal-dialog {
    border-radius: 20px;
  }
}
/* Mobile compact follow-up */
.main::before {
  display: none;
}

.filters {
  position: static;
  top: auto;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.55rem;
  border-radius: 18px;
}

.filter-search-top {
  gap: 0.3rem;
}

.search-token-wrap {
  min-height: 2.45rem;
  padding: 0.14rem 0.55rem;
  border-radius: 14px;
}

.search-token-wrap #search-name {
  font-size: 0.92rem;
}

.search-token-wrap #search-name::placeholder {
  font-size: 0.84rem;
}

.search-country-tokens {
  gap: 0.28rem;
  margin-top: 0.02rem;
}

.search-country-token {
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
}

.filter-row {
  gap: 0.45rem;
}

.country-trigger,
.trust-trigger {
  min-height: 2.35rem;
  padding: 0.42rem 0.7rem;
  border-radius: 14px;
  font-size: 0.85rem;
}

.results-meta {
  margin-bottom: 0.55rem;
}

#results-count {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .main {
    padding: 0.45rem 0.4rem 0.85rem;
  }

  .filters {
    gap: 0.32rem;
    padding: 0.38rem 0.42rem;
    margin-bottom: 0.45rem;
    border-radius: 16px;
  }

  .filter-search-top {
    gap: 0.24rem;
  }

  .search-token-wrap {
    min-height: 2.15rem;
    padding: 0.08rem 0.45rem;
    border-radius: 12px;
  }

  .search-token-wrap #search-name {
    font-size: 0.88rem;
  }

  .search-token-wrap #search-name::placeholder {
    font-size: 0.78rem;
  }

  .search-country-tokens {
    gap: 0.2rem;
    margin-top: 0;
  }

  .search-country-token {
    padding: 0.12rem 0.36rem;
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .filter-row {
    gap: 0.28rem;
  }

  .country-trigger,
  .trust-trigger {
    min-height: 2rem;
    padding: 0.28rem 0.56rem;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .country-menu,
  .trust-menu {
    border-radius: 14px;
  }

  .country-item,
  .trust-item {
    padding: 0.55rem 0.58rem;
    font-size: 0.82rem;
  }

  .results-meta {
    margin-bottom: 0.4rem;
  }

  #results-count {
    padding: 0.24rem 0.52rem;
    font-size: 0.74rem;
  }
}

.seo-intro {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.seo-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

#page-title {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

#page-title.title-bilingual {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.7rem;
}

#page-title .title-zh {
  font-size: 1em;
  font-weight: 700;
}

#page-title .title-en {
  font-size: 0.62em;
  font-weight: 600;
  color: #475569;
}

.seo-lead {
  margin: 0.7rem 0 0;
  max-width: 62rem;
  font-size: 1rem;
  color: #0f172a;
}

.seo-copy {
  margin: 0.65rem 0 0;
  max-width: 62rem;
  font-size: 0.96rem;
  color: #475569;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.seo-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.seo-action-link:hover {
  transform: translateY(-1px);
  background: #1e293b;
}

.seo-action-link-muted {
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: none;
}

.seo-action-link-muted:hover {
  background: #fff;
}

.seo-noscript {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: #475569;
}

.seo-noscript a {
  color: #2563eb;
}

@media (max-width: 640px) {
  .seo-intro {
    margin-bottom: 0.7rem;
    padding: 1rem 0.95rem;
    border-radius: 18px;
  }

  .seo-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  #page-title {
    font-size: 1.5rem;
  }

  .seo-lead,
  .seo-copy {
    font-size: 0.9rem;
  }

  .seo-actions {
    gap: 0.5rem;
  }

  .seo-action-link {
    width: 100%;
  }
}

.result-card.is-detail-card {
  cursor: pointer;
}

.result-card.is-detail-card:hover {
  border-color: rgba(59, 130, 246, 0.28);
}

.card-detail-link {
  color: inherit;
  text-decoration: none;
}

.card-detail-link:hover {
  text-decoration: underline;
}
