@charset "utf-8";
/* 添加 CSS 样式 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
	--blue: #185FA5; --blue-light: #E6F1FB; --blue-mid: #378ADD;
	--teal: #0F6E56; --teal-light: #E1F5EE;
	--amber: #854F0B; --amber-light: #FAEEDA;
	--green: #3B6D11; --green-light: #EAF3DE;
	--red: #A32D2D; --red-light: #FCEBEB;
	--purple: #534AB7; --purple-light: #EEEDFE;
	--gray-100: #F4F4F2; --gray-200: #E8E8E4; --gray-400: #9A9994;
	--gray-600: #5F5E5A; --gray-800: #2C2C2A;
	--radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
	--border: 0.5px solid rgba(0,0,0,0.1);
	--border-hover: 0.5px solid rgba(0,0,0,0.22);
	--font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body { font-family: var(--font); font-size: 14px; color: var(--gray-800); background: #F7F7F5; line-height: 1.6; }

/* Header */
.site-header { background: #fff; border-bottom: var(--border); padding: 0 32px; display: flex; align-items: center; justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 100; }
.logo { font-size: 18px; font-weight: 500; color: var(--blue); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--gray-800); }
.header-btns { display: flex; gap: 8px; align-items: center; }
.btn-ghost { font-size: 13px; padding: 6px 14px; border-radius: var(--radius-sm); border: var(--border-hover); background: transparent; color: var(--gray-600); cursor: pointer; text-decoration: none; font-family: var(--font); }
.btn-primary { font-size: 13px; padding: 6px 16px; border-radius: var(--radius-sm); border: none; background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; font-family: var(--font); font-weight: 500; }
.btn-primary:hover { background: #0C447C; }

/* Hero Section */
.page-header-p{
	text-align:center;
	font-size:16px;
	color: #fff;
	/* 保留变量定义，后续可复用 */
	--text-sec: var(--text-sec);
}
.page-header-badges{display:flex;justify-content:center;gap:12px;margin-top:16px;flex-wrap:wrap}

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.hero-stats { display: flex; gap: 32px; justify-content: center; }
.stat { text-align: center; }
.stat-num { font-size: 22px; font-weight: 500; color: var(--blue); display: block; }
.stat-label { font-size: 12px; color: var(--gray-400); }

/* Main Layout */
.main { max-width: 1080px; margin: 0 auto; padding: 32px 20px 64px; }

/* Filter Bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.filter-label { font-size: 12px; color: var(--gray-400); margin-right: 4px; }
.filter-btn { padding: 5px 14px; border-radius: 20px; font-size: 12px; border: var(--border); background: #fff; color: var(--gray-600); cursor: pointer; font-family: var(--font); transition: all 0.15s; }
.filter-btn:hover { border-color: rgba(0,0,0,0.22); color: var(--gray-800); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.search-wrap { margin-left: auto; }
.search-input { padding: 5px 12px; border-radius: 20px; font-size: 12px; border: var(--border); background: #fff; color: var(--gray-800); font-family: var(--font); outline: none; width: 180px; }
.search-input:focus { border-color: var(--blue); }

/* Category Section */
.category-section { margin-bottom: 32px; }
.category-title { font-size: 13px; font-weight: 500; color: var(--gray-600); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.category-title::after { content: ''; flex: 1; height: 0.5px; background: var(--gray-200); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

/* Product Card */
.product-card { background: #fff; border: var(--border); border-radius: var(--radius-lg); padding: 18px 20px; transition: border-color 0.15s; cursor: default; }
/*.product-card:hover { border-color: rgba(0,0,0,0.2); }*/
.product-card:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}
/*.product-card.featured { border: 1.5px solid var(--blue); }*/
.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.card-name { font-size: 14px; font-weight: 500; color: var(--gray-800); }
.card-type-id { font-size: 11px; color: var(--gray-400); font-family: monospace; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; }
.card-desc { font-size: 12px; color: var(--gray-600); line-height: 1.5;  min-height: 36px; }
.card-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.card-price { font-size: 22px; font-weight: 500; color: var(--blue); }
.card-price-unit { font-size: 12px; color: var(--gray-400); }
.card-price-original { font-size: 12px; color: var(--gray-400); text-decoration: line-through; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.card-tags img{max-width: 296px;height: auto;}
.card-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.tag-speed { background: var(--teal-light); color: var(--teal); }
.tag-type { background: var(--blue-light); color: var(--blue); }
.tag-hot { background: var(--red-light); color: var(--red); }
.tag-new { background: var(--amber-light); color: var(--amber); }
.tag-premium { background: var(--purple-light); color: var(--purple); }
.card-actions { display: flex; gap: 8px; }
.card-btn { flex: 1; padding: 7px 0; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; cursor: pointer; border: var(--border); background: transparent; color: var(--gray-600); font-family: var(--font); text-align: center; text-decoration: none; display: block; transition: all 0.15s; }
.card-btn:hover { background: var(--gray-100); }
.card-btn-primary { background: var(--blue-light); color: var(--blue); border-color: transparent; }
.card-btn-primary:hover { background: #C5DAEF; }
.card-btn-charge { color: #fff !important; background: var(--blue); color: #fff; border-color: transparent; }
.card-btn-charge:hover { background: #0C447C; }
.featured-badge { position: absolute; top: -1px; right: 16px; font-size: 11px; font-weight: 500; background: var(--blue); color: #fff; padding: 3px 10px; border-radius: 0 0 6px 6px; }

/* Card position relative for badge */
.product-card { position: relative; }
/* 1. 卡片父容器（必加，让卡片整齐排列） */
.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* 卡片之间的间距，可自行调整 */
  align-items: flex-start;
}

/* 2. 核心：卡片固定总高度，所有卡片完全统一 */
.product-card {
  height: 380px; /* 固定总高度，根据你的内容调整，确保所有内容能放下 */
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden; /* 防止内容溢出 */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 内容上下分散，底部按钮固定 */
}

/* 3. 图片容器固定高度，彻底解决图片大小不一问题 */
.card-tags-img {
  width: 100%;
  height: 160px; /* 图片区域固定高度，可自行调整 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
}

/* 4. 图片自适应容器，不变形、不撑高 */
.card-tags-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* 保持图片比例，完整显示在容器内 */
}

/* 5. 文本区域固定行高，防止行数不一导致高度变化 */
.card-header {
  height: 24px;
  line-height: 24px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-desc {
  height: 20px;
  line-height: 20px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-price-row {
  height: 24px;
  line-height: 24px;
  margin-bottom: 12px;
}

/* 6. 按钮区域固定高度，统一对齐 */
.card-actions {
  height: 36px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.card-btn {
  height: 32px;
  line-height: 32px;
  padding: 0 12px;
  font-size: 14px;
  white-space: nowrap;
}

/* CTA Section */
.cta-section { background: var(--blue-light); border: 1.5px solid rgba(24,95,165,0.15); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta-left h2 { font-size: 17px; font-weight: 500; color: var(--gray-800); margin-bottom: 6px; }
.cta-left p { font-size: 13px; color: var(--gray-600); }
.cta-right { display: flex; gap: 10px; flex-shrink: 0; }
.btn-lg { padding: 10px 24px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; font-family: var(--font); }
.btn-lg-primary { background: var(--blue); color: #fff; border: none; }
.btn-lg-primary:hover { background: #0C447C; }
.btn-lg-outline { background: #fff; color: var(--blue); border: 1px solid rgba(24,95,165,0.3); }
.btn-lg-outline:hover { background: var(--blue-light); }

/* Comparison Summary */
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
.summary-card { background: #fff; border: var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; }
.summary-num { font-size: 20px; font-weight: 500; color: var(--blue); margin-bottom: 4px; }
.summary-label { font-size: 12px; color: var(--gray-400); }

/* Pricing table comparison */
.table-section { background: #fff; border: var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.table-section table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-section th { padding: 12px 16px; text-align: left; font-weight: 500; font-size: 12px; color: var(--gray-600); background: var(--gray-100); border-bottom: var(--border); }
.table-section td { padding: 11px 16px; border-bottom: var(--border); color: var(--gray-800); }
.table-section tr:last-child td { border-bottom: none; }
.table-section tr:hover td { background: var(--gray-100); }
.price-cell { font-weight: 500; color: var(--blue); }
.speed-cell { font-size: 12px; color: var(--teal); }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: var(--border); margin-bottom: 24px; }
.tab-btn { padding: 10px 18px; font-size: 13px; color: var(--gray-600); border: none; background: transparent; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -0.5px; font-family: var(--font); transition: all 0.15s; }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 500; }
.tab-btn:hover:not(.active) { color: var(--gray-800); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Steps */
.steps-section { margin-bottom: 32px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { background: #fff; border: var(--border); border-radius: var(--radius-lg); padding: 20px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-light); color: var(--blue); font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.step-desc { font-size: 12px; color: var(--gray-600); line-height: 1.6; }
.step-action { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--blue); text-decoration: none; }

/* Footer */
.site-footer { background: #fff; border-top: var(--border); padding: 32px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-left { font-size: 12px; color: var(--gray-400); }
.footer-right { display: flex; gap: 16px; }
.footer-right a { font-size: 12px; color: var(--gray-400); text-decoration: none; }
.footer-right a:hover { color: var(--gray-800); }

/* Highlight row in table */
.row-hot td:first-child { border-left: 2.5px solid var(--blue); }

/* Empty state when no filter results */
.empty-state { text-align: center; padding: 40px; color: var(--gray-400); font-size: 13px; display: none; }

/* Responsive */
@media (max-width: 768px) {
	.hero h1 { font-size: 22px; }
	.hero-stats { gap: 16px; }
	.summary-grid { grid-template-columns: repeat(2, 1fr); }
	.steps-grid { grid-template-columns: 1fr; }
	.cta-section { flex-direction: column; }
	.cta-right { flex-direction: column; }
	.nav { display: none; }
}