/* ===== 免费智能体栏目 ===== */

.free-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* ---------- Header ---------- */
.free-header {
  text-align: center;
  padding: 36px 0 20px;
}

.free-header .hero-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.free-header .hero-title .gradient {
  color: var(--accent-green);
}

.free-header .hero-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- 收录口径提示 ---------- */
.free-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-green);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.free-notice .notice-icon {
  flex: none;
  font-size: 15px;
  line-height: 1.4;
}

.free-notice strong {
  color: var(--text-primary);
}

.free-notice em {
  font-style: normal;
  color: var(--accent-orange);
}

/* ---------- 统计卡 ---------- */
.free-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.free-stat {
  padding: 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.free-stat:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.free-stat.highlight {
  border-color: var(--accent-green);
  background: rgba(5, 150, 105, 0.04);
}

.free-stat-icon {
  font-size: 20px;
  margin-bottom: 6px;
  line-height: 1;
}

.free-stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.free-stat-label {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.free-stat-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- 区块通用 ---------- */
.free-section {
  margin-bottom: 38px;
}

.free-section .section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 中国国旗图标（自带定义，不依赖其他栏目样式） */
.icon-cn {
  display: inline-block;
  width: 20px;
  height: 14px;
  background: #de2910;
  border-radius: 2px;
  position: relative;
  vertical-align: middle;
  flex: none;
}

.icon-cn::before {
  content: '★';
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 8px;
  color: #ffde00;
  line-height: 1;
}

.icon-cn-large {
  width: 32px;
  height: 22px;
  margin-right: 0;
}

.icon-cn-large::before {
  font-size: 14px;
  top: 3px;
  left: 4px;
}

/* ---------- 代表产品 ---------- */
.free-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.free-highlight-card {
  display: block;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.free-highlight-card:hover {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.free-highlight-badge {
  display: inline-block;
  padding: 2px 9px;
  margin-bottom: 10px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-green);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}

.free-highlight-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.free-highlight-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.free-highlight-foot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.free-highlight-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.free-highlight-maker {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 关键发现 ---------- */
.free-finding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.free-finding {
  padding: 16px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.free-finding-icon {
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1;
}

.free-finding h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

.free-finding strong {
  color: var(--accent-green);
  font-weight: 700;
}

/* ---------- 产品卡列表 ---------- */
.free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.free-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.free-card:hover {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.free-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.free-card-logo {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 19px;
  line-height: 1;
}

.free-card-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.free-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free-card-maker {
  font-size: 11.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free-card-price {
  flex: none;
  padding: 2px 8px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-green);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.free-card-tagline {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.free-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.free-tag {
  padding: 1px 7px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--text-secondary);
}

.free-card-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  margin-top: auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.free-note-icon {
  flex: none;
  line-height: 1.6;
}

.free-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  min-height: 28px;
}

.free-card-rating {
  padding: 1px 7px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-xs);
  font-weight: 700;
  color: var(--text-primary);
}

.free-card-rating-label {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 口径与数据说明 ---------- */
.free-source {
  padding: 20px 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.free-source h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.free-source p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.free-source p:last-child {
  margin-bottom: 0;
}

.free-source strong {
  color: var(--text-primary);
}

.free-source-excluded {
  padding-left: 12px;
  border-left: 2px solid var(--border-hover);
  color: var(--text-muted);
  font-size: 12.5px;
}

.free-source-meta {
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .free-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .free-grid,
  .free-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .free-page {
    padding: 0 14px 36px;
  }

  .free-header {
    padding: 24px 0 16px;
  }

  .free-stats,
  .free-grid,
  .free-highlight-grid,
  .free-finding-grid {
    grid-template-columns: 1fr;
  }

  .free-stat {
    padding: 14px 12px;
  }

  .free-stat-num {
    font-size: 26px;
  }

  .free-source {
    padding: 16px;
  }
}
