/* ============================================================
   晓晨技术 · 二级页面样式（留言板 / 捐赠）
   与 shengteng.css 共用变量与导航，这里只补充页面级组件
   ============================================================ */

body[data-page="messages"], body[data-page="appreciate"], body[data-page="activate"] { background: var(--paper); }

/* 让 hidden 属性优先于 .btn 的 display，避免按钮该藏没藏 */
[hidden] { display: none !important; }

/* ---------- 页面头图 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad-ink);
  padding: clamp(46px, 7vw, 76px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 64px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(36% 48% at 12% 8%, rgba(47, 107, 255, .34), transparent 70%),
    radial-gradient(30% 44% at 92% 96%, rgba(20, 200, 216, .22), transparent 70%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 75%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-hero .kicker {
  font-size: 12.5px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
  font-weight: 700;
}
.page-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .5px;
}
.page-hero h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, .76);
  font-size: 15.5px;
  white-space: pre-line;
}
.page-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 主体 ---------- */
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 40px) 80px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.panel + .panel { margin-top: 22px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-head h2::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.panel-head .sub { font-size: 12.5px; color: var(--text-soft); }

/* ---------- 表单 ---------- */
/* 激活页：中间卡片水平居中 */
.activate-panel {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.field .tip { font-size: 12px; color: var(--text-soft); font-weight: 400; margin-left: 6px; }

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: #f9fbfe;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(47, 107, 255, .55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}
.textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6677' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.counter-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
}
.counter-row .over { color: #d64545; font-weight: 600; }

/* 公开 / 私信 切换 */
.seg { display: flex; gap: 10px; }
.seg label {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfe;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label .t { font-size: 14px; font-weight: 600; color: var(--text); }
.seg label .d { font-size: 11.5px; color: var(--text-soft); line-height: 1.5; }
.seg label:has(input:checked) {
  border-color: rgba(47, 107, 255, .55);
  background: linear-gradient(180deg, #fff, #f2f7ff);
  box-shadow: 0 8px 20px rgba(47, 107, 255, .12);
}
.seg label:has(input:checked) .t { color: var(--brand); }
.seg label:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 800;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, opacity .2s, background .2s;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(47, 107, 255, .3);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(47, 107, 255, .38); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: rgba(47, 107, 255, .4); color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

.notice-box {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(47, 107, 255, .06);
  border: 1px solid rgba(47, 107, 255, .16);
  color: #35507f;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-line;
}
.notice-box .ic { flex: none; font-weight: 800; color: var(--brand); }

/* ---------- 留言布局 ---------- */
.msg-layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.msg-layout .compose { position: sticky; top: 84px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: rgba(47, 107, 255, .4); color: var(--brand); }
.chip.active {
  background: rgba(47, 107, 255, .1);
  border-color: rgba(47, 107, 255, .45);
  color: var(--brand);
  font-weight: 600;
}

.msg-list { display: flex; flex-direction: column; }
.msg-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
}
.msg-item:first-child { border-top: 0; padding-top: 4px; }
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--brand);
  background: linear-gradient(135deg, #e9f1ff, #dbe9ff);
  border: 1px solid rgba(47, 107, 255, .12);
}
.msg-body { min-width: 0; flex: 1; }
.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-soft);
}
.topic-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(20, 200, 216, .12);
  color: #0d8a97;
  font-size: 11.5px;
  font-weight: 700;
}
.msg-text {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.75;
  word-break: break-word;
  white-space: pre-wrap;
}

.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--text-soft);
  font-size: 14px;
}
.empty .big { font-size: 30px; opacity: .35; display: block; margin-bottom: 10px; }
.empty .tea-big { width: 40px; height: 40px; margin: 0 auto 10px; color: #9a7a5c; opacity: .75; }
.empty .tea-big svg { width: 100%; height: 100%; display: block; }

.loading-row { text-align: center; padding: 30px; color: var(--text-soft); font-size: 13.5px; }

/* ---------- 赞赏页 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.product-card {
  position: relative;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
  transition: all .22s;
  overflow: hidden;
}
.product-card:hover { border-color: rgba(47, 107, 255, .4); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.product-card .pname {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .pstat { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.product-card .pstat b { color: var(--brand); font-size: 13.5px; }
.product-card.active {
  border-color: rgba(47, 107, 255, .6);
  background: linear-gradient(180deg, #fff, #f1f7ff);
  box-shadow: 0 12px 26px rgba(47, 107, 255, .16);
}
.product-card.active::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-brand);
}
.product-card.all {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-style: dashed;
  background: linear-gradient(135deg, #f7faff, #eef6ff);
  margin-top: 2px;
}
.product-card.all .pname { color: var(--brand); font-size: 15px; }
.product-card.all .pstat { margin-top: 0; }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px dashed var(--line);
}
.rank-item:first-child { border-top: 0; }
.rank-no {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-soft);
  background: #f2f5fa;
}
.rank-no.n1 { background: linear-gradient(135deg, #ffe9a8, #f6c94a); color: #7a5200; box-shadow: 0 6px 14px rgba(217, 178, 90, .35); }
.rank-no.n2 { background: linear-gradient(135deg, #eef2f7, #cfd8e6); color: #4e5b6d; }
.rank-no.n3 { background: linear-gradient(135deg, #f8e3d3, #e3b48c); color: #6d3d14; }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 14.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank-name .prod {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: #f3f6fb;
  border-radius: 999px;
  padding: 1px 9px;
}
.rank-msg { font-size: 13px; color: var(--text-soft); margin-top: 3px; word-break: break-word; }
.rank-amount {
  flex: none;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.rank-amount small { font-size: 11.5px; font-weight: 600; color: var(--text-soft); margin-left: 2px; }

/* ---------- 赞赏排行榜（按人聚合，前三金银铜） ---------- */
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.board-head .btn { flex: none; }
.board-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.board-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform .18s, box-shadow .18s;
}
.board-item:last-child { margin-bottom: 0; }
.board-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.board-no {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-soft);
  background: #f2f5fa;
  font-variant-numeric: tabular-nums;
}
.board-no.n1 { background: linear-gradient(135deg, #ffe9a8, #f0bc2e); color: #7a5200; box-shadow: 0 6px 14px rgba(217, 178, 90, .38); }
.board-no.n2 { background: linear-gradient(135deg, #f4f7fb, #c3cddd); color: #4b5768; box-shadow: 0 6px 14px rgba(140, 155, 175, .3); }
.board-no.n3 { background: linear-gradient(135deg, #f8e0cb, #d99b63); color: #6d3d14; box-shadow: 0 6px 14px rgba(190, 132, 80, .32); }

.board-item.top1 { background: linear-gradient(135deg, #fffdf5, #ffefc2); border-color: #f2d478; }
.board-item.top2 { background: linear-gradient(135deg, #fbfcff, #e8eef7); border-color: #cfdaea; }
.board-item.top3 { background: linear-gradient(135deg, #fffaf5, #f8e4cf); border-color: #e6c19d; }

.board-main { flex: 1; min-width: 0; }
.board-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-msg { font-size: 12.5px; color: var(--text-soft); margin-top: 3px; word-break: break-word; }
.board-times {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #8a6a4f;
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.board-times .tea { width: 23px; height: 23px; flex: none; }
.board-times .x { font-size: 12px; font-weight: 600; opacity: .6; }
.board-amount {
  flex: none;
  min-width: 76px;
  text-align: right;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

/* 赞赏双码 */
.qr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qr-card {
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.qr-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.qdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.qdot.wx { background: #2fbf4f; }
.qdot.ali { background: #1677ff; }
.qr-card img {
  display: block;
  width: 100%;
  max-width: 196px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 6px auto 0;
  border-radius: 10px;
  background: #fff;
}
.qr-card.qr-missing img { display: none; }
.qr-card.qr-missing::after {
  content: "赞赏码未上传，请联系站长";
  display: block;
  padding: 40px 0;
  font-size: 12px;
  color: #b64b4b;
}
.qr-notice {
  margin: 12px 0 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* 赞赏码缩略图（可点开大图） */
.qr-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.qr-thumb:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 10px; }
.qr-zoom-tip {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-soft);
}

/* 昵称备注提示 */
.donate-hint {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(47, 107, 255, .18);
  border-left: 3px solid var(--brand);
  background: rgba(47, 107, 255, .07);
  font-size: 13px;
  font-weight: 600;
  color: #2b4a86;
  line-height: 1.7;
}

/* 赞赏码大图 */
.qr-zoom-mask {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 13, 24, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.qr-zoom-mask.show { display: flex; }
.qr-zoom-mask img {
  max-width: min(520px, 88vw);
  max-height: 82vh;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
}
.qr-zoom-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 13, 24, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-mask.show { display: flex; }
.modal {
  width: min(580px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  animation: pop .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.modal-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-soft); }
.modal-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--text-soft);
}
.modal-close:hover { color: var(--ink); border-color: #ccd6e4; }
.modal-body { padding: 18px 24px 24px; }
.modal-foot { display: flex; gap: 10px; margin-top: 4px; }
.modal-foot .btn { flex: 1; }

.amount-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.amount-chip {
  border: 1px solid var(--line);
  background: #f9fbfe;
  border-radius: 10px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.amount-chip:hover { border-color: rgba(47, 107, 255, .4); }
.amount-chip.active {
  background: linear-gradient(135deg, #2f6bff, #14c8d8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 107, 255, .3);
}

.qr-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px dashed rgba(47, 107, 255, .35);
  border-radius: 14px;
  background: #f7faff;
}
.qr-box img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  border: 1px solid var(--line);
  flex: none;
}
.qr-box .txt { font-size: 12.5px; color: #35507f; line-height: 1.75; white-space: pre-line; }
.qr-box .txt b { color: var(--brand); }

/* ---------- 提示条 ---------- */
.xc-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 200;
  transform: translate(-50%, 16px);
  max-width: min(90vw, 460px);
  padding: 12px 20px;
  border-radius: 12px;
  background: #0b1220;
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 16px 40px rgba(7, 13, 24, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.xc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.xc-toast.err { background: #b62f2f; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout .compose { position: static; }
}
@media (max-width: 640px) {
  .page-main { padding-bottom: 56px; }
  .panel { padding: 18px; border-radius: 16px; }
  .seg { flex-direction: column; }
  .qr-box { flex-direction: column; text-align: center; }
  .qr-box img { width: 168px; height: 168px; }
  .rank-amount { font-size: 15px; }
  .modal-head, .modal-body { padding-left: 18px; padding-right: 18px; }
  .board-item { gap: 10px; padding: 12px; }
  .board-no { width: 30px; height: 30px; font-size: 13.5px; border-radius: 9px; }
  .board-name { font-size: 14px; }
  .board-times { font-size: 13px; }
  .board-times .tea { width: 20px; height: 20px; }
  .board-amount { min-width: 62px; font-size: 15px; }
  .qr-pair { gap: 8px; }
}

/* ---------- 产品激活 ---------- */
.activate-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.activate-code-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
}
.activate-result {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.activate-result[hidden] { display: none; }
.activate-result .ic {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.activate-result .t { font-weight: 700; margin-bottom: 4px; }
.activate-result .s { font-size: 13px; color: var(--text-soft); line-height: 1.65; }
.activate-result.ok { border-color: rgba(47, 191, 122, .45); background: rgba(47, 191, 122, .06); }
.activate-result.ok .ic { background: #2fbf7a; }
.activate-result.bad { border-color: rgba(239, 95, 95, .45); background: rgba(239, 95, 95, .06); }
.activate-result.bad .ic { background: #e05a5a; }
.activate-notice {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.7;
}
.activate-result-main { flex: 1; min-width: 0; }
.step-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(47, 107, 255, .12);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  vertical-align: 1px;
}

/* 授权码：只读框 + 复制按钮 */
.license-field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.license-field textarea {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  line-height: 1.7;
  background: #f7f9fc;
  color: #16233d;
  cursor: text;
}
.license-field textarea:focus {
  background: #fff;
  border-color: rgba(47, 107, 255, .55);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}
.license-copy {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 0 16px;
}
.license-copy:disabled { opacity: .45; cursor: not-allowed; }
.license-copy.copied {
  border-color: rgba(47, 191, 122, .6);
  color: #1d7a4e;
}

.activate-msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.activate-msg.ok {
  background: rgba(47, 191, 122, .08);
  border: 1px solid rgba(47, 191, 122, .28);
  color: #1d7a4e;
}
.activate-msg.bad {
  background: rgba(239, 95, 95, .07);
  border: 1px solid rgba(239, 95, 95, .30);
  color: #b23b3b;
}
textarea.input { resize: vertical; line-height: 1.6; }

/* 授权码 */
.license-wrap { margin-top: 12px; }
.license-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid rgba(47, 107, 255, .4);
  border-radius: 12px;
  background: linear-gradient(135deg, #0b1220, #17243d);
  color: #eaf1ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: all .2s;
}
.license-box:hover { border-color: rgba(47, 107, 255, .85); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(11, 18, 32, .25); }
.license-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.1px;
  word-break: break-all;
  line-height: 1.5;
}
.copy-tag {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 107, 255, .18);
  color: #9dc0ff;
  font-size: 11.5px;
  font-weight: 700;
}
.license-box.copied .copy-tag { background: rgba(47, 191, 122, .2); color: #8ce8b8; }
.license-hint { margin-top: 8px; font-size: 12.5px; color: var(--text-soft); line-height: 1.7; }

@media (max-width: 640px) {
  .license-code { font-size: 13.5px; letter-spacing: .6px; }
  .license-box { flex-direction: column; align-items: flex-start; gap: 8px; }
}
