/* 动帧阁 · 工作台首页（drama.onecat.xin 的落地页，2026-11-18）。
 *
 * 为什么是独立文件：style.css 由 style.parts/ 生成，直接往里写会被下一次
 * build_css.py 静默覆盖（同 memory style-css-generated-from-parts）。这一页
 * 只有它自己用，写在这儿不影响全站任何一页。
 *
 * 深色只作用在 body.on-studio 上（首页 / 闪电 / 账号页共用这三个导航页），
 * 不改 :root 变量 —— 其它页面一个像素都不动。
 *
 * 点阵是**独立一层**（.st-hero-grid），不是 background-position：
 * 同 memory canvas-pan-grid-layer-not-background，将来要做动效只碰这一层。
 */

/* 首页 / 闪电 / 账号三页切换时，页面长短不同会让竖向滚动条出现或消失，
   固定顶栏的可用宽度跟着变（约 15px），中间绝对居中的胶囊就会左右跳半个
   滚动条宽。这里把滚动条槽位钉住：支持 scrollbar-gutter 的浏览器只留空槽、
   不画滚动条；老内核（微信 X5 等）退回常驻滚动条，宽度同样恒定。 */
html { overflow-y: scroll; }
@supports (scrollbar-gutter: stable) {
  html { overflow-y: auto; scrollbar-gutter: stable; }
}

body.on-studio {
  background: #0b0c0f;
  color: #e7e7e7;
}
/* ── 顶部导航（2026-11-29 改版） ───────────────────────────────────────────
 * 品牌走大字距字标；中间导航是三个等高胶囊：默认与导航栏同色（#0e0e0e、无边框），
 * hover / 选中都是 #1a1a1a，选中时再叠一圈「中间白、两端渐隐」的渐变边框。
 * 整条栏用 position:fixed 钉顶：全站 html/body 都写了 overflow-x:hidden，
 * 这会让 body 变成滚动容器、把 sticky 吃掉（「下滑后不吸顶」的根因），
 * 所以这里走 fixed，并给内容容器补上等高的上内边距。 */
body.on-studio .topbar {
  background: #0e0e0e;
  border-bottom: 1px solid #1b1d23;
}
body.on-studio .brand { color: #fff; }
body.on-studio .nav-links a { color: #b4b4b8; }
body.on-studio .nav-links a.active { color: #fff; }
body.on-studio .topbar-right .phone { color: #8f8f93; }
body.on-studio .topbar .logout { color: #e7e7e7; }

@media (min-width: 900px) {
  /* 钉顶：fixed 不受 overflow-x:hidden 影响 */
  body.on-studio .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
  }
  body.on-studio .topbar-inner {
    position: relative;
    max-width: 1180px;
    height: 64px;
    padding: 0 24px;
  }
  /* 顶栏脱离文档流后，内容容器的上内边距见下方 main.container（86px） */

  /* 品牌字标：大字距，比原来的 18px 更有分量 */
  body.on-studio .brand {
    display: inline-flex;
    align-items: center;
    margin-right: -.3em;   /* 抵消最后一个字后面的字距，视觉上左右等重 */
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .3em;
    color: #fff;
    text-decoration: none;
  }

  /* 中间胶囊导航：绝对居中，不随左右两侧宽度漂移 */
  body.on-studio .nav-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  body.on-studio .nav-links a.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;              /* 三个按钮统一高度 */
    padding: 0 18px;
    /* 透明边框占位：hover/选中时才画出来，高度不会因为加边框而跳 1px */
    border: 1px solid transparent;
    border-radius: 999px;
    background: #0e0e0e;       /* 默认与导航栏同色 */
    color: #c9cbd1;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s, border-color .18s, color .18s, transform .18s;
  }
  body.on-studio .nav-links a.nav-pill:hover {
    background: #1a1a1a;
    border-color: transparent;
    color: #fff;
  }
  body.on-studio .nav-links a.nav-pill:active { transform: scale(.97); }
  /* 选中：保持 #1a1a1a 底，边框是一道水平渐变 —— 中间 #4d4d4d（2026-11-29，
     原来是纯白），往两端渐隐回 #1a1a1a。
     padding-box 铺底色、border-box 铺边框，1px 透明边框把后者的渐变露出来；
     这样渐变能跟着 999px 圆角走（border-image 做不到圆角）。 */
  body.on-studio .nav-links a.nav-pill.active {
    background:
      linear-gradient(#1a1a1a, #1a1a1a) padding-box,
      linear-gradient(90deg, #1a1a1a 0%, #4d4d4d 50%, #1a1a1a 100%) border-box;
    border-color: transparent;
    color: #fff;
  }
  body.on-studio .nav-links .nav-pill .ico {
    width: 17px;
    height: 17px;
    opacity: .85;
  }
  body.on-studio .nav-links .nav-pill.active .ico {
    color: #fff;
    opacity: 1;
  }

  /* 右侧登录/退出也收成一颗低调的胶囊 */
  body.on-studio .topbar .logout {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #262930;
    border-radius: 999px;
    background: #14161b;
    color: #d5d6da;
    font-size: 13px;
    text-decoration: none;
    transition: border-color .18s, color .18s;
  }
  body.on-studio .topbar .logout:hover { border-color: #3a3f4a; color: #fff; }
}

/* 工作台比聊天页宽：七张卡一行放得下才像「工作台」，不像手机端的列表 */
body.on-studio main.container {
  max-width: 1180px;
  /* 上内边距 = fixed 顶栏 64px + 原来的 22px；窄屏那条媒体查询会重置回 14px */
  padding: 86px 24px 96px;
}

.studio { font-size: 14px; }

/* ── ① 大创作卡 ────────────────────────────────────────────────────────── */
.st-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #23252c;
  background: radial-gradient(120% 140% at 50% 0%, #191b21 0%, #101115 60%, #0c0d10 100%);
  margin-bottom: 30px;
}
.st-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .13) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 42%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 78% at 50% 42%, #000 30%, transparent 100%);
}
.st-hero-inner {
  position: relative;
  text-align: center;
  padding: 62px 24px 58px;
}
.st-hero-title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
}
.st-hero-sub {
  margin: 0 0 26px;
  font-size: 13px;
  line-height: 1.7;
  color: #9a9a9a;
}
.st-create {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: 14px;
  border: 1px dashed #3d4049;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.st-create:hover {
  border-color: var(--brand-fill);
  background: rgba(8, 182, 221, .10);
}
.st-create-plus {
  font-size: 26px;
  line-height: .8;
  font-weight: 400;
  color: #04caf6;
}

/* ── 区块标题 ──────────────────────────────────────────────────────────── */
.st-sec { margin-bottom: 34px; }
.st-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.st-sec-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.st-sec-hint,
.st-sec-link {
  font-size: 12px;
  color: #8f8f93;
  text-decoration: none;
}
.st-sec-link:hover { color: #d6d2ca; }

/* ── ② 七张功能卡 ──────────────────────────────────────────────────────── */
.st-cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.st-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 10px 12px;
  border-radius: 14px;
  border: 1px solid #23252c;
  background: #14161b;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s;
}
.st-card:hover {
  border-color: #3c404b;
  background: #171a20;
  transform: translateY(-2px);
}
/* 封面不是「图」：没有真实截图就摆渐变块，别拿别人的片子冒充案例 */
.st-card-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 66px;
  padding: 8px 10px;
  border-radius: 10px;
  overflow: hidden;
}
.st-card-cover b {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .55);
}
.st-card-title {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f2f2;
  line-height: 1.35;
}
.st-card-desc {
  font-size: 11.5px;
  line-height: 1.55;
  color: #8f8f93;
}
.st-pro {
  position: absolute;
  top: 7px;
  right: 8px;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  color: #8ee6f7;
  background: rgba(8, 182, 221, .14);
  border: 1px solid rgba(8, 182, 221, .40);
}

/* 七块封面的色阶：一列一个色相，深底上不抢字 */
.st-g1 { background: linear-gradient(135deg, #134a54, #0d2429); }
.st-g2 { background: linear-gradient(135deg, #1b3a44, #101f24); }
.st-g3 { background: linear-gradient(135deg, #173a3f, #0f2024); }
.st-g4 { background: linear-gradient(135deg, #1e3049, #131a24); }
.st-g5 { background: linear-gradient(135deg, #26304a, #141822); }
.st-g6 { background: linear-gradient(135deg, #333a47, #181c23); }
.st-g7 { background: linear-gradient(135deg, #24333d, #121a1f); }

/* ── ③ 最近项目 ────────────────────────────────────────────────────────── */
.st-recent {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.st-proj {
  display: block;
  border-radius: 14px;
  border: 1px solid #23252c;
  background: #14161b;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.st-proj:hover { border-color: #3c404b; transform: translateY(-2px); }
.st-proj-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: #1b1d23 center / cover no-repeat;
}
.st-proj-cover.st-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #5c5f68;
  background: linear-gradient(135deg, #1b1d23, #15171c);
}
.st-proj-meta { display: block; padding: 10px 12px 12px; }
.st-proj-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f2f2;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-proj-sub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: #8f8f93;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-new {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 400;
  color: #8ee6f7;
  background: rgba(8, 182, 221, .14);
  vertical-align: 1px;
}
.st-empty {
  grid-column: 1 / -1;
  padding: 30px 18px;
  border: 1px dashed #2a2d35;
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #8f8f93;
}
.st-empty a { color: #e2a184; text-decoration: none; }
.st-empty a:hover { text-decoration: underline; }

/* ── ④ 最近上新 ────────────────────────────────────────────────────────── */
.st-goods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.st-good {
  border-radius: 14px;
  border: 1px solid #23252c;
  background: #14161b;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.st-good:hover { border-color: #3c404b; transform: translateY(-2px); }
.st-good-cover {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 9;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .62);
}
.st-good-body { display: block; padding: 11px 12px 13px; }
.st-good-body b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f2f2;
  line-height: 1.45;
}
.st-good-body span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #8f8f93;
}

/* ── 窄屏 ──────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .st-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-recent,
  .st-goods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  body.on-studio main.container { padding: 14px 12px 92px; }
  .st-hero-inner { padding: 44px 18px 42px; }
  .st-hero-title { font-size: 21px; }
  .st-sec-head { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-recent,
  .st-goods { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .st-create { padding: 13px 24px; font-size: 15px; }
}
