/**
 * 腾讯微搭 CN/TencentWeDa — 浅色商务风（对齐 micount 首页）
 * 2026-07-14
 */

body.weda-hub {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #ffffff;
  color: #1f2937;
  min-height: 100vh;
}

body.weda-hub main {
  color: #374151;
}

/* Hero：浅绿渐变 */
body.weda-hub .weda-hero-light,
body.weda-hub section.weda-hero-light {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 45%, #f9fafb 100%);
  border-bottom: 1px solid #e5e7eb;
}

body.weda-hub .weda-hero-light h1,
body.weda-hub .weda-hero-light .section-title {
  color: #065f46 !important;
  text-shadow: none;
}

body.weda-hub .weda-hero-light p {
  color: #4b5563 !important;
}

body.weda-hub .weda-update-strip {
  background: linear-gradient(90deg, #ecfdf5, #eff6ff);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  color: #374151;
}

body.weda-hub .weda-update-strip strong {
  color: #047857;
}

body.weda-hub .weda-update-strip a {
  color: #059669;
}

/* 卡片 */
body.weda-hub .card-tech,
body.weda-hub .apicloud-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: #374151;
  transition: all 0.25s ease;
}

body.weda-hub .card-tech:hover,
body.weda-hub .apicloud-card:hover {
  border-color: #10b981;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.18);
}

body.weda-hub .card-tech h1,
body.weda-hub .card-tech h2,
body.weda-hub .card-tech h3,
body.weda-hub .card-tech h4 {
  color: #111827;
}

/* 数据表 */
body.weda-hub .weda-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 560px;
}

body.weda-hub .weda-data-table th {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid #d1fae5;
}

body.weda-hub .weda-data-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  color: #374151;
  vertical-align: top;
}

body.weda-hub .weda-data-table tr:nth-child(even) td {
  background: #f9fafb;
}

/* 代码块 */
body.weda-hub .code-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  font-family: "Fira Code", Consolas, Monaco, monospace;
  font-size: 13px;
  color: #0f766e;
  overflow-x: auto;
  line-height: 1.6;
}

body.weda-hub .code-block .kw { color: #be185d; }
body.weda-hub .code-block .str { color: #b45309; }
body.weda-hub .code-block .cm { color: #64748b; }

/* 辅助 */
body.weda-hub .pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #ecfdf5;
  color: #047857;
}

body.weda-hub .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

body.weda-hub .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 12px;
  color: #047857;
}

body.weda-hub .weda-news-spotlight {
  background: linear-gradient(135deg, #fffbeb 0%, #ecfdf5 100%);
  border: 1px solid #fcd34d;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

body.weda-hub .weda-news-spotlight:hover {
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
}

/* FAQ */
body.weda-hub .weda-faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

body.weda-hub .weda-faq-q {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

body.weda-hub .weda-faq-a {
  padding: 0 1.25rem 1rem;
  color: #4b5563;
  font-size: 0.925rem;
  line-height: 1.65;
}

body.weda-hub .weda-faq-item[open] .weda-faq-q {
  color: #059669;
}

body.weda-hub .section-title {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.weda-hub main h2 {
  color: #111827;
}

body.weda-hub .role-card h3 {
  color: var(--c, #10b981) !important;
}

body.weda-hub main a.text-emerald-400,
body.weda-hub main a.text-emerald-300 {
  color: #059669 !important;
}

body.weda-hub .weda-res-breadcrumb ol {
  color: #6b7280;
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  body.weda-hub h1 { font-size: 1.5rem !important; line-height: 1.35 !important; }
  body.weda-hub h2 { font-size: 1.25rem !important; }
  body.weda-hub .weda-data-table { font-size: 0.8rem; }
}
