/* ============================================================
   template3.css — iOS 企业签名站移动端样式
   字体：系统默认字体栈，无外部依赖
   主色：蓝紫 #4361f4
   风格：浅背景 + 白卡片 + 大圆角 + 轻阴影
   ============================================================ */

/* 全局变量 */
:root {
  --t3-bg:        #f5f7ff;
  --t3-white:     #ffffff;
  --t3-border:    #e8ecf8;
  --t3-border2:   #d0d7f4;
  --t3-ink:       #111827;
  --t3-ink2:      #4b5563;
  --t3-ink3:      #9ca3af;
  --t3-blue:      #4361f4;
  --t3-blue2:     #6b7eff;
  --t3-blue-lt:   #eef0ff;
  --t3-blue-bd:   #c5cbff;
  --t3-green:     #12b886;
  --t3-green-lt:  #d3f9ef;
  --t3-red:       #f03e3e;
  --t3-red-lt:    #ffe3e3;
  --t3-amber:     #f59f00;
  --t3-amber-lt:  #fff3bf;
  --t3-nav-h:     60px;
  --t3-r:         16px;
  --t3-r2:        12px;
  --t3-r3:        8px;
  --t3-sh:        0 1px 4px rgba(67,97,244,.07), 0 4px 16px rgba(67,97,244,.07);
  --t3-font:      -apple-system, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  --t3-font-mono: 'SF Mono', 'Courier New', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: var(--t3-font);
  background: var(--t3-bg);
  color: var(--t3-ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ── 外层容器 ── */
.t3-app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  min-height: 100vh;
  background: var(--t3-bg);
  position: relative;
}

/* ============================================================
   顶部品牌区
   ============================================================ */
.t3-hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--t3-bg);
  padding: 14px 18px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.t3-hdr-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #4361f4, #7b5ef8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(67,97,244,.38);
}

.t3-hdr-logo svg {
  width: 19px;
  height: 19px;
  color: #fff;
}

.t3-hdr-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--t3-ink);
}

.t3-hdr-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--t3-blue);
  background: var(--t3-blue-lt);
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 2px;
  display: inline-block;
}

/* ============================================================
   主滚动区
   ============================================================ */
.t3-scroll {
  padding: 4px 18px calc(var(--t3-nav-h) + 20px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.t3-scroll::-webkit-scrollbar { width: 0; }

/* ============================================================
   页面切换
   ============================================================ */
.t3-page {
  animation: t3-fadeup .18s ease;
}

@keyframes t3-fadeup {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   区块标题
   ============================================================ */
.t3-sec-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--t3-ink3);
  letter-spacing: .7px;
  text-transform: uppercase;
  margin: 20px 0 10px;
}
.t3-sec-title:first-child { margin-top: 2px; }

.t3-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(67, 97, 244, 0.08);
  position: relative;
}

.t3-page-title {
  color: var(--t3-ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.03em;
  position: relative;
}

.t3-page-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(67, 97, 244, 0.92) 0%, rgba(67, 97, 244, 0.18) 100%);
}

.t3-records-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 12px;
  color: #98a2b3;
}

.t3-records-summary-item {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.t3-records-summary-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(152, 162, 179, 0.5);
}

.t3-record-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.t3-record-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(177, 188, 255, 0.45);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: var(--t3-ink3);
}

.t3-record-search svg {
  width: 16px;
  height: 16px;
  color: #8b97bb;
  flex-shrink: 0;
}

.t3-record-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--t3-ink);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--t3-font);
}

.t3-record-search input::placeholder {
  color: #a0aac8;
  font-weight: 500;
}

.t3-record-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.t3-record-status {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(177, 188, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #7783aa;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--t3-font);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, color .12s ease;
}

.t3-record-status:active {
  transform: scale(.96);
}

.t3-record-status.is-active {
  background: linear-gradient(135deg, #edf2ff, #e5edff);
  border-color: #cfd8ff;
  color: #4f66d3;
  box-shadow: 0 8px 18px rgba(98, 117, 214, 0.08);
}

.t3-top-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  padding: 9px 12px;
  border: 1px solid rgba(67, 97, 244, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(245,248,255,.92) 100%);
  box-shadow: 0 6px 18px rgba(67, 97, 244, 0.04);
}

.t3-top-hint-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(67, 97, 244, 0.08);
  color: #4361f4;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.t3-top-hint-text {
  min-width: 0;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.t3-app-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
  padding: 4px;
  margin: 0 0 14px;
  border: 1px solid rgba(67, 97, 244, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(244,247,255,.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 24px rgba(15, 23, 42, 0.04);
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.t3-app-cats::-webkit-scrollbar {
  display: none;
}

.t3-app-cat {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: #72809b;
  font-size: 12px;
  font-weight: 800;
  line-height: 32px;
  white-space: nowrap;
  scroll-snap-align: start;
  box-shadow: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

.t3-app-cat.is-active {
  border-color: rgba(67, 97, 244, 0.14);
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  color: #4361f4;
  box-shadow: 0 6px 16px rgba(67, 97, 244, 0.12);
}

.t3-app-cat:not(.is-active) {
  opacity: .92;
}

.t3-app-cat:active {
  transform: translateY(1px);
}

/* ============================================================
   应用宫格
   ============================================================ */
.t3-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  min-height: 52px;
}

.app-empty {
  grid-column: 1 / -1;
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--t3-sub);
  background: var(--t3-white);
  border: 1.5px dashed var(--t3-border);
  border-radius: var(--t3-r2);
}

/* 单个应用格子（由 JS 动态创建） */
.t3-app-tile {
  background: var(--t3-white);
  border: 1.5px solid var(--t3-border);
  border-radius: var(--t3-r2);
  padding: 13px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.t3-app-tile:active {
  transform: scale(.92);
}

.t3-app-tile.t3-app-tile-sel,
.t3-app-tile[data-selected="1"],
.t3-app-tile[aria-pressed="true"] {
  border-color: var(--t3-blue);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  box-shadow: 0 0 0 3px rgba(67,97,244,.16), 0 10px 20px rgba(67,97,244,.10);
  transform: translateY(-1px);
}

/* 选中角标 */
.t3-app-sel-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--t3-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(67,97,244,.24);
}

/* 应用图标框 */
.t3-app-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  flex-shrink: 0;
  background-size: 112% 112%;
  background-position: center;
}

/* 应用名称 */
.t3-app-tile-name {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  color: var(--t3-ink);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.t3-app-tile-meta {
  width: 100%;
  min-height: 17px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.t3-app-tile-ver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 14px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(67, 97, 244, 0.10);
  color: var(--t3-blue);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.t3-app-tile-size {
  color: var(--t3-ink3);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.t3-app-tile.t3-app-tile-sel .t3-app-tile-name,
.t3-app-tile[data-selected="1"] .t3-app-tile-name,
.t3-app-tile[aria-pressed="true"] .t3-app-tile-name {
  color: var(--t3-blue);
}

.t3-app-tile[aria-pressed="true"] .t3-app-ico {
  box-shadow: 0 0 0 3px rgba(67,97,244,.18), 0 6px 14px rgba(67,97,244,.12);
}

/* ============================================================
   输入卡片
   ============================================================ */
.t3-input-card {
  background: var(--t3-white);
  border: 1.5px solid var(--t3-border);
  border-radius: var(--t3-r);
  padding: 13px 16px;
  margin-bottom: 10px;
  box-shadow: var(--t3-sh);
  transition: border-color .15s;
}

.t3-input-card:focus-within {
  border-color: var(--t3-blue-bd);
}

.t3-input-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--t3-ink3);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t3-input-label-right {
  justify-content: flex-end;
}

#t3-udid-card.t3-udid-inline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 56px;
}

#t3-kami-card.t3-kami-inline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 56px;
}

.t3-input-status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.t3-input-status-idle {
  color: #98a2b3;
  background: #f8fafc;
  border-color: rgba(152, 162, 179, 0.2);
}

.t3-input-status-filled {
  color: #4361f4;
  background: rgba(67, 97, 244, 0.08);
  border-color: rgba(67, 97, 244, 0.14);
}

.t3-input-status-ok {
  color: #12b886;
  background: rgba(18, 184, 134, 0.1);
  border-color: rgba(18, 184, 134, 0.14);
}

.t3-input-status-verified {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.14);
}

.t3-label-btn {
  font-size: 10px;
  font-weight: 700;
  color: var(--t3-blue);
  background: var(--t3-blue-lt);
  padding: 3px 9px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--t3-font);
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  display: inline-block;
  transition: background .12s;
}

#btn-get-udid {
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.t3-buy-btn {
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.t3-label-btn:active {
  background: var(--t3-blue-bd);
}

.t3-input-real {
  width: 100%;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--t3-font);
  font-weight: 600;
  color: var(--t3-ink);
  background: none;
  -webkit-appearance: none;
}

#t3-udid-card .t3-input-real {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  min-height: 24px;
}

#t3-kami-card .t3-input-real {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  min-height: 24px;
}

.t3-input-real::placeholder {
  color: var(--t3-ink3);
  font-weight: 500;
}

.t3-input-hint {
  font-size: 10px;
  color: var(--t3-ink3);
  margin-top: 6px;
}

.t3-mb0 { margin-bottom: 0; }

/* ============================================================
   高级设置折叠区
   ============================================================ */
.t3-acc-wrap {
  margin-bottom: 10px;
}

.t3-acc-trigger {
  width: 100%;
  padding: 12px 14px;
  background: var(--t3-white);
  border: 1.5px solid var(--t3-border);
  border-radius: var(--t3-r2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--t3-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--t3-ink2);
  box-shadow: var(--t3-sh);
  transition: background .12s;
  text-align: left;
}

.t3-acc-trigger:active {
  background: var(--t3-bg);
}

.t3-acc-trigger.t3-acc-open {
  border-radius: var(--t3-r2) var(--t3-r2) 0 0;
  border-color: var(--t3-blue-bd);
}

.t3-icon-gear {
  width: 15px;
  height: 15px;
  color: var(--t3-blue);
  flex-shrink: 0;
}

.t3-acc-chev {
  width: 14px;
  height: 14px;
  color: var(--t3-ink3);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform .25s;
}

.t3-acc-chev.t3-acc-chev-open {
  transform: rotate(180deg);
}

.t3-acc-body {
  display: none;
  padding: 14px;
  background: var(--t3-white);
  border: 1.5px solid var(--t3-blue-bd);
  border-top: none;
  border-radius: 0 0 var(--t3-r2) var(--t3-r2);
  animation: t3-fadeup .18s ease;
}

.t3-acc-body.t3-acc-body-open {
  display: block;
}

/* 图标上传行 */
.t3-icon-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.t3-icon-preview {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--t3-bg);
  border: 1.5px dashed var(--t3-blue-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--t3-ink3);
  transition: border-color .15s;
}

.t3-icon-preview:active {
  border-color: var(--t3-blue);
}

.t3-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t3-icon-preview svg {
  width: 22px;
  height: 22px;
}

.t3-icon-desc-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--t3-ink);
}

.t3-icon-desc-hint {
  font-size: 10px;
  color: var(--t3-ink3);
  line-height: 1.55;
}

/* ============================================================
   签名按钮
   ============================================================ */
.t3-sign-btn {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 15px;
  background: linear-gradient(135deg, #4361f4 0%, #6b51f8 100%);
  color: #fff;
  border: none;
  border-radius: var(--t3-r);
  font-size: 15px;
  font-weight: 800;
  font-family: var(--t3-font);
  cursor: pointer;
  letter-spacing: -.2px;
  box-shadow: 0 5px 22px rgba(67,97,244,.38);
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.t3-sign-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.t3-sign-btn:active {
  transform: scale(.97);
  box-shadow: 0 3px 10px rgba(67,97,244,.22);
}

.t3-sign-btn-dim {
  opacity: .45;
}

.t3-sign-notice {
  display: block;
  max-width: 94%;
  margin: 18px auto 0;
  padding: 0 8px 4px;
  font-size: 10px !important;
  line-height: 1.85;
  color: rgba(111, 122, 149, .52) !important;
  text-align: center;
}

/* ============================================================
   签名成功卡片
   ============================================================ */
.t3-suc-mask {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, .38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 90;
}

.t3-suc-card {
  background: var(--t3-white);
  border: 1.5px solid var(--t3-green);
  border-radius: var(--t3-r);
  padding: 20px 16px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 5px 24px rgba(18,184,134,.12);
  animation: t3-popin .34s cubic-bezier(.34,1.5,.64,1);
  position: relative;
}

.t3-suc-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--t3-border);
  background: rgba(238, 242, 255, .95);
  color: var(--t3-ink2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.t3-suc-close:active {
  transform: scale(.96);
}

@keyframes t3-popin {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: none; }
}

.t3-suc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.t3-suc-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--t3-green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t3-suc-ico svg {
  width: 24px;
  height: 24px;
  color: var(--t3-green);
}

.t3-suc-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--t3-ink);
}

.t3-suc-sub {
  font-size: 11px;
  color: var(--t3-ink3);
  margin-top: 3px;
}

.t3-inst-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #12b886, #0ec97e);
  color: #fff;
  border: none;
  border-radius: var(--t3-r2);
  font-size: 15px;
  font-weight: 800;
  font-family: var(--t3-font);
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(18,184,134,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all .15s;
  margin-bottom: 8px;
}

.t3-inst-btn svg {
  width: 17px;
  height: 17px;
}

.t3-inst-btn:active {
  transform: scale(.97);
}

.t3-copy-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #e8fbf7, #d6f8ef);
  border: 1.5px solid #b9efe0;
  border-radius: var(--t3-r2);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--t3-font);
  color: #16a57d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.t3-copy-btn svg {
  width: 16px;
  height: 16px;
}

.t3-copy-btn:active {
  transform: scale(.97);
}

.t3-guide-btn {
  background: linear-gradient(135deg, #eef4ff, #e5eeff);
  border-color: #cad8ff;
  color: #4169e1;
}

.t3-guide-btn svg {
  width: 16px;
  height: 16px;
}

.t3-again-btn {
  width: 100%;
  padding: 12px;
  background: var(--t3-bg);
  border: 1.5px solid var(--t3-border);
  border-radius: var(--t3-r2);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--t3-font);
  color: var(--t3-ink2);
  cursor: pointer;
  transition: background .12s;
}

.t3-again-btn:active {
  background: var(--t3-border);
}

.udid-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(15, 23, 42, .52);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.udid-guide-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.udid-guide-overlay.is-closing {
  opacity: 0;
  visibility: visible;
}

.udid-guide-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(226, 232, 240, .92);
  box-shadow: 0 30px 70px rgba(15, 23, 42, .20);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .22s ease, transform .22s ease;
}

.udid-guide-overlay.is-open .udid-guide-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.udid-guide-overlay.is-closing .udid-guide-card {
  opacity: 0;
  transform: translateY(8px) scale(.99);
}

.udid-guide-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  color: #64748b;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.udid-guide-close:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}

.udid-guide-close:active {
  transform: scale(.96);
}

.udid-guide-header {
  padding: 22px 22px 12px;
  text-align: center;
}

.udid-guide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.udid-guide-title {
  margin: 14px 0 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.udid-guide-body {
  padding: 0 22px 22px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.udid-guide-image-wrap {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #eef4fb;
  border: 1px solid #e2e8f0;
}

.udid-guide-image {
  display: block;
  width: 100%;
  height: auto;
  background: #eef4fb;
}

.udid-guide-text {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: #475569;
  white-space: pre-line;
}

.udid-guide-overlay .udid-guide-card,
.udid-guide-overlay .udid-guide-body {
  touch-action: pan-y !important;
}

body.t3-guide-lock {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 520px) {
  .udid-guide-card {
    border-radius: 24px;
  }

  .udid-guide-header {
    padding: 20px 18px 10px;
  }

  .udid-guide-body {
    padding: 0 18px 18px;
  }
}

/* ============================================================
   记录页 — 应用分组卡片
   ============================================================ */
.t3-rec-group {
  background: var(--t3-white);
  border: 1.5px solid var(--t3-border);
  border-radius: var(--t3-r);
  margin-bottom: 10px;
  box-shadow: var(--t3-sh);
  overflow: hidden;
  transition: border-color .15s;
}

/* 分组头部（可点击展开/收起历史） */
.t3-rec-hdr {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}

.t3-rec-hdr:active {
  background: var(--t3-bg);
}

.t3-rec-app-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  background-size: cover;
  background-position: center;
}

.t3-rec-app-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.t3-rec-app-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--t3-ink);
}

.t3-rec-app-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.t3-rec-ver {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--t3-font-mono);
  background: var(--t3-blue-lt);
  color: var(--t3-blue);
  padding: 1px 7px;
  border-radius: 5px;
}

.t3-rec-cnt {
  font-size: 10px;
  color: var(--t3-ink3);
  font-weight: 600;
}

.t3-rec-size {
  font-size: 10px;
  color: var(--t3-ink3);
  font-weight: 600;
}

.t3-rec-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.t3-records-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.t3-records-refresh-btn,
.t3-records-guide-btn {
  width: auto;
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 14px;
}

.t3-records-refresh-btn {
  background: linear-gradient(135deg, #edf4ff, #e3ecff);
  border-color: #cfdbff;
  color: #4d67cb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(96, 121, 214, 0.08);
}

.t3-records-guide-btn {
  background: linear-gradient(135deg, #fffaf0, #fff1cf);
  border-color: #ffe2a1;
  color: #c78600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(255, 183, 0, 0.08);
}

.t3-records-refresh-btn svg,
.t3-records-guide-btn svg {
  width: 15px;
  height: 15px;
}

/* 展开箭头 */
.t3-rec-chev {
  width: 15px;
  height: 15px;
  color: var(--t3-ink3);
  transition: transform .25s;
  flex-shrink: 0;
}
.t3-rec-chev.t3-chev-open { transform: rotate(180deg); }

/* 状态标签 */
.t3-status {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.t3-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.t3-status-ok   { background: var(--t3-green-lt); color: var(--t3-green); }
.t3-status-low  { background: var(--t3-amber-lt); color: var(--t3-amber); }
.t3-status-out  { background: var(--t3-red-lt);   color: var(--t3-red);   }

/* 分组操作按钮行 */
.t3-rec-btns {
  display: flex;
  gap: 6px;
  padding: 10px 16px 13px;
  border-top: 1px solid var(--t3-border);
}

.t3-rbtn {
  flex: 1;
  padding: 9px 4px;
  border: none;
  border-radius: var(--t3-r3);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--t3-font);
  cursor: pointer;
  transition: transform .12s, opacity .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.t3-rbtn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.t3-rbtn:active { transform: scale(.92); }

.t3-rbtn-install { background: var(--t3-blue-lt);  color: var(--t3-blue);  }
.t3-rbtn-copy    { background: var(--t3-green-lt); color: var(--t3-green); }
.t3-rbtn-del     { background: var(--t3-red-lt);   color: var(--t3-red);   }

/* ============================================================
   历史记录时间线
   ============================================================ */
.t3-hist-section {
  border-top: 1px solid var(--t3-border);
  background: var(--t3-bg);
  animation: t3-fadeup .18s ease;
}

.t3-hist-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--t3-ink3);
  letter-spacing: .7px;
  text-transform: uppercase;
  padding: 10px 16px 8px;
}

.t3-hist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  background: var(--t3-white);
  border-bottom: 1px solid var(--t3-border);
}
.t3-hist-item:last-child { border-bottom: none; }

/* 时间线 */
.t3-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 14px;
  padding-top: 3px;
}
.t3-t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t3-t-dot-ok  { background: var(--t3-green); }
.t3-t-dot-low { background: var(--t3-amber); }
.t3-t-dot-out { background: var(--t3-border2); }
.t3-t-line {
  width: 1.5px;
  flex: 1;
  background: var(--t3-border);
  margin-top: 4px;
  min-height: 12px;
}

.t3-hist-body { flex: 1; min-width: 0; }
.t3-hist-ver  { font-size: 11px; font-weight: 800; color: var(--t3-ink); font-family: var(--t3-font-mono); }
.t3-hist-size { font-size: 10px; color: var(--t3-ink3); margin-top: 2px; }
.t3-hist-date { font-size: 10px; color: var(--t3-ink3); margin-top: 2px; }

.t3-hist-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.t3-hist-remain { font-size: 10px; font-weight: 800; }

.t3-hist-actions { display: flex; gap: 4px; }

.t3-ha-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: var(--t3-font);
  transition: opacity .12s;
}
.t3-ha-btn:active { opacity: .7; }
.t3-ha-install { background: var(--t3-blue-lt);  color: var(--t3-blue);  }
.t3-ha-copy    { background: var(--t3-green-lt); color: var(--t3-green); }
.t3-ha-del     { background: var(--t3-red-lt);   color: var(--t3-red);   }
.t3-ha-expired { font-size: 10px; color: var(--t3-ink3); font-weight: 600; padding-top: 3px; display: inline-block; margin-right: 8px; }

/* ============================================================
   进度浮层
   ============================================================ */
.t3-prog-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 12, 28, .54);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: t3-fadein .2s ease;
}

@keyframes t3-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.t3-prog-card {
  width: 100%;
  max-width: 300px;
  background: var(--t3-white);
  border-radius: 24px;
  padding: 32px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 28px 72px rgba(10,12,28,.28);
  animation: t3-cardin .3s cubic-bezier(.34,1.5,.64,1);
  position: relative;
}

@keyframes t3-cardin {
  from { opacity: 0; transform: scale(.84) translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.t3-prog-ring-wrap {
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.t3-prog-min {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1.5px solid rgba(67, 97, 244, 0.12);
  background: linear-gradient(135deg, #f5f8ff, #edf2ff);
  color: var(--t3-ink3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(67,97,244,.08);
}

.t3-prog-min svg {
  width: 16px;
  height: 16px;
}

.t3-prog-min:active {
  transform: scale(.96);
}

.t3-prog-ring-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid var(--t3-blue-lt);
}

.t3-prog-ring-spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid transparent;
  border-top-color: var(--t3-blue);
  border-right-color: var(--t3-blue);
  animation: t3-spin .9s linear infinite;
}

@keyframes t3-spin { to { transform: rotate(360deg); } }

.t3-prog-emoji {
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t3-prog-emoji img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(67,97,244,.16);
}

.t3-prog-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
  text-align: center;
  color: var(--t3-ink);
}

.t3-prog-step {
  font-size: 12px;
  color: var(--t3-ink3);
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.t3-prog-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--t3-blue-lt);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 9px;
}

.t3-prog-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #4361f4, #6b7eff);
  transition: width .65s cubic-bezier(.4,0,.2,1);
}

.t3-prog-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--t3-blue);
  font-family: var(--t3-font-mono);
}

.t3-prog-fab {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 61;
  min-width: 62px;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(67, 97, 244, 0.14);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(10,12,28,.18);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--t3-blue);
  cursor: pointer;
}

.t3-prog-fab:active {
  transform: translateY(-50%) scale(.97);
}

.t3-prog-fab-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eef3ff, #e6ecff);
  font-size: 16px;
  line-height: 1;
}

.t3-prog-fab-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t3-prog-fab-pct {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--t3-font-mono);
  line-height: 1;
}

/* ============================================================
   确认弹窗（底部 Sheet）
   ============================================================ */
.t3-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 12, 28, .38);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: t3-fadein .18s ease;
}

.t3-sheet {
  width: 100%;
  max-width: 430px;
  background: var(--t3-white);
  border-radius: 22px 22px 0 0;
  padding: 20px 20px 36px;
  animation: t3-sheetup .22s cubic-bezier(.4,0,.2,1);
}

@keyframes t3-sheetup {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.t3-sheet-pip {
  width: 36px;
  height: 4px;
  background: var(--t3-border);
  border-radius: 2px;
  margin: 0 auto 18px;
}

.t3-sheet-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--t3-red-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.t3-sheet-icon svg {
  width: 24px;
  height: 24px;
  color: var(--t3-red);
}

.t3-sheet-title {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 7px;
  color: var(--t3-ink);
}

.t3-sheet-body {
  font-size: 13px;
  color: var(--t3-ink2);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 22px;
}

.t3-sheet-btns {
  display: flex;
  gap: 9px;
}

.t3-sheet-btns button {
  flex: 1;
  padding: 14px;
  border-radius: var(--t3-r2);
  border: none;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--t3-font);
  cursor: pointer;
  transition: opacity .15s;
}

.t3-sheet-btns button:active { opacity: .8; }

.t3-btn-cancel {
  background: var(--t3-bg);
  color: var(--t3-ink2);
  border: 1.5px solid var(--t3-border) !important;
}

.t3-btn-confirm {
  background: var(--t3-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(240,62,62,.26);
}

/* ============================================================
   空状态
   ============================================================ */
.t3-empty {
  text-align: center;
  padding: 52px 20px;
}

.t3-empty-emoji {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

.t3-empty-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--t3-ink);
}

.t3-empty-sub {
  font-size: 12px;
  color: var(--t3-ink3);
}

/* ============================================================
   底部导航
   ============================================================ */
.t3-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--t3-border);
  height: var(--t3-nav-h);
  display: flex;
  align-items: center;
  padding: 0 12px 6px;
  z-index: 20;
}

.t3-ntab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--t3-font);
  padding: 6px 4px;
  border-radius: 10px;
  transition: background .15s;
  position: relative;
}

.t3-ntab:active { transform: scale(.88); }

.t3-ntab svg {
  width: 20px;
  height: 20px;
  color: var(--t3-ink3);
  transition: color .15s;
}

.t3-ntab span {
  font-size: 10px;
  font-weight: 700;
  color: var(--t3-ink3);
  transition: color .15s;
}

.t3-ntab.t3-ntab-on {
  background: var(--t3-blue-lt);
}

.t3-ntab.t3-ntab-on svg,
.t3-ntab.t3-ntab-on > span {
  color: var(--t3-blue);
}

/* 记录红点徽章 */
.t3-nav-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  background: var(--t3-red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  font-family: var(--t3-font-mono);
  pointer-events: none;
}

/* ============================================================
   Toast
   ============================================================ */
.t3-toast {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(17, 24, 39, .92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  will-change: transform, opacity;
}

.t3-toast.t3-toast-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: t3-toast-pop .22s ease-out;
}

@keyframes t3-toast-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(-1px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 640px) {
  .t3-toast {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 3px 12px rgba(0,0,0,.16);
  }

  .t3-toast.t3-toast-on {
    animation-duration: .18s;
  }
}
