/* ===== apiget 客户中心 - 设计系统 ===== */
:root {
  --purple: #724BFF;
  --purple-light: #A78BFA;
  --purple-dark: #583ED3;
  --purple-gradient: linear-gradient(135deg, #724BFF, #583ED3);
  --green: #28B894;
  --green-light: #32E6B9;
  --orange: #ff9500;
  --red: #ff3b30;
  --gray: #8e8e93;
  --bg: #252736;
  --bg-light: #2E3044;
  --surface: #252735;
  --surface-light: #352A6E;
  --surface-dark: #1E1B3A;
  --surface-elevated: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(114, 75, 255, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ===== 激活成功弹窗样式 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 0.3s ease;
}

.modal-icon {
  margin-bottom: 20px;
}

.modal-icon.success {
  display: inline-flex;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.modal-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
}

.modal-key-display {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.modal-key-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-key-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  color: var(--purple-light);
  word-break: break-all;
}

.modal-key-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.modal-key-copy:hover {
  background: var(--purple-dark);
}

.modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-stat-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.modal-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
}

.modal-stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.modal-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 24px;
  text-align: left;
}

.modal-warning svg {
  flex-shrink: 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--surface-elevated);
  border-color: var(--border-light);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Topbar ===== */
.topbar {
  background: rgba(37, 39, 54, 0.92);
  padding: 0 20px;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  min-height: 56px; padding: 8px 0;
}

.topbar-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}

.topbar-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.topbar-logo img { width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; }

.topbar-logo span {
  font-size: 17px; font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--green-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-nav { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
  align-items: center;
}

/* ===== Buttons ===== */
.btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.btn:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: rgba(114, 75, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--purple);
  border-color: rgba(114, 75, 255, 0.6);
  color: #fff;
}

.btn-primary:hover {
  background: #6341E6;
  border-color: rgba(114, 75, 255, 0.8);
  box-shadow: 0 4px 16px rgba(114, 75, 255, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-success {
  background: var(--green);
  border-color: rgba(40, 184, 148, 0.6);
  color: #fff;
}

.btn-success:hover {
  background: #229E80;
  border-color: rgba(40, 184, 148, 0.8);
  box-shadow: 0 4px 16px rgba(40, 184, 148, 0.35);
  transform: translateY(-1px);
}

.btn-success:active {
  transform: translateY(0);
}

.btn-warning {
  background: var(--orange);
  border-color: rgba(255, 149, 0, 0.6);
  color: #fff;
}

.btn-warning:hover {
  background: #E68600;
  border-color: rgba(255, 149, 0, 0.8);
  box-shadow: 0 4px 16px rgba(255, 149, 0, 0.35);
  transform: translateY(-1px);
}

.btn-warning:active {
  transform: translateY(0);
}

.btn-large {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== Main Container ===== */
.main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 40px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
}

.badge-purple {
  background: rgba(108, 77, 255, 0.08);
  border-color: rgba(108, 77, 255, 0.2);
  color: var(--purple-light);
}

.badge-green {
  background: rgba(40, 184, 148, 0.08);
  border-color: rgba(40, 184, 148, 0.2);
  color: var(--green-light);
}

.badge-blue {
  background: rgba(0, 122, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.2);
  color: #5ac8fa;
}

.badge-orange {
  background: rgba(255, 149, 0, 0.08);
  border-color: rgba(255, 149, 0, 0.2);
  color: #ffaa33;
}

.hero-icon {
  width: 120px; height: 120px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-icon::before {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(114, 75, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-icon img {
  width: 120px; height: 120px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.card {
  background: var(--surface-elevated);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  transition: all .25s ease;
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(114, 75, 255, 0.12);
  background: rgba(114, 75, 255, 0.04);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.card-icon.purple { background: rgba(114, 75, 255, 0.1); }
.card-icon.green { background: rgba(40, 184, 148, 0.1); }
.card-icon.orange { background: rgba(255, 149, 0, 0.1); }

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card .btn { 
  width: 100%; 
  justify-content: center;
  margin-top: auto;
  padding: 10px 20px;
}

/* ===== Form Container ===== */
.form-container {
  background: var(--surface-elevated);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border-subtle);
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.form-header h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== Form Elements ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: Consolas, "SF Mono", monospace;
  background: rgba(0, 0, 0, 0.15);
  color: var(--text);
  outline: none;
  transition: all .2s ease;
}

.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(114, 75, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input.large {
  padding: 14px 18px;
  font-size: 17px;
  letter-spacing: 0.5px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.hint-link {
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.hint-link:hover {
  color: var(--purple);
  text-decoration: underline;
}

.form-hint-actions {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
}

.hint-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: rgba(114, 75, 255, 0.06);
  border: 1px solid rgba(114, 75, 255, 0.12);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.hint-action:hover {
  color: var(--purple-light);
  background: rgba(114, 75, 255, 0.12);
  border-color: rgba(114, 75, 255, 0.25);
}

.hint-action-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 8px;
}

.form-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(40, 184, 148, 0.06);
  border: 1px solid rgba(40, 184, 148, 0.15);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-actions {
  margin-top: 28px;
}

.form-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
}

/* ===== Result Display ===== */
.result-box {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  display: none;
  backdrop-filter: blur(4px);
}

.result-box.show { display: block; }

.result-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.result-value {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-elevated);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.result-value span {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  font-family: Consolas, "SF Mono", monospace;
  color: var(--text);
  word-break: break-all;
}

.result-copy {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.result-copy:hover { background: var(--purple-light); }

.result-warning {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 149, 0, 0.06);
  border: 1px solid rgba(255, 149, 0, 0.15);
  border-radius: 8px;
  font-size: 13px;
  color: var(--orange);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.result-warning::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cline x1='12' x2='12' y1='9' y2='13'/%3E%3Cline x1='12' x2='12.01' y1='17' y2='17'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ===== Info Section ===== */
.info-section {
  background: var(--surface-elevated);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  margin-top: 32px;
  backdrop-filter: blur(4px);
}

.info-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-list li:last-child { border-bottom: none; }

.info-list li::before {
  content: "•";
  color: var(--purple);
  font-weight: bold;
  flex-shrink: 0;
}

/* ===== Stats Display ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  font-family: Consolas, "SF Mono", monospace;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 12px 24px;
  background: rgba(37, 39, 54, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  z-index: 1000;
  opacity: 0;
  transition: all .3s;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success { border-color: rgba(40, 184, 148, 0.4); }
.toast.error { border-color: rgba(255, 59, 48, 0.4); }



/* ===== Footer ===== */
.footer {
  background: transparent;
  padding: 24px 20px;
  text-align: center;
  margin-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-brand {
  font-weight: 600;
  background: linear-gradient(135deg, var(--purple-light), var(--green-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-sep { opacity: 0.3; }

/* ===== Loading ===== */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

/* 全屏加载动画 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #724BFF;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  color: white;
  font-size: 16px;
  margin-top: 16px;
  text-align: center;
}

/* 输入验证样式 */
.input-valid {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 2px rgba(40, 184, 148, 0.2) !important;
}

.input-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.2) !important;
}

.validation-message {
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.validation-message.show {
  display: block;
}

.validation-message.success {
  color: var(--green);
}

.validation-message.error {
  color: var(--red);
}



/* ===== Error Message ===== */
.error-msg {
  background: rgba(255, 59, 48, 0.06);
  border: 1px solid rgba(255, 59, 48, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 16px;
  display: none;
}

.error-msg.show { display: block; }

/* 可恢复错误提示样式 */
.error-msg a {
  color: var(--purple-light);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.error-msg a:hover {
  color: var(--purple);
  text-decoration: none;
}

/* ===== 已有Key用户引导弹窗 ===== */
.existing-key-notice {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  animation: noticeFadeIn 0.3s ease;
}

.existing-key-notice.show {
  display: flex;
}

@keyframes noticeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.notice-container {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(114, 75, 255, 0.1);
  animation: noticeSlideUp 0.3s ease;
  position: relative;
  overflow: hidden;
}

.notice-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #ff6b35);
  border-radius: 24px 24px 0 0;
}

@keyframes noticeSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.notice-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 149, 0, 0.15);
  border-radius: 50%;
  color: var(--orange);
  flex-shrink: 0;
}

.notice-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.notice-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.notice-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.notice-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .notice-container {
    padding: 30px 20px;
  }
  .notice-actions {
    flex-direction: column;
  }
  .notice-actions .btn {
    width: 100%;
  }
}

/* ===== Desktop Enhancement ===== */
@media (min-width: 1024px) {
  .hero { padding: 80px 20px; }
  .hero h1 { font-size: 34px; }
  .hero-icon { width: 120px; height: 120px; font-size: 42px; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card { padding: 28px; }

  .form-container { padding: 48px; }
  .form-input.large { font-size: 18px; padding: 16px 20px; }
  .form-header h2 { font-size: 24px; }

  .stat-value { font-size: 28px; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .topbar-inner {
    min-height: 48px;
    padding: 8px 16px;
  }
  
  .topbar-logo span {
    font-size: 15px;
  }
  
  .topbar-nav {
    gap: 4px;
  }
  
  .topbar-nav .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .main {
    padding: 20px 16px;
  }
  
  .hero { padding: 30px 16px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }

  .cards-grid { grid-template-columns: 1fr; }

  .form-container { padding: 24px 20px; }
  .form-header h2 { font-size: 20px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 20px; }

  .btn { padding: 7px 14px; font-size: 12px; }
  .btn-large { padding: 10px 20px; font-size: 14px; }

  /* 提示按钮移动端优化 */
  .form-hint-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .hint-action-sep {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main {
    padding: 16px 12px;
  }
  
  .form-container {
    padding: 20px 16px;
  }
}

/* ===== Code 标签样式 ===== */
code {
  background: var(--surface-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, "SF Mono", monospace;
  font-size: 0.9em;
}

/* ===== Models 配置区域样式 ===== */
.models-section {
  max-width: 800px;
  margin: 24px auto 0;
}

.models-card {
  background: var(--surface-elevated);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.models-header {
  text-align: center;
  margin-bottom: 24px;
}

.models-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.models-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.models-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.models-actions .btn {
  flex: 1;
}

.models-preview {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  max-height: 200px;
  overflow-y: auto;
}

.models-preview pre {
  margin: 0;
  font-family: Consolas, "SF Mono", monospace;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}

.models-tutorial {
  margin-top: 24px;
  padding: 20px;
  background: rgba(108, 77, 255, 0.04);
  border: 1px solid rgba(108, 77, 255, 0.1);
  border-radius: 10px;
}

.models-tutorial h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--purple-light);
}

.models-tutorial ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 2;
}

/* ===== 生成配置按钮样式 ===== */
.btn-generate-config {
  background: linear-gradient(135deg, #FFC800, #E6B400);
  border-color: rgba(255, 200, 0, 0.6);
  color: #000;
  font-weight: 600;
}

.btn-generate-config:hover {
  background: linear-gradient(135deg, #FFD633, #FFC800);
  box-shadow: 0 4px 16px rgba(255, 200, 0, 0.35);
  transform: translateY(-1px);
  border-color: rgba(255, 200, 0, 0.8);
}

.btn-generate-config:active {
  transform: translateY(0);
}

/* ===== 查询积分按钮样式 ===== */
.btn-query {
  background: linear-gradient(135deg, #007AFF, #0055D4);
  border-color: rgba(0, 122, 255, 0.6);
  color: #fff;
  font-weight: 600;
}

.btn-query:hover {
  background: linear-gradient(135deg, #3395FF, #007AFF);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
  transform: translateY(-1px);
  border-color: rgba(0, 122, 255, 0.8);
}

.btn-query:active {
  transform: translateY(0);
}

/* ===== 新手引导样式 ===== */
.quick-guide {
  margin-top: 32px;
  background: var(--surface-elevated);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.guide-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-close {
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-close:hover {
  background: var(--surface-elevated);
  border-color: var(--border-light);
  color: var(--text);
}

.guide-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  transition: all 0.2s ease;
}

.guide-step:hover {
  background: rgba(114, 75, 255, 0.06);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.guide-step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.guide-step-info {
  flex: 1;
}

.guide-step-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.guide-step-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.guide-step-btn {
  padding: 6px 12px;
  background: var(--purple);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.guide-step-btn:hover {
  background: var(--purple-dark);
  transform: scale(1.05);
}

.guide-step-done {
  padding: 6px 12px;
  background: rgba(40, 184, 148, 0.15);
  border: 1px solid rgba(40, 184, 148, 0.3);
  border-radius: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.guide-step-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* 隐藏引导 */
.quick-guide.hidden {
  display: none;
}

/* ===== 卡片图标样式 ===== */
.card-icon.blue {
  background: rgba(0, 122, 255, 0.1);
}

.card-icon.yellow {
  background: rgba(255, 200, 0, 0.1);
}

/* ===== Client Support Grid ===== */
.client-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.client-card {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: all .2s ease;
}

.client-card:hover {
  border-color: var(--border-light);
  background: rgba(114, 75, 255, 0.04);
}

.client-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.client-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.client-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.client-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(108, 77, 255, 0.06);
  color: var(--purple-light);
  border: 1px solid rgba(108, 77, 255, 0.1);
}

.client-note {
  font-size: 13px;
  color: var(--green);
  text-align: center;
  margin-top: 12px;
  padding: 10px;
  background: rgba(40, 184, 148, 0.06);
  border-radius: 8px;
}

/* ===== FAQ Section ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all .2s ease;
}

.faq-item:hover {
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--surface-light);
}

.faq-answer {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--purple-light);
  text-decoration: underline;
}

.faq-answer code {
  background: var(--surface-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ===== Progress Bar ===== */
.progress-container {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
}

.progress-bar {
  background: rgb(114 75 255 / var(--un-bg-opacity, 1));
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s;
}

/* ===== Tutorial Section ===== */
.tutorial-section {
  margin-top: 24px;
  padding: 24px;
  background: rgba(108, 77, 255, 0.04);
  border: 1px solid rgba(108, 77, 255, 0.08);
  border-radius: 12px;
}

.tutorial-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--purple-light);
}

.tutorial-block {
  background: var(--surface-elevated);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
}

.tutorial-block:last-of-type {
  margin-bottom: 0;
}

.tutorial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.tutorial-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.tutorial-icon img {
  border-radius: 6px;
}

.tutorial-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tutorial-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-content code {
  background: var(--surface-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.tutorial-tip {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(40, 184, 148, 0.04);
  border: 1px solid rgba(40, 184, 148, 0.1);
  border-radius: 8px;
}

.tutorial-tip p {
  font-size: 13px;
  color: var(--green-light);
  margin: 0;
}

/* ===== Legal Section ===== */
.legal-section {
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  padding: 32px 20px;
  margin-top: 40px;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.legal-list li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.legal-links a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color 0.15s;
}

.legal-links a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.legal-sep {
  color: var(--text-dim);
}

/* ===== 单页应用样式 ===== */
.page-section {
  display: none;
}
.page-section.active {
  display: block;
}

/* ===== 脚本指南样式 ===== */
.script-guide {
  margin-top: 24px;
  padding: 20px;
  background: rgba(108, 77, 255, 0.04);
  border: 1px solid rgba(108, 77, 255, 0.1);
  border-radius: 10px;
}

.script-guide h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--purple-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.script-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.script-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.script-step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.script-step-info {
  flex: 1;
}

.script-step-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.script-step-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.script-note {
  padding: 12px 16px;
  background: rgba(40, 184, 148, 0.04);
  border: 1px solid rgba(40, 184, 148, 0.1);
  border-radius: 8px;
}

.script-note p {
  font-size: 13px;
  color: var(--green-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 脚本配置区域样式 ===== */
.script-section {
  padding: 16px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.script-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.script-section-header strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.script-section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

/* 按钮样式增强 */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--surface-elevated);
  border-color: var(--border-light);
  color: var(--text);
}

/* 顶部导航样式 */
.topbar-nav .btn.active {
  background: var(--purple);
  border-color: rgba(114, 75, 255, 0.6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(114, 75, 255, 0.2);
}

/* 首页卡片点击效果 */
.cards-grid .card {
  cursor: pointer;
}
.cards-grid .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(114, 75, 255, 0.12);
}

/* SVG 图标系统 */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}
.icon svg {
  width: 100%;
  height: 100%;
}
.icon-sm { font-size: 14px; }
.icon-md { font-size: 16px; }
.icon-lg { font-size: 20px; }
.icon-xl { font-size: 24px; }

/* ===== 配置方法选择样式 ===== */
.config-methods {
  margin-bottom: 24px;
}

.method-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.method-tab {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.4;
  backdrop-filter: blur(8px);
  width: 100%;
}

@media (max-width: 560px) {
  .method-tabs { grid-template-columns: 1fr; }
}

.method-tab:hover {
  background: rgba(114, 75, 255, 0.1);
  border-color: var(--border-light);
  color: var(--text);
}

.method-tab.active {
  background: var(--purple);
  border-color: rgba(114, 75, 255, 0.6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(114, 75, 255, 0.2);
}

.method-content {
  display: none;
}

.method-content.active {
  display: block;
}

.method-header {
  margin-bottom: 20px;
}

.method-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.method-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.method-steps {
  margin-top: 24px;
  padding: 20px;
  background: rgba(108, 77, 255, 0.04);
  border: 1px solid rgba(108, 77, 255, 0.08);
  border-radius: 10px;
}

.method-steps h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--purple-light);
}

.path-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.os-path {
  background: var(--surface-elevated);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
}

.os-path strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}

.os-path ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.os-path li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.os-path li:last-child {
  border-bottom: none;
}

.os-path code {
  background: var(--surface-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  word-break: break-all;
}

.ai-prompt-preview {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  max-height: 300px;
  overflow-y: auto;
}

.ai-prompt-preview pre {
  margin: 0;
  font-family: Consolas, "SF Mono", monospace;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}

.tip-box {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(40, 184, 148, 0.04);
  border: 1px solid rgba(40, 184, 148, 0.1);
  border-radius: 8px;
}

.tip-box p {
  font-size: 13px;
  color: var(--green-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 教程卡片式设计 ===== */
.tutorial-card {
  background: var(--surface-elevated);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tutorial-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tutorial-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-subtle);
}

.tutorial-card-icon {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tutorial-card-icon img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tutorial-card-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}

.tutorial-card-header p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.tutorial-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tutorial-step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.tutorial-step-card:hover {
  background: rgba(114, 75, 255, 0.06);
  border-color: var(--border-light);
}

.step-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(114, 75, 255, 0.3);
}

.step-info {
  flex: 1;
}

.step-info h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px 0;
}

.step-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.step-paths {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-path {
  display: flex;
  align-items: center;
  gap: 10px;
}

.os-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.os-badge.win {
  background: rgba(0, 122, 255, 0.15);
  color: #007AFF;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.os-badge.mac {
  background: rgba(255, 149, 0, 0.15);
  color: #ff9500;
  border: 1px solid rgba(255, 149, 0, 0.2);
}

.step-path code {
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: Consolas, "SF Mono", monospace;
  flex: 1;
}

.path-note {
  font-size: 11px;
  color: var(--text-dim);
  padding: 0 4px;
}

.step-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin: 8px 0 0 0;
  font-style: italic;
}

/* ===== 路径复制按钮样式 ===== */
.path-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.path-value code {
  flex: 1;
}

.copy-btn {
  padding: 6px 8px;
  background: rgba(114, 75, 255, 0.15);
  border: 1px solid rgba(114, 75, 255, 0.3);
  border-radius: 6px;
  color: var(--purple-light);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: rgba(114, 75, 255, 0.25);
  border-color: rgba(114, 75, 255, 0.5);
  transform: scale(1.05);
}

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

.copy-btn .icon {
  width: 14px;
  height: 14px;
}

/* ===== 教程模式切换样式 ===== */
.tutorial-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.tutorial-header-bar h3 {
  margin-bottom: 0;
}

.tutorial-mode {
  display: none;
}

.tutorial-mode.active {
  display: block;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--surface-elevated);
  border-color: var(--border-light);
  color: var(--text);
}

/* ===== 快速步骤样式 ===== */
.quick-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.quick-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface-elevated);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.quick-step-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.quick-step-content {
  flex: 1;
}

.quick-step-content strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.quick-step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ===== 路径卡片样式 ===== */
.path-section {
  margin-top: 24px;
  padding: 20px;
  background: rgba(108, 77, 255, 0.04);
  border: 1px solid rgba(108, 77, 255, 0.08);
  border-radius: 10px;
}

.path-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--purple-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.path-card {
  background: var(--surface-elevated);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.path-card-header {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.path-card-content {
  padding: 16px;
}

.path-item {
  margin-bottom: 12px;
}

.path-item:last-child {
  margin-bottom: 0;
}

.path-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.path-item code {
  display: block;
  background: rgba(0, 0, 0, 0.15);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
  font-family: Consolas, "SF Mono", monospace;
}

/* ===== models.json 目录选择器 ===== */
@font-face {
  font-family: "BuddyPublicSans";
  src: url("../fonts/public-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "BuddyJetBrains";
  src: url("../fonts/jetbrains-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

body.modal-open {
  overflow: hidden;
}

.download-method-summary {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 16px 18px 16px 20px;
  overflow: hidden;
  border: 1px solid rgba(50, 230, 185, 0.16);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(40, 184, 148, 0.09), rgba(114, 75, 255, 0.04));
}

.download-method-summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--green-light);
}

.download-method-kicker {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(50, 230, 185, 0.12);
  color: var(--green-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.download-method-summary strong {
  color: var(--text);
  font-size: 14px;
}

.download-method-summary p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.download-modal-overlay {
  z-index: 12000;
  padding: clamp(10px, 3vw, 28px);
}

.download-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 4%, rgba(114, 75, 255, 0.18), transparent 28%),
    linear-gradient(155deg, #292b3d 0%, #202231 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
  font-family: "BuddyPublicSans", "PingFang SC", sans-serif;
  animation: modalSlideUp .24s ease;
}

.download-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--purple), transparent 88%);
}

.download-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.download-dialog-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--green-light);
  font-family: "BuddyJetBrains", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
}

.download-dialog-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.download-dialog-head p {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.download-dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.download-dialog-close:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(114, 75, 255, 0.12);
  color: #fff;
}

.download-dialog-close svg {
  width: 18px;
  height: 18px;
}

.download-picker-section {
  margin-top: 22px;
}

.download-picker-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}

.download-picker-label > span {
  color: var(--purple-light);
  font-family: "BuddyJetBrains", monospace;
  font-size: 11px;
  letter-spacing: .08em;
}

.download-picker-label strong,
.download-picker-label small {
  display: block;
}

.download-picker-label strong {
  color: var(--text);
  font-size: 13px;
}

.download-picker-label small {
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 11px;
}

.download-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.download-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.download-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.30);
  background: rgba(114, 75, 255, 0.08);
}

.download-choice.active {
  border-color: rgba(50, 230, 185, 0.62);
  background: linear-gradient(120deg, rgba(40, 184, 148, 0.13), rgba(114, 75, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(50, 230, 185, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.download-choice.active::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 10px;
  color: var(--green-light);
  font-size: 12px;
  font-weight: 800;
}

.download-choice > span:last-child strong,
.download-choice > span:last-child small {
  display: block;
}

.download-choice > span:last-child strong {
  margin-bottom: 3px;
  color: currentColor;
  font-size: 14px;
}

.download-choice > span:last-child small {
  color: var(--text-dim);
  font-size: 11px;
}

.download-choice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--purple-light);
}

.download-choice.active .download-choice-icon {
  color: var(--green-light);
}

.download-choice-icon svg {
  width: 23px;
  height: 23px;
}

.windows-mark {
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
}

.windows-mark span {
  width: 8px;
  height: 8px;
  background: currentColor;
}

.download-target {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.download-target-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--purple-light);
  font-family: "BuddyJetBrains", monospace;
  font-size: 10px;
  letter-spacing: .08em;
}

.download-capability {
  padding: 4px 7px;
  border: 1px solid rgba(50, 230, 185, 0.2);
  border-radius: 999px;
  background: rgba(40, 184, 148, 0.08);
  color: var(--green-light);
  letter-spacing: 0;
}

.download-capability.fallback {
  border-color: rgba(255, 149, 0, 0.22);
  background: rgba(255, 149, 0, 0.08);
  color: var(--orange);
}

.download-target-path {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-target-path > div {
  min-width: 0;
  flex: 1;
}

.download-target-path small,
.download-target-path code {
  display: block;
}

.download-target-path small {
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 11px;
}

.download-target-path code {
  padding: 0;
  background: none;
  color: #fff;
  font-family: "BuddyJetBrains", monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.download-copy-path {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 8px;
  background: rgba(114, 75, 255, 0.1);
  color: var(--purple-light);
  font-size: 11px;
  cursor: pointer;
}

.download-copy-path:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.download-target > p {
  margin: 11px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.55;
}

.download-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.download-install-btn {
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, #6f52e8, #5a3bd4);
  border-color: rgba(167, 139, 250, 0.42);
  color: #fff;
}

.download-install-btn svg {
  width: 18px;
  height: 18px;
}

.download-dialog-actions .btn:disabled {
  transform: none;
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
}

.download-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.download-security-note > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 10px rgba(50, 230, 185, 0.75);
}

.download-choice:focus-visible,
.download-dialog-close:focus-visible,
.download-copy-path:focus-visible,
.download-dialog-actions .btn:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .download-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .download-dialog {
    width: 100%;
    max-height: 94vh;
    padding: 22px 16px max(18px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .download-dialog-head {
    gap: 12px;
    margin-bottom: 22px;
  }

  .download-dialog-head h2 {
    font-size: 22px;
  }

  .download-choice-grid {
    grid-template-columns: 1fr;
  }

  .download-choice {
    min-height: 62px;
    padding: 10px 12px;
  }

  .download-choice-icon {
    width: 36px;
    height: 36px;
  }

  .download-target-topline,
  .download-target-path {
    align-items: flex-start;
  }

  .download-target-topline {
    flex-direction: column;
    gap: 7px;
  }

  .download-target-path {
    flex-direction: column;
  }

  .download-copy-path {
    width: 100%;
  }

  .download-dialog-actions {
    flex-direction: column;
  }

  .download-dialog-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-dialog,
  .download-choice {
    animation: none;
    transition: none;
  }
}

/* ===== 生成配置页：AI 积分提醒 + 下载两步 + 教程双线（2026-07-18 两步化） ===== */
.method-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 12px;
  background: rgba(114, 75, 255, 0.07);
}
.method-note .icon { flex: 0 0 auto; margin-top: 1px; }
.method-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.6;
}

.dl-step {
  --step-accent: #9b7cff;
  --step-accent-rgb: 155, 124, 255;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 14px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(var(--step-accent-rgb), 0.3);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(var(--step-accent-rgb), 0.11), rgba(18, 19, 33, 0.82) 42%),
    rgba(0, 0, 0, 0.16);
  box-shadow:
    inset 4px 0 0 var(--step-accent),
    0 12px 28px rgba(0, 0, 0, 0.14);
}
.dl-step:first-of-type { margin-top: 10px; }
.dl-step-two {
  --step-accent: #38d5ad;
  --step-accent-rgb: 56, 213, 173;
}
.dl-step-three {
  --step-accent: #f0b95e;
  --step-accent-rgb: 240, 185, 94;
}
.dl-step::after {
  content: attr(data-step);
  position: absolute;
  z-index: -1;
  top: 4px;
  right: 13px;
  color: rgba(var(--step-accent-rgb), 0.1);
  font-family: "BuddyJetBrains", monospace;
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}
.dl-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text);
}
.dl-step-head strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.dl-step-num {
  flex: 0 0 auto;
  min-width: 66px;
  padding: 7px 12px;
  border: 1px solid rgba(var(--step-accent-rgb), 0.48);
  border-radius: 10px;
  background: var(--step-accent);
  box-shadow: 0 7px 18px rgba(var(--step-accent-rgb), 0.24);
  color: #151522;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}
.dl-target {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}
.dl-locator {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 11.5px;
  line-height: 1.55;
}
.dl-client-switch {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}
.dl-client-switch a {
  color: var(--purple-light);
  text-decoration: underline;
  cursor: pointer;
}
.dl-hint {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.55;
}
.dl-open-guide {
  margin-top: 12px;
  padding: 14px 16px 14px 6px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.dl-ol {
  margin: 0;
  padding-left: 26px;
}
.dl-ol li {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.65;
}
.dl-ol li:last-child { margin-bottom: 0; }
.dl-ol li b { color: var(--purple-light); font-weight: 600; }
.dl-ol code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(114, 75, 255, 0.14);
  color: #fff;
  font-family: "BuddyJetBrains", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.dl-open-guide .dl-hint { margin-top: 10px; }

/* 配置视频沿用步骤卡片语言；封面按需加载，点击后才请求 MP4。 */
.video-step-card {
  --step-accent: #58a8ff;
  --step-accent-rgb: 88, 168, 255;
  margin-top: 16px;
}
.video-step-card[hidden] {
  display: none !important;
}
.video-step-card-ai {
  --step-accent: #a78bfa;
  --step-accent-rgb: 167, 139, 250;
}
.video-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 15px;
  padding-right: 44px;
}
.video-step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(var(--step-accent-rgb), 0.48);
  border-radius: 10px;
  background: var(--step-accent);
  box-shadow: 0 7px 18px rgba(var(--step-accent-rgb), 0.24);
  color: #151522;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.video-step-marker .icon { stroke-width: 2.2; }
.video-step-copy { min-width: 0; }
.video-step-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--step-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.video-step-copy h5 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}
.video-step-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.55;
}
.video-step-duration {
  align-self: start;
  margin-top: 3px;
  padding: 5px 8px;
  border: 1px solid rgba(var(--step-accent-rgb), 0.25);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--step-accent);
  font-family: "BuddyJetBrains", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.video-step-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--step-accent-rgb), 0.25);
  border-radius: 14px;
  background: #090b12;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}
.video-step-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #090b12;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.video-step-cover[hidden] {
  display: none;
}
.video-step-cover img,
.video-step-player video {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  background: #090b12;
  object-fit: contain;
}
.video-step-player video[hidden] { display: none; }
.video-step-cover img {
  opacity: .76;
  transform: scale(1.005);
  transition: opacity .25s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.video-step-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 16, .82), rgba(7, 9, 16, .16) 66%),
    linear-gradient(0deg, rgba(7, 9, 16, .56), transparent 48%);
  transition: background .25s ease;
}
.video-step-play {
  position: absolute;
  left: clamp(18px, 4.3vw, 34px);
  bottom: clamp(17px, 4vw, 31px);
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.video-step-play-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 14px;
  background: var(--step-accent);
  box-shadow: 0 12px 30px rgba(var(--step-accent-rgb), .34);
  color: #131522;
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-step-play-icon svg { width: 22px; height: 22px; }
.video-step-play strong,
.video-step-play small { display: block; }
.video-step-play strong {
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.video-step-play small {
  color: rgba(255, 255, 255, .7);
  font-size: 11.5px;
}
.video-step-cover:hover img { opacity: .9; transform: scale(1.025); }
.video-step-cover:hover .video-step-cover-shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 16, .7), rgba(7, 9, 16, .1) 66%),
    linear-gradient(0deg, rgba(7, 9, 16, .48), transparent 48%);
}
.video-step-cover:hover .video-step-play-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px rgba(var(--step-accent-rgb), .42);
}
.video-step-cover:focus-visible {
  outline: 2px solid var(--step-accent);
  outline-offset: -4px;
}
.video-step-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 10.5px;
  line-height: 1.45;
}
.video-step-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.video-step-foot span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--step-accent);
  box-shadow: 0 0 10px rgba(var(--step-accent-rgb), .55);
}

/* 两种配置方式共用的完成标准：必须看见并选中新模型组。 */
.config-success-gate {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 268px);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  overflow: hidden;
  margin-top: 22px;
  padding: clamp(20px, 3.4vw, 30px);
  border: 1px solid rgba(240, 185, 94, .4);
  border-radius: 19px;
  background:
    linear-gradient(125deg, rgba(240, 185, 94, .14), rgba(28, 25, 37, .94) 46%),
    rgba(0, 0, 0, .18);
  box-shadow:
    inset 5px 0 0 #f0b95e,
    0 18px 42px rgba(0, 0, 0, .2);
}
.config-success-gate::before {
  content: "✓";
  position: absolute;
  z-index: -1;
  top: -28px;
  left: 47%;
  color: rgba(240, 185, 94, .055);
  font-family: "BuddyJetBrains", monospace;
  font-size: 190px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.config-success-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #f6ca80;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.config-success-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0b95e;
  box-shadow: 0 0 0 5px rgba(240, 185, 94, .1), 0 0 18px rgba(240, 185, 94, .65);
}
.config-success-copy h4 {
  max-width: 540px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(19px, 2.7vw, 25px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.config-success-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.75;
}
.config-success-checks {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.config-success-checks span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
}
.config-success-checks b {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(50, 230, 185, .3);
  border-radius: 8px;
  background: rgba(40, 184, 148, .1);
  color: var(--green-light);
  font-family: "BuddyJetBrains", monospace;
  font-size: 10px;
}
.config-success-alert {
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(240, 185, 94, .22);
  border-radius: 11px;
  background: rgba(240, 185, 94, .07);
  color: #f6d69f;
  font-size: 11.5px;
  line-height: 1.6;
}
.config-success-figure {
  position: relative;
  margin: 0;
  padding: 8px 8px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(8, 9, 16, .72);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
  transform: rotate(1deg);
}
.config-success-figure img {
  display: block;
  width: 100%;
  max-height: 382px;
  border-radius: 10px;
  object-fit: contain;
  object-position: top;
}
.config-success-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 9px;
  color: var(--text-secondary);
  font-size: 10.5px;
}
.config-success-figure figcaption span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 12px rgba(50, 230, 185, .7);
}

@media (max-width: 560px) {
  .dl-step {
    margin-top: 12px;
    padding: 15px 14px 16px 16px;
    border-radius: 15px;
  }
  .dl-step::after {
    top: 7px;
    right: 10px;
    font-size: 44px;
  }
  .dl-step-head {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 13px;
    padding-right: 22px;
  }
  .dl-step-head strong {
    padding-top: 2px;
    font-size: 15px;
  }
  .dl-step-num {
    min-width: 60px;
    padding: 6px 9px;
    font-size: 12px;
  }
  .video-step-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding-right: 20px;
  }
  .video-step-duration {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
  }
  .video-step-marker {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 11px;
  }
  .video-step-copy h5 { font-size: 14.5px; }
  .video-step-copy p { font-size: 11.5px; }
  .video-step-player { border-radius: 11px; }
  .video-step-play { gap: 10px; }
  .video-step-play-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .video-step-play strong { font-size: 13.5px; }
  .video-step-play small { font-size: 10.5px; }
  .video-step-foot { gap: 6px 11px; }
  .config-success-gate {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 19px 16px 17px 18px;
    border-radius: 16px;
  }
  .config-success-gate::before {
    top: 8px;
    left: auto;
    right: -6px;
    font-size: 116px;
  }
  .config-success-copy h4 { font-size: 20px; }
  .config-success-copy > p { font-size: 12.5px; }
  .config-success-figure {
    width: min(100%, 310px);
    justify-self: center;
    transform: none;
  }
  .config-success-figure img { max-height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  .video-step-cover img,
  .video-step-play-icon {
    transition: none;
  }
}

.tutorial-lane {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.tutorial-lane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.tutorial-lane-tag {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}
.tutorial-lane-tag.tag-ai {
  border: 1px solid rgba(50, 230, 185, 0.22);
  background: rgba(40, 184, 148, 0.1);
  color: var(--green-light);
}
.tutorial-lane-tag.tag-dl {
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(114, 75, 255, 0.1);
  color: var(--purple-light);
}
.tutorial-lane .quick-steps { margin: 0; gap: 10px; }
.tutorial-lane .quick-step {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.14);
}
.tutorial-lane .quick-step-number { width: 28px; height: 28px; font-size: 13px; }
.tutorial-lane-foot {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(40, 184, 148, 0.07);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.6;
}


/* ===== 白色客户中心主题覆盖 ===== */
:root {
  --bg: #f7f8fc;
  --bg-light: #ffffff;
  --surface: #ffffff;
  --surface-light: #f4f1ff;
  --surface-dark: #eef0f7;
  --surface-elevated: #f7f8fc;
  --border: #e5e7ee;
  --border-light: rgba(114, 75, 255, 0.28);
  --border-subtle: #eef0f5;
  --text: #1d2433;
  --text-secondary: #626b7e;
  --text-dim: #8a93a5;
  --shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 6px 18px rgba(31, 41, 55, 0.10);
  --shadow-lg: 0 14px 32px rgba(31, 41, 55, 0.12);
}
body { background: var(--bg); color: var(--text); }
.topbar { background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.card { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.card:hover { border-color: var(--purple-light); }
.form-input { background: var(--surface); color: var(--text); border-color: var(--border); }
.modal-content { background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.tutorial-lane-foot { background: rgba(40, 184, 148, 0.07); color: var(--text-secondary); }
.config-success-gate { background: var(--surface); border: 1px solid var(--border); }
.loading-overlay { background: rgba(255, 255, 255, 0.92); }

.hero h1 {
  background: linear-gradient(135deg, #1d2433, #4b5563);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.topbar-logo, .topbar-nav a { color: var(--text-secondary); }
.topbar-logo:hover, .topbar-nav a:hover, .topbar-nav a.active { color: var(--purple); }
.footer-brand, .hero p, .card p, .guide-step-info p, .tutorial-lane p, .tutorial-lane ol li { color: var(--text-secondary); }
.result-key, .dl-path-box { color: var(--text); }
.faq-item summary { color: var(--text); }
