/* ==================== 变量 & 基础 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --teal: #14b8a6;
  --text-dark: #1e1b4b;
  --text: #312e81;
  --text-muted: #8b8ba7;
  --white: #fff;
  --danger: #ef4444;
  --success: #10b981;
  --glass-bg: rgba(255,255,255,0.75);
  --glass-border: rgba(255,255,255,0.9);
  --glass-shadow: 0 8px 32px rgba(99,102,241,0.12);
  --border: rgba(99,102,241,0.15);
  --gradient-hero: linear-gradient(135deg,#fdf4ff 0%,#eff6ff 25%,#ecfeff 50%,#fef3c7 75%,#fff1f2 100%);
  --gradient-btn: linear-gradient(135deg,#6366f1 0%,#ec4899 100%);
  --radius: 16px;
  --radius-lg: 22px;
}
body {
  font-family: 'Noto Sans SC','Poppins',-apple-system,sans-serif;
  background: var(--gradient-hero);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}
.hidden { display: none !important; }
.gradient-text {
  background: linear-gradient(135deg,#ec4899 0%,#8b5cf6 40%,#06b6d4 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-dot {
  display:inline-block;width:10px;height:10px;border-radius:50%;
  background: var(--gradient-btn);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  margin-right: 8px;
}
input, textarea, select, button { font-family: inherit; }
input, textarea, select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  color: var(--text-dark);
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: #fff;
}
textarea { resize: vertical; min-height: 80px; }
label { font-size: 13px; color: var(--text); font-weight: 500; margin-bottom: 6px; display: block; }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ==================== 按钮 ==================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--gradient-btn);
  color: #fff;
  border: none; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(236,72,153,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.big { padding: 14px 28px; font-size: 15px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.6);
  color: var(--text-dark);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-weight: 500; font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--primary); background: #fff; }
.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--danger);
  color: #fff; border: none; border-radius: 10px;
  font-weight: 500; font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover { background: #dc2626; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: rgba(99,102,241,0.08);
  color: var(--primary);
  border: none; border-radius: 10px;
  font-weight: 500; font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(99,102,241,0.18); }
.add-btn { margin-top: 12px; }

/* ==================== 登录页 ==================== */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-screen::before,
.login-screen::after {
  content:''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; z-index: -1;
}
.login-screen::before {
  width:400px;height:400px;background: radial-gradient(circle,#f472b6,#ec4899); top:-100px;left:-100px;
}
.login-screen::after {
  width:500px;height:500px;background: radial-gradient(circle,#818cf8,#6366f1); bottom:-150px;right:-150px;
}
.login-box {
  width: 100%; max-width: 420px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.login-logo {
  font-size: 24px; font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.login-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.login-tip { color: var(--text-muted); font-size: 13px; margin-bottom: 26px; }
.login-tip b { color: var(--primary); }
.login-box .form-group { text-align: left; margin-bottom: 18px; }
.btn-login {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  background: var(--gradient-btn);
  color: #fff; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(99,102,241,0.35);
  transition: all 0.2s;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(236,72,153,0.4); }
.login-err { margin-top: 12px; color: var(--danger); font-size: 13px; min-height: 18px; }

/* ==================== 主界面布局 ==================== */
.admin-app { min-height: 100vh; display: flex; flex-direction: column; }
.admin-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.ah-logo { font-size: 18px; font-weight: 700; display: flex; align-items: center; }
.ah-logo small { color: var(--text-muted); font-weight: 500; font-size: 13px; }
.ah-right { display: flex; gap: 10px; flex-wrap: wrap; }
.ah-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.6);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.ah-btn:hover { border-color: var(--primary); background: #fff; color: var(--primary); }
.ah-btn.ah-logout:hover { color: var(--danger); border-color: var(--danger); }
.ah-btn.ah-reset:hover { color: var(--accent); border-color: var(--accent); }

.admin-body {
  flex: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 20px 28px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.admin-sidebar {
  padding: 18px 14px;
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky; top: 90px;
}
.side-menu { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.side-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.side-item:hover { background: rgba(99,102,241,0.08); }
.side-item.active {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}
.side-item.active small { color: rgba(255,255,255,0.85); }
.si-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,0.6); font-size: 18px; }
.side-item.active .si-icon { background: rgba(255,255,255,0.2); }
.side-item b { display: block; font-size: 14px; line-height: 1.3; }
.side-item small { color: var(--text-muted); font-size: 11px; }
.side-tip {
  font-size: 12px; color: var(--text-muted);
  padding: 12px; background: rgba(245,158,11,0.08);
  border-radius: 10px; line-height: 1.6;
  border: 1px dashed rgba(245,158,11,0.3);
}

.admin-main {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 600px;
}
.tab-pane { display: none; animation: fadeIn 0.3s; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pane-header {
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.pane-header h3 { font-size: 22px; font-weight: 700; }
.pane-header p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.pane-header .add-btn { position: absolute; right: 0; top: 0; margin: 0; }
.pane-actions {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
}

/* ==================== 表单卡片列表 ==================== */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.form-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.fc-head {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 12px;
}

/* ==================== 工作经历 ==================== */
.exp-list { display: flex; flex-direction: column; gap: 18px; }
.exp-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
}
.exp-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.exp-card-head b { font-size: 15px; color: var(--text-dark); }
.exp-card-actions { display: flex; gap: 8px; }
.exp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.exp-grid .full { grid-column: 1 / -1; }
.exp-points-head {
  display: flex; justify-content: space-between; align-items: center;
  margin: 18px 0 10px;
}
.exp-points-head b { font-size: 14px; color: var(--text); }
.exp-point-list { display: flex; flex-direction: column; gap: 8px; }
.exp-point-row {
  display: flex; gap: 8px; align-items: flex-start;
}
.exp-point-row textarea { flex: 1; min-height: 58px; padding: 10px 12px; }
.exp-point-row button { flex-shrink: 0; margin-top: 4px; }

/* ==================== 作品管理 ==================== */
.cat-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.cat-tab {
  padding: 14px 12px;
  background: rgba(255,255,255,0.65);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-weight: 500; font-size: 13px;
}
.cat-tab:hover { border-color: var(--primary); }
.cat-tab.active {
  background: var(--gradient-btn);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}
.works-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap; gap: 10px;
}
.works-count { color: var(--text-muted); font-size: 13px; }

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.work-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.work-preview {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg,#f3f4f6,#e5e7eb);
  border-radius: 12px;
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.work-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.work-preview .wp-empty {
  text-align: center; color: var(--text-muted); font-size: 13px;
  padding: 10px;
}
.work-upload-area { display: flex; flex-direction: column; gap: 8px; }
.work-upload-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.work-upload-btns label,
.work-upload-btns button {
  flex: 1; min-width: 90px;
  padding: 8px 10px;
  font-size: 12px; font-weight: 500;
  border-radius: 8px; border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  color: var(--text-dark);
}
.work-upload-btns label:hover,
.work-upload-btns button:hover { border-color: var(--primary); color: var(--primary); }
.work-upload-btns label input { display: none; }
.work-card textarea { min-height: 60px; font-size: 13px; }
.work-card-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 6px;
}
.work-order {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 12px;
}
.work-order button {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(99,102,241,0.08); border: none;
  color: var(--primary); cursor: pointer; font-weight: 700;
  transition: all 0.2s;
}
.work-order button:hover { background: rgba(99,102,241,0.18); }
.work-order button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ==================== Toast ==================== */
.toast {
  position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-80px);
  background: rgba(17,24,39,0.95);
  color: #fff; padding: 12px 26px;
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: linear-gradient(135deg,#10b981,#059669); }
.toast.error { background: linear-gradient(135deg,#ef4444,#dc2626); }
.toast.info { background: linear-gradient(135deg,#6366f1,#8b5cf6); }

/* ==================== 确认弹窗 ==================== */
.confirm-modal {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
}
.confirm-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.confirm-box {
  position: relative; z-index: 1;
  width: 90%; max-width: 400px;
  padding: 30px;
  border-radius: var(--radius-lg);
  animation: popIn 0.25s cubic-bezier(0.16,1,0.3,1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.confirm-box h4 { font-size: 18px; margin-bottom: 10px; }
.confirm-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; line-height: 1.7; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ==================== 响应式 ==================== */
@media (max-width: 960px) {
  .admin-body {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .admin-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 10px;
  }
  .side-menu { flex-direction: row; margin-bottom: 0; flex: 1; }
  .side-tip { display: none; }
  .side-item { min-width: 160px; flex-shrink: 0; }
  .admin-header { padding: 12px 14px; flex-wrap: wrap; gap: 10px; }
  .admin-main { padding: 18px; }
  .cat-tabs { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: 1fr; }
  .ah-right { overflow-x: auto; max-width: 100%; }
}
@media (max-width: 560px) {
  .cat-tabs { grid-template-columns: 1fr; }
  .pane-header .add-btn { position: static; margin-top: 12px; align-self: flex-start; }
}

/* ==================== 分块标题 ==================== */
.fc-split-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--text-dark);
  margin: 8px 2px 14px;
  padding-left: 12px;
  border-left: 4px solid;
  border-image: var(--gradient-btn) 1;
}

/* ==================== Telegram 配置 ==================== */
.tg-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(236,72,153,0.06));
  border: 1.5px solid rgba(99,102,241,0.2);
}
.tg-banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; margin: -18px -22px 18px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(236,72,153,0.10));
  border-radius: 16px 16px 0 0;
  border-bottom: 1px dashed rgba(99,102,241,0.25);
}
.tg-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--gradient-btn);
  color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(99,102,241,0.35);
}
.tg-banner b { display: block; font-size: 14.5px; color: var(--text-dark); margin-bottom: 4px; line-height: 1.7; }
.tg-benefits { font-size: 12.5px; color: var(--text-muted); line-height: 1.9; }
.tg-mode-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: #fff;
}
.tg-mode-badge.local-mode { background: #6b7280; }
.tg-mode-badge.proxy-mode { background: linear-gradient(135deg,#6366f1,#ec4899); }
.tg-mode-badge.cors-mode  { background: linear-gradient(135deg,#f59e0b,#ef4444); }

.tg-row { margin-bottom: 18px; }
.tg-toggle-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
}
.tg-toggle-row b { display:block; color: var(--text-dark); font-size: 14px; margin-bottom: 2px;}
.tg-toggle-row small { color: var(--text-muted); font-size: 12.5px; line-height: 1.6; }

/* iOS 风开关 */
.sw-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.sw-switch input { opacity: 0; width: 0; height: 0; }
.sw-switch .slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #d1d5db;
  border-radius: 26px;
  transition: 0.25s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.sw-switch .slider::before {
  position: absolute; content: "";
  height: 20px; width: 20px; left: 3px; top: 3px;
  background: white; border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.sw-switch input:checked + .slider { background: var(--gradient-btn); }
.sw-switch input:checked + .slider::before { transform: translateX(22px); }

.tg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.form-card-inner {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.form-card-inner .fc-head {
  font-size: 13px; font-weight: 700; color: var(--text-dark);
  margin-bottom: 8px;
}
.form-card-inner input[type="text"],
.form-card-inner input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(99,102,241,0.18);
  border-radius: 10px;
  font-family: inherit; font-size: 13.5px;
  background: #fafbff;
  transition: all 0.2s;
  margin-bottom: 6px;
}
.form-card-inner input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.10);
}
.tg-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 2px;
}
.tg-token-tip {
  font-size: 12px;
  color: #4f46e5;
  background: linear-gradient(135deg, rgba(99,102,241,0.09), rgba(236,72,153,0.09));
  border: 1px dashed rgba(99,102,241,0.35);
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.tg-token-tip b { color: #4f46e5; }
.tg-status {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(99,102,241,0.08);
}
.tg-status.ok { color: #059669; background: rgba(16,185,129,0.12); }
.tg-status.err { color: #dc2626; background: rgba(239,68,68,0.12); }

.tg-details {
  margin-top: 10px;
  background: rgba(255,255,255,0.6);
  border: 1.5px dashed rgba(99,102,241,0.25);
  border-radius: 14px;
  padding: 12px 16px;
}
.tg-details summary {
  cursor: pointer; font-weight: 700; color: var(--primary); font-size: 13.5px;
  list-style: none;
}
.tg-details summary::-webkit-details-marker { display: none; }
.tg-details summary::before { content: '➕ '; margin-right: 4px; }
.tg-details[open] summary::before { content: '➖ '; }
.tg-details ol {
  margin: 12px 0 2px 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 2;
}
.tg-details code {
  background: rgba(99,102,241,0.1);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--primary);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

/* 作品上传渠道徽章 */
.upload-channel-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.upload-channel-badge.local {
  background: rgba(245,158,11,0.12);
  color: #b45309;
}
.upload-channel-badge.tg {
  background: rgba(99,102,241,0.12);
  color: #4f46e5;
}
.work-upload-btns {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}

/* ==========================================================================
   ☁️  Cloudflare KV 云端同步面板（设置 Tab 内）
   ========================================================================== */
.cloud-card { margin-top: 12px; }
.cloud-banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(236,72,153,0.06) 50%, rgba(6,182,212,0.06) 100%);
  border: 1px solid rgba(99,102,241,0.15);
}
.cloud-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg,#6366f1 0%,#06b6d4 100%);
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}
.cloud-banner b {
  font-size: 14px; color: var(--text-dark,#1e1b4b); display: block; margin-bottom: 4px; line-height: 1.55;
}
.cloud-benefits {
  font-size: 12px; color: var(--text-muted,#6b7280); line-height: 1.7;
  margin-bottom: 10px;
}
.cloud-status {
  display: inline-block;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  line-height: 1.4;
}
.cloud-status.checking {
  background: rgba(107,114,128,0.1); color: #475569;
  animation: cloud-pulse 1.2s ease-in-out infinite;
}
.cloud-status.ok {
  background: rgba(16,185,129,0.12); color: #047857;
  border: 1px solid rgba(16,185,129,0.25);
}
.cloud-status.warn {
  background: rgba(245,158,11,0.12); color: #b45309;
  border: 1px solid rgba(245,158,11,0.25);
}
.cloud-status.err {
  background: rgba(239,68,68,0.12); color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.25);
}
@keyframes cloud-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.cloud-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px;
}
.cloud-actions button { flex: 0 1 auto; white-space: nowrap; }

/* 教程折叠区 <details> */
.cloud-tutorial {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed rgba(99,102,241,0.25);
}
.cloud-tutorial > summary {
  cursor: pointer;
  font-size: 14px; font-weight: 700;
  color: var(--primary,#6366f1);
  padding: 2px 0 6px;
  user-select: none;
  list-style: none;
}
.cloud-tutorial > summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  color: var(--secondary,#ec4899);
  transition: transform 0.2s ease;
}
.cloud-tutorial[open] > summary::before { transform: rotate(90deg); }
.cloud-tutorial ol {
  padding-left: 22px;
  margin: 8px 0 14px;
  counter-reset: t-step;
  list-style: none;
}
.cloud-tutorial ol > li {
  position: relative;
  counter-increment: t-step;
  padding: 10px 0 10px 10px;
  font-size: 13px; color: var(--text-dark,#1e1b4b); line-height: 1.8;
  border-bottom: 1px dashed rgba(99,102,241,0.08);
}
.cloud-tutorial ol > li::before {
  content: counter(t-step);
  position: absolute; left: -26px; top: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient-btn, linear-gradient(135deg,#6366f1,#ec4899));
  color: #fff;
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(99,102,241,0.3);
}
.cloud-tutorial ol ul {
  list-style: disc;
  padding-left: 22px;
  margin: 4px 0;
}
.cloud-tutorial ol ul li {
  font-size: 12.5px; color: #374151; line-height: 1.85;
  padding: 2px 0;
}
.cloud-tutorial code {
  background: rgba(99,102,241,0.08);
  padding: 1px 7px; border-radius: 5px;
  color: var(--primary,#6366f1);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  font-weight: 600;
}
.cloud-tutorial .form-card-inner {
  margin-top: 6px;
  padding: 14px;
  background: #fafbff;
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 12px;
}
.cloud-tutorial .fc-head {
  font-size: 13px; font-weight: 700; color: var(--text-dark,#1e1b4b);
  margin-bottom: 10px;
}
.pwd-hash-result {
  user-select: all;
  cursor: text;
}

