/* 按 Figma 设计稿（星幕01 / 搜索结果页 node 14:3943）对齐的细节覆盖，
   加载在各页面 CSS 之后以覆盖静态模版导出的旧值。
   注意：尺寸类覆盖仅作用于桌面端（min-width:721px），避免压掉页面 CSS 的移动端断点。 */

/* 文章卡片：圆角 6px，分类标签为深灰描边胶囊 + 浅蓝文字 */
.article-card,
.article-card--compact,
.article-card--featured{
  height:260px;
  min-height:260px;
}
.article-card{border-radius:6px}
.article-card{
  transition:transform .25s ease;
}
.article-card:hover{
  z-index:1;
  transform:scale(1.02);
}
.article-card__meta span,
.detail-tags span,
.detail-tags a{
  color:#63a1ff!important;
}
.article-card__media img{border-radius:6px}
.article-card__body{z-index:2}
.article-card__meta{gap:10px}
.article-card__meta span{
  display:inline-flex;
  align-items:center;
  border:0.6px solid #575757;
  border-radius:4px;
  background:#212222;
  color:#63a1ff;
}
.article-card h3{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow-wrap:anywhere;
  line-height:1.5;
}
.article-card p{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* 卡片副标题（作者 · 时间）与数据统计：白色系文字 */
.article-card p{color:#d4d4d4}
.article-card__stats{
  min-width:0;
  flex-wrap:wrap;
  row-gap:6px;
  color:#fff;
}
.article-card__stats span{min-width:0}
.article-card--compact{
  height:260px;
  min-height:260px;
}
.article-card--compact .article-card__body{
  right:22px;
  bottom:18px;
  left:22px;
  gap:7px;
}
.article-card--compact h3{
  font-size:18px;
  line-height:1.5;
}
.article-card--compact p,
.article-card--compact .article-card__stats{
  font-size:12px;
  line-height:18px;
}

/* 全站文章列表：卡片间距统一为 20px */
.home-feed,
.tag-grid,
.search-results{
  gap:20px;
}

/* 全局底部分享：无标题、无灰底，按 Figma 固定图标与文字间距 */
.app-footer__share{
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  border:0;
  background:transparent;
}
.app-footer__share > div{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:32px;
}
.app-footer__share a,
.app-footer__share button{
  display:grid;
  grid-template-rows:52px auto;
  align-content:start;
  justify-items:center;
  gap:12px;
  padding:0;
  border:0;
  background:transparent;
  color:#a6a6ad;
  font-size:14px;
  line-height:22px;
  cursor:pointer;
}
.app-footer__share-label{display:block}

@media(max-width:720px){
  .article-card,
  .article-card--compact,
  .article-card--featured{
    height:auto;
    min-height:0;
    aspect-ratio:720/260;
  }
  .app-footer__share{
    min-height:auto;
    padding:20px 12px;
  }
  .app-footer__share > div{
    flex-wrap:wrap;
    gap:24px;
  }
}

/* 搜索框：设计稿底色 #141416、边框 #414141 */
.search-form{background:#141416;border-color:#414141}

/* 搜索结果摘要：常规字重、浅灰文字、蓝色关键词 */
.search-results p.search-results__summary{color:#e4e4e4;font-weight:400;line-height:20px}
.search-results__keyword{color:#3752ff}

/* 首页信息流第一个广告：横条展示，避免列表首屏被竖图广告撑高 */
.ad-slot--feed-banner{
  border-radius:8px;
}
.ad-slot--feed-banner .ad-slot__link,
.ad-slot--feed-banner .ad-slot__missing{
  position:relative;
  display:block;
  height:104px;
  min-height:104px;
  padding:0;
  overflow:hidden;
}
.ad-slot--feed-banner.ad-slot--image .ad-slot__link img,
.ad-slot--feed-banner .ad-slot__missing img,
.ad-slot--feed-banner .ad-slot__missing iframe{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:inherit;
}
.ad-slot--feed-banner .ad-slot__label{
  top:12px;
  right:12px;
  left:auto;
  min-width:72px;
  min-height:28px;
  padding:3px 10px;
  font-size:13px;
}
.ad-slot--feed-banner .ad-slot__label-icon{
  width:18px;
  height:18px;
}
.ad-slot--feed-banner .ad-slot__copy{
  height:100%;
  display:grid;
  align-content:center;
  padding:0 108px 0 22px;
}

/* 普通列表广告：除首页顶部横条外，尺寸与文章封面卡片一致 */
.ad-slot--image:not(.ad-slot--feed-banner),
.ad-slot--poster:not(.ad-slot--feed-banner){
  min-height:405px;
  border-radius:6px;
  background:#111215;
}
.ad-slot--image:not(.ad-slot--feed-banner) .ad-slot__link,
.ad-slot--poster:not(.ad-slot--feed-banner) .ad-slot__link,
.ad-slot--poster:not(.ad-slot--feed-banner) .ad-slot__missing{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  padding:0;
  overflow:hidden;
}
.ad-slot--image:not(.ad-slot--feed-banner) .ad-slot__link img,
.ad-slot--poster:not(.ad-slot--feed-banner) .ad-slot__missing img,
.ad-slot--poster:not(.ad-slot--feed-banner) .ad-slot__missing iframe{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:inherit;
}
.ad-slot--image:not(.ad-slot--feed-banner) .ad-slot__label,
.ad-slot--poster:not(.ad-slot--feed-banner) .ad-slot__label{
  position:absolute;
  top:24px;
  right:24px;
  left:auto;
  z-index:2;
  min-width:72px;
  min-height:28px;
  padding:3px 10px;
  font-size:13px;
}

/* 桌面头部：左侧固定展示 logo + 品牌名 */
.app-header__brand{
  min-width:0;
  display:inline-flex!important;
  align-items:center;
  gap:0;
  max-width:min(340px,42vw);
  color:#f5f5f6;
}
.app-header__brand img{
  width:auto!important;
  height:50px!important;
  max-width:none!important;
  max-height:50px!important;
  flex:0 0 auto;
  border-radius:0;
  object-fit:contain;
}
.app-header__brand-name{
  display:none;
}
.app-header__drawer-brand{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding-right:36px;
}
.app-header__drawer-brand img{
  width:auto!important;
  height:30px!important;
  max-width:120px!important;
  max-height:30px!important;
  flex:0 0 auto;
  border-radius:0;
  object-fit:contain;
}
.app-header__drawer-brand-name{
  display:none;
}
.app-footer__brand-title img{
  width:auto!important;
  height:30px!important;
  max-width:120px!important;
  max-height:30px!important;
  flex:0 0 auto;
  border-radius:0;
  object-fit:contain;
}

/* 登录弹窗：压住 root.css 中导出的旧 Logo 尺寸 */
.login-modal{overflow:hidden}
.login-modal__header{
  display:grid;
  justify-items:start;
  gap:7px;
  padding-right:40px;
  text-align:left;
}
.login-modal__brand{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.login-modal__brand img{
  width:auto!important;
  height:30px!important;
  max-width:120px!important;
  max-height:30px!important;
  flex:0 0 auto;
  border-radius:0;
  object-fit:contain;
}
.login-modal__brand-name{
  display:none;
}
.login-modal__header h2{
  margin:0;
  padding-left:0;
  color:#a6a6ad;
  font-size:14px;
  font-weight:500;
  line-height:21px;
}

/* 桌面端尺寸细节 */
@media(min-width:721px){
  .article-card__meta{top:24px;left:32px}
  .article-card__meta span{height:22px;padding:2px 9px;font-size:10px;line-height:normal}
  .article-card__stats{gap:20px;font-size:16px;line-height:20px}
  .article-card__stats span{gap:4px}
  .article-card__stat-icon{width:22px;height:22px}
  .article-card--compact .article-card__meta{top:18px;left:22px;right:22px}
  .article-card--compact .article-card__stats{gap:16px;font-size:12px;line-height:18px}
  .article-card--compact .article-card__stat-icon{width:22px;height:22px}
}

@media(max-width:720px){
  .article-card h3{font-size:16px;-webkit-line-clamp:2}
  .article-card p,
  .article-card .article-card__stats{font-size:14px}
  .article-card__body,
  .article-card--compact .article-card__body{right:18px;bottom:16px;left:18px;gap:4px}
  .article-card--compact .article-card__meta{top:16px;left:16px;right:16px}
  .article-card--compact .article-card__stats{gap:14px}
  .ad-slot--feed-banner .ad-slot__link,
  .ad-slot--feed-banner .ad-slot__missing{
    height:88px;
    min-height:88px;
  }
  .ad-slot--feed-banner .ad-slot__label{
    top:10px;
    right:10px;
    left:auto;
    min-width:64px;
    min-height:26px;
    padding:2px 8px;
    font-size:12px;
  }
  .ad-slot--feed-banner .ad-slot__label-icon{
    width:16px;
    height:16px;
  }
  .ad-slot--feed-banner .ad-slot__copy{
    padding:0 90px 0 16px;
  }
  .ad-slot--image:not(.ad-slot--feed-banner),
  .ad-slot--poster:not(.ad-slot--feed-banner){
    min-height:calc(56.25vw - 18px);
  }
  .ad-slot--image:not(.ad-slot--feed-banner) .ad-slot__label,
  .ad-slot--poster:not(.ad-slot--feed-banner) .ad-slot__label{
    top:16px;
    right:16px;
    left:auto;
  }
  .app-header__top{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    gap:8px;
  }
  .app-header__brand{
    grid-column:2;
    position:static!important;
    left:auto!important;
    justify-self:center;
    max-width:none;
    transform:none!important;
    gap:0;
  }
  .app-header__brand img{
    width:auto!important;
    height:30px!important;
    max-width:120px!important;
    max-height:30px!important;
    flex-basis:auto;
    border-radius:0;
  }
  .app-header__brand-name{
    display:none;
  }
  .app-header__mobile-trigger{
    grid-column:1;
    grid-row:1;
    width:36px;
    min-width:36px!important;
    height:36px;
    justify-self:start;
    padding:0!important;
    border-radius:4px;
    background:transparent;
    font-size:0!important;
    gap:0!important;
  }
  .app-header__actions{
    grid-column:3;
    grid-row:1;
    justify-self:end;
  }
  .app-header__action--profile>span:last-child{
    display:none;
  }
  .app-header__drawer-brand img{
    width:auto!important;
    height:30px!important;
    max-width:120px!important;
    max-height:30px!important;
    flex-basis:auto;
    border-radius:0;
  }
  .app-header__drawer-brand-name{
    font-size:17px;
    line-height:23px;
  }
  .login-modal__header{gap:6px;padding-right:32px}
  .login-modal__brand{gap:8px}
  .login-modal__brand img{
    width:auto!important;
    height:24px!important;
    max-width:96px!important;
    max-height:24px!important;
    flex-basis:auto;
    border-radius:0;
  }
  .login-modal__brand-name{max-width:160px;font-size:17px;line-height:23px}
  .login-modal__header h2{padding-left:0;font-size:13px;line-height:19px}
}

@media(max-width:480px){
  .app-header__brand{
    max-width:none;
  }
  .app-header__brand img{
    width:auto!important;
    height:26px!important;
    max-width:104px!important;
    max-height:26px!important;
    flex-basis:auto;
  }
  .app-footer__brand-title img{
    width:auto!important;
    height:26px!important;
    max-width:104px!important;
    max-height:26px!important;
  }
  .app-header__mobile-trigger{
    width:32px;
    min-width:32px!important;
    height:32px;
  }
}

/* 列表分页：跳至指定页 */
.home-pager{
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.home-pager__controls{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:16px;
}
.pager-jump,
.ss-profile-pagination .pager-jump{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  color:#a6a6ad;
  font-size:14px;
  line-height:22px;
}
.pager .pager-jump{margin-top:4px}
.pager-jump__label,
.pager-jump__unit{color:#a6a6ad}
.pager-jump__input{
  width:64px;
  height:36px;
  box-sizing:border-box;
  padding:0 10px;
  border:1px solid hsla(0,0%,100%,.18);
  border-radius:8px;
  background:#111215;
  color:#f5f5f6;
  font-size:14px;
  line-height:34px;
  text-align:center;
  outline:0;
  -moz-appearance:textfield;
  appearance:textfield;
}
.pager-jump__input::-webkit-outer-spin-button,
.pager-jump__input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.pager-jump__input::placeholder{color:#6f7078}
.pager-jump__input:focus{
  border-color:#3752ff;
  box-shadow:0 0 0 1px rgba(55,82,255,.28);
}
.pager-jump__submit{
  min-width:64px;
  height:36px;
  padding:0 14px;
  border:1px solid hsla(0,0%,100%,.18);
  border-radius:8px;
  background:#111215;
  color:#f5f5f6;
  font-size:14px;
  line-height:34px;
  cursor:pointer;
}
.pager-jump__submit:hover{
  border-color:#3752ff;
  color:#3752ff;
}
.ss-profile-pagination{
  flex-direction:column;
  gap:12px;
}
.ss-profile-pagination__controls{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}
@media(max-width:720px){
  .pager-jump__input,
  .pager-jump__submit{height:34px}
  .pager-jump__input{width:56px;padding:0 8px}
}

/* 顶栏头像：只用 background-image 铺满（default-avatar.svg），不要假底色 */
.app-header__avatar{
  position:relative;
  width:32px;
  height:32px;
  display:inline-block;
  overflow:hidden;
  border:0;
  border-radius:50%;
  vertical-align:middle;
  font-size:0;
  line-height:0;
  background-color:transparent;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat
}
.app-header__avatar img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  max-width:none;
  display:block;
  object-fit:cover;
  border:0;
  opacity:0
}
.app-header__avatar img[load="success"],
.app-header__avatar img[src^="data:image/"]{
  opacity:1
}
.app-header__action--profile > span:not(.app-header__avatar){
  color:#f5f5f6;
  font-size:14px;
  line-height:22px
}

/* 列表卡片窄屏尺寸：481-720px 保持原尺寸，480px 以下进一步收紧。 */
@media(max-width:720px){
  .article-card__stat-icon,
  .article-card--compact .article-card__stat-icon{width:22px;height:22px}
}
@media(max-width:480px){
  .article-card h3{font-size:14px;line-height:21px}
  .article-card p,
  .article-card .article-card__stats{font-size:12px;line-height:18px}
  .article-card__body,
  .article-card--compact .article-card__body{right:8px;bottom:6px;left:8px;gap:2px}
  .article-card__stats,
  .article-card--compact .article-card__stats{gap:18px}
  .article-card__stats span{gap:4px}
  .article-card__stat-icon,
  .article-card--compact .article-card__stat-icon{width:16px;height:16px}
  .article-card__meta,
  .article-card--compact .article-card__meta{top:8px;right:auto;left:8px}
}
@media(max-width:360px){
  .article-card h3{-webkit-line-clamp:1}
}

/* 登录框沿用独立蓝色体系，不跟随站点主题色。 */
.login-modal__tab--active,
.login-modal__submit{background:#378fff;color:#fff}
.login-modal__notice{
  border-color:rgba(55,143,255,.28);
  background:rgba(55,143,255,.1)
}
.login-modal__notice-icon{color:#ffbd00}
.login-modal__notice strong,
.login-modal__message--success{color:#378fff}
.login-modal__field input:focus{
  border-color:#378fff;
  box-shadow:0 0 0 3px rgba(55,143,255,.16)
}

/* 宽屏顶栏：品牌与操作区贴近两侧，导航保持居中；窄屏沿用原布局。 */
@media(min-width:1280px){
  .app-header{
    min-height:61px;
    display:grid;
    grid-template-columns:minmax(160px,1fr) auto minmax(160px,1fr);
    align-items:center;
    padding:0 32px
  }
  .app-header__top{display:contents}
  .app-header__brand{
    position:relative;
    z-index:4;
    grid-column:1;
    grid-row:1;
    justify-self:start
  }
  .app-header__actions{
    position:relative;
    z-index:4;
    grid-column:3;
    grid-row:1;
    justify-self:end
  }
  .app-header__nav{
    grid-column:2;
    grid-row:1;
    width:auto;
    max-width:none;
    height:61px;
    margin:0
  }
  .app-header__nav-scroll{overflow:visible}
  .app-header__nav-link{height:61px}
}

/* 首页与分类页 hero 内容保留左右安全间距。 */
.home-hero__inner,
.tag-hero__inner{padding-inline:20px}
.home-hero p{max-width:none}
