/* ==========================================================================
   校汇圈 · 校园社交 App 原型样式表
   设计基调：松青主色 + 陶土橙点缀，浅灰分层，线性图标，不用表情符号
   ========================================================================== */

:root {
  --ink: #12161c;
  --ink-2: #3e4854;
  --ink-3: #6c7683;
  --ink-4: #9ba4af;
  --line: #e5e8ec;
  --line-2: #eff1f4;
  --bg: #f4f5f7;
  --card: #ffffff;

  --brand: #146b5c;
  --brand-d: #0d5346;
  --brand-l: #e7f1ee;
  --accent: #dd6b34;
  --accent-l: #fbede6;
  --ok: #2f8a63;
  --warn: #b8860b;
  --danger: #c2453c;

  --r6: 6px;
  --r10: 10px;
  --r14: 14px;
  --r18: 18px;
  --r24: 24px;
  --sh1: 0 1px 2px rgba(18, 22, 28, 0.05);
  --sh2: 0 8px 24px rgba(18, 22, 28, 0.1);
  --f: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--f);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #e9ecef;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

svg.ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.ic--s {
  width: 16px;
  height: 16px;
}

svg.ic--xs {
  width: 14px;
  height: 14px;
}

svg.ic--l {
  width: 24px;
  height: 24px;
}

/* ---------- 手机外壳 ---------- */

body.screen {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 26px 16px 40px;
}

.phone {
  width: 390px;
  height: 844px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-radius: 38px;
  box-shadow: 0 26px 60px rgba(18, 22, 28, 0.18),
    0 0 0 1px rgba(18, 22, 28, 0.06);
}

.statusbar {
  flex: 0 0 auto;
  height: 48px;
  padding: 6px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  background: var(--card);
}

.statusbar__apps {
  display: flex;
  align-items: center;
  color: var(--ink);
}

.statusbar__apps svg {
  display: block;
}

.statusbar--clear {
  background: transparent;
}

/* ---------- 导航区 ---------- */

.appbar {
  flex: 0 0 auto;
  padding: 4px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  background: var(--card);
}

.appbar--plain {
  padding-bottom: 10px;
}

.appbar__title {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.appbar__title small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 1px;
}

.appbar__spacer {
  flex: 1;
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.place svg {
  color: var(--brand);
}

.iconbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  position: relative;
  transition: background 0.15s;
}

.iconbtn:active {
  background: var(--line-2);
}

.iconbtn__dot {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
  border: 1.5px solid #fff;
}

.iconbtn__dot--plain {
  min-width: 8px;
  height: 8px;
  padding: 0;
}

.searchbox {
  margin: 0 16px 12px;
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: var(--ink-4);
  font-size: 13.5px;
}

.searchbox__txt {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.searchbox__tail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-3);
  font-size: 12.5px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

/* ---------- 滚动主体 ---------- */

.scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.scroll::-webkit-scrollbar {
  display: none;
}

.scroll--white {
  background: #fff;
}

.sec {
  padding: 0 16px;
}

.sec__head {
  margin: 18px 0 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sec__title {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.sec__desc {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.sec__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 卡片与列表 ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r14);
  overflow: hidden;
}

.card--pad {
  padding: 14px;
}

.card--flat {
  border-color: var(--line-2);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  width: 100%;
}

.row:last-child {
  border-bottom: 0;
}

.row__body {
  flex: 1;
  min-width: 0;
}

.row__k {
  font-size: 14.5px;
  font-weight: 500;
}

.row__d {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.group {
  background: #fff;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.group__title {
  padding: 16px 16px 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ---------- 文本与元信息 ---------- */

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.meta svg {
  color: var(--ink-4);
}

.metarow {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.t-main {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.t-sub {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

.t-note {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}

.divider {
  height: 1px;
  background: var(--line-2);
  margin: 12px 0;
}

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.tag--brand {
  background: var(--brand-l);
  color: var(--brand-d);
}

.tag--accent {
  background: var(--accent-l);
  color: #ab4d1e;
}

.tag--gray {
  background: #f0f2f4;
  color: var(--ink-2);
}

.tag--line {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-3);
}

.tag--solid {
  background: var(--brand);
  color: #fff;
}

.tag--danger {
  background: #fbecea;
  color: #a5372f;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--sm {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}

.btn--lg {
  height: 46px;
  border-radius: 11px;
  font-size: 15px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}

.btn--soft {
  background: var(--brand-l);
  color: var(--brand-d);
}

.btn--plain {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand);
}

.btn--accent {
  background: var(--accent);
}

.btn--done {
  background: #f0f2f4;
  color: var(--ink-3);
}

.btn--icon {
  width: 46px;
  padding: 0;
}

/* ---------- 筛选 ---------- */

.chips {
  display: flex;
  gap: 8px;
  padding: 2px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink-2);
  font-size: 13px;
  transition: 0.15s;
}

.chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.chip--soft {
  background: #f0f2f4;
  border-color: transparent;
}

.chip--dashed {
  background: transparent;
  border-style: dashed;
  border-color: var(--ink-4);
  color: var(--ink-3);
}

.seg {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 0 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.seg::-webkit-scrollbar {
  display: none;
}

.seg__i {
  flex: 0 0 auto;
  padding: 9px 0 10px;
  font-size: 14.5px;
  color: var(--ink-3);
  position: relative;
}

.seg__i.is-on {
  color: var(--ink);
  font-weight: 650;
}

.seg__i.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand);
  transform: translateX(-50%);
}

.pill {
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-3);
}

.pill.is-on {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh1);
}

.pills {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #eff1f4;
  border-radius: 10px;
}

.sortbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 12px;
  font-size: 13px;
  color: var(--ink-3);
}

.sortbar .is-on {
  color: var(--brand);
  font-weight: 600;
}

/* ---------- 头像 ---------- */

.av {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #8a94a0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}

.av--s {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.av--m {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.av--l {
  width: 60px;
  height: 60px;
  font-size: 20px;
}

.av--1 {
  background: #4f6d7a;
}

.av--2 {
  background: #7f6a56;
}

.av--3 {
  background: #5b7a5e;
}

.av--4 {
  background: #8a6b7e;
}

.av--5 {
  background: #a0725a;
}

.av--6 {
  background: #5a6b8a;
}

.av--7 {
  background: #6e7a5e;
}

.av--8 {
  background: #7e6f8e;
}

.avstack {
  display: inline-flex;
  align-items: center;
}

.avstack .av {
  border: 2px solid #fff;
  margin-left: -8px;
}

.avstack .av:first-child {
  margin-left: 0;
}

.avstack__more {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #eef0f3;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
}

/* ---------- 图形占位 ---------- */

.cover {
  position: relative;
  overflow: hidden;
  background: #dfe4e2;
}

.cover--geo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.13) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
}

.cover__body {
  position: absolute;
  inset: auto 14px 12px 14px;
  z-index: 2;
  color: #fff;
}

.cover__kicker {
  font-size: 11.5px;
  opacity: 0.85;
  letter-spacing: 0.06em;
}

.cover__title {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  margin-top: 4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.cv-1 {
  background: linear-gradient(135deg, #1f5d52, #2e8c74);
}

.cv-2 {
  background: linear-gradient(135deg, #2c3e50, #4b6a88);
}

.cv-3 {
  background: linear-gradient(135deg, #8c5a3c, #c08153);
}

.cv-4 {
  background: linear-gradient(135deg, #3e4e6b, #6c7fa0);
}

.cv-5 {
  background: linear-gradient(135deg, #4a5d3f, #7e9268);
}

.cv-6 {
  background: linear-gradient(135deg, #5b4a63, #8a7396);
}

.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edeff2;
  color: #a4acb6;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.ph--1 {
  background: linear-gradient(140deg, #dce6e2, #c3d5ce);
  color: #6f8b83;
}

.ph--2 {
  background: linear-gradient(140deg, #e3e6ea, #cbd2d9);
  color: #79828b;
}

.ph--3 {
  background: linear-gradient(140deg, #ede4da, #dccbb8);
  color: #8d7a63;
}

.ph--4 {
  background: linear-gradient(140deg, #e1e3ec, #c8ccdb);
  color: #767e96;
}

.ph--5 {
  background: linear-gradient(140deg, #e4e8dc, #cdd6bf);
  color: #7a8465;
}

.ph--6 {
  background: linear-gradient(140deg, #e8e1e9, #d2c6d6);
  color: #83788a;
}

/* ---------- 内容组件 ---------- */

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
}

.notice__body {
  flex: 1;
  min-width: 0;
}

.notice__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

.progress {
  height: 6px;
  border-radius: 4px;
  background: #edeff2;
  overflow: hidden;
}

.progress__i {
  height: 100%;
  border-radius: 4px;
  background: var(--brand);
}

.progress__i--accent {
  background: var(--accent);
}

.feedcard {
  display: flex;
  flex-direction: column;
}

.feedcard__acts {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--ink-3);
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
}

.act.is-on {
  color: var(--accent);
  font-weight: 600;
}

.act.is-on svg {
  fill: currentColor;
  stroke: currentColor;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pcard {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
}

.pcard__img {
  aspect-ratio: 1 / 1;
}

.pcard__body {
  padding: 9px 10px 11px;
}

.pcard__title {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}

.price {
  color: var(--danger);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.price i {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  margin-right: 1px;
}

.price--strike {
  color: var(--ink-4);
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
}

.info {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}

.info:last-child {
  border-bottom: 0;
}

.info__k {
  flex: 0 0 62px;
  font-size: 13px;
  color: var(--ink-3);
}

.info__v {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.65;
}

.tl {
  position: relative;
  padding-left: 17px;
  margin-top: 4px;
}

.tl::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.tl__i {
  position: relative;
  padding: 7px 0;
  font-size: 13.5px;
}

.tl__i::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--brand);
}

.tl__i span {
  color: var(--ink-3);
  font-size: 12.5px;
  margin-right: 8px;
}

.steps {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.step {
  flex: 1;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

.step b {
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--brand-l);
  color: var(--brand-d);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.hint {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-l);
  color: var(--brand-d);
  font-size: 12.5px;
  line-height: 1.6;
}

.hint--gray {
  background: #f2f4f6;
  color: var(--ink-2);
}

.hint--warn {
  background: #fdf6e7;
  color: #8a6314;
}

.stat {
  text-align: center;
}

.stat b {
  display: block;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.stat span {
  font-size: 12px;
  color: var(--ink-3);
}

.rank {
  width: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-4);
}

.rank--top {
  color: var(--accent);
}

.listrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}

.listrow:last-child {
  border-bottom: 0;
}

/* ---------- 底部 ---------- */

.bottombar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 22px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.tabbar {
  flex: 0 0 auto;
  display: flex;
  padding: 9px 4px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ink-4);
  font-size: 10.5px;
  font-weight: 500;
  position: relative;
}

.tab svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.6;
}

.tab.is-on {
  color: var(--brand);
}

.tab.is-on svg {
  stroke-width: 2;
}

.fab {
  position: absolute;
  right: 18px;
  bottom: 104px;
  z-index: 6;
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 22px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(20, 107, 92, 0.32);
}

/* ---------- 展示壳：原型页从深色作品集进入时，背景与作品集统一 ---------- */

body.screen {
  background: radial-gradient(circle at 50% -10%, #141b22 0%, #0a0c10 58%);
}

.phone {
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

.mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(18, 22, 28, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: 0.22s;
}

.mask.is-on {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  padding: 16px 16px 26px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  transform: translateY(101%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}

.sheet.is-on {
  transform: none;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sheet__title {
  font-size: 16px;
  font-weight: 650;
}

.sheet__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 9px;
  background: #fff;
}

.sheet__opt svg {
  color: var(--brand);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  z-index: 60;
  padding: 9px 16px;
  border-radius: 20px;
  background: rgba(18, 22, 28, 0.86);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  transition: 0.22s;
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%);
}

/* ---------- 排版与布局工具类 ---------- */

.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.g4 {
  gap: 4px;
}

.g6 {
  gap: 6px;
}

.g8 {
  gap: 8px;
}

.g12 {
  gap: 12px;
}

.f1 {
  flex: 1;
  min-width: 0;
}

.mt4 {
  margin-top: 4px;
}

.mt6 {
  margin-top: 6px;
}

.mt8 {
  margin-top: 8px;
}

.mt10 {
  margin-top: 10px;
}

.mt12 {
  margin-top: 12px;
}

.mt16 {
  margin-top: 16px;
}

.t-xl {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.t-lg {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -0.012em;
}

.t-sm {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

.b {
  font-weight: 650;
}

.muted {
  color: var(--ink-3);
}

.brandc {
  color: var(--brand);
}

.sec-2 {
  padding: 14px 16px 0;
}

.blk {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r14);
}

.cover--sm {
  height: 118px;
}

.cover--detail {
  height: 172px;
}

.tag--abs {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
}

.numlist {
  counter-reset: n;
}

.numlist li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13.5px;
  line-height: 1.7;
  counter-increment: n;
}

.numlist li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand-l);
  color: var(--brand-d);
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  font-weight: 600;
}

/* ==========================================================================
   作品集主页（非手机页面）
   ========================================================================== */

body.portfolio {
  background: #f1f2f4;
  color: var(--ink);
}

.pf-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.pf-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.pf-hero {
  padding: 52px 0 42px;
}

.pf-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brand);
  text-transform: uppercase;
}

.pf-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 16px 0 12px;
}

.pf-lead {
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.pf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.pf-meta span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
}

.pf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.pf-nav a:hover {
  color: var(--brand);
}

.pf-sec {
  padding: 46px 0 0;
}

.pf-sec h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pf-sec .sec-desc {
  max-width: 780px;
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px 26px;
  margin-top: 28px;
}

.shot {
  width: 300px;
  height: 634px;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 42px rgba(18, 22, 28, 0.14),
    0 0 0 1px rgba(18, 22, 28, 0.07);
}

.shot iframe {
  display: block;
  width: 440px;
  height: 930px;
  border: 0;
  transform: scale(0.68182);
  transform-origin: 0 0;
}

.shot-cap {
  max-width: 300px;
  margin-top: 14px;
}

.shot-cap .n {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.shot-cap b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  margin-top: 3px;
}

.shot-cap p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.shot-cap code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eceff2;
  color: var(--ink-2);
  font-size: 11.5px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.sw {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.sw__c {
  height: 62px;
}

.sw__t {
  padding: 10px 12px 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.sw__t b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

table.pf {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}

table.pf th {
  padding: 11px 14px;
  background: #f7f8fa;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

table.pf td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.65;
  color: var(--ink-2);
}

table.pf td:first-child {
  color: var(--ink);
  font-weight: 500;
}

table.pf tr:last-child td {
  border-bottom: 0;
}

pre.tree {
  margin: 20px 0 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-2);
  overflow: auto;
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.pane {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pane h3 {
  font-size: 14.5px;
  font-weight: 650;
  margin-bottom: 10px;
}

.pane ol,
.pane ul {
  padding-left: 18px;
  list-style: revert;
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-2);
}

.pane p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}

.pf-foot {
  margin-top: 56px;
  padding: 22px 0 60px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-4);
}

@media (max-width: 720px) {
  .pf-wrap {
    padding: 0 20px;
  }
  .pf-title {
    font-size: 30px;
  }
  .shots {
    justify-items: center;
  }
  .pf-sec table.pf {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}

/* ---------- 窄屏：手机直接打开单页时铺满整屏，不再显示手机外壳 ---------- */

@media (max-width: 430px) {
  body.screen {
    padding: 0;
    align-items: stretch;
  }

  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .statusbar {
    height: 54px;
    padding-top: 12px;
  }

  .tabbar {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .bottombar {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .fab {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}
