/* ===== 全局 ===== */
:root{
  --text: #222;
  --muted:#777;
  --line:#e9e9e9;
  --soft:#f6f6f6;
}

body{
  font-family: "Microsoft YaHei", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:#fff;
}

a{ color: inherit; }

/* ===== 顶部导航（对齐截图：细、干净、间距舒服） ===== */
.onlys-nav{
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f2;
}
.onlys-nav .nav-link{
  font-size: 14px;
  color: #333;
  padding: 0;
}
.onlys-nav .nav-link:hover{
  color: #111;
}

/* ===== Banner（对齐截图：大图 + 左侧文案居中 + 底部圆点） ===== */
.onlys-banner{ background:#fff; }
.onlys-banner-img{
  width:100%;
  height:auto;           /* 尽量 1:1 不裁切 */
  display:block;
}

.onlys-banner-caption{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.onlys-banner-copy{
  max-width: 520px;
  margin-left: 36px;     /* 左侧留白接近截图 */
}
.onlys-banner-copy h2{
  color:#fff;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: .5px;
  margin:0 0 12px 0;
}
.onlys-banner-copy p{
  color:#fff;
  opacity:.95;
  font-size: 16px;
  line-height: 1.9;
  margin:0;
}

/* 圆点指示器（截图那种细圆点） */
.onlys-indicators{
  margin-bottom: 18px;
}
.onlys-indicators [data-bs-target]{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: transparent;
  border: 2px solid rgba(30, 60, 120, .35);
  margin: 0 6px;
  opacity: 1;
}
.onlys-indicators .active{
  background: rgba(30, 60, 120, .35);
}

/* ===== 通用区块（对齐截图：不要超大 padding） ===== */
.onlys-section{
  padding: 70px 0;
}
.onlys-section-tight{
  padding: 46px 0;
}
.onlys-section-gray{
  background: #fafafa;
}

/* 标题样式：英文 + 中文 + 细横线（截图同款节奏） */
.onlys-head{
  text-align:center;
  margin-bottom: 26px;
}
.onlys-kicker{
  font-size: 14px;
  letter-spacing: 1px;
  color:#222;
}
.onlys-kicker span{
  letter-spacing: 0;
  font-size: 14px;
  color:#222;
}
.onlys-title{
  font-size: 30px;
  font-weight: 700;
  margin-top: 14px;
}
.onlys-line{
  width: 46px;
  height: 1px;
  background: var(--line);
  margin: 18px auto 0;
}

/* ABOUT 正文：居中窄一些 */
.onlys-desc{
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  text-align: center;
}

/* ===== 系列产品通栏图（截图：紧贴上下，干净） ===== */
.onlys-wide-img img{
  display:block;
  width:100%;
  height:auto;
}

/* ===== 更多产品：5 等分卡片（截图样式） ===== */
.onlys-product-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}
.onlys-product-card{
  background:#f7f7f7;
  border: 1px solid #f0f0f0;
  height: 170px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.onlys-product-card img{
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  transition: transform .25s ease;
}
/*.onlys-product-item:hover .onlys-product-card img{*/
/*  transform: scale(1.04);*/
/*}*/
.onlys-product-name{
  text-align:center;
  margin-top: -40px;
  font-size: 12px;
  color:#888;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* ===== 活动热点：左大右 2×2（截图比例） ===== */
.onlys-news-card{
  background:#fff;
  border: 1px solid #f0f0f0;
}
.onlys-news-card img{
  width:100%;
  height: 100%;
  display:block;
  object-fit: cover;
}
.onlys-news-cap{
  font-size: 12px;
  color:#888;
  padding: 10px 12px;
  text-align: left;
}

/* 左大卡片：图更大一些 */
/*.onlys-news-card-big{*/
/*  height: 100%;*/
/*}*/
/*.onlys-news-card-big img{*/
/*  height: 350px;*/
/*}*/

/* 右侧 2×2 */
.onlys-news-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
}
.onlys-news-grid .onlys-news-card img{
  height: 150px;
}

/* ===== 页脚（截图：浅灰底 + 居中链接） ===== */
.onlys-footer{
  background: var(--soft);
  border-top: 1px solid #eee;
  padding: 22px 0;
}
.onlys-footer-links{
  display:flex;
  justify-content:center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.onlys-footer-links a{
  text-decoration:none;
  color:#666;
  font-size: 12px;
}
.onlys-footer-links a:hover{ color:#333; }
.onlys-footer-copy{
  text-align:center;
  color:#888;
  font-size: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 992px){
  .onlys-banner-copy h2{ font-size: 30px; }
  .onlys-banner-copy{ margin-left: 16px; }
  .onlys-section{ padding: 52px 0; }
  .onlys-product-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /*.onlys-news-card-big img{ height: 260px; }*/
  /*.onlys-news-grid .onlys-news-card img{ height: 140px; }*/
}

@media (max-width: 576px){
  .onlys-product-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ✅ ABOUT 标题更大 + 主标题上边距更大（覆盖原样式） */
#about .onlys-kicker{
  font-size: 25px;      /* 原来 14px -> 放大 */
  letter-spacing: 1.5px;
}

#about .onlys-title{
  margin-top: 36px;     /* 原来 14px -> 上边距更大 */
  font-size: 36px;      /* 可选：顺带更显眼一点（你也可以删掉这行） */
}

 
 
 
 
 /* =========================
   ✅ HIGHLIGHTS 活动热点（左大右 2×2）
   目标：左边（图+字）高度 = 右边（两行图+字）总高度
========================= */

#highlights{
  --hl-h: 360px;   /* ✅ 整块高度：调这里 280/300/320/350 */
  --cap-h: 38px;   /* ✅ 文字条高度 */
  --gap: 12px;     /* ✅ 右侧网格间距 */
}

/* 桌面端：左右两列强制同高 */
@media (min-width: 992px){
  #highlights .col-lg-7,
  #highlights .col-lg-5{
    height: var(--hl-h);
  }
}

/* 小屏：取消固定高度 */
@media (max-width: 991.98px){
  #highlights .col-lg-7,
  #highlights .col-lg-5{
    height: auto;
  }
}

/* 左右容器撑满列高度 */
#highlights .onlys-news-card-big,
#highlights .onlys-news-grid{
  height: 100%;
  min-height: 0;
}

/* 右侧 2×2：两行两列等分，整体高度 = 右列高度 */
#highlights .onlys-news-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
}

/* 每张卡片：flex 结构（上图 + 下文字条） */
#highlights .onlys-news-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  background:#fff;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  min-height: 0;
}

/* 图片：吃满剩余空间（不会把文字挤没） */
#highlights .onlys-news-card img{
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 文字条：固定高度，永远可见 */
#highlights .onlys-news-cap{
  flex: 0 0 var(--cap-h);
  height: var(--cap-h);
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  border-top: 1px solid #f3f3f3;

  font-size: 12px;
  color: #888;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* ✅ 页脚链接：字体更大 + 居中分散 */
.onlys-footer-links.onlys-footer-links-big{
  display: flex;
  justify-content: center;   /* 居中 */
  gap: 56px;                 /* 分散间距（想更松就加大） */
  flex-wrap: wrap;
  padding: 6px 0 10px;
}

.onlys-footer-links.onlys-footer-links-big a{
  font-size: 16px;           /* 字体变大 */
  font-weight: 600;
  color:#555;
  text-decoration: none;
}

.onlys-footer-links.onlys-footer-links-big a:hover{
  color:#0b55c8;
}

/* 小屏自动收紧 */
@media (max-width: 768px){
  .onlys-footer-links.onlys-footer-links-big{
    gap: 18px;
  }
  .onlys-footer-links.onlys-footer-links-big a{
    font-size: 14px;
  }
}




/* =========================
   ✅ PRODUCTS 通栏大图文字叠加
   靠上 + 居中（可调 top）
========================= */
#products.onlys-products-hero{
  position: relative;
}

/* 叠加层 */
#products .onlys-products-overlay{
  position: absolute;
  left: 50%;
  top: 16%;                       /* ✅ 靠上位置：想再靠上就调小，比如 12% */
  transform: translateX(-50%);
  width: min(820px, 90%);
  text-align: center;
  color: #fff;
  pointer-events: auto;
}

/* 第一行：白色大字 */
#products .onlys-products-overlay .p-title{
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;               /* 更像图里那种“细大字” */
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 0 6px 22px rgba(0,0,0,.35);
}

/* 第二行：白色小字 */
#products .onlys-products-overlay .p-sub{
  margin-top: 10px;
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 600;
  opacity: .95;
  text-shadow: 0 6px 18px rgba(0,0,0,.30);
}

/* 第三行：白色小字（描述） */
#products .onlys-products-overlay .p-desc{
  margin-top: 10px;
  font-size: clamp(13px, 1.2vw, 18px);
  opacity: .9;
  line-height: 1.8;
  text-shadow: 0 6px 18px rgba(0,0,0,.28);
}

/* 第四行：蓝色小字“了解更多” */
#products .onlys-products-overlay .p-more{
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: #4da3ff;                 /* ✅ 蓝色 */
  text-decoration: none;
  letter-spacing: .5px;
}
#products .onlys-products-overlay .p-more:hover{
  color: #86c5ff;
  text-decoration: underline;
}

/* 小屏稍微往下点，避免挡住图片关键元素 */
@media (max-width: 768px){
  #products .onlys-products-overlay{
    top: 12%;
  }
}

