/* 栈道 · 论坛版式皮肤（2026-12-04 v10）
   不再做 macOS 窗口那套：整页铺满、方正、信息密集，按论坛的读法排。
   颜色全部走 mdui 变量，深浅色自动跟随；只在 >=960px 生效，手机端不受影响。 */

@media (min-width: 960px) {

  /* ---------- 外壳：铺满，不留壁纸边 ---------- */
  html body{
    padding: 0 !important;
    overflow: hidden !important;
    background: rgb(var(--mdui-color-surface-container-low)) !important;
  }

  /* 窗体铺满之后，滚动交回内容区自己管 */
  html body .app-main,
  html body .app-frame > .app-main{
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  html body[class][class][class][class] .app-frame{
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: rgb(var(--mdui-color-surface)) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* ---------- 左栏：论坛侧导航 ---------- */
  html body .app-desktop-rail{
    padding-top: 46px !important;
    background: rgb(var(--mdui-color-surface-container-low)) !important;
    border-right: 1px solid rgba(var(--mdui-color-outline), .26) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html body .app-desktop-rail a{ border-radius: 6px !important; }
  html body .app-desktop-rail .rail-nav-item{ border-radius: 6px !important; }

  /* ---------- 顶栏：一条白条 + 发丝线 ---------- */
  html body .app-topbar,
  html body .app-frame > .app-topbar{
    background: rgb(var(--mdui-color-surface)) !important;
    border-bottom: 1px solid rgba(var(--mdui-color-outline), .22) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }
  /* 右上角那个“论坛”胶囊会压住发帖按钮，论坛里也不需要 */
  html body .app-topbar::after{ display: none !important; }

  /* ---------- 板块 tab：下划线式 ---------- */
  html body .page-content{ max-width: 1200px; }
  html body .page-content .app-chip-row{
    gap: 2px !important;
    margin-bottom: 12px;
    padding: 0 !important;
    border-bottom: 1px solid rgba(var(--mdui-color-outline), .22);
  }
  html body .page-content .app-chip-row .app-chip{
    padding: 8px 13px !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 2px solid transparent;
    background: none !important;
    font-size: 13.5px !important;
    color: rgb(var(--mdui-color-on-surface-variant)) !important;
  }
  html body .page-content .app-chip-row .app-chip.active{
    border-bottom-color: rgb(var(--mdui-color-primary)) !important;
    color: rgb(var(--mdui-color-primary)) !important;
    background: none !important;
    font-weight: 600;
  }

  /* ---------- 版块说明条：压成一行 ---------- */
  html body .page-content .app-home-intro{
    padding: 12px 16px !important;
    border: 1px solid rgba(var(--mdui-color-outline), .22) !important;
    border-radius: 8px !important;
    background: rgb(var(--mdui-color-surface)) !important;
    box-shadow: none !important;
  }
  html body .page-content .forum-home-head{
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 20px;
    padding: 0 !important;
  }
  html body .page-content .forum-head-copy{ gap: 2px !important; }
  html body .page-content .forum-head-kicker{
    margin: 0 !important;
    font-size: 11.5px !important;
    color: rgb(var(--mdui-color-on-surface-variant)) !important;
  }
  html body .page-content .forum-head-copy h1{
    margin: 2px 0 0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
  }
  html body .page-content .forum-head-copy p{
    margin: 1px 0 0 !important;
    font-size: 12.5px !important;
    color: rgb(var(--mdui-color-on-surface-variant)) !important;
  }
  html body .page-content .forum-head-stats{
    display: flex !important;
    gap: 0 !important;
    border: 1px solid rgba(var(--mdui-color-outline), .2);
    border-radius: 6px;
    overflow: hidden;
    background: rgb(var(--mdui-color-surface-container-low));
  }
  html body .page-content .forum-head-stats > span{
    padding: 6px 14px !important;
    border-left: 1px solid rgba(var(--mdui-color-outline), .16);
  }
  html body .page-content .forum-head-stats > span:first-child{ border-left: 0; }
  html body .page-content .forum-head-stats b{
    display: block;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2;
  }
  html body .page-content .forum-head-stats small{
    font-size: 11px !important;
    color: rgb(var(--mdui-color-on-surface-variant)) !important;
  }

  /* ---------- 帖子列表：一贴一行 ---------- */
  html body .page-content .app-feed{
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    border: 1px solid rgba(var(--mdui-color-outline), .22);
    border-radius: 8px;
    background: rgb(var(--mdui-color-surface));
    overflow: hidden;
  }
  html body .page-content .app-feed > .app-post-card{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    row-gap: 2px;
    align-items: start;
    min-height: 0 !important;
    height: auto !important;
    padding: 11px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(var(--mdui-color-outline), .16) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body .page-content .app-feed > .app-post-card:last-of-type{ border-bottom: 0 !important; }
  html body .page-content .app-feed > .app-post-card:hover{
    background: rgba(var(--mdui-color-primary), .05) !important;
  }
  html body .page-content .app-feed > .app-post-card .app-post-tags{
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 3px !important;
  }
  html body .page-content .app-feed > .app-post-card h2{
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
  }
  html body .page-content .app-feed > .app-post-card p{
    grid-column: 1 !important;
    grid-row: 3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 3px 0 0 !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: rgb(var(--mdui-color-on-surface-variant)) !important;
    opacity: .82;
  }
  html body .page-content .app-feed > .app-post-card .app-post-meta{
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    align-self: center !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 !important;
    font-size: 12px !important;
    color: rgb(var(--mdui-color-on-surface-variant)) !important;
  }
  html body .page-content .app-feed > .app-post-card .app-post-meta img{
    width: 20px; height: 20px;
  }

  /* 列表小标题：当表头用 */
  html body .page-content .app-section-head{
    margin: 14px 0 8px !important;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(var(--mdui-color-outline), .2);
  }

  /* ---------- 右栏信息块：方一点、白一点 ---------- */
  html body .forum-rail .forum-card{
    background: rgb(var(--mdui-color-surface)) !important;
    border: 1px solid rgba(var(--mdui-color-outline), .22) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  /* ---------- 交通灯：只是窗口的标志，不接点击 ---------- */
  .zd-lights{
    position: fixed;
    left: 18px;
    top: 18px;
    z-index: 900;
    display: flex;
    gap: 8px;
    pointer-events: none !important;
  }
  .zd-lights b{
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    overflow: hidden;
    text-indent: -99px;
    color: transparent !important;
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18);
  }
  .zd-lights b:nth-child(1){ background: #ff5f57; }
  .zd-lights b:nth-child(2){ background: #febc2e; }
  .zd-lights b:nth-child(3){ background: #28c840; }
}
