:root {
  --brand: #f59e0b;
  --brand-hover: #d97706;
  --brand-light: #fbbf24;
  --brand-muted: #fcd34d;
  --brand-on: #111827;
  --brand-border: rgba(245, 158, 11, 0.45);
  --brand-glow: rgba(245, 158, 11, 0.18);
  --bg-base: #232a3b;
  --bg-elevated: #2c3446;
  --bg-surface: #353f54;
  --bg-header: rgba(35, 42, 59, 0.94);
  --bg-footer: #1c2230;
  --border-soft: rgba(148, 163, 184, 0.22);
  --text-primary: #e8eaed;
  --text-secondary: #a8b0bf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.site-page {
  min-height: 100vh;
  color: var(--text-primary);
  background: var(--bg-base);
}
.site-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(245, 158, 11, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(100, 116, 139, 0.12), transparent 50%),
    linear-gradient(180deg, #2a3142 0%, var(--bg-base) 45%, #1e2433 100%);
}
.site-shell { position: relative; z-index: 10; }
.site-header {
  background: var(--bg-header) !important;
  border-bottom-color: var(--border-soft) !important;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.gradient-text {
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-hover { transition: transform 0.3s, box-shadow 0.3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px var(--brand-glow); }
.btn-primary {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: var(--brand-on);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { opacity: 0.92; background: linear-gradient(90deg, #b45309, #d97706); }
.btn-outline {
  border: 2px solid var(--brand-border);
  color: var(--brand-muted) !important;
  background: var(--bg-elevated) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: rgba(120, 53, 15, 0.35) !important;
  border-color: var(--brand);
  color: var(--brand-light) !important;
}
.hero-section { padding-top: 8rem; padding-bottom: 5rem; }
.hero-badge { margin-bottom: 2rem; }
.hero-title {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.35;
  text-align: center;
}
.hero-title-main { white-space: nowrap; }
.hero-title-accent { white-space: nowrap; }
.hero-lead { margin-bottom: 1.25rem; line-height: 1.7; }
.hero-sub { margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { margin-bottom: 3rem; gap: 1.25rem; }
.hero-trust { margin-bottom: 3.5rem; gap: 2rem 3rem; }
.hero-stats { margin-top: 1rem; padding: 2.5rem 2rem; gap: 1.5rem; }
.flash { padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; }
.flash-success { background: rgba(34, 197, 94, 0.2); border: 1px solid #22c55e; color: #86efac; }
.flash-error { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #fca5a5; }
.tab-btn.active { background: rgba(168, 85, 247, 0.3); color: #e9d5ff; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 100; align-items: center; justify-content: center; padding: 1.5rem; }
.modal.open { display: flex; }
.modal-box { background: #111; border: 1px solid rgba(168,85,247,0.3); border-radius: 1rem; padding: 2rem; max-width: 420px; width: 90%; }

/* 会员开通申请弹窗 */
.membership-modal-box {
  max-width: 28rem;
  width: 100%;
  padding: 2.25rem 2rem 2rem;
  background: #0f172a;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.membership-modal-title {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
}
.membership-modal-notice {
  margin: 0 0 1.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  font-size: 0.8125rem;
  line-height: 1.65;
}
.membership-modal-form .form-field {
  margin-bottom: 1.5rem;
}
.membership-modal-form .form-field label {
  display: block;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e2e8f0;
}
.membership-modal-form .form-field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  box-sizing: border-box;
  color: #f8fafc;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.membership-modal-form .form-field input::placeholder {
  color: #94a3b8;
}
.membership-modal-form .form-field input:focus {
  border-color: #a855f7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}
.membership-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.5rem;
}
.membership-submit,
.membership-cancel {
  width: 100%;
  min-height: 3rem;
  justify-content: center;
  display: flex;
  font-size: 1rem;
}
.membership-cancel {
  margin-top: 0;
}
.pay-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.pay-channel-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #cbd5e1;
  margin: 0;
}
.pay-channel-option:has(input:checked) {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  color: #fff;
}
.pay-channel-option input { width: auto; margin: 0 0.35rem 0 0; }
.membership-checkout-plan { padding-bottom: 1rem; border-bottom: 1px solid rgba(148, 163, 184, 0.15); }
.membership-pay-summary {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.membership-pay-qr-placeholder {
  padding: 2rem 1.5rem;
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: 0.75rem;
  background: rgba(168, 85, 247, 0.05);
}
.membership-pay-steps {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.7;
}
.membership-pay-steps p { margin: 0.35rem 0; }
input, textarea, select {
  width: 100%; padding: 0.75rem 1rem; margin-bottom: 0;
  background: #1a1a1a; border: 1px solid #333; border-radius: 0.5rem; color: white;
}
label { display: block; margin-bottom: 0.5rem; color: #94a3b8; font-size: 0.875rem; }

/* 登录 / 注册页 */
.auth-page { padding-top: 7.5rem; padding-bottom: 4rem; min-height: 100vh; }
.auth-page .auth-title { margin-bottom: 2rem; }
.auth-wrap { max-width: 36rem; width: 100%; margin: 0 auto; }
.auth-flash { max-width: 36rem; margin-left: auto; margin-right: auto; }
.auth-card {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.75rem 2.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(0, 0, 0, 0.85);
}
.auth-form .form-field { margin-bottom: 1.75rem; }
.auth-form .form-field:last-of-type { margin-bottom: 0; }
.auth-form .field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.auth-form .field-label-row label { margin-bottom: 0; }
.auth-form .field-hint {
  font-size: 0.8125rem;
  color: #c084fc;
  text-decoration: none;
}
.auth-form .field-hint:hover { text-decoration: underline; }
.auth-form .form-field > input:not([type="hidden"]) {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
}
.auth-form .auth-submit { margin-top: 2rem; width: 100%; justify-content: center; min-height: 3rem; font-size: 1rem; }
.auth-form .auth-footer { margin-top: 1.75rem; text-align: center; color: #94a3b8; font-size: 0.875rem; }
.auth-form .auth-footer a { color: #c084fc; text-decoration: none; }
.auth-form .auth-footer a:hover { text-decoration: underline; }
.caps-lock-hint {
  display: none;
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 0.375rem;
}
.caps-lock-hint.is-visible,
.caps-lock-hint:not([hidden]) {
  display: block;
}
.remember-field { margin-top: -0.5rem; margin-bottom: 1.25rem !important; }
.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}
.remember-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: #a855f7;
  cursor: pointer;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* 8080 内容管理后台登录（table 居中，兼容旧浏览器；关键样式亦内联于 login.php） */
body.admin-login-body {
  margin: 0;
  min-height: 100vh;
  background: #0a0a0a;
  color: #e2e8f0;
}
.admin-login-shell {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  padding: 2rem 1rem;
  display: table;
}
.admin-login-center {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
.admin-login-box {
  display: inline-block;
  width: 100%;
  max-width: 28rem;
  text-align: left;
}
.admin-login-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.admin-login-desc {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-align: center;
}
.admin-login-form.auth-card {
  max-width: 28rem;
  padding: 2.5rem 2.25rem 2.25rem;
}
.admin-login-form .form-field {
  margin-bottom: 1.5rem;
}
.admin-login-form .form-field label {
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e2e8f0 !important;
}
.admin-login-form .form-field input {
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  box-sizing: border-box;
  color: #f8fafc !important;
  background: #1e293b !important;
  border: 1px solid #475569 !important;
  border-radius: 0.5rem;
  -webkit-text-fill-color: #f8fafc;
}
.admin-login-form .form-field input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.admin-login-form .form-field input:focus {
  border-color: #a855f7 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}
.admin-login-form .form-field input:-webkit-autofill,
.admin-login-form .form-field input:-webkit-autofill:hover,
.admin-login-form .form-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px #1e293b inset !important;
  caret-color: #f8fafc;
}
.admin-login-page .auth-subtitle {
  color: #94a3b8;
}
.admin-login-form .auth-footer {
  color: #94a3b8;
}
.admin-login-form .auth-footer .text-slate-300 {
  color: #cbd5e1 !important;
}
.admin-login-form .auth-submit {
  margin-top: 0.5rem;
}
.admin-login-links {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.admin-login-links a {
  color: #c084fc;
  text-decoration: none;
}
.admin-login-links a:hover {
  text-decoration: underline;
}
.admin-preview-banner {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.6;
}
.admin-preview-banner strong {
  color: #e2e8f0;
}
.admin-preview-banner .btn-primary {
  display: inline-flex;
  margin-top: 0.75rem;
}

.captcha-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.captcha-row input { flex: 1; min-width: 0; }
.captcha-prompt {
  flex-shrink: 0;
  min-width: 8.5rem;
  min-height: 3.25rem;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(49, 46, 129, 0.95)),
    repeating-linear-gradient(-32deg, transparent, transparent 6px, rgba(255, 255, 255, 0.04) 6px, rgba(255, 255, 255, 0.04) 7px);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 0.5rem;
  color: #e9d5ff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.captcha-prompt::before,
.captcha-prompt::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.captcha-prompt::before {
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(244, 114, 182, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.1), transparent 40%);
}
.captcha-prompt::after {
  left: -10%;
  right: -10%;
  top: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.45), transparent);
  transform: rotate(-8deg);
}
.captcha-prompt-text {
  position: relative;
  z-index: 1;
  letter-spacing: 0.08em;
}
.captcha-canvas {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 2.25rem;
  padding: 0 0.15rem;
}
.captcha-char {
  display: inline-block;
  font-family: "Segoe UI", "Trebuchet MS", "Courier New", monospace;
  font-size: var(--c-size, 20px);
  font-weight: 800;
  color: var(--c-color, #e9d5ff);
  line-height: 1;
  transform: rotate(var(--c-rot, 0deg)) skewX(var(--c-skew, 0deg)) translateY(var(--c-y, 0px));
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.35), 0 0 8px rgba(255, 255, 255, 0.08);
}
.captcha-refresh {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
}
.captcha-refresh:hover { color: #c084fc; }
.auth-note {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #cbd5e1;
  font-size: 0.8125rem;
  line-height: 1.6;
  word-break: break-all;
}
.auth-note a { color: #c084fc; }
.auth-subtitle {
  margin: -1.25rem auto 2rem;
  max-width: 28rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: stretch;
}
.input-with-icon > input:not([type="hidden"]) {
  width: 100%;
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}
.input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: flex;
}
.input-toggle-pw {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
}
.input-toggle-pw:hover { color: #94a3b8; }
.agree-field { margin-top: 1.5rem; }
.agree-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.6;
  cursor: pointer;
}
.agree-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: #3b82f6;
}
.agree-link {
  background: none;
  border: none;
  padding: 0;
  color: #3b82f6;
  cursor: pointer;
  font-size: inherit;
  text-decoration: none;
}
.agree-link:hover { text-decoration: underline; }

/* 注册页：疏朗布局 + 高对比度 */
.register-page {
  padding-top: 6rem;
  padding-bottom: 5rem;
}
.register-wrap {
  max-width: 32rem;
}
.register-subtitle {
  margin: -0.5rem auto 2.25rem;
  max-width: 26rem;
  line-height: 1.75;
}
.register-form.auth-card {
  padding: 2.5rem 2.25rem 2rem;
}
.register-form .form-field {
  margin-bottom: 2rem !important;
}
.register-form .form-field label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e2e8f0 !important;
}
.register-form .input-with-icon > input {
  min-height: 3.375rem;
  padding: 0.9375rem 2.875rem 0.9375rem 2.875rem;
  font-size: 1rem;
  color: #f8fafc !important;
  background: #1e293b !important;
  border: 1px solid #475569 !important;
  border-radius: 0.5rem;
  -webkit-text-fill-color: #f8fafc;
  box-sizing: border-box;
}
.register-form .input-with-icon > input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.register-form .input-with-icon > input:focus {
  border-color: #a855f7 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}
.register-form .input-icon {
  color: #94a3b8;
}
.register-form .input-toggle-pw {
  color: #94a3b8;
}
.register-form .captcha-row {
  gap: 1rem;
  align-items: stretch;
}
.register-form .captcha-row .input-with-icon input {
  min-height: 3.375rem;
}
.register-form .captcha-prompt {
  min-width: 8.5rem;
  min-height: 3.375rem;
  font-size: 1.25rem;
}
.register-form .captcha-refresh {
  display: inline-block;
  margin-top: 0.625rem;
  color: #a78bfa;
}
.register-form .agree-field {
  margin-top: 0.25rem !important;
  margin-bottom: 1.75rem !important;
  padding-top: 0.5rem;
}
.register-form .agree-label {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.75;
  gap: 0.75rem;
}
.register-form .agree-link {
  color: #60a5fa;
}
.register-form .auth-submit {
  margin-top: 0.25rem;
  min-height: 3.25rem;
  font-size: 1.0625rem;
}
.register-form .auth-footer {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

/* 联系我们 */
.contact-page {
  padding-top: 6rem;
  padding-bottom: 5rem;
}
.contact-wrap {
  max-width: 32rem;
}
.contact-subtitle {
  margin: -0.5rem auto 2.25rem;
  max-width: 26rem;
  line-height: 1.75;
  color: #94a3b8;
}
.contact-form.auth-card {
  padding: 2.5rem 2.25rem 2rem;
}
.contact-form .form-field {
  margin-bottom: 2rem !important;
}
.contact-form .form-field label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e2e8f0 !important;
}
.contact-optional {
  font-weight: 400;
  color: #64748b;
  font-size: 0.8125rem;
}
.contact-form .form-field input,
.contact-form .form-field textarea {
  width: 100%;
  box-sizing: border-box;
  color: #f8fafc !important;
  background: #1e293b !important;
  border: 1px solid #475569 !important;
  border-radius: 0.5rem;
  font-size: 1rem;
  -webkit-text-fill-color: #f8fafc;
}
.contact-form .form-field input {
  min-height: 3.375rem;
  padding: 0.9375rem 1.25rem;
}
.contact-form .form-field textarea {
  min-height: 9rem;
  padding: 1rem 1.25rem;
  line-height: 1.6;
  resize: vertical;
}
.contact-form .form-field input::placeholder,
.contact-form .form-field textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
  border-color: #a855f7 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}
.contact-form .auth-submit {
  margin-top: 0.25rem;
  min-height: 3.25rem;
}
.contact-form .auth-footer {
  margin-top: 2rem;
}
.legal-page-body h3 {
  color: #e2e8f0;
  font-size: 0.9375rem;
  margin: 1.25rem 0 0.5rem;
}
.legal-page-body p,
.legal-page-body li { margin-bottom: 0.5rem; }
.legal-page-body ul { padding-left: 1.25rem; list-style: disc; }
.legal-page-body a { color: #c084fc; text-decoration: underline; }
.legal-modal-body a { color: #93c5fd; }

.legal-modal.open { display: flex; padding: 1rem; }
.legal-modal-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.legal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}
.legal-modal-header-left {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.legal-modal-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}
.legal-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f8fafc;
}
.legal-modal-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: #3b82f6;
  font-weight: 600;
}
.legal-modal-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.legal-modal-close:hover { color: #e2e8f0; }
.legal-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.legal-modal-body h3 {
  color: #e2e8f0;
  font-size: 0.875rem;
  margin: 1rem 0 0.5rem;
  padding-left: 0.5rem;
  border-left: 3px solid #3b82f6;
}
.legal-modal-body h3:first-child { margin-top: 0; }
.legal-modal-body p { margin: 0 0 0.65rem; }
.legal-modal-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-modal-body li { margin-bottom: 0.35rem; }
.legal-modal-body .legal-lead { color: #cbd5e1; }
.legal-modal-footer {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid #1e293b;
  flex-shrink: 0;
}
.legal-modal-accept {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
}

.site-header a,
.site-header button { pointer-events: auto; cursor: pointer; }

/* 策略库列表页 */
.library-page { min-height: 100vh; }
.library-label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.library-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  color: #f1f5f9;
  font-size: 0.875rem;
}
.library-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}
.library-toolbar {
  border-color: var(--border-soft) !important;
  background: var(--bg-elevated) !important;
}
.library-card { min-height: 100%; }
.library-card a:hover { color: var(--brand-light) !important; }
.library-count { color: var(--brand-light); font-weight: 600; }
.library-link { color: var(--brand-light); text-decoration: none; }
.library-link:hover { color: var(--brand); }
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 社区交流区 */
.community-page { min-height: 100vh; }
.community-grid {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .community-grid { grid-template-columns: 1fr; }
  .community-sidebar-right { order: 3; }
  .community-sidebar { order: 1; }
  .community-main { order: 2; }
}
.community-panel {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.community-panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}
.community-cat-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.community-cat-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
}
.community-cat-nav a:hover,
.community-cat-nav a.active {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}
.community-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.community-search .library-input { flex: 1; margin: 0; }
.community-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.community-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  border: 1px solid transparent;
}
.community-tab.active,
.community-tab:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.4);
}
.community-post-item {
  background: rgba(15, 15, 25, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.community-post-item:hover { border-color: rgba(168, 85, 247, 0.35); }
.community-post-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.community-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}
.community-avatar.sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
.community-post-meta { flex: 1; min-width: 0; }
.community-author { color: #e2e8f0; font-size: 0.875rem; font-weight: 500; }
.community-time { color: #64748b; font-size: 0.75rem; margin-left: 0.5rem; }
.community-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  flex-shrink: 0;
}
.community-post-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.community-post-title a { color: #f8fafc; text-decoration: none; }
.community-post-title a:hover { color: #c084fc; }
.community-post-snippet { color: #94a3b8; font-size: 0.875rem; line-height: 1.6; margin-bottom: 0.75rem; }
.community-post-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
  align-items: center;
}
.community-stat-view { cursor: default; }
.community-stat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.5rem;
  margin: -0.2rem -0.5rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.community-stat-link:hover {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
}
.community-stat-like.liked {
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.community-rank-list { list-style: none; padding: 0; margin: 0; }
.community-rank-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}
.community-rank-num { color: #a855f7; font-weight: 700; min-width: 1.25rem; }
.community-rank-list a { color: #cbd5e1; text-decoration: none; line-height: 1.4; }
.community-rank-list a:hover { color: #c084fc; }
.community-user-list { list-style: none; padding: 0; margin: 0; }
.community-user-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.community-like-btn {
  background: transparent;
  border: 1px solid #475569;
  color: #94a3b8;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.community-like-btn.liked { border-color: #a855f7; color: #c084fc; }

/* 评论表情 */
.community-comment-compose { position: relative; margin-bottom: 0.75rem; }
.community-comment-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.emoji-picker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #475569;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.emoji-picker-toggle:hover {
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(88, 28, 135, 0.25);
}
.emoji-picker-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  margin-bottom: 0.5rem;
  padding: 0.65rem;
  background: #1e293b;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  max-height: 11rem;
  overflow-y: auto;
}
.emoji-picker-panel.open { display: block; }
.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.1rem, 1fr));
  gap: 0.2rem;
}
.emoji-picker-item {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  background: transparent;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.emoji-picker-item:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: scale(1.12);
}
.community-comment-compose textarea.library-input { margin-bottom: 0; }
.community-tip { background: rgba(120, 53, 15, 0.15); border-color: rgba(245, 158, 11, 0.25); }
.community-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.community-tag-cloud.vertical { flex-direction: column; align-items: stretch; }
.community-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.8125rem;
  text-decoration: none;
  cursor: pointer;
}
.community-tag-pill.sm { font-size: 0.75rem; padding: 0.25rem 0.6rem; }
.community-tag-pill.xs { font-size: 0.6875rem; padding: 0.15rem 0.5rem; }
.community-tag-pill.active,
.community-tag-pill:hover { background: rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.45); color: #e9d5ff; }
.community-tag-pill.rank { margin-bottom: 0.5rem; }
.community-tag-count { color: #64748b; font-size: 0.6875rem; }
.community-post-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.community-post-tags.compact { margin-top: -0.25rem; }
.community-tag-suggest { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.community-filter-banner {
  padding: 0.75rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
}
.community-tab-rank { margin-left: auto; }
.activity-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
}
.activity-badge.sm { font-size: 0.6875rem; }
.activity-level {
  font-size: 0.6875rem;
  color: #64748b;
  padding: 0.1rem 0.35rem;
  border: 1px solid #334155;
  border-radius: 0.25rem;
}
.activity-level.sm { font-size: 0.625rem; }
.btn-follow {
  padding: 0.35rem 0.85rem;
  border-radius: 0.375rem;
  border: 1px solid #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-follow.following {
  border-color: #475569;
  background: transparent;
  color: #94a3b8;
}
.btn-follow:hover { background: rgba(59, 130, 246, 0.25); }
.community-attachments {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 1rem;
}
.community-attach-list { list-style: none; padding: 0; margin: 0; }
.community-attach-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.875rem;
}
.community-attach-list li:last-child { border-bottom: none; }
.attach-name { color: #e2e8f0; flex: 1; min-width: 8rem; }
.attach-meta { color: #64748b; font-size: 0.75rem; }
.attach-locked { color: #f59e0b; font-size: 0.75rem; max-width: 14rem; }
.community-rank-list-lg li { margin-bottom: 0.85rem; }
.community-rank-num.top { color: #fbbf24; }
.community-rank-num.sm { min-width: 1rem; font-size: 0.75rem; }
.dl-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}
.dl-badge-free { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.35); }
.dl-badge-activity { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.dl-badge-member { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.35); }
.dl-badge-premium { background: rgba(251, 191, 36, 0.12); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.4); }
.dl-badge-paid { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }

/* 顶栏已登录用户 */
.user-nav { position: relative; }
.user-nav-trigger {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(0, 0, 0, 0.6);
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
}
.user-nav-trigger:hover { border-color: #a855f7; }
.user-nav-avatar,
.user-nav-avatar-mobile {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.user-nav-avatar-mobile {
  width: 2.5rem;
  height: 2.5rem;
  text-decoration: none;
}
.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
}
.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #1e293b;
}
.user-nav-avatar .user-avatar,
.user-nav-avatar .user-avatar-initial,
.user-nav-avatar .user-avatar-img,
.user-nav-avatar-mobile .user-avatar,
.user-nav-avatar-mobile .user-avatar-initial,
.user-nav-avatar-mobile .user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 0.95rem;
}
.user-nav-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.user-nav-name { font-size: 0.8125rem; font-weight: 600; color: #f1f5f9; max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-nav-tier { font-size: 0.6875rem; color: #94a3b8; }
.user-nav-tier.tier-member { color: #d8b4fe; }
.user-nav-tier.tier-premium { color: #fde68a; }
.user-nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
.user-nav.open .user-nav-dropdown { display: block; }
.user-nav-dropdown-email { font-size: 0.75rem; color: #64748b; padding: 0.35rem 0.75rem 0.5rem; margin: 0; word-break: break-all; }
.user-nav-dropdown-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
}
.user-nav-dropdown-link:hover { background: rgba(168, 85, 247, 0.15); color: #fff; }
.user-nav-dropdown-link.highlight { color: #fde68a; }
.user-nav-dropdown-link.danger { color: #f87171; }

.account-card .account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.account-label { color: #94a3b8; font-size: 0.875rem; }
.account-value { color: #f1f5f9; font-size: 0.9375rem; text-align: right; }

/* 个人中心 */
.user-center-page { min-height: 100vh; }
.uc-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .uc-layout { grid-template-columns: 1fr; }
  .uc-sidebar { order: 2; }
}
.uc-sidebar {
  position: sticky;
  top: 6rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: rgba(0, 0, 0, 0.75);
}
.uc-sidebar-score {
  text-align: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.uc-sidebar-score-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.uc-sidebar-score-label { font-size: 0.75rem; color: #64748b; }
.uc-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.uc-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
}
.uc-nav-item:hover { background: rgba(168, 85, 247, 0.1); color: #e2e8f0; }
.uc-nav-item.active {
  background: rgba(168, 85, 247, 0.2);
  color: #fff;
  border-left: 3px solid #a855f7;
}
.uc-nav-danger { color: #f87171 !important; margin-top: 0.5rem; }
.uc-nav-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
}
.uc-sidebar-tip {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.uc-sidebar-tip-title { font-size: 0.8125rem; color: #cbd5e1; margin-bottom: 0.35rem; }
.uc-main { min-width: 0; }
.uc-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(0, 0, 0, 0.6);
  margin-bottom: 1.25rem;
}
.uc-hero-left { display: flex; gap: 1.25rem; align-items: center; }
.uc-hero-avatar,
.uc-hero-avatar .user-avatar,
.uc-hero-avatar .uc-hero-avatar-inner {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  font-size: 1.75rem;
}
.community-avatar .user-avatar,
.community-avatar .community-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: inherit;
}
.uc-profile-form { margin-top: 0.5rem; }
.uc-profile-avatar-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.uc-profile-avatar-preview .uc-profile-avatar-lg,
.uc-profile-avatar-lg.user-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1rem;
  font-size: 2rem;
}
.uc-profile-avatar-actions label.btn-outline { margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.uc-hero-name { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0 0 0.25rem; }
.uc-hero-email { font-size: 0.875rem; color: #64748b; margin: 0; }
.uc-hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; align-items: center; }
.uc-upgrade-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #1a1a1a;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.uc-status-ok { font-size: 0.75rem; color: #4ade80; }
.uc-hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.uc-hero-score { text-align: center; }
.uc-hero-score-num { display: block; font-size: 2rem; font-weight: 800; color: #fde68a; }
.uc-hero-score-lbl { font-size: 0.75rem; color: #94a3b8; }
.uc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
  .uc-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
.uc-stat-card {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.5);
}
.uc-stat-label { display: block; font-size: 0.75rem; color: #64748b; margin-bottom: 0.35rem; }
.uc-stat-value { font-size: 1.5rem; font-weight: 700; color: #f1f5f9; }
.uc-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.uc-panel-wide { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .uc-panels { grid-template-columns: 1fr; }
}
.uc-panel {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(0, 0, 0, 0.5);
}
.uc-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.uc-panel-head h2, .uc-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 1rem;
}
.uc-panel-head h2 { margin: 0; }
.uc-table {
  width: 100%;
  font-size: 0.8125rem;
  border-collapse: collapse;
}
.uc-table th {
  text-align: left;
  color: #64748b;
  font-weight: 500;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.uc-table td {
  padding: 0.65rem 0.75rem 0.65rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  color: #cbd5e1;
}
.uc-empty { color: #64748b; font-size: 0.875rem; margin: 0; }
.uc-license-list { list-style: none; padding: 0; margin: 0; }
.uc-license-list li { padding: 0.75rem; background: rgba(168, 85, 247, 0.08); border-radius: 0.5rem; }
.uc-feed-list { list-style: none; padding: 0; margin: 0; }
.uc-feed-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.4);
}
.uc-follow-list { list-style: none; padding: 0; margin: 0; }
.uc-follow-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.4);
}
.uc-follow-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #4c1d95;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #e9d5ff;
}
.uc-order-paid { color: #4ade80; }
.uc-order-pending { color: #fbbf24; }
.uc-order-cancelled { color: #94a3b8; }
.uc-security-list { display: flex; flex-direction: column; gap: 1rem; }
.uc-security-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

/* 推广分佣（参考 EA 宝库模板 · 蓝色主题） */
.uc-ref { color: #e2e8f0; }
.uc-ref-titlebar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 0.75rem;
}
.uc-ref-page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.uc-ref-growth-badge {
  font-size: 0.75rem;
  color: #38bdf8;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.uc-ref-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 900px) {
  .uc-ref-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
.uc-ref-stat-card {
  position: relative;
  padding: 1.1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
}
.uc-ref-stat-highlight {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(145deg, rgba(12, 74, 110, 0.35), rgba(2, 6, 23, 0.95));
}
.uc-ref-stat-icon { font-size: 1.25rem; display: block; margin-bottom: 0.35rem; opacity: 0.85; }
.uc-ref-stat-label { display: block; font-size: 0.75rem; color: #64748b; margin-bottom: 0.25rem; }
.uc-ref-stat-value { font-size: 1.5rem; font-weight: 700; color: #f1f5f9; }
.uc-ref-stat-value small { font-size: 0.875rem; font-weight: 400; color: #94a3b8; }
.uc-ref-withdraw-btn {
  margin-top: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 0.375rem;
  border: none;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.7;
}
.uc-ref-promo {
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 1rem;
  background: rgba(8, 15, 30, 0.85);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.uc-ref-promo-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #7dd3fc;
  font-weight: 600;
}
.uc-ref-promo-head h3 { margin: 0; font-size: 1rem; color: #e0f2fe; }
.uc-ref-promo-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .uc-ref-promo-body { grid-template-columns: 1fr; }
}
.uc-ref-link-input { background: #0f172a !important; border-color: #334155 !important; font-size: 0.8125rem; }
.uc-ref-copy-btn {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 0.375rem;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}
.uc-ref-poster-hint { font-size: 0.8125rem; margin: 0.5rem 0 0.75rem; }
.uc-ref-notice-box {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(14, 116, 144, 0.15);
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.6;
}
.uc-ref-notice-box strong { color: #7dd3fc; display: block; margin-bottom: 0.35rem; }
.uc-ref-promo-right { text-align: center; min-width: 200px; }
.uc-ref-qr-wrap {
  display: inline-block;
  padding: 0.75rem;
  background: #fff;
  border-radius: 0.5rem;
}
.uc-ref-qr-img { display: block; border-radius: 0.25rem; }
.uc-ref-qr-caption { font-size: 0.875rem; color: #94a3b8; margin: 0.5rem 0; }
.uc-ref-agent-badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 0.375rem;
  background: linear-gradient(90deg, #f59e0b, #eab308);
  color: #1c1917;
  font-size: 0.75rem;
  font-weight: 700;
}
.uc-ref-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid #334155;
  margin-bottom: 0;
}
.uc-ref-tabs a {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.uc-ref-tabs a:hover { color: #e2e8f0; }
.uc-ref-tabs a.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}
.uc-ref-panel {
  padding: 1.25rem;
  border: 1px solid #334155;
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  min-height: 8rem;
}

.uc-referral-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.uc-referral-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.uc-referral-stats { margin-bottom: 1.25rem; }
.uc-referral-promo {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.6);
  margin-bottom: 1rem;
}
.uc-referral-promo-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .uc-referral-promo-grid { grid-template-columns: 1fr; }
}
.uc-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.uc-copy-row .library-input { flex: 1; min-width: 0; margin: 0; }
.uc-referral-qr-box {
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #fff;
}
.uc-referral-qr-img {
  display: block;
  border-radius: 0.5rem;
}
.uc-referral-tip {
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.uc-referral-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  padding-bottom: 0.5rem;
}
.uc-referral-tabs a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 0.5rem 0.5rem 0 0;
}
.uc-referral-tabs a:hover { color: #e2e8f0; }
.uc-referral-tabs a.active {
  color: #fff;
  background: rgba(168, 85, 247, 0.2);
  border-bottom: 2px solid #a855f7;
}
.dl-rule-card {
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.5rem;
  border: 1px solid #334155;
}

/* 首页落地页（简洁版，类似 eafxm.cn） */
.home-page { padding-top: 5.5rem; }
.home-hero {
  padding: 3rem 1rem 2.5rem;
  position: relative;
}
.home-hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(88, 28, 135, 0.25);
  margin-bottom: 1.5rem;
}
.home-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.home-hero-desc {
  font-size: 1.0625rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 auto;
}
.home-hero-desc-note {
  margin-top: 0.35rem;
  margin-bottom: 2rem;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.home-stats { padding: 0 1rem 3rem; }
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}
@media (min-width: 768px) {
  .home-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.home-stat-item { text-align: center; padding: 0.5rem; }
.home-stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.home-stat-label { color: #e2e8f0; font-size: 0.875rem; margin-top: 0.25rem; }
.home-stat-sub { color: #64748b; font-size: 0.75rem; }
.home-stats-note {
  text-align: center;
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 0.75rem;
}
.home-section { padding: 3rem 1rem; }
.home-section-alt { background: rgba(88, 28, 135, 0.06); }
.home-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.home-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.home-section-desc { color: #94a3b8; font-size: 0.9375rem; }
.home-section-link {
  color: #c084fc;
  text-decoration: none;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.home-section-link:hover { text-decoration: underline; }
.home-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .home-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .home-card-grid { grid-template-columns: repeat(4, 1fr); }
}
.home-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) {
  .home-card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.home-card {
  display: block;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.home-card-link:hover {
  border-color: var(--brand-border);
  transform: translateY(-2px);
}
.home-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.home-card-tag-sm {
  font-size: 0.7rem;
  color: #a78bfa;
  margin-bottom: 0.5rem;
  display: block;
}
.home-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.home-card-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.home-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}
.home-vip-box {
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8), rgba(15, 15, 25, 0.95));
  padding: 2.5rem 2rem;
}
.home-vip-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.home-vip-desc { color: #94a3b8; line-height: 1.7; margin-bottom: 1.25rem; max-width: 40rem; }
.home-vip-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: #cbd5e1;
  font-size: 0.9375rem;
}
.home-vip-features li { margin-bottom: 0.5rem; padding-left: 0; }
.home-vip-features strong { color: #e9d5ff; }
.home-topics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.home-topic-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: border-color 0.2s;
}
.home-topic-item:hover { border-color: rgba(168, 85, 247, 0.4); }
.home-topic-rank {
  color: #a855f7;
  font-weight: 700;
  min-width: 1.5rem;
}
.home-topic-title {
  flex: 1;
  color: #e2e8f0;
  font-size: 0.9375rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-topic-meta { color: #64748b; font-size: 0.8125rem; flex-shrink: 0; }

/* 页脚（eafxm 风格） */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-secondary);
  margin-top: 0;
  border-top: 1px solid var(--border-soft);
}
.site-footer-main {
  padding: 3.5rem 0 2.5rem;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.site-footer-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f8fafc;
}
.site-footer-desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 18rem;
  margin-bottom: 1.25rem;
}
.site-footer-social {
  display: flex;
  gap: 0.75rem;
}
.site-footer-social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.site-footer-social-btn:hover {
  border-color: #3b82f6;
  color: #e2e8f0;
}
.site-footer-heading {
  color: #f1f5f9;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer-links li { margin-bottom: 0.5rem; }
.site-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}
.site-footer-links a:hover { color: #f8fafc; }
.site-footer-bar {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
}
.site-footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-footer-copy {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-footer-legal a {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: none;
}
.site-footer-legal a:hover { color: #f8fafc; }
.site-footer-risk {
  background: #181e2a;
  border-top: 1px solid var(--border-soft);
  padding: 1rem 0;
}
.site-footer-risk p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #64748b;
  text-align: center;
}
.site-footer-risk strong { color: #94a3b8; font-weight: 600; }

/* EA 详情页 */
.res-detail-page {
  padding-top: 7rem;
  padding-bottom: 4rem;
  min-height: 100vh;
  background: transparent;
}
.res-detail-container { max-width: 1240px; }
@media (min-width: 1440px) {
  .res-detail-container { max-width: 1280px; }
}
.res-detail-breadcrumb {
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.res-detail-breadcrumb a { color: inherit; text-decoration: none; }
.res-detail-intro-head {
  grid-area: intro;
  margin-bottom: 0;
  padding: 1.75rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  background: linear-gradient(165deg, rgba(26, 31, 43, 0.98), rgba(17, 24, 39, 0.92));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.res-detail-intro-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
}
.res-detail-intro-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .res-detail-intro-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
  .res-detail-intro-primary { flex: 1; min-width: 0; }
}
.res-detail-intro-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.res-detail-badge--primary {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.res-detail-intro-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.res-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.res-detail-meta--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}
@media (min-width: 768px) {
  .res-detail-meta--cards {
    width: auto;
    min-width: 15rem;
    max-width: 18rem;
  }
}
.res-detail-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.85rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(96, 165, 250, 0.16);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.res-detail-stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}
.res-detail-stat-label {
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.3;
}
.res-detail-meta li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.8125rem;
}
.res-detail-meta-label { color: #64748b; }
.res-detail-meta strong { color: #e2e8f0; font-weight: 700; }
.res-detail-intro-desc {
  margin: 0 0 0.85rem;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 52rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.res-detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.res-detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.15rem;
}
.res-detail-hero-cta {
  padding: 0.7rem 1.5rem !important;
  font-size: 0.9375rem !important;
  border-radius: 0.625rem !important;
}
.res-detail-hero-secondary {
  padding: 0.7rem 1.15rem !important;
  font-size: 0.875rem !important;
}
.res-detail-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
  padding: 0 0.15rem;
}
.res-detail-section-kicker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 0.25rem;
}
.res-detail-section-kicker-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
}
.res-detail-section-kicker-sub {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
}
/* 详情页统一按钮（GUI 面板风格） */
.res-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.15rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.res-detail-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}
.res-detail-btn--block { width: 100%; }
.res-detail-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}
.res-detail-btn--outline {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: none;
}
.res-detail-btn--outline:hover {
  color: #f1f5f9;
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(56, 189, 248, 0.35);
}
.res-detail-btn--amber {
  color: #fff;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.22);
}
.res-detail-page .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(90deg, #2563eb, #3b82f6) !important;
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}
.res-detail-page .btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.res-detail-content-card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.res-detail-panel-frame {
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  background: linear-gradient(180deg, #1a1f2b 0%, #161b26 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.res-detail-chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.res-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "intro"
    "main"
    "sidebar";
  gap: 1rem;
  align-items: start;
}
.res-detail-main {
  grid-area: main;
  min-width: 0;
  max-width: 100%;
}
.res-detail-sidebar {
  grid-area: sidebar;
  min-width: 0;
}
@media (min-width: 768px) {
  .res-detail-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "intro sidebar"
      "main sidebar";
    gap: 1.25rem 2rem;
  }
  .res-detail-sidebar {
    position: sticky;
    top: 5.75rem;
    align-self: start;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
@media (min-width: 1200px) {
  .res-detail-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem 2.25rem;
  }
}
.res-detail-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: linear-gradient(180deg, rgba(26, 31, 43, 0.95), rgba(11, 15, 23, 0.88));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.res-detail-sidebar-stack > .res-detail-purchase-card,
.res-detail-sidebar-stack > .res-detail-creator-card,
.res-detail-sidebar-stack > .res-detail-contact-card,
.res-detail-sidebar-stack > .res-detail-security {
  margin: 0;
}
.res-detail-tabs--boxed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}
.res-detail-tabs--boxed .res-detail-tab {
  flex: 1 1 7.5rem;
  min-width: 6.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 0.85rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(124, 58, 237, 0.42);
  background: rgba(30, 27, 75, 0.45);
  color: #c4b5fd;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-bottom: 0;
  white-space: nowrap;
}
.res-detail-tabs--boxed .res-detail-tab:hover {
  color: #ede9fe;
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(76, 29, 149, 0.35);
  transform: translateY(-1px);
}
.res-detail-tabs--boxed .res-detail-tab.is-active {
  color: #fff;
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.38);
  transform: translateY(-1px);
}
.res-detail-tabs--boxed .res-detail-tab.is-pending {
  opacity: 0.78;
}
.res-detail-tabs--boxed .res-detail-tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.res-detail-tabs--boxed .res-detail-tab-label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.res-detail-tabs--boxed .res-detail-tab.is-active .res-detail-tab-label {
  font-size: 1.0625rem;
}
.res-detail-tabs--boxed .res-detail-tab-dot {
  display: none;
}
@media (max-width: 767px) {
  .res-detail-tabs--boxed .res-detail-tab {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    padding: 0.75rem 0.55rem;
  }
  .res-detail-tabs--boxed .res-detail-tab-label {
    font-size: 0.9375rem;
  }
}
.res-detail-content-card .res-detail-panel-frame {
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  background: linear-gradient(180deg, #1a1f2b 0%, #161b26 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.res-detail-feature-lead {
  margin: 0 0 1.15rem;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.res-detail-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .res-detail-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.res-detail-feature-card {
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, transform 0.2s;
}
.res-detail-feature-card:hover {
  border-color: rgba(167, 139, 250, 0.45);
  transform: translateY(-2px);
}
.res-detail-feature-card--wide {
  grid-column: 1 / -1;
}
.res-detail-feature-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.res-detail-feature-index {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  flex-shrink: 0;
}
.res-detail-feature-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}
.res-detail-feature-body {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.res-detail-panel-frame .res-detail-param-group,
.res-detail-panel-frame .res-detail-steps,
.res-detail-panel-frame .res-detail-install-tips,
.res-detail-panel-frame .res-detail-faq,
.res-detail-panel-frame .res-detail-empty,
.res-detail-panel-frame .res-detail-backtest-cards,
.res-detail-panel-frame .res-detail-chart-block,
.res-detail-panel-frame .res-detail-files {
  margin-top: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  background: rgba(15, 23, 42, 0.55);
}
.res-detail-panel-frame .res-detail-block-head {
  margin-bottom: 0.25rem;
}
.res-detail-module-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 0 0.5rem;
  background: rgba(11, 14, 20, 0.55);
  border-bottom: 1px solid rgba(100, 116, 139, 0.22);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.res-detail-module-nav::-webkit-scrollbar { display: none; }
.res-detail-module-tab {
  flex: 1 1 0;
  min-width: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 0.65rem 0.7rem;
  text-decoration: none;
  color: #94a3b8;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
}
.res-detail-module-tab:hover {
  color: #e2e8f0;
  background: rgba(37, 99, 235, 0.06);
}
.res-detail-module-tab.is-active {
  color: #f8fafc;
  border-bottom-color: #3b82f6;
  border-bottom-width: 3px;
  background: rgba(37, 99, 235, 0.12);
}
.res-detail-module-tab.is-pending {
  opacity: 0.72;
}
.res-detail-module-tab.is-pending.is-active {
  opacity: 1;
}
.res-detail-module-tab-icon {
  font-size: 1.125rem;
  line-height: 1;
  filter: grayscale(0.15);
}
.res-detail-module-tab.is-active .res-detail-module-tab-icon {
  filter: none;
}
.res-detail-module-tab-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .res-detail-module-tab {
    min-width: 4.75rem;
    padding: 0.75rem 0.5rem 0.65rem;
  }
  .res-detail-module-tab-label { font-size: 0.75rem; }
  .res-detail-module-tab-icon { font-size: 1rem; }
}
.res-detail-panel {
  padding: 1.5rem 1.75rem 1.75rem;
  min-height: 0;
  background: rgba(11, 14, 20, 0.25);
}
.res-detail-module { margin: 0; }
.res-detail-panel-frame .res-detail-module-box {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.res-detail-module-body {
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: rgba(11, 15, 23, 0.5);
  border: 1px solid rgba(100, 116, 139, 0.14);
}
.res-detail-panel-frame .res-detail-block-head {
  margin: 0 0 1rem;
  padding: 0 0 0 1rem;
  background: transparent;
  border-bottom: none;
  position: relative;
}
.res-detail-panel-frame .res-detail-block-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  bottom: 0.1rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}
.res-detail-module-box > .res-detail-section-title {
  padding: 1rem 1.25rem 0;
}
.res-detail-subbox {
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.res-detail-subbox + .res-detail-subbox { margin-top: 0.85rem; }
.res-detail-subbox--tips {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(120, 53, 15, 0.12);
}
.res-detail-module-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .res-detail-panel { padding: 1.75rem 2rem 2rem; min-height: 360px; }
  .res-detail-panel-frame { min-height: 380px; }
}
.res-detail-module-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.35), rgba(69, 10, 10, 0.25));
  color: #fca5a5;
  font-size: 0.75rem;
  line-height: 1.65;
}
.res-detail-prose-heading {
  margin: 1.15rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e2e8f0;
}
.res-detail-prose--structured > .res-detail-prose-heading:first-child { margin-top: 0; }
.res-detail-feature-lead {
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 23, 42, 0.5));
  border-left: 3px solid #3b82f6;
}
.res-detail-feature-lead p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.res-detail-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .res-detail-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.res-detail-feature-card {
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.res-detail-feature-card:hover {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(30, 41, 59, 0.72);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.res-detail-feature-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.res-detail-feature-index {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.35);
  flex-shrink: 0;
}
.res-detail-feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.2);
  font-size: 1rem;
  flex-shrink: 0;
}
.res-detail-feature-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  list-style: none;
}
.res-detail-feature-list li {
  position: relative;
  margin: 0.35rem 0;
  padding-left: 0.85rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.7;
}
.res-detail-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.55);
}
.res-detail-feature-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}
.res-detail-feature-body {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.7;
}
.res-detail-prose--structured .res-detail-feature-grid + .res-detail-feature-lead,
.res-detail-prose--structured .res-detail-feature-lead + .res-detail-feature-grid {
  margin-top: 0;
}
.res-detail-purchase-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.res-detail-purchase-shield { font-size: 1.125rem; }
.res-detail-purchase-titlebar .res-detail-purchase-title {
  margin: 0;
  font-size: 1.0625rem;
}
.res-detail-block-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.res-detail-module-body > .res-detail-block-head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.res-detail-block-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.35);
  font-size: 1.125rem;
  flex-shrink: 0;
}
.res-detail-block-icon--gear { background: rgba(56, 189, 248, 0.15); }
.res-detail-block-icon--faq {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}
.res-detail-section-title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}
.res-detail-prose { color: #cbd5e1; line-height: 1.75; font-size: 0.9375rem; }
.res-detail-faq { display: flex; flex-direction: column; gap: 0.75rem; }
.res-detail-faq-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.res-detail-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}
.res-detail-faq-q-badge {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.res-detail-faq-q strong {
  color: #f1f5f9;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 600;
}
.res-detail-faq-answer {
  padding-left: 2.125rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.7;
}
.res-detail-type-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
}
.res-detail-support-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
  transition: opacity 0.2s, transform 0.2s;
}
.res-detail-support-banner:hover { opacity: 0.92; transform: translateY(-1px); }
.res-detail-support-banner strong { display: block; color: #f8fafc; font-size: 0.9375rem; }
.res-detail-support-banner small { display: block; color: #cbd5e1; font-size: 0.75rem; margin-top: 0.15rem; }
.res-detail-support-icon { font-size: 1.5rem; }
.res-detail-support-arrow { margin-left: auto; color: #e9d5ff; font-weight: 700; }
.res-detail-empty {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px dashed rgba(100, 116, 139, 0.28);
  background: rgba(15, 23, 42, 0.45);
  text-align: center;
}
.res-detail-empty--placeholder { text-align: center; padding: 2.5rem 1rem; }
.res-detail-empty-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.res-detail-empty-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.55);
}
.res-detail-empty-links a:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(30, 41, 59, 0.75);
}
.res-detail-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.res-detail-file-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.res-detail-file-name { color: #e2e8f0; font-size: 0.875rem; }
.res-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-self: start;
}
.res-detail-sidebar > * {
  border-radius: 1rem;
}
@media (min-width: 768px) {
  .res-detail-sidebar {
    position: sticky;
    top: 6.5rem;
  }
}
.res-detail-browse-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.6;
}
.res-detail-browse-footer {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
  background: rgba(88, 28, 135, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.res-detail-browse-footer strong { color: #e9d5ff; }
.res-detail-purchase-card {
  background: linear-gradient(165deg, rgba(26, 31, 43, 0.98), rgba(17, 24, 39, 0.95));
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.res-detail-purchase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.res-detail-purchase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.res-detail-purchase-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.res-detail-purchase-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f8fafc;
}
.res-detail-purchase-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #94a3b8;
}
.res-detail-purchase-member {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #fcd34d;
  background: rgba(120, 53, 15, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.res-detail-purchase-files {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}
.res-detail-purchase-card .res-detail-btn--block:first-of-type { margin-top: 0.25rem; }
@media (max-width: 767px) {
  .res-detail-purchase-card .res-detail-btn--block { display: none; }
}
.res-detail-purchase-trust {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}
.res-detail-mobile-cta {
  display: none;
}
@media (max-width: 767px) {
  .res-detail-mobile-cta {
    display: inline-flex;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.55);
  }
  .res-detail-page { padding-bottom: 4rem; }
  .res-detail-hero-actions { justify-content: flex-start; }
}
@media (min-width: 768px) {
  .res-detail-mobile-cta { display: none !important; }
}
.res-detail-creator-card {
  background: #1a1f2b;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.res-detail-creator-avatar {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  background: linear-gradient(135deg, #7c3aed, #db2777);
}
.res-detail-creator-name { margin: 0; font-size: 1.0625rem; font-weight: 700; color: #f8fafc; }
.res-detail-creator-title { margin: 0.25rem 0 1rem; font-size: 0.8125rem; color: #94a3b8; }
.res-detail-creator-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0;
  padding: 0.5rem 0 0;
}
.res-detail-creator-stats > div {
  padding: 0.55rem 0.35rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.res-detail-creator-stats strong { display: block; color: #f8fafc; font-size: 1rem; }
.res-detail-creator-stats span { display: block; font-size: 0.6875rem; color: #64748b; margin-top: 0.15rem; }
.res-detail-contact-card {
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
}
.res-detail-contact-title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 600;
}
.res-detail-contact-card p { margin: 0.35rem 0; font-size: 0.875rem; color: #e2e8f0; }
.res-detail-contact-card p span { color: #94a3b8; margin-right: 0.5rem; }
.res-detail-contact-card.is-locked .res-detail-lock {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px dashed rgba(148, 163, 184, 0.25);
}
.res-detail-lock-icon { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.res-detail-lock p { text-align: center; font-size: 0.8125rem; color: #94a3b8; margin-bottom: 0.75rem; }
.res-detail-security {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: #1a1f2b;
  border: 1px solid rgba(52, 211, 153, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.res-detail-security-icon { font-size: 1.25rem; flex-shrink: 0; }
.res-detail-security strong { display: block; color: #6ee7b7; font-size: 0.875rem; margin-bottom: 0.25rem; }
.res-detail-security p { margin: 0; font-size: 0.75rem; color: #94a3b8; line-height: 1.5; }
.res-detail-back { margin-top: 0.85rem; }
@media (min-width: 768px) {
  .res-detail-main .res-detail-panel-frame {
    max-width: 100%;
  }
}
.res-detail-table-wrap { overflow-x: auto; }
.res-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.res-detail-table th,
.res-detail-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.res-detail-table th {
  color: #94a3b8;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.45);
}
.res-detail-table td { color: #e2e8f0; }
.res-detail-table code {
  font-size: 0.8125rem;
  color: #c4b5fd;
  background: rgba(88, 28, 135, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}
.res-detail-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.res-detail-steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.res-detail-step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
  background: linear-gradient(135deg, #7c3aed, #db2777);
}
.res-detail-step-text { color: #cbd5e1; line-height: 1.6; font-size: 0.9375rem; }
.res-detail-install-tips {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.res-detail-install-tips strong { display: block; color: #e2e8f0; margin-bottom: 0.5rem; font-size: 0.875rem; }
.res-detail-install-tips ul { margin: 0; padding-left: 1.1rem; color: #94a3b8; font-size: 0.8125rem; line-height: 1.7; }
.res-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .res-detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.res-detail-metric {
  padding: 1.1rem 0.85rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(100, 116, 139, 0.18);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.res-detail-metric-value { display: block; font-size: 1.375rem; font-weight: 800; color: #f8fafc; }
.res-detail-metric-label { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 0.25rem; }
.res-detail-metric--green .res-detail-metric-value { color: #6ee7b7; }
.res-detail-metric--red .res-detail-metric-value { color: #fca5a5; }
.res-detail-metric--blue .res-detail-metric-value { color: #93c5fd; }
.res-detail-metric--amber .res-detail-metric-value { color: #fcd34d; }
.res-detail-metric--purple .res-detail-metric-value { color: #c4b5fd; }
.res-detail-backtest-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.res-detail-backtest-meta > div {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.res-detail-backtest-meta dt { margin: 0; font-size: 0.75rem; color: #64748b; }
.res-detail-backtest-meta dd { margin: 0.25rem 0 0; font-size: 0.9375rem; color: #e2e8f0; font-weight: 600; }
.res-detail-backtest-disclaimer {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #fbbf24;
  background: rgba(120, 53, 15, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.25);
}
@media (max-width: 640px) {
  .res-detail-module-card { min-height: 5.5rem; }
  .res-detail-faq-answer { padding-left: 0; }
  .res-detail-meta--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
  .res-detail-stat-card { padding: 0.55rem 0.35rem; }
  .res-detail-stat-value { font-size: 0.875rem; }
  .res-detail-intro-head { padding: 1.15rem 1rem; }
  .res-detail-panel { padding: 0.85rem; }
  .res-detail-module-body { padding: 0 0.85rem 0.85rem; }
}
.res-detail-param-group { margin-bottom: 1.25rem; }
.res-detail-param-group:last-of-type { margin-bottom: 0; }
.res-detail-param-group-title {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #c4b5fd;
}
.res-detail-chart-block {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.res-detail-chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.res-detail-chart-head strong { color: #f8fafc; font-size: 0.875rem; }
.res-detail-chart-head span { color: #64748b; font-size: 0.75rem; }
.res-detail-chart-svg {
  display: block;
  width: 100%;
  height: 140px;
  margin-bottom: 0.75rem;
}
.res-detail-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 72px;
  padding-top: 0.25rem;
}
.res-detail-chart-bar {
  flex: 1;
  min-width: 4px;
  border-radius: 3px 3px 0 0;
  transition: opacity 0.2s;
}
.res-detail-chart-bar:hover { opacity: 0.85; }
.res-detail-chart-bar--up { background: linear-gradient(180deg, #6ee7b7, #059669); }
.res-detail-chart-bar--down { background: linear-gradient(180deg, #fca5a5, #dc2626); }
.res-detail-shots-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.res-detail-shots-icon { font-size: 1.25rem; }
.res-detail-shots-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .res-detail-shots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .res-detail-shots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.res-detail-shot {
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  transition: border-color 0.2s, transform 0.2s;
}
.res-detail-shot:hover {
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-2px);
}
.res-detail-shot img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
}
.res-detail-shots-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.45);
}
.res-detail-shots-empty-icon {
  display: block;
  font-size: 2.5rem;
  opacity: 0.35;
  margin-bottom: 0.75rem;
}
.res-detail-shots-empty p {
  margin: 0;
  color: #64748b;
  font-size: 0.9375rem;
}
.res-detail-shots-empty--inline {
  padding: 2rem 1.25rem;
  margin-bottom: 1.25rem;
}
.res-detail-backtest-divider {
  margin: 1.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.res-detail-subsection-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* 产品详情页 — 模板布局（黄色主题） */
.res-tpl-page {
  --tpl-brand: var(--brand);
  --tpl-brand-hover: var(--brand-hover);
  --tpl-brand-light: var(--brand-light);
  --tpl-brand-muted: var(--brand-muted);
  --tpl-on-brand: var(--brand-on);
  background: transparent;
  color: var(--text-primary);
}
.res-tpl-container {
  max-width: 80rem;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}
.res-tpl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}
.res-tpl-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.res-tpl-breadcrumb a:hover { color: var(--tpl-brand-light); }
.res-tpl-head { margin-bottom: 1.5rem; }
.res-tpl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.res-tpl-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tpl-on-brand);
  background: linear-gradient(90deg, #d97706, #f59e0b);
}
.res-tpl-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f9fafb;
  line-height: 1.25;
}
.res-tpl-desc {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 52rem;
}
.res-tpl-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .res-tpl-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.res-tpl-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}
.res-tpl-stat-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--tpl-brand);
}
.res-tpl-stat-icon--star { color: var(--tpl-brand-light); }
.res-tpl-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.2;
}
.res-tpl-stat-label {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.3;
}
.res-tpl-stat--cta {
  justify-content: center;
}
.res-tpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tpl-on-brand);
  background: var(--tpl-brand);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.res-tpl-btn:hover { background: var(--tpl-brand-hover); }
.res-tpl-btn--outline {
  color: #e5e7eb;
  background: transparent;
  border: 1px solid #4b5563;
}
.res-tpl-btn--outline:hover {
  border-color: var(--tpl-brand);
  color: var(--tpl-brand-light);
}
.res-tpl-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  max-width: none;
  width: auto;
  margin-top: 0.75rem;
}
.res-tpl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #374151;
}
.res-tpl-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.res-tpl-tab:hover { color: var(--tpl-brand-light); }
.res-tpl-tab.is-active {
  color: var(--tpl-on-brand);
  background: var(--tpl-brand);
  font-weight: 600;
}
.res-tpl-panel.is-hidden { display: none; }
.res-tpl-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f9fafb;
}
.res-tpl-panel-title-icon { color: var(--tpl-brand); }
.res-tpl-lead {
  margin: 0 0 1.25rem;
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.res-tpl-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .res-tpl-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.res-tpl-feature-card {
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  transition: border-color 0.3s, transform 0.3s;
}
.res-tpl-feature-card:hover {
  border-color: var(--tpl-brand);
  transform: translateY(-4px);
}
.res-tpl-feature-card--wide {
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .res-tpl-feature-card--wide { grid-column: span 2; }
}
.res-tpl-feature-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.res-tpl-feature-index {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tpl-on-brand);
  background: var(--tpl-brand);
  flex-shrink: 0;
}
.res-tpl-feature-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.35;
}
.res-tpl-feature-body {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.res-tpl-card {
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: #d1d5db;
}
.res-tpl-card--spaced { margin-bottom: 1rem; }
.res-tpl-card--tips {
  margin-top: 1rem;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(120, 53, 15, 0.12);
}
.res-tpl-card--tips strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}
.res-tpl-card--tips ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.7;
}
.res-tpl-card--tips a { color: var(--tpl-brand-light); }
.res-tpl-card-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tpl-brand-muted);
}
.res-tpl-muted { margin: 0; color: #9ca3af; }
.res-tpl-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.6;
}
.res-tpl-disclaimer-inline {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #fbbf24;
  line-height: 1.6;
}
.res-tpl-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.res-tpl-faq-item { margin: 0; }
.res-tpl-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.res-tpl-faq-badge {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tpl-on-brand);
  background: var(--tpl-brand);
  flex-shrink: 0;
}
.res-tpl-faq-q strong {
  color: #f3f4f6;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.res-tpl-faq-a {
  padding-left: 2rem;
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.7;
}
.res-tpl-support {
  display: inline-block;
  margin-top: 1rem;
  color: var(--tpl-brand-light);
  font-size: 0.875rem;
  text-decoration: none;
}
.res-tpl-support:hover { text-decoration: underline; }
.res-tpl-tab-link {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #4b5563;
}
.res-tpl-tab-link:hover {
  border-color: var(--tpl-brand);
  color: var(--tpl-brand-light);
}
.res-tpl-disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(127, 29, 29, 0.6);
  background: rgba(127, 29, 29, 0.1);
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.65;
}
.res-tpl-disclaimer p { margin: 0; }
.res-tpl-disclaimer-sub {
  margin-top: 0.5rem !important;
  font-size: 0.8125rem;
  color: #6b7280;
}
.res-tpl-disclaimer-icon { flex-shrink: 0; }
.res-tpl-page .res-detail-table th {
  background: rgba(26, 16, 40, 0.9);
  color: #9ca3af;
}
.res-tpl-page .res-detail-table td { color: #e5e7eb; }
.res-tpl-page .res-detail-steps .res-detail-step-num {
  background: var(--tpl-brand);
  color: var(--tpl-on-brand);
}
.res-tpl-page .res-detail-empty-links {
  margin-top: 0.75rem;
}
@media (max-width: 767px) {
  .res-tpl-faq-a { padding-left: 0; }
  .res-tpl-stat--cta { grid-column: 1 / -1; }
}

/* Mobile navigation */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .mobile-nav-toggle { display: none !important; }
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 106;
  width: min(18rem, 88vw);
  height: 100%;
  padding: 1rem 1.25rem 2rem;
  background: #0f172a;
  border-left: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #334155;
}
.mobile-nav-close {
  padding: 0.25rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 0.375rem;
}
.mobile-nav-link:hover { color: #c4b5fd; background: rgba(168, 85, 247, 0.1); }
.mobile-nav-link-danger { color: #f87171; }
body.mobile-nav-open { overflow: hidden; }

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(168, 85, 247, 0.3);
}
.cookie-consent-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-consent-text {
  flex: 1;
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}
.cookie-consent-text a { color: #c4b5fd; }
.cookie-consent-btn { flex-shrink: 0; padding: 0.5rem 1.25rem; font-size: 0.875rem; }

.site-footer-icp {
  margin-left: 0.75rem;
  color: #64748b;
  text-decoration: none;
}
.site-footer-icp:hover { color: #94a3b8; }

.uc-security-delete { flex-direction: column; align-items: stretch; gap: 0.75rem; }
.uc-delete-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.uc-delete-input {
  flex: 1;
  min-width: 10rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #475569;
  background: #1e293b;
  color: #f1f5f9;
}
