/* 首页品牌名「项目驿站」：加粗 + 金色流光渐变 + 柔光 + 缓慢扫光动画
   放在 theme.css 之后加载，选择器权重更高，覆盖 home.css / theme.css 中的 logo-name 样式 */
.wrap > .topbar .logo-name{
  font-family:"Ma Shan Zheng","STKaiti","KaiTi",var(--hm-serif),serif;
  font-weight:700;
  font-size:28px;
  letter-spacing:5px;
  line-height:1.2;
  color:transparent;
  -webkit-text-fill-color:transparent;
  background-image:linear-gradient(100deg,#7a5c22 0%,#c9a24a 18%,#fbf0c8 32%,#d4af37 46%,#fff7d6 54%,#b8903e 68%,#7a5c22 100%);
  background-size:250% auto;
  background-position:0% center;
  -webkit-background-clip:text;
  background-clip:text;
  filter:drop-shadow(0 0 12px rgba(212,175,55,.38)) drop-shadow(0 1px 0 rgba(0,0,0,.55));
  text-shadow:none;
  animation:logoShine 6s linear infinite;
}
/* 品牌副标题（后台 site_sub 设置）：细字距、金色细线装饰、弱化颜色 */
.wrap > .topbar .logo-sub{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
  font-family:"Ma Shan Zheng","STKaiti","KaiTi",var(--hm-serif),serif;
  font-size:15px;
  font-weight:400;
  letter-spacing:3px;
  line-height:1.4;
  color:rgba(243,230,196,.78);
  white-space:nowrap;
}
/* 首页公告条：金色描边面板 + 左侧金色徽记 + 柔和光带，滚动文字保持不变 */
.wrap > .notice{
  position:relative;
  display:flex !important;
  align-items:center;
  gap:12px;
  min-height:40px;
  margin:14px 0 !important;
  padding:0 14px 0 12px !important;
  border-radius:12px !important;
  border:1px solid rgba(212,175,55,.42) !important;
  background:linear-gradient(100deg,rgba(212,175,55,.12),rgba(16,14,10,.82) 45%,rgba(16,14,10,.9)) !important;
  box-shadow:0 6px 22px rgba(0,0,0,.35),inset 0 1px 0 rgba(244,228,188,.08) !important;
  overflow:hidden;
}
.wrap > .notice::before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(105deg,transparent 30%,rgba(255,240,200,.12) 50%,transparent 70%);
  transform:translateX(-100%);
  animation:logoNoticeSheen 6s ease-in-out infinite;
  pointer-events:none;
  display:block !important;
}
.wrap > .notice .notice-icon{display:none !important}
.wrap > .notice .notice-divider{
  flex:0 0 1px;width:1px;height:18px;
  background:linear-gradient(180deg,transparent,#d4af37,transparent) !important;
}
.wrap > .notice .track{position:relative;z-index:1;flex:1;min-width:0;overflow:hidden}
/* “公告”标签字号放大，与正文协调 */
.wrap > .notice .tag b{font-size:15px !important;letter-spacing:3px !important;line-height:1.2}
.wrap > .notice .tag{margin-left:6px}
/* 所有项目卡片：外边框光带左右往返扫动（alternate 实现双向） */
@keyframes cfSweep{from{background-position:120% 0}to{background-position:-20% 0}}
.wrap #grid .card{position:relative}
.wrap #grid .card::before{display:block !important;content:'';position:absolute;inset:0;border-radius:inherit;padding:1px;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,transparent 35%,rgba(240,210,138,.95) 50%,transparent 65%) 0 0/250% 100% no-repeat;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  animation:cfSweep 3.2s ease-in-out infinite alternate}
/* 项目卡片封面：完整显示图片，不裁切 */
.wrap .card .art{background:#0d0b10}
.wrap .card .art img{object-fit:contain !important}
.wrap > .notice .text{
  font-family:"Ma Shan Zheng","STKaiti","KaiTi",var(--hm-serif),serif !important;
  font-size:16px !important;
  letter-spacing:1px !important;
  color:rgba(243,230,196,.88) !important;
}
/* 项目简介：超出两行换行截断（最多 2 行） */
.wrap .card .ds{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-break:break-all;line-height:1.5}
/* 公告小圆点：彻底隐藏 */
.wrap > .notice .notice-live{display:none !important}

/* 公告滚动：文字为两段完全相同的内容，首尾无缝衔接，没有空档 */
.wrap > .notice .text{
  display:inline-flex !important;
  white-space:nowrap;
  animation:logoNoticeMarquee 16s linear infinite !important;
  will-change:transform;
}
.wrap > .notice .text .seg{flex:0 0 auto;display:inline-block}
@keyframes logoNoticeMarquee{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}
@keyframes logoNoticeSheen{
  0%,100%{transform:translateX(-100%)}
  50%{transform:translateX(100%)}
}
@keyframes logoNoticeDot{
  0%,100%{opacity:.45}
  50%{opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .wrap > .notice::before,.wrap > .notice .notice-live{animation:none !important}
}
/* 首页间距统一：公告上移，公告与轮播图间距一致；分区标题间距统一为 22px */
.wrap > .notice{margin:6px 0 10px !important}
.wrap > .banner{margin-top:10px !important}
.wrap > .section-head{margin-top:22px !important}
.wrap > .entries + .section-head{margin-top:12px !important}

/* 项目网格：所有手机强制一行两个（覆盖 home.css 小屏改为单列的规则） */
.wrap > #grid,
.grid#grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}
@media (max-width:360px){
  .wrap > #grid,
  .grid#grid{gap:8px !important}
}

/* 服务入口（在线客服等）：所有手机一行两个，覆盖 home.css 小屏单列规则 */
.wrap > .entries,
.entries{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

/* 项目卡片角标（亲测 / 新品 / 人气 等）：统一为暗底金边小标签，去掉刺眼的实色渐变 */
.wrap > #grid .card .badge{
  top:10px !important;
  left:10px !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  height:20px;
  padding:0 9px !important;
  border-radius:20px !important;
  font-family:"Ma Shan Zheng","STKaiti","KaiTi",var(--hm-serif),serif !important;
  font-size:11px !important;
  font-weight:400 !important;
  letter-spacing:2px !important;
  line-height:1 !important;
  color:#f3e6c4 !important;
  background:linear-gradient(135deg,rgba(18,14,8,.82),rgba(42,32,14,.82)) !important;
  border:1px solid rgba(212,175,55,.6) !important;
  box-shadow:0 0 0 1px rgba(0,0,0,.35),0 2px 10px rgba(212,175,55,.22) !important;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  text-shadow:0 0 8px rgba(212,175,55,.35);
}
@keyframes logoShine{
  0%{background-position:0% center}
  100%{background-position:250% center}
}
@media (prefers-reduced-motion:reduce){
  .wrap > .topbar .logo-name{animation:none;background-position:50% center}
}

/* 分区标题「服务中心」「项目合集」统一设计（最后加载，优先级最高） */
.section-head{
  display:flex !important;align-items:center;gap:14px;
  margin:28px 0 16px !important;padding:0 2px;
}
.section-head .sh-title{
  position:relative;flex:0 0 auto;
  font-family:"Noto Serif SC","Songti SC","STSong",serif !important;
  font-size:15px !important;font-weight:400 !important;letter-spacing:6px !important;
  color:#f1e3c0 !important;line-height:1;padding-left:12px;
}
.section-head .sh-title::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:3px;height:14px;border-radius:2px;background:#d6be8c;
}
.section-head .sh-line{
  flex:1 !important;height:1px !important;
  background:linear-gradient(90deg,rgba(214,190,140,.45),rgba(214,190,140,.04) 85%,transparent) !important;
}
