/* ============================================================
   芯头有数 · 品牌站
   视觉基准 = 小程序最终版：品牌贴纸、白卡片、浅灰底、圆角
   ============================================================ */

:root {
  --brand: #1b4f8a;
  --brand-2: #0e9488;
  --brand-soft: #e9f2f9;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e8ecf5;
  --r-lg: 16px;
  --r-md: 13px;
  --shadow-1: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-2: 0 12px 34px rgba(15, 23, 42, 0.14);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;

  /* 整站长按是「手势」（弹菜单 / 拖画布），不是「选字」。
     之前只给卡片设 none，长按仍会顺着选中相邻的「官方导图」这类标题，
     所以直接在 body 上关掉，输入框和要复制的结果再单独放开。 */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable='true'],
.unit-res,
.unit-row,
.res-val,
.selectable {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/**
 * 商品详情里的简介 / 包含 / 说明 / 通知：允许选中复制。
 *
 * 全站禁选是为了画布手势（长按弹菜单、拖节点时别误选标题），
 * 详情页只是一篇图文，没有手势冲突，禁选反而让人想复制一句说明都做不到。
 * 只放开正文区，而不是整页：底栏按钮、播放器这些仍然不该被长按选中。
 */
.detail-page .detail-block,
.detail-page .detail-notice,
.detail-page .detail-title,
.detail-page .detail-sub {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

#app {
  min-height: 100%;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.hidden {
  display: none !important;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px calc(110px + var(--safe-b));
}

.press {
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.press:active {
  transform: scale(0.98);
  opacity: 0.92;
}

/* ============================================================
   顶部标题
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -16px;
  /* 手机上这排是常驻的：上 14 → 10、下 10 → 8，并把副标题并到标题同一行，
     整块高度从 ~94px 收到 ~51px，少占一截首屏 */
  padding: calc(10px + var(--safe-t)) 16px 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-main {
  flex: 1;
  min-width: 0;
  /* 标题 + 副标语并排，副标语自己在右边排两行小字 */
  display: flex;
  align-items: center;
  gap: 10px;
}

/**
 * 品牌字：永远一行，绝不压缩。
 * 中文一个字就能断行，标题一旦被 flex 压窄（旁边还挤着副标语 + 购物车 + 登录）
 * 就会变成「芯头」一行、「有数」一行的竖排，整块 header 也跟着变高。
 */
.brand-title {
  flex: 0 0 auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.brand-chip,
.brand-rest {
  white-space: nowrap;
}

/* 「芯头」用品牌渐变垫底、旋转 -4°，和后面的「有数」形成一实一虚的层次 */
.brand-chip {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border-radius: 9px;
  padding: 1px 8px 3px;
  transform: rotate(-4deg);
  box-shadow: 0 5px 14px rgba(27, 79, 138, 0.3);
}

.brand-rest {
  color: #334155;
  letter-spacing: 0.5px;
}

/**
 * 副标语：跟在「有数」右边，两行小字（上行卖点、下行承诺）。
 * 两行都是 nowrap，靠 span 逐个换行，避免窄屏时被折成「导图不限节点数 / 量」。
 */
.brand-sub {
  margin: 0;
  font-size: 9.5px;
  color: var(--ink-3);
  line-height: 1.35;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand-sub span {
  display: block;
}

/* 320 这类窄屏：标题 + 副标语 + 登录已经占满，副标语直接让位 */
@media (max-width: 359px) {
  .brand-sub {
    display: none;
  }
}

/* 「登录 / 我的」固定右上角：手机上比底部胶囊更好找，也不再和内容抢高度 */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
}

.header-links {
  display: flex;
  gap: 6px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.hl-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-1);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hl-btn svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.hl-btn.is-on {
  background: var(--brand);
  color: #fff;
}

.hl-btn.is-on svg {
  color: #fff;
}

/* 手机上购物车收进「我的」：这排位置要留给品牌字、副标语和登录按钮 */
.header .cart-entry {
  display: none;
}

/* ============================================================
   分区标题
   ============================================================ */

.sec-head {
  display: flex;
  align-items: center;
  margin: 22px 2px 12px;
}

.sec-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.sec-sub {
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink-3);
}

.sec-action {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
}

.sec-action svg {
  width: 13px;
  height: 13px;
}

/* 「我的导图」标题行里两枚按钮并排：自动外边距只给第一枚，第二枚贴紧 */
.sec-head .sec-action + .sec-action {
  margin-left: 6px;
}

/* 主操作胶囊（首页「快速新建导图」）：白底那条太轻，这里用品牌色实心 */
.sec-action.is-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(27, 79, 138, 0.22);
}

.sec-action.is-primary svg {
  color: #fff;
}

/* ============================================================
   工具箱
   ============================================================ */

.tools-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.tools-row::-webkit-scrollbar {
  display: none;
}

/* 右侧渐隐 + 「左右滑动」提示：否则用户以为只有眼前这几张 */
.tools-wrap {
  position: relative;
}

.tools-wrap::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 0;
  bottom: 6px;
  width: 38px;
  background: linear-gradient(to right, rgba(246, 247, 251, 0), var(--bg) 72%);
  pointer-events: none;
}

.swipe-tip {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}

.tool {
  flex: 0 0 auto;
  width: 108px;
  padding: 12px 11px 13px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  display: block;
  position: relative;
}

/* 名称上方不放符号：只留一条细色条做区分 */
.tool::before {
  content: '';
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--tc, var(--brand));
  margin-bottom: 9px;
}

.tool-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.tool-desc {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool.is-soon {
  opacity: 0.45;
}

/* ============================================================
   文件夹网格（桌面式方块）
   ============================================================ */

.folder-grid {
  display: grid;
  /**
   * 手机固定 4 列（用户 10-21 定稿：3 列太松，一屏放不下几个）。
   *
   * 为让「新建文件夹」五个字在 13px 下也能整行显示，格子能抠的宽度都抠了：
   * gap 9 → 8、卡片左右 padding → 3px，名字再收 0.4px 字距。
   * 结果 375 宽内宽 71.75px、360 宽 68px，五个字 13px ≈ 63.4px，稳放。
   * 344 以下（320 这类小屏）名字整体回落到 12px。
   * 长文件夹名仍走 ellipsis，不会撑破网格；桌面媒体查询另锁 6 列。
   */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* 首页左右分栏：手机只有主列，桌面右侧多一列商城精选 */
.home-cols {
  display: block;
}

.home-aside {
  display: none;
}

.folder-card {
  position: relative;
  /* 左右只留 3px：4 列格子窄，宽度要省给「新建文件夹」五个字 */
  padding: 8px 3px 9px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

/* 官方导图区的角标：和自己建的文件夹一眼分开 */
.folder-flag {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 3;
  padding: 1px 5px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(27, 79, 138, 0.28);
}

/*
 * 精选导图专区
 *
 * 和自己的文件夹放在一起时太像了，用卡片本身区分：
 *   1) 文件夹卡片浅蓝底 + 品牌色描边，自己的是白底
 *   2) 色块加一圈白色描边，像贴纸；右上角仍保留「精选」角标
 * 整块区域不加底色（试过，页面上多一层色块反而更花），只靠标题和间距分开。
 * 颜色照样可以选，只是底色和描边固定成官方样式。
 */
/* 整块不加底色和边框：只靠标题和间距分隔，避免页面上多一层色块 */
.official-sec {
  margin-top: 22px;
}

.folder-grid.is-official .folder-card:not(.is-new) {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
  border: 1px solid rgba(27, 79, 138, 0.16);
  box-shadow: 0 2px 8px rgba(27, 79, 138, 0.07);
}

.folder-grid.is-official .folder-body {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 4px 10px rgba(15, 23, 42, 0.14),
    0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* 卡片接近正方形：82 宽 × 83 高，比之前那种竖长条更像桌面图标 */
.folder-shape {
  position: relative;
  /* 4 列后卡片变窄，图标再占满整宽会显得又扁又宽；收到 86% 居中，
     左右各留一点呼吸位，比例更像文件夹而不是一块色板 */
  width: 86%;
  height: 46px;
  margin: 0 auto 6px;
}

.folder-tab {
  position: absolute;
  left: 0;
  top: 0;
  width: 48%;
  height: 13px;
  border-radius: 5px 6px 0 0;
  opacity: 0.94;
}

.folder-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  bottom: 0;
  border-radius: 4px 8px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 4px 10px rgba(15, 23, 42, 0.14);
}

/* 长按卡片是「弹菜单」，不是「选文字」：
   手机长按会先把文字选中（尤其文件夹中间那个数字），顺手把系统菜单也呼出来 */
.folder-card,
.doc-card,
.folder-badge,
.folder-name,
.folder-shape,
.doc-title,
.doc-meta,
.doc-tile {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.folder-badge {
  min-width: 22px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.folder-name {
  width: 100%;
  /* 13px：4 列时 375 / 360 宽的格子（69 / 65px）刚好放得下 5 个字；
     6 个字以上仍省略号，不撑破网格 */
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 「新建文件夹」五个字最挤：13px 下把字距收 0.4px（视觉几乎无感），
   保证 360 宽也能一行显示完，不再出现「新建文件…」 */
.folder-card.is-new .folder-name {
  letter-spacing: -0.4px;
}

/* 344 以下的窄屏：格子内宽只剩 60px 出头，名字整体回落到 12px */
@media (max-width: 344px) {
  .folder-name {
    font-size: 12px;
  }

  .folder-card.is-new .folder-name {
    font-size: 11.5px;
  }
}

/* 320 这类小屏：5 字文件夹名（单片机笔记这种）再降一档，仍要整行显示 */
@media (max-width: 330px) {
  .folder-name {
    font-size: 11.5px;
  }

  .folder-card.is-new .folder-name {
    font-size: 11px;
  }
}

.folder-meta {
  margin-top: 1px;
  font-size: 10px;
  color: var(--ink-3);
}

.folder-card.is-new {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px dashed #cbd5e1;
  box-shadow: none;
}

.folder-shape-new {
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-new-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eef2f8;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-new-ico svg {
  width: 15px;
  height: 15px;
}

/* 8 档配色 */
.fc-0 { background: linear-gradient(150deg, #5b93d6 0%, #1b4f8a 100%); }
.fc-1 { background: linear-gradient(150deg, #2fb3a6 0%, #0b6f68 100%); }
.fc-2 { background: linear-gradient(150deg, #4cc38a 0%, #177a52 100%); }
.fc-3 { background: linear-gradient(150deg, #f0b429 0%, #b06f00 100%); }
.fc-4 { background: linear-gradient(150deg, #f08a4b 0%, #b34d13 100%); }
.fc-5 { background: linear-gradient(150deg, #ef6b6b 0%, #a92c2c 100%); }
.fc-6 { background: linear-gradient(150deg, #9b7bea 0%, #5b3bb8 100%); }
.fc-7 { background: linear-gradient(150deg, #8f9bb3 0%, #3f4a5f 100%); }

/* ============================================================
   导图卡片
   ============================================================ */

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

/**
 * 新建导图面板里的「待创建」卡片。
 * 虚线 + 半透明 + 不可点：一眼看出它还没落地，只是把标题和配色先摆出来看看。
 */
.doc-card.is-preview {
  border: 1px dashed #c2d3e8;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  pointer-events: none;
}

/* 插进列表时轻微下滑淡入，让人注意到「这一行是新来的」 */
.doc-row.is-ghost {
  animation: ghostRowIn 0.22s ease both;
}

@keyframes ghostRowIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.doc-card.is-preview .doc-tile {
  opacity: 0.82;
}

.doc-card.is-preview .doc-title {
  color: var(--ink-2);
}

/**
 * 左滑操作：卡片底下垫着「置顶 / 删除」，卡片左移把它们露出来。
 * 宽度和 app.js 的 SWIPE_W 对齐（66 × 2 = 132），改一边记得改另一边。
 */
.doc-row {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/**
 * 按钮平时藏着：只在左滑过程中 / 已展开时显示。
 * 否则卡片按住时 .press:active 会缩小并半透明（scale .98 + opacity .92），
 * 底下的红色「删除」就透出来了 —— 长按或点三个点时右边会冒出红边。
 */
.doc-acts {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
}

.doc-row.is-sliding .doc-acts,
.doc-row.is-open .doc-acts {
  opacity: 1;
  pointer-events: auto;
}

.doc-act {
  width: 66px;
  height: 100%;
  background: #eef2f7;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.doc-act.is-danger {
  background: #e5484d;
  color: #fff;
}

.doc-row .doc-card {
  position: relative;
  z-index: 1;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  /* 横向滑动自己处理，纵向手势留给页面滚动 */
  touch-action: pan-y;
}

.doc-row.is-open .doc-card {
  transform: translateX(-132px);
}

/* 置顶标记：在修改时间前面 */
.doc-pin {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(27, 79, 138, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.doc-tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.doc-tile svg {
  width: 21px;
  height: 21px;
}

.doc-body {
  flex: 1;
  min-width: 0;
}

.doc-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.doc-meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

.doc-price {
  margin-left: 6px;
  color: #b06f00;
  font-weight: 700;
}

.doc-owned {
  margin-left: 6px;
  color: #0b6f68;
  font-weight: 700;
}

/**
 * 精选导图的价格：和标题同一行，靠卡片右边缘对齐。
 * 标题不设 flex:1，靠价格自己的 margin-left:auto 把它顶到行尾；
 * 标题长到放不下时，标题先省略，价格位置不动。
 */
.doc-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.doc-head .doc-title {
  min-width: 0;
}

.doc-priceline {
  flex: 0 0 auto;
  /* 靠右，但别贴着边：留一点呼吸感，看起来和标题是一组而不是卡片边角 */
  margin-left: auto;
  margin-right: 12px;
  font-size: 13px;
  /* 「免费」走青绿：和商品那边的「免费 / 已领取」一套色，灰色太像禁用态 */
  font-weight: 700;
  color: #0e9488;
  white-space: nowrap;
}

/* 付费：红色加粗，和「免费」一眼分开 */
.doc-priceline.is-paid {
  font-size: 14px;
  font-weight: 700;
  color: #e1251b;
  letter-spacing: -0.01em;
}

.doc-more {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  flex: 0 0 auto;
}

.doc-more svg {
  width: 15px;
  height: 15px;
}

.doc-more:active {
  background: #f1f5f9;
}

/* ============================================================
   列表多选
   ============================================================ */

/* 多选时卡片前多一个勾选圈，卡片本身轻描一圈蓝边 */
.doc-check {
  position: relative;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid #cfd8e6;
  background: #fff;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.doc-check::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  border-radius: 1px;
  opacity: 0;
  transform: rotate(42deg) scale(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

/* 卡片外面套着 overflow:hidden 的 .doc-row，外阴影会被裁掉，所以描边画在内侧 */
.doc-card.is-picked {
  background: #eff5fd;
  box-shadow: inset 0 0 0 1.5px rgba(27, 79, 138, 0.45);
}

.doc-card.is-picked .doc-check {
  border-color: var(--brand);
  background: var(--brand);
}

.doc-card.is-picked .doc-check::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}

/* 多选操作条：和底部主按钮同位置，替换掉「导入 / 新建导图」 */
.pick-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px calc(12px + var(--safe-b));
  background: linear-gradient(to bottom, rgba(246, 247, 251, 0), var(--bg) 14px);
}

.pick-bar-inner {
  width: 100%;
  flex: 1;
  min-width: 0;
  max-width: 748px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pick-btn {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}

.pick-btn:disabled {
  opacity: 0.42;
  box-shadow: none;
}

.pick-btn.is-danger {
  background: #fff2f2;
  border-color: rgba(229, 72, 77, 0.3);
  color: #d93a3f;
}

.list-hint {
  text-align: center;
  font-size: 11px;
  line-height: 1.75;
  color: #aeb6c5;
  padding-top: 10px;
}

.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-3);
}

.empty h3 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.empty p {
  margin: 5px 0;
  font-size: 12px;
}

/* ============================================================
   底部主按钮
   ============================================================ */

.bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px calc(12px + var(--safe-b));
  background: linear-gradient(to bottom, rgba(246, 247, 251, 0), var(--bg) 14px);
}

.bottom-inner {
  width: 100%;
  flex: 1;
  min-width: 0;
  max-width: 748px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-mini {
  width: 52px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 9px;
  color: var(--ink-3);
}

.btn-mini svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.btn-mini.is-on {
  background: var(--brand);
}

.btn-mini.is-on svg {
  color: #fff;
}

.btn-mini.is-on span {
  color: rgba(255, 255, 255, 0.85);
}

/* 首页底部导航（现在只剩「我的」） */
.btn-nav {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}

.btn-nav svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

/* 只剩一个按钮时收成居中小胶囊，别拉满整条 */
.bottom-nav .btn-nav:only-child {
  flex: 0 0 auto;
  padding: 0 26px;
  margin: 0 auto;
}

.btn-create {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 22px rgba(27, 79, 138, 0.26);
}

.btn-create svg {
  width: 17px;
  height: 17px;
}

/* 次要动作（文件夹页底部的「导入」）：白底、和主按钮同高并排 */
.btn-secondary {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.btn-secondary svg {
  width: 17px;
  height: 17px;
}

/* ============================================================
   文件夹页
   ============================================================ */

.sub-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + var(--safe-t)) 0 10px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 40;
  /* 商品详情页下划收起 / 上划放下（is-fold 由 app.js 的滚动监听控制） */
  transition: transform 0.26s ease;
}

.sub-bar.is-fold {
  transform: translateY(-108%);
}

.sub-back {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}

.sub-back svg {
  width: 17px;
  height: 17px;
}

.sub-title {
  font-size: 17px;
  font-weight: 800;
  /* 商品名可能很长：单行省略，别把返回按钮挤走 */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 文件夹页页头：返回 + 名称 + 张数（桌面右侧再挂新建按钮） ---------- */

.folder-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -16px;
  padding: calc(12px + var(--safe-t)) 16px 10px;
  background: var(--bg);
}

.folder-bar-main {
  flex: 1;
  min-width: 0;
}

.folder-bar-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.folder-dot {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.folder-bar-meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-3);
}

/* 手机靠底部大按钮，桌面才显示右上角这个 */
.folder-bar-new {
  display: none;
}

/**
 * 右上角动作组（选择 + 导入 + 新建导图）。
 * 手机上只留「选择」：导入和新建走底部条，多选入口必须随手能点到。
 */
.folder-bar-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* 多选开关：手机上是个紧凑的小胶囊，桌面上跟「导入」同高 */
.folder-bar-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}

.folder-bar-pick.is-on {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(27, 79, 138, 0.24);
}

/* 手机上藏起来，桌面媒体查询里再打开 */
.folder-bar-import {
  display: none;
}

/* 多选时把「导入 / 新建」让位，只留「完成」 */
.folder-page.is-picking .folder-bar-import,
.folder-page.is-picking .folder-bar-new {
  display: none;
}

/* ============================================================
   工具页（单位换算）
   ============================================================ */

.tool-page {
  padding-top: 4px;
}

.cats {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.cat.is-on {
  background: var(--brand);
  color: #fff;
}

/* 分段控件：走线线宽 / 过孔载流 这类模式切换 */
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 2px 0 10px;
  border-radius: 12px;
  background: #e8eef7;
}

.seg button {
  flex: 1;
  height: 34px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.seg button.is-on {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-1);
}

.unit-panel {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-1);
}

.unit-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unit-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  border-bottom: 2px solid var(--brand-soft);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  background: transparent;
}

.unit-input::placeholder {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 15px;
}

.unit-pick {
  height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.unit-pick .caret {
  font-size: 9px;
  opacity: 0.7;
}

.unit-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.unit-opt {
  padding: 6px 11px;
  border-radius: 9px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.unit-opt.is-on {
  background: var(--brand);
  color: #fff;
}

.unit-res {
  margin-top: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 2px 14px;
  box-shadow: var(--shadow-1);
}

.unit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.unit-row:last-child {
  border-bottom: 0;
}

.unit-row .u {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

/* 带名称的结果行：名称靠左、值在中间、单位在右 */
.unit-row .k {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

.unit-row .v {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.unit-tip {
  margin: 10px 4px 0;
  font-size: 11px;
  color: var(--ink-3);
}

/* ============================================================
   工具页公共组件（结果行统一：值在左、单位在右）
   ============================================================ */

.tool-card {
  background: #fff;
  border-radius: 16px;
  padding: 4px 14px;
  box-shadow: var(--shadow-1);
  margin-top: 10px;
}

.tr {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-bottom: 1px solid #f1f5f9;
}

.tr:last-child {
  border-bottom: 0;
}

.tr-inline {
  border-top: 1px solid #f1f5f9;
}

.tr-k {
  flex: 0 0 auto;
  width: 76px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.tr-in {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: #f8fafc;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.tr-in:focus {
  background: var(--brand-soft);
}

.tr-u {
  flex: 0 0 auto;
  min-width: 34px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  border: 0;
  background: transparent;
  outline: none;
}

select.tr-u {
  min-width: 54px;
}

.tool-note {
  margin: 8px 0 10px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------- 色环电阻 ---------- */

.res-hero {
  margin-top: 10px;
  padding: 18px 14px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
  text-align: center;
}

.res-draw {
  display: flex;
  align-items: center;
  justify-content: center;
}

.res-wire {
  flex: 0 0 26px;
  height: 3px;
  border-radius: 2px;
  background: #cbd5e1;
}

.res-body {
  flex: 0 0 auto;
  width: 176px;
  height: 54px;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e9dec4, #d5c49f 55%, #c3af87);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.12), 0 6px 14px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow: hidden;
}

.res-band {
  flex: 0 0 10px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.res-big {
  margin-top: 15px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.res-big span {
  margin-left: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0;
}

.res-meta {
  margin-top: 5px;
  font-size: 11px;
  color: var(--ink-3);
}

.band-block {
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}

.band-block:last-child {
  border-bottom: 0;
}

.band-head {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--ink-3);
}

.band-head b {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-2);
}

.res-swatches {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.res-swatches::-webkit-scrollbar {
  display: none;
}

.res-sw {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.res-sw i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c);
}

.res-sw.is-on {
  box-shadow: 0 0 0 2px var(--brand);
}

/* ---------- π 型衰减器示意 ---------- */

.schematic {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.schematic svg {
  display: block;
  width: 100%;
  height: auto;
}

.schematic .w {
  stroke: #94a3b8;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* 元件符号：电阻锯齿 / 电容极板 / 接地 */
.schematic .sym {
  fill: none;
  stroke: #475569;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schematic .node {
  fill: #475569;
}

.schematic .box {
  fill: #eef2f7;
  stroke: #94a3b8;
  stroke-width: 1.2;
}

.schematic .lbl {
  font-size: 10px;
  font-weight: 600;
  fill: #475569;
  font-variant-numeric: tabular-nums;
}

.schematic .io {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  fill: #94a3b8;
}

/* PCB 截面示意：铜箔 + 基材 */
.schematic .cu {
  fill: #c2703a;
  stroke: #92400e;
  stroke-width: 1;
}

.schematic .sub {
  fill: #eef2f7;
  stroke: #cbd5e1;
  stroke-width: 1;
}

/* ---------- PCB 线宽：载流速查表 ---------- */

/* 整行下拉（铜厚 / 层位置）：和数值输入一样靠右 */
select.pcb-sel {
  flex: 1;
  min-width: 0;
  text-align: right;
  text-align-last: right;
}

.pcb-table {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.pcb-table-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pcb-table-head b {
  font-size: 13px;
  color: var(--ink);
}

.pcb-table-head span {
  font-size: 11px;
  color: var(--ink-3);
}

.pcb-table table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.pcb-table th,
.pcb-table td {
  padding: 7px 0;
  text-align: right;
  font-size: 12px;
  color: var(--ink);
  border-bottom: 1px solid #f1f5f9;
}

.pcb-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}

.pcb-table th:first-child,
.pcb-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
}

.pcb-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- PCB 载流：主结果 + 反查胶囊 + 折叠速查表 ---------- */

.hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.hero-l {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-l .k {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-l .s {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.hero-v {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.hero-v b {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: var(--brand);
}

.hero-v i {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}

/* ---------- RC：截止频率行可双向编辑 + 反算按钮 ---------- */

.tr-in.is-hero {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand);
}

.tr-fc {
  border-bottom: 0;
}

.rc-tau {
  padding: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.rc-solve {
  display: flex;
  gap: 8px;
  padding: 0 0 10px;
}

.rc-solve-btn {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.rc-solve-btn:active {
  transform: scale(0.985);
}

/* 反查行：与输入行同高同节奏，不再单开一个区块 */
.pcb-rev {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
}

.pcb-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 5px 9px;
  border-radius: 9px;
  background: #f8fafc;
}

.pcb-tag i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}

.pcb-tag b {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pcb-tag em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}

.pcb-tag.is-on {
  background: var(--brand-soft);
}

.pcb-tag.is-on i,
.pcb-tag.is-on b {
  color: var(--brand);
}

/* 速查表折叠按钮 */
.pcb-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 38px;
  margin-top: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-1);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.pcb-more i {
  font-style: normal;
  font-size: 10px;
  color: var(--ink-3);
}

/* ============================================================
   登录 / 账号
   ============================================================ */

.login-hero {
  margin: 16px 2px 16px;
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.login-sub {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* 手机浏览器（非微信）进登录页：以前只剩一行小字，看着像白屏，现在给张卡片说清楚 */
.login-alt {
  margin: 6px 0 10px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.login-alt-t {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand);
}

/**
 * 微信内点支付宝的全屏引导。
 *
 * 结构照参考图：灰底 + 黄色虚线弯箭头 + 黄字提示 + 底部微信菜单面板，
 * 面板里把「在浏览器打开」用黄框圈出来。不放按钮、不放复制链接。
 *
 * 底色用**不透明**而不是 rgba 半透明：部分 WebView（含微信内置浏览器）
 * 对大面积半透明底色会整层不绘制，引导层看着就像没弹出来。
 */
.wx-guide {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #8b8b8b;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wx-guide.is-on {
  opacity: 1;
}

/**
 * 改成直接铺图（img/wx-guide.png，用户给的参考图）。
 *
 * contain 而不是 cover：图是 1186×2387，和手机屏幕比例不完全一致，
 * contain 上下留出来的空白正好是同一块灰底 #8b8b8b，看不出来。
 * 图本身 pointer-events: none —— 不然点击落不到外层，关不掉。
 */
.wx-guide-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-guide-pic {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* 右上角的黄色虚线箭头 */
.wx-guide-arrow {
  position: absolute;
  top: 7%;
  right: 4%;
  width: 46vw;
  max-width: 210px;
  pointer-events: none;
}

.wx-guide-arrow svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 中间那句「点击右上角 ⋯ 在浏览器打开」 */
.wx-guide-tip {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffd84d;
  text-align: center;
}

/* 「···」：白底圆形里三个黑点 */
.wx-guide-dots {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
}

.wx-guide-dots b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1a1a1a;
}

/* 底部微信菜单面板 */
.wx-guide-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px calc(26px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 18px 18px 0 0;
}

.wx-guide-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px 4px;
  justify-items: center;
}

.wi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.wi .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eef0f3;
  font-style: normal;
  font-size: 20px;
  color: #4b5563;
}

/* 「在浏览器打开」：黄框 + 蓝底白箭头 + 下面一行小字 */
.wi.is-hl {
  padding: 3px 2px 1px;
  border: 2px solid #ffd84d;
  border-radius: 12px;
}

.wi.is-hl .ico {
  background: #1a7ff0;
  color: #fff;
}

.wi.is-hl em {
  font-style: normal;
  font-size: 10px;
  line-height: 1.25;
  color: #4b5563;
  text-align: center;
}

.wi .ico-line {
  background: transparent;
  font-size: 22px;
  color: #9ca3af;
}

.lg-send {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.lg-send.is-off {
  opacity: 0.55;
}

.lg-go {
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(27, 79, 138, 0.24);
}

.lg-go:disabled {
  opacity: 0.7;
}

.lg-alt {
  display: block;
  margin: 12px auto 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  background: transparent;
}

/* ---------- PC 扫码登录 ---------- */

.qr-card {
  margin-top: 4px;
  padding: 18px 16px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
  text-align: center;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
}

.qr-box svg,
.qr-box img {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-loading {
  font-size: 12px;
  color: var(--ink-3);
}

.qr-tip {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.qr-sub {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
}

.qr-card .lg-alt {
  margin-top: 8px;
}

.login-hint {
  padding: 20px 18px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
  text-align: center;
}

.login-hint-t {
  font-size: 15px;
  font-weight: 800;
}

.login-hint-s {
  margin: 6px 0 12px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.login-hint-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.acct-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-top: 4px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.acct-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acct-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.acct-body b {
  font-size: 14px;
  font-weight: 800;
}

.acct-body span {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

/* 昵称：点一下能改名，右边挂一支铅笔；名字太长就省略，不要挤掉「退出登录」 */
.acct-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}

.acct-name b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.acct-name svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: var(--ink-3);
}

.acct-out {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: #f1f5f9;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

/* 未登录时「我的」里那颗按钮：去登录是主操作，用品牌色实心 */
.acct-out.is-login {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

/* ============================================================
   商城
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.product-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-cover {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.product-cover .glyph {
  font-size: 36px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}

/* 默认封面图形（没填 emoji 时用）：内置导图线稿，跟着字号缩放 */
.glyph.is-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.94);
}

.glyph.is-mark svg {
  width: 1.25em;
  height: 1.25em;
}

.product-type {
  position: absolute;
  left: 8px;
  top: 8px;
  height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

/**
 * 封面右上角的「已领 / 已购」角标。
 * 和左上角的类型标签对称，白底小胶囊压在封面上，颜色区分免费（青绿）和付费（橘红）。
 */
/**
 * 封面上的「已购 / 已领」角标。
 * 两种都走青绿：已拥有是一种「完成」状态，和还在卖的橘红价格区分开，
 * 一张卡片上同时挂橘色角标 + 橘色价格会看不出哪个才是状态。
 */
.product-owned {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #0e9488;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.product-body {
  padding: 8px 11px 9px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price {
  font-size: 17px;
  font-weight: 800;
  color: #c2410c;
}

.price small {
  font-size: 11px;
  font-weight: 700;
  margin-right: 1px;
}

/* 免费商品：价格位写「免费」，用品牌青，别让人以为是价格没加载出来 */
.price.is-free,
.detail-price.is-free {
  color: #0e9488;
}

/* 「免费」两个字比 ¥ 数字收一号，不然和真金白银的价格一样重 */
.price.is-free {
  font-size: 15px;
}

/* 首页商城楼层：官方导图下面按分类铺商品 */
.store-sec {
  margin-top: 6px;
  padding-top: 2px;
  border-top: 1px dashed var(--line);
}

.cat-nav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 13px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.cat-chip.is-on {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(27, 79, 138, 0.24);
}

.floor {
  margin-top: 12px;
}

.floor-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 2px 8px;
}

/*
 * 分类图标：26px 圆角方块，浅色渐变底 + 1px 同色描边 + 内高光，
 * 图标本身用同色系深一档，六个分类各占一个低饱和色相——
 * 比纯灰底更有层次，又不会抢标题的注意力。
 */
.floor-glyph {
  --cat: 214;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  background: linear-gradient(160deg, hsl(var(--cat) 88% 97%) 0%, hsl(var(--cat) 74% 89%) 100%);
  color: hsl(var(--cat) 58% 39%);
  box-shadow:
    inset 0 0 0 1px hsl(var(--cat) 66% 86%),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(20, 45, 70, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floor-glyph svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* 六个分类的色相：蓝 / 青 / 橙 / 紫 / 绿 / 玫红 */
.tone-basics {
  --cat: 214;
}

.tone-interface {
  --cat: 188;
}

.tone-power {
  --cat: 26;
}

.tone-controller {
  --cat: 258;
}

.tone-design {
  --cat: 158;
}

.tone-interview {
  --cat: 340;
}

@media (hover: hover) {
  .floor-head:hover .floor-glyph {
    transform: translateY(-1px);
    box-shadow:
      inset 0 0 0 1px hsl(var(--cat) 60% 82%),
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 4px 10px rgba(20, 45, 70, 0.12);
  }
}

.floor-head h3 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.floor-desc {
  min-width: 0;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/**
 * 楼层标题右侧的「更多」。
 * 两端都要：手机上楼层是横滑的，只露两张半，得有个明确出口；电脑端每类只铺两排，
 * 超出部分也靠它。做成浅色胶囊而不是一行灰字 —— 灰字看着像副标题，没人点。
 */
.floor-more {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 5px 9px 5px 11px;
  border-radius: 999px;
  border: 1px solid #dfe7f1;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-1);
  background: #f1f5f9;
}

/* 箭头用 CSS 画，不额外引一个图标（少一次模块依赖） */
.floor-more::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-left: 3px;
  margin-top: -1px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.floor-more:active {
  color: var(--brand);
  background: #eef2f7;
}

/**
 * 已经点了分类胶囊、这一屏只剩这一类商品时，「更多」点进去看到的是同一批东西，
 * 纯属原地跳转 —— 直接藏掉（.is-filtered 由首页 chip 的点击逻辑加上）。
 */
.store-sec.is-filtered .floor-more {
  display: none;
}

/**
 * 手机上横向滑动：右边只露第三张的一条窄边（11px 上下），
 * 配一点点边缘淡出就够了 —— 露太多、淡出太宽都会像在发光，反而抢商品本身的注意力。
 */
.floor-rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  /* 只留最后 7px 轻轻压一点透明度（不淡到全透明），泛光才不至于糊成一条白边 */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 7px), rgba(0, 0, 0, 0.55) 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 7px), rgba(0, 0, 0, 0.55) 100%);
}

.floor-rail::-webkit-scrollbar {
  display: none;
}

/* 已经滑到底：撤掉淡出，最后一张要完整可见 */
.floor-rail.is-end {
  -webkit-mask-image: none;
  mask-image: none;
}

/* 一排仍按两张算，但每张窄一点，右边空出第三张的一角（gap 11px 要算进去） */
.floor-rail .product-card {
  flex: 0 0 calc((100% - 11px) / 2 - 9px);
  scroll-snap-align: start;
}

/**
 * 选中了某个分类：这一屏就只剩这一类，直接纵向铺开一次看完。
 * 只作用于手机宽度 —— 桌面本来就是整排铺开的网格。
 */
@media (max-width: 899px) {
  .store-sec.is-filtered .floor-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    overflow: visible;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .store-sec.is-filtered .floor-rail .product-card {
    flex: none;
  }
}

/* 分类下还没有商品：一条虚线占位，别留一片空白让人以为加载失败 */
.floor-soon {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(27, 79, 138, 0.2);
  background: linear-gradient(135deg, rgba(27, 79, 138, 0.04) 0%, rgba(46, 201, 184, 0.06) 100%);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.floor-soon b {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--brand);
}

/* 资源广场页：#/store 按分类分段 */
.store-cat {
  margin-top: 18px;
}

/* 只显示一类时：这一类的商品直接从标题下面开始铺 */

.store-cat:first-of-type {
  margin-top: 6px;
}

/* 商品详情 */
/* 详情页底部有固定购买条，多留一截，别把最后一块内容压在下面 */
.detail-page {
  padding-bottom: calc(170px + var(--safe-b));
}

/**
 * 手机上仍是单列：封面 → 标题 → 价格 → 标签 → 简介 / 包含 → 底部购买条。
 * 桌面版为了做成「左内容右购买面板」把 DOM 拆成了两个包裹层，
 * 这里用 display: contents 把它们摊平，再用 order 把顺序还原成单列该有的样子。
 */
.detail-wrap {
  display: flex;
  flex-direction: column;
}

.detail-main,
.detail-side {
  display: contents;
}

.detail-head {
  order: 1;
}
.detail-price-row {
  order: 2;
}
.detail-block {
  order: 3;
}
.detail-page .bottom {
  order: 9;
}

/**
 * 手机底栏按钮顺序：加入购物车在左、立即购买在右（电商通用顺序）。
 * 必须锁在窄屏媒体查询里 —— 这几条选择器比桌面端的主按钮 order 更具体，
 * 一旦漏到全局，PC 上就会变成「加入购物车在上、立即购买在下」。
 * 「预览导图」夹在中间；三个按钮都在时副按钮收紧成自适应宽，别把主按钮挤瘪。
 */
@media (max-width: 899px) {
  .detail-page .bottom .buy-secondary[data-cart] { order: 1; }
  .detail-page .bottom .buy-secondary[data-preview] { order: 2; }
  .detail-page .bottom .buy-primary { order: 3; }
  .detail-page .bottom .buy-secondary {
    flex: 0 0 auto;
    padding: 0 12px;
    white-space: nowrap;
  }
  .detail-page .bottom .buy-primary {
    white-space: nowrap;
  }
}

/**
 * 封面：后台传了图就是一张图，没传就退回「渐变色块 + emoji」。
 * 手机上 order 0，排到标题上面 —— 先看图再看字，是逛商城的习惯顺序。
 */
.detail-cover {
  order: 0;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 56px;
  line-height: 1;
  background-repeat: no-repeat;
  /* 白底封面图（logo 那种）和卡片同色，靠一圈内描边把边界勾出来 */
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(15, 32, 54, 0.06);
  margin-top: 4px;
  overflow: hidden;
}

/* 有图时不要那个 emoji 底色渐变的光晕，图片自己撑满整个框 */
.detail-cover.has-image {
  font-size: 0;
}

/* 标题块：手机上就是普通一段，桌面端整块吸顶（见媒体查询） */
.detail-head {
  padding-top: 4px;
}

/* 标题 + 管理员「编辑」按钮同一行，按钮靠右，长标题自己换行不挤按钮 */
.detail-head-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 12px 0 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

/**
 * 管理员快捷编辑按钮。
 * 只在桌面端出现（渲染时就判断过屏宽，这里再兜一层样式）。
 * 视觉上比正文轻：白底细边、深灰字，悬停才染品牌色，
 * 免得访客误以为这是商品动作按钮。
 */
/**
 * 按钮不参与伸缩。
 *
 * 标题很长时是 flex 里的「可收缩项」，默认会把旁边的按钮一起挤窄，
 * 结果「编辑」变成竖排两行。这里让槽位和按钮都固定宽度、文字不换行，
 * 长标题自己换行就好。
 */
.admin-edit-slot {
  flex: 0 0 auto;
  align-self: flex-start;
}

.admin-edit-slot:empty {
  display: none;
}

.admin-edit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 6px 12px;
  white-space: nowrap;
  border-radius: 9px;
  border: 1px solid var(--line, #dfe6ef);
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

.admin-edit svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.admin-edit:hover {
  border-color: #b9c6d9;
  color: var(--brand, #1b4f8a);
}

@media (max-width: 899px) {
  /* 手机端不显示：后台表单是两栏布局，手机上没法编辑 */
  .admin-edit-slot {
    display: none;
  }
  .detail-head-row {
    display: block;
  }
}

.detail-sub {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

/* 手机端价格保持朴素：只有数字，不加底块（底块是桌面端购买卡片的样式） */
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.1;
}

.detail-price small {
  font-size: 14px;
  margin-right: 2px;
}

/**
 * 已购 / 已领后价格带里显示的状态字（替换掉原来的价格数字）。
 * 一行「勾 + 已购买」，居中压在原来的价格位置上，视线不用换地方。
 */
.detail-price-state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ef5f22;
  line-height: 1.1;
}

.detail-price-state svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* 已购买 / 已领取统一走青绿，手机上也要一致（桌面端那条在媒体查询里） */
.buy-panel.is-owned .detail-price-state {
  color: #0e9488;
}

/* 手机上「价格 + 购买按钮」不包卡片：display:contents 让它们继续按 order 参与外层的排序 */
.buy-panel {
  display: contents;
}

/* 价格旁边的类型标签（可编辑导图 / 技术资料）：不搞促销标签那一套 */
.detail-kind {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  align-self: center;
}

/* ============ 详情页通知卡片 ============ */

/**
 * 手机端详情页的竖向顺序（桌面是两栏，order 不参与，改这里不会动 PC）：
 *   标题 → 价格 → 视频 → 简介 → 已购下载卡 → 包含 → 购买说明 → 底部按钮条 → 通知
 *
 * 已购卡必须排在「简介」后面：它原来 order 2，紧跟着标题和价格带，
 * 一付款页面自动滚过去，看起来就像「跳回标题」。放正文后面才顺手 ——
 * 看完简介正好看到「点击下载」。
 */
@media (max-width: 899px) {
  .detail-page .vod-block { order: 3; }
  .detail-page .db-desc { order: 4; }
  .detail-page .buy-done { order: 5; }
  .detail-page .db-include { order: 6; }
  .detail-page .db-buy-note { order: 7; }
}

.detail-page .detail-notice {
  order: 10;
}

.detail-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

/* 通知是一张卡片里的两段（本商品在上、全局在下），中间用虚线分隔 */
.dn-row + .dn-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.detail-notice p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: break-word;
}

/* ============ 已购买卡片 ============ */

.buy-done {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

/**
 * 桌面右栏：已购块坐在价格带下面，本身就是购买卡片的一部分。
 * 再套一层边框 + 阴影等于卡片里嵌卡片，直接把外框去掉，只留一条分隔线。
 */
@media (min-width: 900px) {
  .detail-side .buy-panel .buy-done {
    margin-top: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
}

.buy-done-body {
  padding: 14px;
}

.buy-done-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.buy-done-ok svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #12b76a;
}

/* 导图类的「打开完整导图」：整条一个按钮 */
.buy-done-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: #2f3542;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.buy-done-btn:active {
  background: #262b36;
}

.buy-done-btn svg {
  width: 18px;
  height: 18px;
}

/**
 * 资料类的下载条：左边「点击下载」、右边「密码：xxxx」，中间一条分隔线。
 * 两块分别是独立按钮 —— 点左边跳网盘，点右边只复制提取码。
 */
.dn-bar {
  display: flex;
  align-items: stretch;
  height: 46px;
  overflow: hidden;
  border-radius: 9px;
  background: #2f3542;
}

.dn-download {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.dn-download svg {
  width: 18px;
  height: 18px;
}

.dn-code {
  flex: 0 0 auto;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: none;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.dn-code:active,
.dn-download:active {
  background: rgba(255, 255, 255, 0.08);
}

.detail-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.detail-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.detail-block p {
  margin: 0 0 8px;
  /* 正文再大一号、颜色压到接近纯黑：简介是主要阅读区，别用灰蓝小字 */
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

/**
 * 后台「字号」按钮存的是 <font size="N">，浏览器原生映射（13/16/24/32px）
 * 比正文大跳，这里改成和编辑区一致的刻度：正文 15 / 小 13 / 大 18 / 特大 22。
 */
.detail-block font[size='1'] { font-size: 12px; }
.detail-block font[size='2'] { font-size: 13px; }
.detail-block font[size='3'] { font-size: 15px; }
.detail-block font[size='4'] { font-size: 17px; }
.detail-block font[size='5'] { font-size: 18px; }
.detail-block font[size='6'] { font-size: 22px; }
.detail-block font[size='7'] { font-size: 26px; }

.detail-block p:last-child {
  margin-bottom: 0;
}

/* 简介为空 / 回落成副标题时的占位句：弱化成辅助文字，别和正文抢注意力 */
.detail-block p.detail-empty {
  color: var(--ink-3);
}

/* 简介里的项目符号 / 编号列表（后台工具条插入的 ul / ol） */
.detail-block ul:not(.include-list),
.detail-block ol {
  margin: 0 0 8px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.detail-block ul:not(.include-list) li,
.detail-block ol li {
  margin: 3px 0;
}

/* 纯视频课程已购：不需要下载条，只说明「可直接看」 */
.buy-done-tip {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f7ff;
  font-size: 12.5px;
  line-height: 1.6;
  color: #27537f;
}

.include-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.include-list li {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid #f1f5f9;
}

.include-list li:last-child {
  border-bottom: 0;
}

.include-list li svg {
  width: 15px;
  height: 15px;
  color: var(--brand-2);
  flex: 0 0 auto;
  margin-top: 2px;
}

.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 9px 16px calc(12px + var(--safe-b));
  background: linear-gradient(to bottom, rgba(246, 247, 251, 0), var(--bg) 14px);
}

.buy-bar-inner {
  width: 100%;
  flex: 1;
  min-width: 0;
  max-width: 748px;
  margin: 0 auto;
  display: flex;
  gap: 9px;
}

.buy-secondary {
  flex: 0 0 132px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 立即购买：淘宝主按钮同款橘红渐变（橘黄 → 橘红），白字压得住 */
.buy-primary {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(90deg, #ff7a00 0%, #ff5100 30%, #ff3d00 70%, #f22e00 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.24);
}

.buy-primary:active {
  background: linear-gradient(90deg, #ef6d00 0%, #ef4800 30%, #ee3500 70%, #d92800 100%);
}

.buy-primary.is-owned {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 79, 138, 0.26);
}

/**
 * 免费商品整套换青绿：橘红是「花钱」的颜色，白拿的东西用橘红看着像要收费。
 * 只改免费商品的领取按钮和价格带，付费商品仍是橘红。
 */
.buy-panel.is-free .buy-primary {
  background: linear-gradient(90deg, #16b98a 0%, #0fa083 40%, #0e9488 100%);
  box-shadow: 0 10px 24px rgba(14, 148, 136, 0.22);
}

.buy-panel.is-free .buy-primary:active {
  background: linear-gradient(90deg, #12a67c 0%, #0d8f76 40%, #0b8378 100%);
}

/* 两个按钮都可能带图标：不锁死尺寸的话，SVG 会把按钮撑成一个大方块 */
.buy-primary svg,
.buy-secondary svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

/* 已购资源：网盘按钮（复制链接 + 打开网盘） */
.btn-netdisk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(27, 79, 138, 0.22);
}

.btn-netdisk svg {
  width: 16px;
  height: 16px;
}

/* 简介里的插图：整宽 + 圆角，别撑破内容栏 */
.detail-figure {
  margin: 10px 0;
}

.detail-figure img {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
}

/* 富文本简介里直接粘进来的图（没包 figure）：一律不超栏宽 */
.detail-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 后台富文本里的 <font size> 在窄屏上别撑破行 */
.detail-block font {
  line-height: 1.7;
}

/* ============ 详情页视频（云点播） ============ */

/* 标题右边的「共 N 集」：辅助信息，不要跟标题抢注意力 */
.vod-block h3 .vod-sub {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: var(--ink-3);
}

/* 播放器：16:9 黑底，圆角裁掉视频自带的直角 */
.vod-stage {
  position: relative;
  margin-top: 4px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
}

.vod-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}

/**
 * 试看结束 / 需要购买时盖在画面上的一层：
 * 按钮复用「购买」的橘红，和底栏是同一个动作，颜色一致才不会被当成两件事。
 */
.vod-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: #fff;
  background: rgba(8, 12, 22, 0.78);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.vod-mask[hidden] {
  display: none;
}

/**
 * 起播遮罩：进详情页不自动播放，先停在封面等用户点一下。
 * 比「试看结束」那层浅，暗示「可以点」，不会被误认为不能看。
 */
.vod-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: rgba(8, 16, 28, 0.32);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

.vod-start[hidden] {
  display: none;
}

.vod-start-ico {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #12314f;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(4, 12, 24, 0.3);
}

.vod-mask b {
  font-size: 15px;
}

.vod-mask p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.vod-buy {
  margin-top: 6px;
  padding: 9px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a00 0%, #ff5100 60%, #f22e00 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 90, 0, 0.28);
}

.vod-buy[hidden] {
  display: none;
}

/* 集数按钮：一排胶囊，能换行；锁住的用灰底 + 橙字提示「需购买 / 试看 N 秒」 */
.vod-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.vod-ep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink-2);
  font-size: 13px;
}

.vod-ep.is-on {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.vod-ep.is-locked {
  color: var(--ink-3);
  background: #f1f5f9;
}

.vod-ep-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.vod-ep.is-on .vod-ep-no {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.vod-ep-t {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vod-ep-tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-2);
}

.vod-ep.is-locked .vod-ep-tag {
  color: #b45309;
}

.vod-loading {
  font-size: 13px;
  color: var(--ink-3);
}

/* ==================== 购物车 ==================== */

/* 头部入口只放图标，右上角挂数量角标 */
.cart-entry {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
}

/* 底部结算条是 fixed 的，正文下面留出它的高度 */
.cart-page {
  padding-bottom: calc(104px + var(--safe-b));
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-1);
}

.cart-cover {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  background-size: cover;
  background-position: center;
}

.cart-body {
  flex: 1;
  min-width: 0;
}

.cart-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 600;
}

.cart-label {
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--brand);
}

.cart-owned {
  padding: 1px 7px;
  border-radius: 999px;
  background: #e8f7f2;
  color: #0e9488;
}

.cart-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.cart-price {
  font-size: 15px;
  font-weight: 800;
  color: #c2410c;
}

/* 单件付款：每行一个，想买哪件点哪件 */
.cart-buy {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(27, 79, 138, 0.22);
}

.cart-buy.is-free {
  background: #0e9488;
  box-shadow: 0 4px 12px rgba(14, 148, 136, 0.22);
}

.cart-buy:active {
  transform: translateY(1px);
}

.cart-del {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: underline;
  cursor: pointer;
}

.cart-total {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--ink-2);
}

.cart-total b {
  margin-left: 2px;
  font-size: 19px;
  color: #c2410c;
}

/* 「我的 · 已购」右侧的小按钮 */
.mine-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.mine-link svg {
  width: 14px;
  height: 14px;
}

/* 我的 */
.mine-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
  margin-bottom: 9px;
}

/* 已购卡片整张可点：进商品详情页（鼠标端给手型，点下去有轻微压感） */
.mine-card.is-link {
  cursor: pointer;
}

.mine-card.is-link:active {
  background: #f7fafd;
}

/* 已购缩略图：后台传过封面图时铺满（background 由 app.js 的 coverStyleOf 给） */
.mine-cover {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex: 0 0 auto;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.mine-body {
  flex: 1;
  min-width: 0;
}

.mine-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mine-meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

/* 已购列表底部「查看更多 / 收起」：列表超过一屏才出现，做成和卡片同宽的整条 */
.mine-more {
  display: block;
  width: 100%;
  margin: -3px 0 9px;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.mine-more:active {
  background: #f7fafd;
}

.mine-empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  /* 上面紧跟账号卡，没有说明行了，自己留出间距 */
  margin: 20px 0 18px;
}

.stat-card {
  padding: 14px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
}

.stat-label {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

/* 两张卡时不要留一格空位 */
.stats-row.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 设置列表：一行一个动作，右侧写清结果 */
.mine-list {
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  /* 和上面的账号卡 / 下面的「已购」标题都留出气口，别贴在一起 */
  margin: 12px 0 8px;
}

.mine-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.mine-row + .mine-row {
  border-top: 1px solid var(--line);
}

.mine-row-ico {
  display: flex;
  flex: 0 0 auto;
  color: var(--ink-3);
}

.mine-row-ico svg {
  display: block;
  width: 16px;
  height: 16px;
}

.mine-row-sub {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-3);
}

.mine-row.is-danger {
  color: #b42318;
}

.mine-row.is-danger .mine-row-ico {
  color: #b42318;
}

/**
 * 站点页脚：版权 + ICP 备案号（工信部要求底部展示，且要能点到查询页）。
 * 只用小字浅灰，不跟内容抢注意力。
 */
.site-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 14px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}

.site-foot a {
  color: var(--ink-3);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* 页脚说明 */
.mine-foot {
  margin: 14px 2px 6px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-3);
  text-align: center;
}

/* 空态里的「去资源广场」：单独占一行、按内容宽度居中 */
.mine-empty .btn-secondary {
  display: flex;
  width: fit-content;
  height: 40px;
  margin: 12px auto 0;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 13px;
}

/* ============================================================
   弹层 / 提示
   ============================================================ */

.mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.mask.is-on {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  /**
   * bottom 跟着键盘走（--kb 由 app.js 的 bindKeyboardOffset 写入）。
   *
   * 不这么做时，键盘弹起后 iOS 会自己把页面/可视区往上顶，弹层跟着跳一下，
   * 和输入框的出现叠在一起就是「卡」。改成弹层自己贴着键盘上沿，
   * 浏览器就不需要滚页面了。
   */
  bottom: var(--kb, 0px);
  z-index: 61;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 16px 18px calc(18px + var(--safe-b));
  transform: translateY(104%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.16s ease-out;
  max-height: 80%;
  overflow-y: auto;
}

.sheet.is-on {
  transform: none;
}

/**
 * 输入类弹层（新建 / 重命名）：只淡入，不从底部滑上来。
 * 键盘弹起本身就是一条自上而下的位移动画，两条同向动画叠在一起会显得一顿一顿。
 */
.sheet.is-quick {
  transform: none;
  opacity: 0;
  transition: opacity 0.12s ease-out, bottom 0.16s ease-out;
}

.sheet.is-quick.is-on {
  opacity: 1;
}

.sheet h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

/* 弹层说明文字：h3 下面一行灰字，登录提示等处共用 */
.sheet-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}

/**
 * 确认弹层（删除 / 支付）
 * 图标 + 问句 + 后果说明 + 并排两个按钮，比原来「说明文字当按钮」的一行红字清楚得多
 */
.sheet.is-confirm {
  padding-top: 22px;
}

.confirm-head {
  text-align: center;
  padding: 0 2px;
}

.confirm-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
}

.confirm-badge svg {
  width: 21px;
  height: 21px;
}

.sheet.is-confirm h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.sheet.is-confirm .sheet-desc {
  margin: 8px 0 0;
}

.sheet.is-confirm .sheet-btns {
  margin-top: 20px;
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  text-align: left;
}

.sheet-item:active {
  background: #f8fafc;
}

.sheet-item.danger {
  color: #e5484d;
}

.sheet-cancel {
  margin-top: 8px;
  height: 46px;
  border-radius: 13px;
  background: #f1f5f9;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/**
 * 文件夹选择面板（「移动到文件夹」）
 * 一行一个文件夹：左侧一条该文件夹的配色条 + 名称；当前所在的那行整行浅黄底高亮。
 * 分隔线做在行顶，最后一行不画。
 */
.sheet.is-folder-picker {
  padding: 20px 14px calc(14px + var(--safe-b));
}

.sheet.is-folder-picker h3 {
  margin: 0 0 12px;
  padding: 0 6px;
  font-size: 21px;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.2px;
}

.folder-picker {
  max-height: 56vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fp-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 15.5px;
  color: var(--ink);
  text-align: left;
}

.fp-item + .fp-item::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 4px;
  top: 0;
  height: 1px;
  background: #eef1f5;
}

.fp-item.is-on {
  background: #fdf0d5;
}

/* 高亮块和相邻分隔线叠在一起会露出毛边，收到高亮块里就干净了 */
.fp-item.is-on::before,
.fp-item.is-on + .fp-item::before {
  opacity: 0;
}

.fp-bar {
  flex: 0 0 auto;
  width: 4px;
  height: 18px;
  border-radius: 3px;
}

.fp-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet.is-folder-picker .sheet-cancel {
  margin-top: 14px;
  height: 50px;
  border-radius: 25px;
  background: #f2f3f5;
  color: #c98a2e;
  font-size: 16px;
  font-weight: 600;
}

.prompt-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
  background: #f8fafc;
}

.prompt-input:focus {
  border-color: var(--brand);
  background: #fff;
}

/* ---------- 意见反馈面板 ---------- */

.fb-sub {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* 四类反馈做成胶囊单选：一眼看清能提什么，又不占一大块 */
.fb-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.fb-kind {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}

.fb-kind.is-on {
  border-color: transparent;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

/* 正文给足高度，别让人写两句就得滚 */
.fb-text {
  height: auto;
  min-height: 108px;
  padding: 10px 14px;
  line-height: 1.6;
  resize: none;
}

.fb-contact {
  margin-top: 8px;
}

/* ---------- 导入导图面板 ---------- */

.panel-tip {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

.panel-tip b {
  color: var(--brand);
}

/* 多行大纲：比 prompt-input 高，等宽字体便于看缩进 */
.imp-text {
  height: 168px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: none;
}

.imp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.imp-pick {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.imp-hint {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 分享链接输入框：只读、可整段选中 */
.share-link {
  font-size: 13px;
  color: var(--ink-2);
}

/**
 * 分享码那一句已经挪到链接输入框**上面**（用户要求：先说「怎么还原」，再给链接），
 * 所以这里贴住上面的说明、下面留 8px 跟输入框隔开。
 */
.share-code-tip {
  margin: 0 0 8px;
}

/* 分享码是一串字符，等宽字体 + 稍紧字距，容易一眼认全 */
.share-code-tip b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.2px;
  word-break: break-all;
}

/* 分享页加载中 */
.share-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60vh;
  font-size: 14px;
  color: var(--ink-3);
}

.spin {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sheet-btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sheet-btns button {
  flex: 1;
  height: 46px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
}

.sheet-btns .ghost {
  background: #f1f5f9;
  color: var(--ink-2);
}

.sheet-btns .primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
}

/* 破坏性操作（删除）：和「取消」并排，但用红色实心区分开 */
.sheet-btns .danger {
  background: linear-gradient(135deg, #f2605f 0%, #d93a40 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(217, 58, 64, 0.22);
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 90;
  /**
   * 宽度必须写 width: max-content。
   *
   * 绝对定位元素的「收缩到合适」只按 left 之后的剩余空间算 —— left:50% 时
   * 可用宽度只有半个屏幕（390 的手机上就是 195px），所以一句二十来个字的话
   * 会被挤成三行、最后一行只剩一个字，改 max-width 也没用。
   * 用 max-content 让它先按内容撑开，再由 max-width 封顶。
   */
  width: max-content;
  max-width: min(86vw, 420px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

/* ============================================================
   桌面端（≥ 900px）：多列、内容居中、留白充足
   ============================================================ */

@media (min-width: 900px) {
  body {
    font-size: 15px;
  }

  .page {
    max-width: 1180px;
    padding: 0 32px 130px;
  }

  /* 「我的」内容本来就窄，拉到 1180 两边空荡荡：收成一栏居中，读起来更聚拢 */
  .mine-page {
    max-width: 760px;
  }

  .header {
    margin: 0 -32px;
    padding: 26px 32px 14px;
  }

  /* 桌面把商城 / 我的放到右上角，底部那排导航直接收掉 */
  .header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex: 0 0 auto;
  }

  .header-nav .hl-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
  }

  /* 桌面头部不再放购物车：入口统一收进「我的」，头部只留登录 / 我的 */
  .header-nav .cart-entry {
    display: none;
  }

  .header-nav .hl-btn:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
  }

  .header-nav .hl-btn:hover svg {
    color: #fff;
  }

  .header-nav .hl-btn svg {
    width: 17px;
    height: 17px;
  }

  .bottom.bottom-mobile {
    display: none;
  }

  /* 文件夹页：一行干净的标题 + 右上角新建 */
  .folder-bar {
    margin: 0 -32px;
    padding: 26px 32px 18px;
    gap: 14px;
  }

  .folder-bar-title {
    font-size: 26px;
    gap: 11px;
  }

  .folder-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
  }

  .folder-bar-meta {
    margin-top: 6px;
    font-size: 12px;
  }

  .folder-bar-new {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(27, 79, 138, 0.24);
    transition: filter 0.14s ease, transform 0.14s ease;
  }

  .folder-bar-new:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }

  .folder-bar-new svg {
    width: 18px;
    height: 18px;
  }

  /* 桌面上「导入」跟「新建导图」并排，做成次级按钮 */
  .folder-bar-acts {
    display: flex;
  }

  .folder-bar-import {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--ink-2);
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-1);
    transition: border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
  }

  .folder-bar-import:hover {
    border-color: #9cc3e6;
    color: var(--brand);
    transform: translateY(-1px);
  }

  .folder-bar-import svg {
    width: 18px;
    height: 18px;
  }

  /* 桌面上「选择」跟「导入」同高同圆角，排在最前面 */
  .folder-bar-pick {
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    transition: filter 0.14s ease, transform 0.14s ease;
  }

  .folder-bar-pick:hover {
    border-color: #9cc3e6;
    color: var(--brand);
    transform: translateY(-1px);
  }

  .folder-bar-pick.is-on,
  .folder-bar-pick.is-on:hover {
    border-color: transparent;
    color: #fff;
    background: var(--brand);
    filter: brightness(1.04);
  }

  /* 多选操作条在桌面上也收在同一列宽度里 */
  .pick-bar {
    padding: 12px 32px calc(18px + var(--safe-b));
  }

  .pick-bar-inner {
    max-width: 1116px;
  }

  /* 桌面宽度大，三个按钮拉满会很空：定宽靠右，「全选」留在左边 */
  .pick-btn {
    flex: 0 0 auto;
    width: 150px;
    height: 50px;
    font-size: 16px;
  }

  .pick-bar-inner [data-pick-all] {
    margin-right: auto;
  }

  .official-sec .folder-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .brand-title {
    font-size: 38px;
  }

  .brand-sub {
    font-size: 11.5px;
    margin: 0;
  }

  .hl-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 13px;
  }

  .sec-head {
    margin: 30px 4px 14px;
  }

  .sec-head h2 {
    font-size: 18px;
  }

  .tools-row {
    display: grid;
    /* 工具数量会继续增加：按宽度自动排，别写死列数留下孤零零的卡片 */
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
    gap: 14px;
    overflow: visible;
  }

  .tool {
    width: auto;
    padding: 16px 16px 18px;
    border-radius: 18px;
  }

  .tool-glyph {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 16px;
  }

  .tool-name {
    font-size: 15px;
    margin-top: 12px;
  }

  .tool-desc {
    font-size: 12px;
    margin-top: 3px;
  }

  /* 首页只有一列，铺满整宽（右侧不再挂「商城精选」） */
  .home-cols {
    display: block;
  }

  .bottom-inner.bottom-nav {
    max-width: 520px;
  }

  /* 桌面 6 列；文件夹图标收小一点，别一进首页就是六块大色块 */
  .folder-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .folder-card {
    padding: 12px 10px;
    border-radius: 16px;
  }

  .folder-shape {
    height: 84px;
    margin-bottom: 8px;
  }

  .folder-tab {
    height: 21px;
    border-radius: 8px 9px 0 0;
  }

  .folder-body {
    top: 16px;
    border-radius: 7px 13px 13px 13px;
  }

  .folder-badge {
    min-width: 26px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
  }

  .folder-name {
    font-size: 13px;
  }

  .folder-meta {
    font-size: 11px;
  }

  .folder-new-ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .folder-new-ico svg {
    width: 18px;
    height: 18px;
  }

  /* 桌面上工具是 4 列静态栅格，不需要滑动提示 */
  .swipe-tip,
  .tools-wrap::after {
    display: none;
  }

  .btn-nav {
    height: 50px;
    font-size: 15px;
  }

  /* 桌面：一行三张，卡片更宽更容易扫标题 */
  .doc-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .doc-card {
    padding: 14px;
    border-radius: 18px;
  }

  .doc-tile {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .doc-title {
    font-size: 15px;
  }

  .doc-meta {
    font-size: 12px;
  }

  .bottom-inner {
    max-width: 1116px;
  }

  .btn-mini {
    width: 64px;
    height: 50px;
    font-size: 10px;
  }

  .btn-create {
    height: 50px;
    font-size: 16px;
  }

  /* 资源广场桌面端一排四个：卡片小一点，一屏能看到更多分类内容 */
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  /* 桌面楼层保持「第二张露一角」的滑动提示，不铺满 */
  .floor-rail .product-card {
    flex-basis: 44%;
  }



  /* 首页楼层：桌面不再横滑，一排 4 个，多的往下排（和资源广场页一致） */
  .floor-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .floor-rail .product-card {
    flex: none;
  }

  .floor-head {
    margin: 0 4px 10px;
  }

  /**
   * 桌面端楼层限高：4 列 × 2 排 = 8 个，再多的收进标题右边的「更多」。
   * 手机上这些卡片照常渲染（横滑能滑到），只有桌面宽度才藏。
   */
  .floor-rail .product-card.is-extra {
    display: none;
  }

  /* 点了「更多」→ 只剩这一类（.is-filtered）→ 把收起的卡片放出来，一屏看完 */
  .store-sec.is-filtered .floor-rail .product-card.is-extra {
    display: block;
  }

  /* 资源广场里「先看分类再看商品」，分类名给足字号和对比度，别用浅灰 */
  .floor-head h3 {
    font-size: 17px;
    color: var(--ink);
    letter-spacing: 0.2px;
  }

  .floor-desc {
    font-size: 12.5px;
    color: var(--ink-2);
  }

  .product-cover {
    height: 150px;
  }

  .product-cover .glyph {
    font-size: 46px;
  }

  .product-title {
    font-size: 15px;
  }

  .product-body {
    padding: 13px 14px 15px;
  }

  /**
   * 详情：左边封面 + 简介 + 包含（跟着滚），右边标题 / 价格 / 购买（粘住不动）。
   * 淘宝那种排法的好处是简介再长，价格和按钮也始终在视野内。
   */
  .detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 352px;
    column-gap: 34px;
    align-items: start;
    margin-top: 8px;
  }

  /* 桌面恢复成两列，不再摊平；order 也跟着失效 */
  .detail-main,
  .detail-side {
    display: block;
  }

  .detail-main {
    min-width: 0;
  }

  /* 顶部返回条是 sticky 的，留 60px 别被它压住 */
  .detail-side {
    position: sticky;
    top: 60px;
    /* 具体下移多少由 JS 按左栏标题块的实际高度同步（标题换行时也能对齐） */
    margin-top: 0;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-1);
  }

  /* 右栏封面：卡片内宽只有 300 出头，图用 16:10 的横图，emoji 缩一档 */
  .detail-side .detail-cover {
    margin: 0 0 16px;
    border-radius: 14px;
    font-size: 46px;
    box-shadow: inset 0 0 0 1px rgba(15, 32, 54, 0.06);
  }

  /**
   * 购买卡片：价格带 + 立即购买 + 加入购物车装进同一张卡。
   * 上半是淡橘价格带（参考电商价格块的画法：横条铺满、价格居中、大号橘红字），
   * 下半是白色按钮区 —— 价格和动作在同一视线里，不用上下找。
   */
  .buy-panel {
    display: block;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
  }

  .detail-side .detail-price-row {
    margin: 0;
    padding: 28px 16px;
    justify-content: center;
    background: #fff4e8;
  }

  .detail-side .detail-price {
    color: #f2480a;
  }

  .detail-side .detail-price small {
    font-size: 17px;
    font-weight: 800;
  }

  /**
   * 免费商品 + 已购 / 已领，价格带统一换青绿。
   * 白拿的东西、以及「已经是你的了」这个状态，用橘红都像还在收费。
   */
  .buy-panel.is-free .detail-price-row,
  .buy-panel.is-owned .detail-price-row {
    background: #e9f8f3;
  }

  /* 「免费」两个字在桌面上被 .detail-side .detail-price 的橘红盖掉了，这里单独纠正 */
  .detail-side .detail-price.is-free {
    color: #0e9488;
  }

  .buy-panel.is-owned .detail-price-state {
    color: #0e9488;
  }

  /* 状态字跟价格同字号：换掉数字后位置和分量都不变 */
  .detail-side .detail-price-state {
    font-size: 26px;
    color: #f2480a;
  }

  .detail-side .detail-price-state svg {
    width: 24px;
    height: 24px;
  }

  /**
   * 标题不再吸顶：吸顶时会盖在正文上方，往下拉看着像「标题悬浮在中间」。
   * 现在跟着内容一起滚走，只有右边的价格 / 购买面板保持粘住。
   */
  .detail-head {
    padding: 0 0 10px;
  }

  .detail-title {
    font-size: 28px;
    margin: 0 0 6px;
  }

  .detail-price {
    font-size: 34px;
  }

  .buy-bar-inner {
    max-width: 1116px;
  }

  /* 详情页的购买条：桌面端不再做「通屏固定底栏」，
     直接跟在右栏文字下面，按钮与图标都按桌面比例缩一档 */
  .detail-page {
    padding-bottom: 40px;
  }

  .detail-page .bottom {
    position: static;
    left: auto;
    right: auto;
    padding: 14px;
    margin: 0;
    background: none;
  }

  /* 右栏只有 300 出头，两个按钮并排会溢出：改成上下各占一整行，主按钮在上 */
  .detail-page .buy-bar-inner {
    max-width: none;
    flex-direction: column;
    gap: 10px;
  }

  .detail-page .buy-secondary,
  .detail-page .buy-primary {
    flex: none;
    width: 100%;
    min-width: 0;
    height: 44px;
    border-radius: 12px;
    box-shadow: none;
  }

  .detail-page .buy-secondary {
    order: 2;
    font-size: 14px;
    border: 1px solid var(--line);
  }

  .detail-page .buy-primary {
    order: 1;
    padding: 0 22px;
    font-size: 14.5px;
  }

  .detail-page .buy-primary svg {
    width: 16px;
    height: 16px;
  }

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .stat-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .stat-num {
    font-size: 26px;
  }

  /* 工具页在桌面不拉满整屏，统一收成居中的一列 */
  .tool-page .unit-panel,
  .tool-page .unit-res,
  .tool-page .cats,
  .tool-page .unit-tip,
  .tool-page .tool-card,
  .tool-page .res-hero,
  .tool-page .pcb-table,
  .tool-page .hero-card,
  .tool-page .pcb-more,
  .tool-page .seg,
  .tool-page .schematic {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 示意图按 320 宽的 viewBox 画，桌面别跟着拉满 720 */
  .tool-page .schematic {
    max-width: 420px;
  }

  /* 登录页在桌面收窄居中，二维码不至于孤零零悬在一大片白里 */
  .login-page {
    max-width: 420px;
    margin: 0 auto;
  }

  .sheet {
    left: 50%;
    right: auto;
    width: 520px;
    transform: translateX(-50%) translateY(104%);
    border-radius: 20px;
    bottom: 24px;
    padding-bottom: 18px;
  }

  .sheet.is-on {
    transform: translateX(-50%);
  }
}

/* ============================================================
   收银台：支付方式选择（微信 / 支付宝）
   ============================================================ */

.sheet.is-pay {
  padding: 18px 16px calc(14px + var(--safe-b));
}

.pay-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.pay-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.pay-amount {
  font-size: 20px;
  font-weight: 800;
  color: #f2480a;
  white-space: nowrap;
}

/* 两个支付渠道：整行可点，图标圆底 + 名称 + 箭头 */
.pay-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.pay-opt + .pay-opt {
  margin-top: 10px;
}

.pay-opt:active {
  background: #f8fafc;
}

.pay-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-ico svg {
  width: 24px;
  height: 24px;
}

.pay-ico.is-wechat {
  background: #09bb07;
}

.pay-ico.is-alipay {
  background: #1677ff;
}

.pay-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-name b {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.pay-name small {
  font-size: 11.5px;
  color: var(--ink-3);
}

.pay-go {
  flex: 0 0 auto;
  font-size: 18px;
  color: #c0c9d6;
  line-height: 1;
}

/* 暂不支付：次级文字按钮，收在底部 */
.pay-cancel {
  width: 100%;
  margin-top: 14px;
  padding: 10px 0 0;
  background: none;
  border: 0;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
}

/* ============================================================
   收银台：扫码支付（微信 Native / 支付宝当面付）
   ============================================================ */

.sheet.is-pay-qr {
  padding: 20px 18px calc(14px + var(--safe-b));
  text-align: center;
}

.sheet.is-pay-qr h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

/* 二维码：固定白底方块，SVG 自己撑满；手机上不跟着弹层宽度乱缩 */
.pay-qr {
  width: 196px;
  height: 196px;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pay-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pay-qr-amount {
  margin: 14px 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #f2480a;
}

.pay-qr-tip {
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
}

/* 首页品牌名：双击回顶部，鼠标悬停时给个轻微可点暗示 */
.brand-title {
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

/**
 * 「正在打开支付宝」过渡层。
 *
 * 微信里点支付宝 → 换到夸克/系统浏览器落地，这时人已经是登录态，
 * 但还要等一次下单请求才拿到收银台地址。这层盖住页面，
 * 用户从浏览器进来只看到「正在打开支付宝」，不会先瞥见商品详情页再跳。
 * z-index 压在弹层（90）之上、toast（9999）之下，出错提示还看得见。
 */
.pay-gate {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f8fb;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pay-gate.is-on {
  opacity: 1;
}

.pay-gate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--ink-1);
}

.pay-gate-box b {
  font-size: 15px;
  font-weight: 600;
}

.pay-gate-spin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #d7e3ee;
  border-top-color: #1677ff;
  animation: payGateSpin 0.8s linear infinite;
}

@keyframes payGateSpin {
  to {
    transform: rotate(360deg);
  }
}

.pay-gate-retry {
  border: 0;
  background: none;
  padding: 6px 10px;
  color: #1677ff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
