:root {
  --bg-color: #ffffff;
  --fg-color: #111111;
  --primary-color: #c30d23;
  --muted-color: #555555;
  --border-color: #ddd;
  --card-bg: #fff;
  --card-shadow: 0 4px 12px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--fg-color);
  overflow: hidden;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
}

/* 顶部展示 */
.product-hero{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 12px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  align-items: center;
}
.product-hero__image{
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  /* background: linear-gradient(to bottom, #c30d23 0%, #c30d23 70%, #231815 100%); */
}
.product-hero__image img{
  display: block;
  width: 100%;
  max-width: 580px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.product-hero__details h1{
  margin: 0 0 10px;
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 36px);
  line-height: 1.15;
}
.product-hero__details .product-description{
  margin: 10px 0 0;
  color: var(--muted-color);
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.7;
}
.product-hero__details .product-description p{ margin: 0 0 10px; }

@media (max-width:960px){
  .product-hero{ grid-template-columns:1fr; gap:16px; padding:20px 12px 8px; }
  .product-hero__image img{ max-width:92vw; }
}

/* 表格 */
.product-specifications{ max-width:1200px; margin:0 auto; padding:16px; }
.product-specifications h2{ margin:8px 0 12px; font-size:clamp(18px,2.4vw,28px); }

.table-wrap{
  width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;
  border:1px solid var(--border-color); border-radius:10px; background:#fff;
}
table{ width:100%; min-width:980px; border-collapse:collapse; }

/* ✅ 启用自动换行（解决 EMC 内容太长问题） */
th,td{
  padding:12px 10px;
  border-bottom:1px solid var(--border-color);
  text-align:center;
  white-space: normal;     /* 允许换行 */
  word-break: break-all;   /* 长英文/数字自动断行 */
  line-height: 1.5;        /* 行距适中 */
  vertical-align: middle;
}
thead th{
  position:sticky;
  top:0;
  background:var(--primary-color);
  color:#fff;
  z-index:1;
}
tbody tr:nth-child(even){ background:#f9f9f9; }
.spec-note{ color:var(--muted-color); font-size:13px; margin-top:8px; }

/* 频率曲线图 */
.curve-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
  gap:20px;
  margin-top:12px;
}
.curve-gallery figure{
  margin:0;
  background:#fff;
  border:1px solid var(--border-color);
  border-radius:12px;
  box-shadow:var(--card-shadow);
  overflow:hidden;
  text-align:center;
}

/* ✅ 统一曲线图显示高度 */
.curve-gallery img{
  width:100%;
  height:clamp(240px, 28vw, 360px);  /* 小屏≥240px，大屏≤360px */
  object-fit:contain;                /* 等比缩放不变形 */
  background:#fafafa;
}

.curve-gallery figcaption{
  padding:8px 10px;
  font-size:14px;
  color:var(--muted-color);
  background:#f5f5f5;
  border-top:1px solid var(--border-color);
}

/* 文档列表 */
.doc-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.doc-list li{
  background:var(--card-bg);
  border:1px solid var(--border-color);
  border-radius:10px;
  padding:10px 12px;
}
.doc-list a{ color:var(--primary-color); text-decoration:none; }
.doc-list a:hover{ text-decoration:underline; }
