/* 站内搜索：沿用星晖主题的 banner / 面包屑 / 卡片体系（Figma 448:5551 同一套视觉规范） */

.ss-search-page { background: #fff; }

/* ---------- 顶部横幅 ---------- */
.ss-search-hero { position: relative; height: 5rem; overflow: hidden; background: #07121d url('/starshine/img/figma-banner.png') center 42%/cover no-repeat; color: #fff; }
.ss-search-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.1) 72%), linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.08) 55%, rgba(0,0,0,.45)); }
.ss-search-hero-inner { position: relative; z-index: 1; padding-top: 1.55rem; }
.ss-search-hero h1 { margin: 0; font-size: .52rem; font-weight: 500; line-height: 1; }
.ss-search-hero p { margin: .16rem 0 0; color: rgba(255,255,255,.72); font-size: .18rem; }

/* 搜索框：白底胶囊 + 品牌红按钮 */
.ss-search-bar { display: flex; width: 8.6rem; max-width: 100%; height: .72rem; align-items: center; gap: .18rem; margin-top: .42rem; padding: 0 .1rem 0 .3rem; border-radius: .36rem; background: #fff; box-shadow: 0 .06rem .24rem rgba(0,0,0,.18); }
.ss-search-bar-icon { display: block; width: .22rem; height: .22rem; flex: 0 0 .22rem; background: #b4b4b4; -webkit-mask: url('/starshine/img/search.svg') center/contain no-repeat; mask: url('/starshine/img/search.svg') center/contain no-repeat; }
.ss-search-bar input[type="text"] { min-width: 0; height: 100%; flex: 1; border: 0; background: none; color: #222; font-family: inherit; font-size: .18rem; outline: none; }
.ss-search-bar input[type="text"]::placeholder { color: #a6a6a6; }
.ss-search-bar button { width: 1.36rem; height: .52rem; flex: 0 0 1.36rem; border: 0; border-radius: .26rem; background: var(--ss-red); color: #fff; font-family: inherit; font-size: .18rem; font-weight: 500; cursor: pointer; transition: background-color .2s ease; }
.ss-search-bar button:hover { background: #b90f18; }

/* ---------- 结果区 ---------- */
.ss-search-main { min-height: 5rem; padding: .5rem 0 1rem; background: #fff; }
.ss-search-summary { color: #666; font-size: .17rem; line-height: 1.6; }
.ss-search-summary p { margin: 0; }
.ss-search-summary strong { margin: 0 .04rem; color: var(--ss-red); font-size: .26rem; font-weight: 600; }
.ss-search-summary em { color: var(--ss-red); font-style: normal; }

.ss-search-tabs { display: flex; flex-wrap: wrap; gap: .2rem; margin: .28rem 0 .45rem; }
.ss-search-tabs a { display: inline-flex; height: .5rem; align-items: center; gap: .06rem; padding: 0 .3rem; border: 1px solid var(--ss-red); border-radius: .03rem; background: #fff; color: var(--ss-red); font-size: .17rem; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.ss-search-tabs a i { color: inherit; font-size: .15rem; font-style: normal; opacity: .9; }
.ss-search-tabs a.is-active, .ss-search-tabs a:hover { background: var(--ss-red); color: #fff; }

.ss-search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; }
.ss-search-card { display: flex; min-height: 4.9rem; flex-direction: column; overflow: hidden; border-radius: .1rem; background: #f7f7f7; color: #111; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.ss-search-card:hover { transform: translateY(-.04rem); box-shadow: 0 .12rem .3rem rgba(0,0,0,.1); }
.ss-search-card-media { position: relative; height: 2.6rem; overflow: hidden; background: #ededed; }
.ss-search-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ss-search-card:hover .ss-search-card-media img { transform: scale(1.04); }
.ss-search-card-tag { position: absolute; top: .2rem; left: .2rem; padding: .07rem .16rem; border-radius: .03rem; background: rgba(208,18,28,.92); color: #fff; font-size: .14rem; line-height: 1.2; }
.ss-search-card-body { flex: 1; padding: .22rem .35rem .24rem; }
.ss-search-card-body h3 { display: -webkit-box; overflow: hidden; margin: 0; font-size: .23rem; font-weight: 600; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ss-search-card-body p { display: -webkit-box; overflow: hidden; margin: .14rem 0 0; color: #666; font-size: .15rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ss-search-card-foot { display: flex; height: .6rem; align-items: center; justify-content: space-between; padding: 0 .35rem; border-top: 1px solid #ddd; color: #999; font-size: .15rem; }
.ss-search-card-foot .ss-link-arrow { color: var(--ss-red); }

/* ---------- 空结果 ---------- */
.ss-search-empty { padding: .9rem 0 1rem; text-align: center; }
.ss-search-empty i { display: block; width: .86rem; height: .86rem; margin: 0 auto .26rem; background: #cdcdcd; -webkit-mask: url('/starshine/img/search.svg') center/contain no-repeat; mask: url('/starshine/img/search.svg') center/contain no-repeat; }
.ss-search-empty h2 { margin: 0; color: #222; font-size: .28rem; font-weight: 600; }
.ss-search-empty p { margin: .14rem 0 0; color: #888; font-size: .16rem; line-height: 1.7; }
.ss-search-empty p em { color: var(--ss-red); font-style: normal; }
.ss-search-empty-link { display: inline-flex; height: .44rem; align-items: center; margin-top: .3rem; padding: 0 .3rem; border: 1px solid var(--ss-red); border-radius: .03rem; color: var(--ss-red); font-size: .16rem; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.ss-search-empty-link:hover { background: var(--ss-red); color: #fff; }

/* ---------- 分页：与新闻中心列表同一套样式 ---------- */
.ss-search-pager { display: flex; justify-content: center; gap: .1rem; margin-top: .6rem; }
.ss-search-pager a, .ss-search-pager span { display: inline-flex; min-width: .32rem; height: .32rem; align-items: center; justify-content: center; padding: 0 .08rem; border: 1px solid #dedede; border-radius: .02rem; color: #7d7d7d; font-size: .14rem; text-decoration: none; }
.ss-search-pager .is-disabled { border-color: #eee; color: #c8c8c8; }
.ss-search-pager .is-current { border-color: var(--ss-red); background: var(--ss-red); color: #fff; }
.ss-search-pager .ss-page-arrow { font-size: .2rem; line-height: 1; }
.ss-search-pager .ss-page-ellipsis { border-color: transparent; }

@media (min-width: 1025px) {
  .ss-search-hero { min-height: 5rem; }
  .ss-search-hero-inner { padding-top: 2.05rem; }
}

@media (max-width: 1024px) {
  .ss-search-hero { min-height: 4rem; }
  .ss-search-hero-inner { padding-top: 1.6rem; }
  .ss-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ss-search-hero { min-height: 3.8rem; }
  .ss-search-hero-inner { padding-top: 1.5rem; }
  /* 见文件末尾「移动端 banner 智能居中裁切」总说明 */
  .ss-search-hero h1 { font-size: .38rem; }
  .ss-search-hero p { margin-top: .12rem; font-size: .15rem; }
  .ss-search-bar { height: .62rem; margin-top: .3rem; padding-left: .22rem; border-radius: .31rem; }
  .ss-search-bar input[type="text"] { font-size: .15rem; }
  .ss-search-bar button { width: 1.1rem; height: .46rem; flex-basis: 1.1rem; border-radius: .23rem; font-size: .15rem; }
  .ss-search-main { padding-top: .36rem; }
  .ss-search-summary { font-size: .15rem; }
  .ss-search-summary strong { font-size: .2rem; }
  .ss-search-tabs { gap: .12rem; margin: .22rem 0 .32rem; }
  .ss-search-tabs a { height: .44rem; padding: 0 .2rem; font-size: .15rem; }
  .ss-search-grid { grid-template-columns: 1fr; gap: .2rem; }
  .ss-search-card-media { height: 2.45rem; }
  .ss-search-card-body h3 { font-size: .2rem; }
  .ss-search-empty { padding: .8rem 0 .9rem; }
  .ss-search-empty h2 { font-size: .24rem; }
  .ss-search-empty p { font-size: .14rem; }
}

/* ============================================================
   移动端 banner 智能居中裁切
   ------------------------------------------------------------
   搜索页横幅 figma-banner.png 为 1536x862（比例约 1.78）。
   小屏固定 3.8rem 高时容器比例仅约 1.2，cover 会裁掉左右两侧约 1/3。
   改为随屏宽等比（aspect-ratio 1.7）+ 居中，显示比例提升到约 95%。
   ============================================================ */
@media (max-width: 1024px) {
  .ss-search-hero { height: auto; aspect-ratio: 1536 / 862; min-height: 0; background-position: center; }
  .ss-search-hero-inner { padding-top: .6rem; }
}

/* ============================================================
   移动端模块间距收紧（搜索页）
   ------------------------------------------------------------
   ≤1200px 时 1rem = 62.5px，主体区底部原有 1rem（62.5px）留白偏大，
   收紧到 .6rem，与顶部 .4rem 合计约 62px。
   ============================================================ */
@media (max-width: 1024px) {
  .ss-search-main { padding: .4rem 0 .6rem; }
}

/* ============================================================
   英文站跳转按钮文案全大写（搜索页）
   ------------------------------------------------------------
   搜索页不 @import home.css，故此处单独声明，
   覆盖「Search」「Back to Home」及标签页等跳转类文案。
   ============================================================ */
html[lang="en"] .ss-search-bar button,
html[lang="en"] .ss-search-tabs a,
html[lang="en"] .ss-search-empty-link,
html[lang="en"] .ss-search-card-foot .ss-link-arrow,
html[lang="en"] .ss-header-hotline > div > span,
html[lang="en"] .ss-legal-link,
html[lang="en"] .ss-backtop {
  text-transform: uppercase;
}
