:root {
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
  --card: rgba(255,255,255,.93);
  --border: #e4e8f0;
  --muted: #718096;
  --accent: #111827;
  --accent-2: #2563eb;
  --success: #16815a;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 12% 0%, #eef3ff 0, transparent 34%), #f5f7fb; }
button, select { font: inherit; }
a { color: inherit; }

.page-shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 44px; }
.hero { margin-bottom: 26px; }
.eyebrow { letter-spacing: .16em; font-size: 12px; font-weight: 700; color: #5d6b86; margin-bottom: 12px; }
h1 { font-size: clamp(34px, 6vw, 58px); letter-spacing: -.045em; line-height: 1.05; margin: 0; }
.hero-copy { font-size: 17px; line-height: 1.7; color: #5e6a7f; margin: 18px 0 14px; max-width: 720px; }
.source-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #5e6a7f; }
.source-row a { text-decoration: none; border-bottom: 1px solid #bcc6d8; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: #edf2fa; }
.status-pill.ready { color: var(--success); background: #eaf8f1; }
.status-pill.error { color: #a13939; background: #fff0f0; }
.status-pill.loading { color: #66748b; }

.card { background: var(--card); backdrop-filter: blur(15px); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 16px 50px rgba(30, 43, 72, .07); }
.selector-card { padding: 24px; }
.step-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: #506078; }
.field-label b { margin-right: 8px; color: #9aa5b7; letter-spacing: .08em; }
select { width: 100%; appearance: none; border: 1px solid #dce2eb; border-radius: 14px; padding: 14px 42px 14px 14px; color: #182238; background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; outline: none; transition: border .15s, box-shadow .15s, background .15s; }
select:focus { border-color: #9ab3df; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
select:disabled { cursor: not-allowed; background-color: #f0f2f5; color: #a2a9b5; }
.field-hint { color: var(--muted); min-height: 18px; line-height: 1.5; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9em; background: #f0f3f7; border-radius: 6px; padding: 2px 5px; }
.hidden { display: none !important; }

.controls-divider { height: 1px; background: #ebedf2; margin: 24px 0 18px; }
.bottom-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch-row strong { display: block; font-size: 14px; }
.switch-row small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #cbd3df; transition: .18s; }
.slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.14); transition: .18s; }
.switch input:checked + .slider { background: #111827; }
.switch input:checked + .slider::before { transform: translateX(18px); }

.download-btn { border: 0; background: var(--accent); color: white; border-radius: 13px; min-width: 172px; padding: 14px 16px; display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; cursor: pointer; transition: transform .15s, opacity .15s, box-shadow .15s; box-shadow: 0 10px 22px rgba(17,24,39,.16); }
.download-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(17,24,39,.21); }
.download-btn:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.arrow { font-size: 19px; }

.asset-area { margin-top: 20px; padding: 16px; border-radius: 16px; background: #f7f9fc; border: 1px solid #e7ebf2; }
.asset-title { font-size: 13px; font-weight: 700; color: #53617a; margin-bottom: 10px; }
.asset-list { display: grid; gap: 8px; }
.asset-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: white; border: 1px solid #e8ebf0; }
.asset-main { min-width: 0; }
.asset-name { font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta { color: #8b95a6; font-size: 12px; margin-top: 3px; }
.release-meta { margin-top: 7px; font-size: 12px; color: #69758a; }
.release-meta a { color: #445a83; text-decoration: none; border-bottom: 1px solid #c9d1df; }
.release-notes { margin-top: 10px; padding: 12px 13px; border-radius: 11px; background: #f7f9fc; border: 1px solid #e7ebf2; }
.release-notes-heading { font-size: 12px; font-weight: 700; color: #4d5c74; margin-bottom: 7px; }
.release-notes-content { color: #5d687b; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.release-notes-empty { color: #9099a8; font-size: 12px; line-height: 1.6; }
.asset-action { flex: none; border: 1px solid #d9dfe8; background: white; padding: 7px 10px; border-radius: 9px; cursor: pointer; font-weight: 600; }
.asset-action:hover { background: #f2f5f9; }
.asset-note { color: #778298; font-size: 12px; margin-top: 10px; line-height: 1.5; }
.message-area { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fff6e7; color: #805b22; font-size: 13px; line-height: 1.5; }

.info-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.info-card { padding: 20px; }
.info-card h2 { margin: 0 0 10px; font-size: 16px; letter-spacing: -.01em; }
.info-card p { margin: 7px 0; color: #59667a; font-size: 13px; line-height: 1.7; }
.info-card .muted { color: #8993a5; }
footer { padding: 24px 2px 0; display: flex; gap: 10px 24px; justify-content: space-between; flex-wrap: wrap; color: #8993a5; font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 20px, 680px); padding-top: 42px; }
  .step-grid, .info-grid { grid-template-columns: 1fr; }
  .selector-card { padding: 18px; border-radius: 18px; }
  .bottom-controls { align-items: stretch; flex-direction: column; }
  .download-btn { width: 100%; }
  h1 { font-size: 40px; }
  .asset-item { align-items: flex-start; flex-direction: column; }
  .asset-action { width: 100%; }
}

.version-notes { margin: 18px 0 0; }
.release-notes-subtitle { font-size: 11px; font-weight: 700; color: #7a8699; margin: 8px 0 6px; }
.release-notes-divider { height: 1px; background: #e4e9f0; margin: 12px 0; }

/* 顶部导航 */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(215, 221, 232, .85); background: rgba(248, 250, 253, .88); backdrop-filter: blur(18px); }
.nav-shell { width: min(1040px, calc(100% - 32px)); min-height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; color: #111827; font-weight: 800; letter-spacing: .04em; font-size: 13px; white-space: nowrap; }
.brand span { color: #8290a5; font-weight: 600; letter-spacing: 0; }
.nav-tabs { display: flex; gap: 5px; align-items: center; }
.nav-tab { text-decoration: none; color: #6b778c; padding: 9px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.nav-tab:hover { background: #edf1f7; color: #1f2937; }
.nav-tab.active { background: #111827; color: white; }

.route-page { min-height: 55vh; }
.hero-home { padding-top: 44px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; padding: 24px; text-decoration: none; color: inherit; align-items: start; transition: transform .18s, box-shadow .18s, border-color .18s; }
.home-card:hover { transform: translateY(-2px); border-color: #cfd7e5; box-shadow: 0 20px 50px rgba(30, 43, 72, .10); }
.home-card-icon { width: 44px; height: 44px; border-radius: 14px; background: #111827; color: white; display: grid; place-items: center; font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.home-card h2 { margin: 2px 0 8px; font-size: 18px; letter-spacing: -.025em; }
.home-card p { margin: 0; color: #68758a; font-size: 13px; line-height: 1.7; }
.home-card-arrow { font-size: 20px; color: #95a0b1; padding-top: 4px; }
.home-notice { margin-top: 18px; padding: 20px 22px; }
.notice-title { font-size: 14px; font-weight: 800; margin-bottom: 7px; }
.home-notice p { margin: 0; color: #617087; font-size: 13px; line-height: 1.75; max-width: 760px; }
.home-notice a { display: inline-block; margin-top: 10px; font-size: 13px; color: #334155; }

/* 更新日志 */
.release-notes { margin-top: 22px; padding: 17px 18px; border-radius: 15px; background: #f7f9fc; border: 1px solid #e6eaf0; }
.release-notes-heading { font-size: 13px; font-weight: 800; color: #4d5b72; margin-bottom: 10px; }
.release-notes-empty { color: #8792a4; font-size: 13px; line-height: 1.6; }
.release-notes-content { color: #58667a; white-space: pre-wrap; font-size: 13px; line-height: 1.8; }
.release-notes-subtitle { color: #37445a; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.release-notes-divider { height: 1px; background: #e4e8ef; margin: 15px 0; }
.release-notes-loading { color: #7a879b; font-size: 13px; }
.release-notes-source { margin-top: 9px; font-size: 11px; color: #9aa4b4; }
.release-meta { margin-top: 5px; color: #97a1b1; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-meta a { color: #68758a; text-decoration: none; border-bottom: 1px solid #d2d7df; }

/* 解锁码工具 */
.unlock-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.unlock-card { padding: 23px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #4c5a70; font-weight: 700; margin-bottom: 8px; }
.form-group input { width: 100%; }
.tool-switch { padding: 12px 0; }
.button-row { display: flex; gap: 10px; margin-top: 18px; }
.button-row .download-btn { flex: 1; }
.outline-btn { border: 1px solid #d9dfe8; background: white; color: #2f3a4c; border-radius: 13px; padding: 12px 15px; font-weight: 700; cursor: pointer; }
.outline-btn:hover { background: #f4f6f9; }
.outline-btn.full { width: 100%; margin-top: 12px; }
.unlock-result { margin-top: 18px; padding: 17px; border-radius: 16px; background: #f7f9fc; border: 1px solid #e3e8ef; text-align: center; }
.result-kicker { font-size: 12px; color: #7f8b9e; font-weight: 700; }
.result-code { margin: 9px 0 3px; font: 800 32px/1.15 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; color: #111827; }
.result-meta { color: #8c97a8; font-size: 11px; }
.tool-title-row h2 { margin: 0 0 6px; font-size: 17px; }
.tool-title-row p { margin: 0 0 15px; color: #7a8699; font-size: 12px; line-height: 1.6; }
.ocr-drop { min-height: 185px; border: 1.5px dashed #cbd4e2; border-radius: 17px; background: #fafbfd; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 20px; cursor: pointer; transition: .18s; }
.ocr-drop:hover, .ocr-drop.dragover { border-color: #9aa9be; background: #f4f7fb; }
.ocr-drop input { display: none; }
.ocr-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #111827; color: white; font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ocr-drop strong { font-size: 13px; color: #364257; }
.ocr-drop span { max-width: 350px; color: #8a95a6; font-size: 11px; line-height: 1.6; }
.ocr-preview-wrap {
  margin-top: 12px;
  width: 240px;
  height: 155px;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 13px;
  overflow: hidden;
  background: #f0f2f6;
  border: 1px solid #e4e8ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
#ocr-preview {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
  flex: 0 0 auto;
}
.ocr-actions { display: flex; align-items: center; gap: 11px; margin-top: 12px; min-width: 0; }
.ocr-actions .download-btn { min-width: 132px; }
.ocr-progress { font-size: 11px; color: #8591a3; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.ocr-text-wrap { margin-top: 12px; }
.ocr-section-title { font-size: 11px; color: #7d899b; font-weight: 800; margin-bottom: 6px; }
.ocr-text-wrap pre { margin: 0; max-height: 160px; overflow: auto; background: #f7f9fc; border: 1px solid #e7ebf1; border-radius: 12px; padding: 11px; white-space: pre-wrap; word-break: break-word; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; color: #647085; }
.ocr-tip { margin: 12px 0 0; color: #929cab; font-size: 11px; line-height: 1.65; }
.unlock-source-note { margin-top: 18px; padding: 19px 22px; }
.unlock-source-note strong { font-size: 13px; }
.unlock-source-note p { margin: 8px 0; color: #69768a; font-size: 12px; line-height: 1.75; }
.unlock-source-note a { font-size: 12px; color: #46546a; }

@media (max-width: 760px) {
  .nav-shell { width: min(100% - 20px, 680px); min-height: 58px; }
  .brand span { display: none; }
  .nav-tabs { gap: 2px; }
  .nav-tab { padding: 8px 8px; font-size: 12px; }
  .home-grid, .unlock-grid { grid-template-columns: 1fr; }
  .home-card { grid-template-columns: auto 1fr; }
  .home-card-arrow { display: none; }
  .hero-home { padding-top: 36px; }
  .unlock-card { padding: 18px; }
  .ocr-actions { align-items: stretch; flex-direction: column; }
  .ocr-actions .download-btn { width: 100%; }
  .ocr-preview-wrap { width: 190px; height: 125px; max-width: 100%; padding: 5px; }
  .ocr-preview { max-width: 100%; max-height: 100%; }
}

/* 现代化输入控件 */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .01em;
  color: #6b7890;
  font-weight: 700;
  margin: 0 0 9px 2px;
}
.form-group label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aeb8c8;
  flex: none;
}
.form-group input[type="text"] {
  width: 100%;
  height: 56px;
  border: 1px solid #dfe5ee;
  border-radius: 16px;
  outline: none;
  padding: 0 17px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
  color: #172033;
  font: 600 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(24,34,56,.03);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.form-group input[type="text"]::placeholder {
  color: #a6afbd;
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}
.form-group input[type="text"]:hover {
  border-color: #cfd7e4;
  background: #fbfcfe;
}
.form-group input[type="text"]:focus {
  border-color: #9caecb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(86, 113, 155, .10), 0 8px 24px rgba(32, 48, 79, .06);
}
.form-group input[type="text"]:focus-visible {
  transform: translateY(-1px);
}
.form-group + .form-group { margin-top: 2px; }

/* 同步优化固件页选择框 */
select {
  height: 54px;
  border-color: #dfe5ee;
  border-radius: 16px;
  padding: 0 46px 0 16px;
  background-color: #fbfcfe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 1px 2px rgba(24,34,56,.03);
}
select:hover:not(:disabled) { border-color: #cfd7e4; background-color: #fff; }
select:focus { border-color: #9caecb; box-shadow: 0 0 0 4px rgba(86, 113, 155, .10), 0 8px 24px rgba(32, 48, 79, .05); }
select:disabled { background-color: #f2f4f7; border-color: #e2e6ec; }

/* 解锁工具卡片内部层次 */
.unlock-card { padding: 26px; }
.unlock-card:first-child { background: rgba(255,255,255,.96); }
.unlock-card:first-child .tool-switch {
  margin-top: 5px;
  padding: 14px 14px;
  border: 1px solid #e6eaf0;
  border-radius: 15px;
  background: #fafbfd;
}
.button-row { margin-top: 20px; }
.outline-btn {
  min-height: 50px;
  border-color: #dce2eb;
  border-radius: 14px;
  padding: 12px 16px;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.outline-btn:hover { background: #f8fafc; border-color: #cbd4e1; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(35,48,76,.06); }
.download-btn { min-height: 50px; border-radius: 14px; }

@media (max-width: 760px) {
  .form-group input[type="text"] { height: 54px; font-size: 14px; }
  .unlock-card { padding: 19px; }
}

/* 激活码计算器 */
.activator-page {
  --activator-primary: #1a73e8;
  --activator-primary-hover: #1557b0;
  --activator-primary-soft: rgba(26,115,232,.08);
  --activator-surface: #fff;
  --activator-bg: #f8f9fa;
  --activator-border: #e5e7eb;
  --activator-border-strong: #d1d5db;
  --activator-text: #111827;
  --activator-muted: #6b7280;
  --activator-success: #10b981;
  --activator-success-soft: #f0fdf4;
  --activator-success-border: #bbf7d0;
  --activator-error: #ef4444;
  --activator-ease-out: cubic-bezier(.16,1,.3,1);
  --activator-ease-spring: cubic-bezier(.34,1.56,.64,1);
  padding: 36px 0 20px;
}
.activator-hero { width: min(520px, 100%); margin: 0 auto 26px; text-align: center; }
.activator-brand { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--activator-primary-soft); color: var(--activator-primary); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; margin-bottom: 14px; }
.activator-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--activator-primary); animation: activatorPulse 2s ease-in-out infinite; }
@keyframes activatorPulse { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .5; transform: scale(.8) } }
.activator-hero h1 { margin: 0 0 8px; font-size: clamp(32px, 6vw, 42px); letter-spacing: -.035em; line-height: 1.1; background: linear-gradient(135deg,#111827 0%,#1a73e8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.activator-hero p { margin: 0; font-size: 14px; color: var(--activator-muted); }
.activator-shell { width: min(520px, 100%); margin: 0 auto; }
.activator-card { background: var(--activator-surface); border: 1px solid var(--activator-border); border-radius: 22px; padding: 28px; box-shadow: 0 16px 50px rgba(30,43,72,.08); }
.activator-field { margin-bottom: 20px; }
.activator-field > label { display: block; margin: 0 0 8px 2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--activator-muted); }
.activator-dropdown-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; min-height: 54px; font-size: 16px; font-weight: 600; color: var(--activator-text); background: #fff; border: 1px solid var(--activator-border); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.activator-dropdown-trigger:hover { border-color: var(--activator-border-strong); background: var(--activator-bg); }
.activator-dropdown-trigger.open { border-color: var(--activator-primary); box-shadow: 0 0 0 4px rgba(26,115,232,.12); }
.activator-dropdown-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.activator-label-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--activator-primary); transition: transform .2s var(--activator-ease-spring); }
.activator-dropdown-trigger.open .activator-label-dot { transform: scale(1.3); }
.activator-dropdown-arrow { width: 10px; height: 10px; flex: none; border-right: 2px solid #7b8798; border-bottom: 2px solid #7b8798; transform: rotate(45deg); margin-top: -4px; transition: transform .3s var(--activator-ease-spring); }
.activator-dropdown-trigger.open .activator-dropdown-arrow { transform: rotate(-135deg); margin-top: 4px; border-color: var(--activator-primary); }
.activator-input { width: 100%; height: 56px; padding: 0 17px; border: 1px solid #dfe5ee; border-radius: 16px; outline: none; background: linear-gradient(180deg,#fbfcfe 0%,#f7f9fc 100%); color: #172033; font: 600 15px/1.2 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.9),0 1px 2px rgba(24,34,56,.03); transition: border-color .18s,box-shadow .18s,background .18s,transform .18s; }
.activator-input::placeholder { color: #a6afbd; font: 500 15px/1 Inter,"Noto Sans SC",system-ui,sans-serif; letter-spacing: 0; }
.activator-input:hover { border-color: #cfd7e4; background: #fff; }
.activator-input:focus { border-color: #9caecb; background: #fff; box-shadow: 0 0 0 4px rgba(86,113,155,.1),0 8px 24px rgba(32,48,79,.06); transform: translateY(-1px); }
.activator-btn { position: relative; overflow: hidden; width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; background: linear-gradient(135deg,#1a73e8 0%,#1557b0 100%); color: #fff; font: 600 16px/1 Inter,"Noto Sans SC",system-ui,sans-serif; cursor: pointer; box-shadow: 0 7px 18px rgba(26,115,232,.23); transition: transform .15s var(--activator-ease-spring),box-shadow .2s; }
.activator-btn:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(26,115,232,.30); }
.activator-btn:active { transform: translateY(0) scale(.985); }
.activator-check { font-size: 17px; line-height: 1; }
.activator-result { margin-top: 20px; padding: 22px 18px; background: #f8f9fa; border: 1px solid var(--activator-border); border-radius: 16px; text-align: center; transition: background .25s,border-color .25s; }
.activator-result.success { background: var(--activator-success-soft); border-color: var(--activator-success-border); }
.activator-result-label { margin-bottom: 8px; color: var(--activator-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.activator-result.success .activator-result-label { color: var(--activator-success); }
.activator-result-code { min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--activator-text); font: 800 36px/1.15 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; letter-spacing: .08em; word-break: break-all; }
.activator-result.success .activator-result-code { color: var(--activator-success); animation: activatorFlipIn .55s var(--activator-ease-spring); }
.activator-placeholder { color: #c5cbd3; font-weight: 400; letter-spacing: .16em; }
@keyframes activatorFlipIn { 0%{ transform: rotateX(80deg); opacity:0 } 60%{ transform: rotateX(-8deg); opacity:1 } 100%{ transform: rotateX(0); opacity:1 } }
.activator-error { min-height: 20px; margin-top: 14px; color: var(--activator-error); text-align: center; font-size: 13px; }
.activator-footer { width: min(520px, 100%); margin: 18px auto 0; color: #7f8a9c; text-align: center; font-size: 11px; line-height: 1.7; }
.activator-dropdown-overlay { position: fixed; inset: 0; z-index: 99998; background: transparent; opacity: 0; transition: opacity .2s; }
.activator-dropdown-overlay.show { opacity: 1; }
.activator-dropdown-menu { position: fixed; z-index: 99999; max-height: 320px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--activator-border); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.18); opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity .2s var(--activator-ease-out),transform .25s var(--activator-ease-out); }
.activator-dropdown-menu.show { opacity: 1; transform: translateY(0) scale(1); }
.activator-dropdown-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--activator-text); font: 500 15px/1.4 Inter,"Noto Sans SC",system-ui,sans-serif; text-align: left; cursor: pointer; }
.activator-dropdown-item:hover { background: #f7f9fb; }
.activator-dropdown-item.selected { background: var(--activator-primary-soft); color: var(--activator-primary); font-weight: 700; }
.activator-item-check { width: 16px; opacity: 0; transform: scale(.5); transition: .2s var(--activator-ease-spring); }
.activator-dropdown-item.selected .activator-item-check { opacity: 1; transform: scale(1); }
@media (max-width: 760px) {
  .nav-tabs { overflow-x: auto; scrollbar-width: none; max-width: 66vw; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .activator-page { padding-top: 26px; }
  .activator-card { padding: 22px 18px; border-radius: 18px; }
  .activator-result-code { font-size: 30px; }
  .activator-dropdown-menu { max-width: calc(100vw - 20px); }
}


/* 激活码页：统一 MiWear Tools 视觉系统 */
.activator-page {
  --activator-primary: var(--accent-2);
  --activator-primary-soft: #edf2fa;
  --activator-surface: var(--card);
  --activator-bg: #f7f9fc;
  --activator-border: var(--border);
  --activator-border-strong: #cfd7e5;
  --activator-text: #172033;
  --activator-muted: var(--muted);
  --activator-success: var(--success);
  --activator-success-soft: #eaf8f1;
  --activator-success-border: #c8eadb;
  --activator-error: #a13939;
  padding-top: 36px;
}
.activator-hero {
  width: min(1040px, 100%);
  margin: 0 0 26px;
  text-align: left;
}
.activator-hero .eyebrow { margin-bottom: 12px; }
.activator-hero h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #172033;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -.045em;
}
.activator-hero p {
  margin: 18px 0 0;
  color: #5e6a7f;
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
}
.activator-shell { width: min(760px, 100%); margin: 0; }
.activator-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 50px rgba(30,43,72,.07);
  backdrop-filter: blur(15px);
}
.activator-field { margin-bottom: 20px; }
.activator-field > label {
  display: block;
  margin: 0 0 9px 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: #506078;
}
.activator-dropdown-trigger,
.activator-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #dce2eb;
  border-radius: 14px;
  background: #fbfcfe;
  color: #182238;
  box-shadow: none;
}
.activator-dropdown-trigger {
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  transition: border .15s, box-shadow .15s, background .15s;
}
.activator-dropdown-trigger:hover {
  border-color: #cfd7e5;
  background: #f7f9fc;
}
.activator-dropdown-trigger.open {
  border-color: #9ab3df;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.activator-label-dot { width: 7px; height: 7px; background: var(--accent-2); }
.activator-input {
  height: 56px;
  padding: 0 15px;
  font: 600 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .02em;
  transition: border .15s, box-shadow .15s, background .15s;
}
.activator-input::placeholder {
  color: #a2adbc;
  font: 500 14px/1 Inter, "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
}
.activator-input:hover { border-color: #cfd7e5; background: #fff; }
.activator-input:focus {
  border-color: #9ab3df;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
  transform: none;
}
.activator-btn {
  min-height: 50px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(17,24,39,.16);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.activator-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(17,24,39,.21);
  background: #111827;
}
.activator-btn:active { transform: translateY(0); }
.activator-check { font-size: 15px; }
.activator-result {
  margin-top: 18px;
  padding: 20px 18px;
  background: #f7f9fc;
  border: 1px solid #e3e8ef;
  border-radius: 16px;
}
.activator-result.success {
  background: #eaf8f1;
  border-color: #c8eadb;
}
.activator-result-label { color: #7f8b9e; letter-spacing: 0; }
.activator-result.success .activator-result-label { color: var(--success); }
.activator-result-code {
  font: 800 34px/1.15 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .08em;
  color: #172033;
}
.activator-result.success .activator-result-code { color: var(--success); }
.activator-error { color: var(--accent-2); }
.activator-dropdown-menu {
  border-color: #dce2eb;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(30,43,72,.13);
}
.activator-dropdown-item { color: #172033; }
.activator-dropdown-item:hover { background: #f3f6fa; }
.activator-dropdown-item.selected { background: #edf2fa; color: #172033; }
.activator-footer { width: 100%; text-align: left; color: #8993a5; font-size: 12px; }
@media (max-width: 760px) {
  .activator-page { padding-top: 26px; }
  .activator-shell { width: 100%; }
  .activator-card { padding: 18px; border-radius: 18px; }
  .activator-hero h1 { font-size: 40px; }
  .activator-hero p { font-size: 15px; margin-top: 14px; }
  .activator-result-code { font-size: 30px; }
}
