/* ============================================================
   newsix.css —— 必NEW六星页专用样式。
   依赖 base.css（变量、.page-head、.filter、.btn、.stamp、.state）、
   list.css（.item、.kv）和 psychube.css（.face、.face-ph）。
   ============================================================ */

/* ---------- 查询表单 ---------- */

.ns-form { padding: 20px 0 6px; }
.ns-label {
  display: block; margin-bottom: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink-dim);
}
.ns-row { display: flex; gap: 8px; }
.ns-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  font-size: 16px;
  background: var(--bg-raise);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ns-row input::placeholder { color: var(--ink-mute); }
.ns-row input:focus { border-color: var(--gold); outline: none; }
.ns-row .btn { flex: none; padding-inline: 22px; }
/* 空输入框时按钮是「点击获取绑定码」—— 文案长一倍，做成描边款：
   一来窄边距不挤输入框，二来金色实心留给真正的主操作「查询」 */
.ns-row .btn.is-get {
  padding-inline: 12px;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}

.ns-tip { margin: 8px 0 0; font-size: 13px; }
.ns-help {
  all: unset; cursor: pointer;
  color: var(--gold); font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 绑定教学全屏层 ---------- */

/* 教学层开着时锁掉背景滚动：手机上不锁的话会滑到背后的页面，很容易以为关不掉 */
body.ns-lock { overflow: hidden; }

.ns-teach {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  /* 用不透明底色，不用半透明遮罩：教学层里六张长图叠起来有 1600+px，
     半透明 + 超高子元素在 Chromium 里会留下背景页文字透出来的脏渲染（实测过）。
     反正这是「看教程」不是「看弹窗」，不需要露出后面的页面。 */
  background: var(--bg-sink);
  overflow: hidden;
}

.ns-teach-box {
  width: 100%; max-width: 460px;
  /* 滚动条给内框，不给整层：这样没有任何元素比视口更高，
     移动端不会出现滚一半白屏 / 图片不刷新的情况 */
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 18px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ns-teach-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.ns-teach-head b {
  font-family: var(--serif);
  font-size: 17px; letter-spacing: .04em;
}
.ns-teach-x {
  all: unset; cursor: pointer;
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 22px; line-height: 1; color: var(--ink-dim);
}

.ns-steps {
  margin: 0; padding: 0;
  list-style: none;
}
.ns-steps li { padding: 14px 0 0; }
.ns-steps p {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 8px;
  font-size: 14px; color: var(--ink);
}
/* 步骤序号：小方块，比「第一步：」省一行宽度，扫读也更快 */
.ns-steps i {
  flex: none;
  width: 20px; height: 20px; margin-top: 3px;
  display: grid; place-items: center;
  font-style: normal; font-size: 12px;
  color: var(--bg); background: var(--gold);
  border-radius: 4px;
}
.ns-steps img {
  display: block;
  width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-sink);
}

.ns-teach-note {
  margin: 16px 0 0;
  font-size: 12px; line-height: 1.8; color: var(--ink-mute);
}
.ns-teach-ok { width: 100%; margin-top: 14px; text-align: center; text-decoration: none; }

/* ---------- 导出图预览层 ---------- */

/* 和教学层同一套骨架（不透明底 + 内框自己滚），只是里面放一张图 */
.ns-shot {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  background: var(--bg-sink);
  overflow: hidden;
}
.ns-shot-box {
  width: 100%; max-width: 460px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 18px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ns-shot-img {
  display: block;
  width: 100%; height: auto;
  margin-top: 12px;
  border: 1px solid var(--line); border-radius: 6px;
}

/* ---------- 玩家信息 ---------- */

.ns-player {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 16px 0 6px;
}
.ns-nick {
  font-family: var(--serif);
  font-size: 18px; font-weight: 600;
}
.ns-meta { font-size: 13px; color: var(--ink-dim); }

/* ---------- 进度条 ---------- */

.ns-bar-box { padding: 8px 0 16px; }
.ns-bar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
  font-size: 14px; color: var(--ink-dim);
}
.ns-bar-head b { color: var(--ink); font-weight: 600; }

.ns-bar {
  height: 10px;
  background: var(--bg-sink);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.ns-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 5px;
  transition: width .6s ease;
}

/* ---------- 分区标题 ---------- */

.ns-sect {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 16px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
  color: var(--ink-dim);
}
.ns-fold {
  all: unset; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: var(--ink-dim);
}
.ns-fold i {
  font-style: normal; font-size: 12px;
  color: var(--gold);
}

/* ---------- 角色网格 ---------- */

.ns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding: 0; margin: 0;
  list-style: none;
}

.ns-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.ns-card .face { width: 36px; height: 36px; flex: none; }
/* 没头像的角色用名字首字占位。狂想页有个同样作用的 .face-ph，
   但它写在 euphoria.css 里、尺寸也是 46px，这页不引那个文件，所以自己定一个 */
.ns-ph {
  flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  font-family: var(--serif); font-size: 16px; color: var(--ink-mute);
  background: var(--bg-sink);
  border: 1px solid var(--line); border-radius: 6px;
}

.ns-card-info {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden;
}
.ns-card-name {
  display: block;
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ns-card-sub {
  display: block;
  font-size: 11px; color: var(--ink-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 缺角用醒目的封蜡红左边框，已有的不标 */
.ns-card.is-miss { border-left: 3px solid var(--seal); }
/* 不在必NEW范围的（联动 / 特殊获取）：换成灰边，跟「有机会拿到」的缺角区分开 */
.ns-card.is-out { border-left-color: var(--ink-mute); }
.ns-out-tag {
  display: block;
  font-size: 11px; color: var(--ink-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 塑造点阵：5 个点，亮的是已有等级。比「塑5」直观，扫一眼就知道谁练深了 */
.ns-build {
  display: flex; align-items: center; gap: 3px;
  margin: 3px 0 2px;
}
.ns-build-label {
  margin-right: 2px;
  font-size: 10px; color: var(--ink-mute);
}
.ns-build i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.ns-build i.on { background: var(--gold); }
/* 满塑：5 个点全亮，再给点微微的辉光——这站本来就是辉光管调性，不用另造一套视觉 */
.ns-build.is-max i { box-shadow: 0 0 4px rgba(201, 164, 92, .55); }

/* 「满塑」徽记：卡片里当标签用，进度区里当数字前缀用 */
.ns-max-badge {
  display: inline-block;
  padding: 0 4px; margin-right: 3px;
  font-size: 10px; font-weight: 600; letter-spacing: .02em;
  color: var(--bg); background: var(--gold);
  border-radius: 3px;
}

/* 满塑的卡：金边 + 一层极淡的内外辉光。
   只给边框和阴影，不动底色——底色一变，整屏就成了斑马纹 */
.ns-card.is-max {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .18), 0 0 10px rgba(201, 164, 92, .12);
}
.ns-card.is-max .ns-card-name { color: var(--gold); }

/* 进度条下面那行「满塑 N 人」 */
.ns-max-line {
  display: flex; align-items: center;
  margin: 8px 0 0;
  font-size: 13px; color: var(--gold);
}
.ns-max-line .ns-max-badge { font-size: 11px; padding: 1px 5px; margin-right: 6px; }

/* 一键复制缺角名单 */
.ns-copy {
  all: unset; cursor: pointer;
  font-size: 12px; color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ns-copy.done { color: var(--live); text-decoration: none; }

/* ---------- loading 动画 ---------- */

.ns-loading {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: ns-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes ns-spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
  .ns-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
