/* Account detail — light theme aligned with Account.css */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b6ff5, #2f5ae0);
  box-shadow: 0 8px 20px rgba(59, 111, 245, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59, 111, 245, 0.35);
}

.btn-outline {
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  color: var(--blue);
  border-color: var(--blue-border);
  background: var(--blue-soft);
}

.detail-hero {
  padding: 28px 0 8px;
}

.detail-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: .85rem;
  color: var(--text-muted);
}

.detail-crumb a:hover {
  color: var(--blue);
}

.detail-hero-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.vendor-logo-lg {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #2a3550;
  background: #fff;
  border: 1px solid rgba(59, 111, 245, 0.12);
  box-shadow: 0 10px 24px rgba(32, 56, 117, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}
/* 图片填满 1:1 容器，保持比例裁剪 */
.vendor-logo-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
/* 图片加载失败时，回退显示文字缩写 */
.vendor-logo-lg:has(img[style*="display:none"])::after,
.vendor-logo-lg[data-fallback]::after {
  content: attr(data-fallback);
}

.vendor-hero-info h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.25;
}

.vendor-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: .8rem;
  font-weight: 600;
}

.verified-badge svg {
  width: 14px;
  height: 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f3f6fb;
  border: 1px solid var(--border);
}

.country-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: .9rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-actions .btn {
  min-width: 150px;
  min-height: 44px;
  padding: 12px 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 28px 0 56px;
}

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

.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-top) + var(--nav-sub) + 16px);
  align-self: start;
}

.block {
  margin-bottom: 32px;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}

.block-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3b6ff5, #6b8cff);
}

.block-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.overview-text {
  color: #5a6478;
  font-size: 0.95rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.overview-text > p:first-child {
  margin: 0 0 8px;
  color: #3a4255;
  font-size: 1rem;
  line-height: 1.9;
}

.overview-text > p:first-child strong {
  color: #1a1f2e;
  font-weight: 700;
}

.overview-text h3 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #1a1f2e;
}

.overview-text h3:first-of-type {
  margin-top: 20px;
}

.overview-text p {
  margin: 0 0 4px;
}

.overview-text ul {
  margin: 12px 0 0;
  padding: 0 0 0 1.15em;
  list-style: disc;
}

.overview-text li {
  margin: 0 0 10px;
  padding-left: 4px;
  line-height: 1.75;
  color: #5a6478;
}

.overview-text li:last-child {
  margin-bottom: 0;
}

.overview-text li strong {
  color: #2c3344;
  font-weight: 600;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8faff;
  border: 1px solid var(--border);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.platform-item:hover {
  border-color: var(--blue-border);
  background: var(--blue-soft);
  color: var(--blue);
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b6ff5, #6b8cff);
  flex-shrink: 0;
}

.detail-sidebar .sidebar-card {
  margin-bottom: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.detail-sidebar .block-title {
  margin: 0 0 16px;
}

.detail-sidebar .contact-item:first-child {
  padding-top: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

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

.contact-value {
  margin-top: 2px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.detail-cta {
  width: 100%;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .3s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.open .faq-answer {
  max-height: 220px;
}

.faq-answer p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.7;
}

.detail-footer {
  padding: 28px 0;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

.detail-footer a {
  color: var(--blue);
}

.site-footer.detail-footer p {
  margin: 0;
}

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .detail-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .vendor-logo-lg {
    margin-inline: auto;
  }

  .vendor-meta {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }
}
