/* ==========================================================================
   广场页通用样式（AIGC工具 / 模型 / 办公 / 培训 / 服务 / 联系）
   ========================================================================== */

/* ------------------------------- 页头 ---------------------------------- */
.plaza-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 1rem 3rem;
  text-align: center;
  overflow: hidden;
}
@media (min-width: 640px) {
  .plaza-hero { padding: calc(var(--nav-h) + 5rem) 1.5rem 3.5rem; }
}

.plaza-hero__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.plaza-hero__inner { position: relative; max-width: 56rem; margin: 0 auto; }

.plaza-hero__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #60a5fa, #a78bfa 55%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (min-width: 640px) { .plaza-hero__title { font-size: 2.75rem; } }

.plaza-hero__sub {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #94a3b8;
  max-width: 40rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .plaza-hero__sub { font-size: 1.0625rem; } }

.plaza-hero__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}
.plaza-hero__count b {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------------------- 标签页 -------------------------------- */
.plaza-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}
.plaza-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.plaza-tab:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.07); }
.plaza-tab.is-active {
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  border-color: transparent;
}

/* ------------------------------- 卡片网格 ------------------------------ */
.plaza-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}
@media (min-width: 768px) { .plaza-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plaza-cards { grid-template-columns: repeat(3, 1fr); padding: 0 2rem 5rem; } }

/* 工具 / 办公 / 培训 产品卡 */
.pcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  transition: border-color 0.2s, transform 0.2s;
}
.pcard:hover { border-color: rgba(139, 92, 246, 0.32); transform: translateY(-2px); }

.pcard__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }

/* 产品 logo 容器（对齐参考站：56x56 / radius 12px / 无边框 / 半透明白底） */
.pcard__logo {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
/* 等比铺满，不拉伸变形 */
.pcard__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* 无 logo 资源时退化为首字标识（无图可用，需保证在深色卡片上可辨识） */
.pcard__logo-fallback {
  font-size: 1.5rem;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1;
  letter-spacing: 0;
}

.pcard__name { font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.4; }
.pcard__en { font-size: 0.75rem; color: #64748b; font-family: var(--mono, monospace); }

.pcard__vendor { font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.75rem; }
.pcard__vendor span { color: #64748b; }

.pcard__desc {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #94a3b8;
  margin-bottom: 1rem;
  flex: 1;
}

.pcard__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1.25rem; }
.pcard__tag {
  font-size: 0.6875rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
  white-space: nowrap;
}

.pcard__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  transition: opacity 0.18s;
}
.pcard__btn:hover { opacity: 0.88; }

/* 外链按钮：文字与箭头居中排列 */
.pcard__btn--ext {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
}
.pcard__btn-ext { width: 0.8125rem; height: 0.8125rem; flex: 0 0 auto; opacity: 0.9; }
.pcard__btn--ext:hover .pcard__btn-ext { opacity: 1; }

.pcard__btn--disabled {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  pointer-events: none;
}

/* 说明：模型广场卡片样式已迁移到文件末尾「AI模型广场」区块，
   此处旧版 .mcard__price / .mcard__name / .mcard__unit 已移除，避免覆盖。 */

/* 培训卡的 COMING SOON 角标 */
.pcard--soon { position: relative; opacity: 0.72; }
.pcard__soon {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  white-space: nowrap;
}

/* --------------------------- 通用区块（特色/场景/路径） ---------------- */
.psec { padding: 3rem 0 4rem; }
.psec__inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .psec__inner { padding: 0 2rem; } }

.psec__head { text-align: center; margin-bottom: 2.5rem; }
.psec__title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .psec__title { font-size: 1.75rem; } }
.psec__sub { font-size: 0.875rem; color: #94a3b8; }

/* 分组标题（按创作类型 / 按创作角色） */
.pgroup { margin-bottom: 2rem; }
.pgroup__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1rem;
}
.pgroup__head::before {
  content: '';
  width: 3px;
  height: 0.875rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #3b82f6, #9333ea);
}

.ptile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .ptile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ptile-grid { grid-template-columns: repeat(3, 1fr); } }

.ptile {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.625rem;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s;
}
.ptile:hover { border-color: rgba(139, 92, 246, 0.28); }
/* 磁贴图标：带渐变底色的圆角方块，与参考站一致 */
.ptile__icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(147, 51, 234, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ptile__name { font-size: 0.875rem; font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.ptile__desc { font-size: 0.75rem; line-height: 1.7; color: #94a3b8; }
.ptile__tags { display: flex; flex-wrap: wrap; gap: 0.3125rem; margin-top: 0.5rem; }
.ptile__tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.4375rem;
  border-radius: 9999px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

/* 带编号的步骤卡（培训路径 / 服务流程） */
.pstep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .pstep-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pstep-grid { grid-template-columns: repeat(4, 1fr); } }

.pstep {
  padding: 1.25rem;
  border-radius: 0.625rem;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pstep__icon { font-size: 1.25rem; margin-bottom: 0.5rem; }
.pstep__no {
  font-size: 0.6875rem;
  font-family: var(--mono, monospace);
  color: #818cf8;
  margin-bottom: 0.25rem;
}
.pstep__name { font-size: 0.9375rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.pstep__desc { font-size: 0.75rem; line-height: 1.7; color: #94a3b8; }

/* 服务广场的分组大卡 */
.sgroup {
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
}
.sgroup__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
/* 分组图标：参考站为带渐变底色的圆角方块，纯 emoji 会显得发灰、不够醒目 */
.sgroup__icon {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sgroup__name { font-size: 1rem; font-weight: 600; color: #fff; }
.sgroup__tag { font-size: 0.75rem; color: #94a3b8; }
.sgroup__grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 768px) { .sgroup__grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------- 咨询合作 CTA ------------------------------ */
.pcta {
  max-width: 56rem;
  margin: 0 auto 5rem;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(147, 51, 234, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.22);
}
.pcta__icon { font-size: 2rem; margin-bottom: 1rem; }
.pcta__title { font-size: 1.375rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.pcta__desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #94a3b8;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
}
.pcta__btn {
  display: inline-block;
  padding: 0.625rem 2rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  transition: opacity 0.18s;
}
.pcta__btn:hover { opacity: 0.88; }

/* ------------------------------ 联系表单 ------------------------------- */
.cform {
  max-width: 48rem;
  margin: 0 auto 5rem;
  padding: 2rem;
  border-radius: 0.75rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}
@media (min-width: 640px) { .cform { padding: 2.5rem; } }

.cform__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .cform__grid { grid-template-columns: repeat(2, 1fr); } }

.cform__field--full { grid-column: 1 / -1; }
.cform__label {
  display: block;
  font-size: 0.8125rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}
.cform__label .req { color: #f87171; margin-left: 0.125rem; }

.cform__checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cform__check {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.cform__check input { position: absolute; opacity: 0; pointer-events: none; }
.cform__check.is-on {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.cform textarea.input { min-height: 7rem; resize: vertical; }

.cform__submit {
  display: block;
  margin: 1.75rem auto 0;
  padding: 0.6875rem 3rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  border: none;
  cursor: pointer;
  transition: opacity 0.18s;
}
.cform__submit:hover { opacity: 0.88; }
/* ==========================================================================
   参考站 zaai.world 对齐组件（tag / glass-card / 彩色渐变块 / 区块标题）
   数值均来自 Playwright 对参考站的计算样式实测
   ========================================================================== */

/* --- 标签：6 色，12px / 500 / 圆角9999 / 内边距 2px 10px / 无边框 --- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
.tag-blue   { color: #60a5fa; background: rgba(59, 130, 246, 0.10); }
.tag-cyan   { color: #22d3ee; background: rgba(6, 182, 212, 0.10); }
.tag-purple { color: #c084fc; background: rgba(168, 85, 247, 0.10); }
.tag-pink   { color: #f472b6; background: rgba(236, 72, 153, 0.10); }
.tag-green  { color: #34d399; background: rgba(16, 185, 129, 0.10); }
.tag-amber  { color: #fbbf24; background: rgba(245, 158, 11, 0.10); }

/* --- 玻璃卡：rgba(17,24,39,.6) / radius 16px / padding 32px --- */
.gcard {
  position: relative;               /* 作为 .soon-mask 的定位容器，缺失会导致遮罩盖满全屏 */
  background: rgba(17, 24, 39, 0.6);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.gcard--hover:hover {
  border-color: rgba(139, 92, 246, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(59, 130, 246, 0.35);
}

/* --- 彩色渐变图标块：56x56 / radius 12px / 3xl emoji --- */
.gicon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  line-height: 1;
  flex-shrink: 0;
}
.grad-red-orange   { background: linear-gradient(to bottom right, #ef4444, #f97316); }
.grad-blue-cyan    { background: linear-gradient(to bottom right, #3b82f6, #06b6d4); }
.grad-purple-pink  { background: linear-gradient(to bottom right, #a855f7, #ec4899); }
.grad-amber-orange { background: linear-gradient(to bottom right, #f59e0b, #f97316); }
.grad-cyan-blue    { background: linear-gradient(to bottom right, #06b6d4, #3b82f6); }
.grad-blue-indigo  { background: linear-gradient(to bottom right, #3b82f6, #6366f1); }
.grad-emerald-teal { background: linear-gradient(to bottom right, #059669, #14b8a6); }

/* --- 分组头：图标 + 标题 + 副标签 --- */
.ghead { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.ghead__name { font-size: 1.125rem; font-weight: 600; color: #fff; line-height: 1.4; }
.ghead__sub { font-size: 0.75rem; color: #64748b; margin-top: 0.125rem; line-height: 1.4; }

/* --- 内嵌服务项：border rgba(255,255,255,.06) / bg rgba(255,255,255,.02) / radius 12px / p-4 --- */
.gitem {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gitem--hover:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.25);
}
.gitem__title { font-size: 0.875rem; font-weight: 600; color: #fff; line-height: 1.4; }
.gitem__desc { font-size: 0.875rem; line-height: 1.625; color: #94a3b8; }
.gitem__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

/* --- 小号渐变按钮（服务项「了解详情」）--- */
.gbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.18s;
}
.gbtn:hover { opacity: 0.9; }
.gbtn--cyan-blue   { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.gbtn--purple-pink { background: linear-gradient(90deg, #a855f7, #ec4899); }

/* --- 区块标题（36px / 700 / letter-spacing 3.6px，参考站 .section-title）--- */
.psec__title--ref {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.11;
  color: #fff;
}

/* --- 服务网格：2 列，云服务跨 2 列 --- */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
.svc-span2 { grid-column: 1 / -1; }

/* --- 培训卡：顶部 4px 渐变条 + 内容区 --- */
.trcard {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.trcard--hover:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -14px rgba(59, 130, 246, 0.4);
}
.trcard__bar { height: 4px; flex-shrink: 0; }
.trcard__body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
@media (max-width: 639px) { .trcard__body { padding: 1.5rem; } }

.trcard__name { font-size: 1.25rem; font-weight: 700; color: #fff; line-height: 1.3; }
.trcard__sub { font-size: 0.875rem; color: #64748b; margin-top: 0.125rem; }
.trcard__desc { font-size: 0.875rem; line-height: 1.625; color: #94a3b8; margin-bottom: 1.25rem; }

/* 培训卡图标带外发光 */
.trcard .gicon { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }

/* --- COMING SOON 遮罩 --- */
.soon-mask {
  position: absolute;
  inset: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.soon-mask__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.soon-mask__lock {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.soon-mask__text { color: #fff; font-weight: 600; font-size: 1rem; }

/* --- 大号渐变按钮（培训卡「了解详情」）--- */
.tbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.18s;
}
.tbtn:hover { opacity: 0.9; }
.tbtn svg { width: 1rem; height: 1rem; }
.tbtn--blue-cyan    { background: linear-gradient(90deg, #2563eb, #06b6d4); }
.tbtn--purple-pink  { background: linear-gradient(90deg, #9333ea, #ec4899); }
.tbtn--emerald-teal { background: linear-gradient(90deg, #059669, #14b8a6); }
.tbtn--amber-orange { background: linear-gradient(90deg, #d97706, #f97316); }

/* --- 流程步骤卡（服务流程）--- */
.pstep--ref {
  position: relative;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.pstep--ref:hover { border-color: rgba(139, 92, 246, 0.3); transform: translateY(-2px); }
.pstep--ref .pstep__icon { font-size: 1.75rem; line-height: 1; margin-bottom: 0.75rem; }
.pstep__no--ref { font-size: 0.75rem; font-weight: 700; color: #6366f1; letter-spacing: 0.05em; }
.pstep__name--ref { font-size: 1rem; font-weight: 600; color: #fff; margin: 0.25rem 0 0.5rem; }
.pstep__desc--ref { font-size: 0.8125rem; line-height: 1.7; color: #94a3b8; }

/* ==========================================================================
   AI模型广场（对齐参考站 zaai.world/model-plaza）
   卡片实测：w=389 h=330 bg=rgba(17,24,39,0.6) radius=16px padding=24px
   网格：md 两列 / lg 三列，gap 24px
   ========================================================================== */

/* --- 网格 --- */
.mdl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 6rem;
}
@media (min-width: 768px)  { .mdl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mdl-grid { grid-template-columns: repeat(3, 1fr); padding: 0 2rem 6rem; } }

/* --- 筛选按钮组（8 个：全部 + 7 厂商）--- */
.mdl-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}
@media (min-width: 640px) { .mdl-filter { gap: 0.75rem; } }

.mdl-filter__btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: #94a3b8;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  white-space: nowrap;
}
.mdl-filter__btn:hover { color: #fff; border-color: rgba(59, 130, 246, 0.3); }
.mdl-filter__btn.is-active {
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  border-color: transparent;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

/* --- 模型卡 --- */
.mcard {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.mcard:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(37, 99, 235, 0.25);
}

/* 卡头：厂商 logo 左，价格 tag 右 */
.mcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.mcard__logo {
  height: 2.25rem;          /* 参考站 h-9 = 36px */
  width: auto;
  max-width: 120px;         /* 参考站 max-w-[120px] */
  object-fit: contain;
  flex-shrink: 0;
}
.mcard__price {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  padding: 2px 10px;
  border-radius: 9999px;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.10);
}

/* 模型名 */
.mcard__name {
  font-size: 1.125rem;      /* 参考站 text-lg = 18px */
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 0.25rem;
  word-break: break-all;
}

/* 输出价 · 计价单位 行 */
.mcard__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.mcard__meta span { font-size: 0.75rem; color: #64748b; }
.mcard__meta .dot { color: #475569; }

/* 描述：最多 3 行（参考站 line-clamp-3） */
.mcard__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.3125rem;    /* 3 行高度，保证同排卡片对齐 */
}

/* 能力标签组 */
.mcard__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
}

/* 快速体验按钮 */
.mcard__foot { margin-top: auto; }
.mcard__btn {
  display: block;
  width: 100%;
  padding: 0.625rem 0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
  transition: background 0.18s, opacity 0.18s;
}
.mcard__btn:hover { background: linear-gradient(90deg, #3b82f6, #a855f7); }

/* 空态 */
.mdl-empty {
  grid-column: 1 / -1;
  padding: 4rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

/* Hero 统计徽标（已合作模型 43 个国内模型）*/
.plaza-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.plaza-hero__badge span { font-size: 0.875rem; color: #94a3b8; }
.plaza-hero__badge b {
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 筛选按钮上的数量徽标（仅本站增强，参考站无）*/
.mdl-filter__n {
  display: inline-block;
  margin-left: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0.55;
}
.mdl-filter__btn.is-active .mdl-filter__n { opacity: 0.8; }
