/* AggrAI Platform - 公共样式 */
/* Logo配色：绿色渐变主题 (#22c55e → #059669) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif; background: #f0fdf4; color: #14532d; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* 卡片悬浮效果 */
.card-hover { transition: transform 0.2s, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }

/* 渐变文字 - Logo绿色配色 */
.text-gradient { background: linear-gradient(135deg, #22c55e 0%, #059669 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-alt { background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-dark { background: linear-gradient(135deg, #16a34a 0%, #166534 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* 表格样式 */
.table-wrapper { overflow-x: auto; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; }
.table-wrapper table { min-width: 100%; }
.table-wrapper thead { background: #f9fafb; }
.table-wrapper tbody tr:hover { background: #f0fdf4 !important; }
.table-wrapper th { white-space: nowrap; font-weight: 600; color: #6b7280; border-bottom: 1px solid #e5e7eb; }
.table-wrapper td { white-space: nowrap; border-bottom: 1px solid #f3f4f6; }

/* Tag标签 */
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 9999px; font-size: 12px; font-weight: 500; }

/* 动画 */
.fade-in { animation: fadeInUp 0.5s ease both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* 加载动画 */
.loading-spinner { width: 24px; height: 24px; border: 3px solid #e5e7eb; border-top-color: #22c55e; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 主按钮 - Logo绿色渐变 */
.btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #059669 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, #16a34a 0%, #047857 100%);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #e2e8f0;
  color: #475569;
}

/* 主导航Tab - Logo绿色配色 */
.main-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #64748b;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
}
.main-nav-tab:hover {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.05);
}
.main-nav-tab.active {
  color: white;
  background: linear-gradient(135deg, #22c55e 0%, #059669 100%);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

/* 渐变边框卡片 */
.gradient-border-card {
  position: relative;
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
}
.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(5, 150, 105, 0.3), rgba(22, 163, 74, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: inherit;
  pointer-events: none;
}

/* 卡片悬浮 - Logo绿色配色 */
.card-hover-primary:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
  transform: translateY(-2px);
}

/* 表单聚焦 - Logo绿色配色 */
.form-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
.form-select:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* 进度条 - Logo绿色配色 */
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, #22c55e, #059669);
}
.progress-fill-light {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

/* 统计卡片悬浮 */
.stat-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.1);
}

/* 攻略卡片悬浮 */
.guide-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.guide-card:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
  transform: translateY(-4px);
}

/* 浅色模式 — 浅绿底 + 微信绿强调 */
html:not(.dark) {
  --mc-bg: #f0fdf4;
  --mc-bg-elevated: #ffffff;
  --mc-bg-section: #ecfdf5;
  --mc-bg-card: #ffffff;
  --mc-bg-hover: #dcfce7;
  --mc-bg-code: #f1f5f9;
  --mc-accent: #07c160;
  --mc-accent-strong: #06ad56;
  --mc-accent-muted: rgba(7, 193, 96, 0.12);
  --mc-accent-glow: rgba(7, 193, 96, 0.1);
  --mc-text: #14532d;
  --mc-text-muted: #4b5563;
  --mc-border: rgba(7, 193, 96, 0.16);
  color-scheme: light;
}

html:not(.dark),
html:not(.dark) body {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, var(--mc-accent-glow), transparent 58%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(7, 193, 96, 0.05), transparent 50%),
    var(--mc-bg);
  color: var(--mc-text);
}

html:not(.dark) body.bg-gray-50 {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, var(--mc-accent-glow), transparent 58%),
    var(--mc-bg) !important;
}

html:not(.dark) .bg-gray-50 { background: var(--mc-bg-section) !important; }
html:not(.dark) .bg-gray-100 { background: #ecfdf5 !important; }
html:not(.dark) .bg-white { background: var(--mc-bg-card) !important; }
html:not(.dark) .border-gray-100,
html:not(.dark) .border-gray-200 { border-color: var(--mc-border) !important; }
html:not(.dark) .text-gray-900 { color: #14532d !important; }
html:not(.dark) .text-gray-800 { color: #166534 !important; }
html:not(.dark) .text-gray-700 { color: #15803d !important; }
html:not(.dark) .text-gray-600 { color: var(--mc-text-muted) !important; }
html:not(.dark) .text-gray-500 { color: #6b7280 !important; }
html:not(.dark) .hover\:bg-gray-50:hover { background: var(--mc-bg-hover) !important; }
html:not(.dark) .hover\:bg-gray-100:hover { background: var(--mc-accent-muted) !important; }

html:not(.dark) .site-header,
html:not(.dark) header.site-header {
  background: rgba(240, 253, 244, 0.92) !important;
  border-color: var(--mc-border) !important;
  box-shadow: 0 1px 0 rgba(7, 193, 96, 0.06) !important;
}

/* 浅色模式 Logo — 微信绿 #07c160 */
html:not(.dark) .site-nav-logo--mono,
html:not(.dark) .site-header .site-nav-logo,
html:not(.dark) #auth-promo-logo {
  filter: brightness(0) saturate(100%) invert(52%) sepia(94%) saturate(520%) hue-rotate(107deg) brightness(96%) contrast(90%);
}

html:not(.dark) .nav-link {
  color: var(--mc-text-muted);
}

html:not(.dark) .nav-link:hover {
  color: var(--mc-accent-strong);
  background: var(--mc-accent-muted);
}

html:not(.dark) .nav-link.is-active {
  color: #ffffff;
  background: var(--mc-accent);
  border-radius: 9999px;
  font-weight: 600;
}

html:not(.dark) .nav-auth-btn {
  color: var(--mc-accent-strong) !important;
  background: transparent;
  border: 1px solid var(--mc-accent) !important;
}

html:not(.dark) .nav-auth-btn:hover {
  background: var(--mc-accent-muted) !important;
}

html:not(.dark) .page-hero-band {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%) !important;
  border-color: var(--mc-border) !important;
  box-shadow: 0 12px 36px rgba(7, 193, 96, 0.08) !important;
}

html:not(.dark) .page-hero-title {
  color: #14532d !important;
}

html:not(.dark) .page-hero-intro {
  color: var(--mc-text-muted) !important;
}

html:not(.dark) body.carbon-home,
html:not(.dark) body.auth-page.carbon-home {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, var(--mc-accent-glow), transparent 58%),
    var(--mc-bg);
}

/* 暗色模式 — 深黑底 + 中心暗绿光晕 + 微信绿强调 */
html.dark {
  --mc-bg: #0a0a0a;
  --mc-bg-elevated: #111111;
  --mc-bg-section: #121212;
  --mc-bg-card: #1a1a1a;
  --mc-bg-hover: #252525;
  --mc-bg-code: #1e1e2e;
  --mc-accent: #07c160;
  --mc-accent-strong: #06ad56;
  --mc-accent-muted: rgba(7, 193, 96, 0.14);
  --mc-accent-glow: rgba(7, 193, 96, 0.1);
  --mc-text: #ffffff;
  --mc-text-muted: #c8c8c8;
  --mc-border: rgba(255, 255, 255, 0.10);
  color-scheme: dark;
}
html.dark,
html.dark body {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, var(--mc-accent-glow), transparent 58%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(7, 193, 96, 0.05), transparent 50%),
    var(--mc-bg);
  color: var(--mc-text);
}
html.dark .bg-white { background: var(--mc-bg-card) !important; }
html.dark .bg-gray-50 { background: var(--mc-bg-elevated) !important; }
html.dark .bg-gray-100 { background: var(--mc-bg-card) !important; }
html.dark .bg-gray-200 { background: var(--mc-bg-hover) !important; }
html.dark .border-gray-100,
html.dark .border-gray-200 { border-color: var(--mc-border) !important; }
html.dark .border-gray-300 { border-color: rgba(255, 255, 255, 0.12) !important; }
html.dark .text-gray-900 { color: var(--mc-text) !important; }
html.dark .text-gray-800 { color: #f5f5f5 !important; }
html.dark .text-gray-700 { color: #ececec !important; }
html.dark .text-gray-600 { color: #e0e0e0 !important; }
html.dark .text-gray-500 { color: var(--mc-text-muted) !important; }
html.dark .text-gray-400 { color: #8a8a8a !important; }
html.dark .bg-white .text-gray-900,
html.dark .bg-gray-100 .text-gray-900,
html.dark .bg-gray-200 .text-gray-900 { color: var(--mc-text) !important; }
html.dark .bg-white .text-gray-800,
html.dark .bg-gray-100 .text-gray-800,
html.dark .bg-gray-200 .text-gray-800 { color: #f4f4f5 !important; }
html.dark .bg-white .text-gray-700,
html.dark .bg-gray-100 .text-gray-700,
html.dark .bg-gray-200 .text-gray-700 { color: #e4e4e7 !important; }
html.dark .bg-white .text-gray-600,
html.dark .bg-gray-100 .text-gray-600,
html.dark .bg-gray-200 .text-gray-600 { color: #e0e0e0 !important; }
html.dark .bg-white .text-gray-500,
html.dark .bg-gray-100 .text-gray-500,
html.dark .bg-gray-200 .text-gray-500 { color: var(--mc-text-muted) !important; }
html.dark .bg-white .text-gray-400,
html.dark .bg-gray-100 .text-gray-400,
html.dark .bg-gray-200 .text-gray-400 { color: #8a8a8a !important; }
html.dark .hover\:bg-gray-50:hover { background: var(--mc-bg-hover) !important; }
html.dark .hover\:bg-gray-100:hover { background: #2a2a2a !important; }
html.dark .site-header,
html.dark header.site-header {
  background: rgba(10, 10, 10, 0.92) !important;
  border-color: var(--mc-border) !important;
  box-shadow: none !important;
}
html.dark .site-nav-logo--mono {
  filter: brightness(0) saturate(100%) invert(72%) sepia(48%) saturate(620%) hue-rotate(86deg) brightness(103%);
}
html.dark .nav-link {
  color: var(--mc-text-muted);
}
html.dark .nav-link:hover {
  color: var(--mc-text);
  background: rgba(255, 255, 255, 0.05);
}
html.dark .nav-link.is-active {
  color: var(--mc-bg);
  background: var(--mc-accent);
  border-radius: 9999px;
  font-weight: 600;
}
html.dark .nav-auth-btn {
  color: var(--mc-text) !important;
  background: transparent;
  border: 1px solid var(--mc-accent);
  border-radius: 0.5rem;
  box-shadow: none;
}
html.dark .nav-auth-btn:hover {
  background: var(--mc-accent-muted);
  color: var(--mc-accent) !important;
}
html.dark .site-header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
html.dark .site-header-icon-btn svg,
html.dark .site-header-menu-btn svg {
  color: var(--mc-text-muted);
}
html.dark .site-mobile-nav-backdrop {
  background: rgba(0, 0, 0, 0.65);
}
html.dark .site-mobile-nav-panel {
  background: rgba(17, 17, 17, 0.98);
  border-bottom-color: var(--mc-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
html.dark .site-mobile-nav-link {
  color: var(--mc-text-muted);
}
html.dark .site-mobile-nav-link:hover {
  color: var(--mc-text);
  background: rgba(255, 255, 255, 0.05);
}
html.dark .site-mobile-nav-link.is-active {
  color: var(--mc-bg);
  background: var(--mc-accent);
  border-radius: 0.75rem;
  font-weight: 600;
}
html.dark #language-menu,
html.dark #user-menu-panel {
  background: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
}
html.dark .table-wrapper {
  background: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
}
html.dark .table-wrapper thead { background: var(--mc-bg-elevated) !important; }
html.dark .table-wrapper td,
html.dark .table-wrapper th { border-color: var(--mc-border) !important; }
html.dark .table-wrapper tbody tr:hover { background: var(--mc-accent-muted) !important; }
html.dark .btn-primary {
  background: var(--mc-accent);
  color: var(--mc-bg);
  box-shadow: 0 4px 16px rgba(7, 193, 96, 0.32);
  border-radius: 0.5rem;
}
html.dark .btn-primary:hover {
  background: var(--mc-accent-strong);
  color: var(--mc-bg);
}
html.dark .loading-spinner { border-top-color: var(--mc-accent); }
html.dark ::-webkit-scrollbar-thumb { background: #3f3f46; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #52525b; }

/* 浮动侧边栏 — 浅色模式 */
html:not(.dark) #floating-sidebar-panel {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: var(--mc-border) !important;
  box-shadow: 0 12px 40px rgba(7, 193, 96, 0.1), 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) #floating-sidebar-panel .bg-white {
  background: #fff !important;
  border-color: var(--mc-border) !important;
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.06);
}
html:not(.dark) #floating-sidebar-panel .border-emerald-100,
html:not(.dark) #floating-sidebar-panel .border-gray-100 {
  border-color: var(--mc-border) !important;
}
html:not(.dark) #floating-sidebar-panel .text-emerald-600,
html:not(.dark) #floating-sidebar-panel svg.text-emerald-600 {
  color: var(--mc-accent-strong) !important;
}
html:not(.dark) #floating-sidebar-panel a.bg-white:hover,
html:not(.dark) #floating-sidebar-panel button.bg-white:hover {
  border-color: rgba(7, 193, 96, 0.35) !important;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.12) !important;
}
html:not(.dark) #floating-sidebar-panel .group .bg-gray-900 {
  background: #14532d !important;
}
html:not(.dark) #floating-sidebar-panel .border-l-gray-900 {
  border-left-color: #14532d !important;
}

/* 侧边栏弹窗 — 浅色模式遮罩 */
html:not(.dark) [id^="sb-modal-"] {
  background: rgba(15, 23, 42, 0.28) !important;
}
html:not(.dark) .sb-modal-close svg {
  color: var(--mc-accent-strong) !important;
}

html.dark #floating-sidebar-panel {
  background: rgba(26, 26, 26, 0.92) !important;
  border-color: var(--mc-border) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45) !important;
}
html.dark #floating-sidebar-panel .bg-white {
  background: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
}
html.dark #floating-sidebar-panel .border-amber-100 {
  border-color: rgba(251, 191, 36, 0.28) !important;
}
html.dark #floating-sidebar-panel .bg-gradient-to-br.from-amber-50 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(26, 26, 26, 0.4)) !important;
}
html.dark #floating-sidebar-panel .text-gray-500,
html.dark #floating-sidebar-panel svg.text-gray-500,
html.dark #floating-sidebar-panel .text-emerald-600,
html.dark #floating-sidebar-panel svg.text-emerald-600 {
  color: var(--mc-text-muted) !important;
}
html.dark #floating-sidebar-panel .border-emerald-100,
html.dark #floating-sidebar-panel .border-gray-100 {
  border-color: var(--mc-border) !important;
}
html.dark #floating-sidebar-panel button.bg-white:hover,
html.dark #floating-sidebar-panel a.bg-white:hover {
  border-color: rgba(7, 193, 96, 0.35) !important;
}
html.dark #floating-sidebar-panel button.bg-gradient-to-br.from-green-400,
html.dark #floating-sidebar-panel .from-green-400 {
  background: linear-gradient(135deg, var(--mc-accent) 0%, var(--mc-accent-strong) 100%) !important;
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.35) !important;
}

/* 侧边栏弹窗内容深色模式 */
html.dark .sb-modal-panel {
  background: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55) !important;
}
html.dark .sb-modal-close {
  background: var(--mc-bg-hover) !important;
}
html.dark .sb-modal-close:hover {
  background: #2f2f2f !important;
}
html.dark .sb-modal-close svg {
  color: var(--mc-text-muted) !important;
}
html.dark .sb-modal-panel-icon {
  background: var(--mc-bg-elevated) !important;
  border-color: var(--mc-border) !important;
}
html.dark .sb-modal-panel-icon svg {
  color: var(--mc-text-muted) !important;
}
html.dark .sb-modal-panel-title,
html.dark .sb-modal-qr-title,
html.dark .sb-contact-title,
html.dark .sb-promo-title,
html.dark .sb-plan-price,
html.dark .sb-invite-code,
html.dark .sb-promo-desc strong {
  color: var(--mc-text) !important;
}
html.dark .sb-modal-panel-desc,
html.dark .sb-modal-qr-desc,
html.dark .sb-contact-value,
html.dark .sb-promo-desc,
html.dark .sb-feature-list li,
html.dark .sb-share-btn-label,
html.dark .sb-field-label,
html.dark .sb-type-label {
  color: var(--mc-text-muted) !important;
}
html.dark .sb-contact-meta,
html.dark .sb-modal-note-text,
html.dark .sb-plan-unit,
html.dark .sb-plan-name,
html.dark .sb-invite-label,
html.dark .sb-feature-list svg {
  color: #71717a !important;
}
html.dark .sb-contact-item,
html.dark .sb-plan-card,
html.dark .sb-share-btn,
html.dark .sb-type-card,
html.dark .sb-promo-box,
html.dark .sb-invite-row,
html.dark .sb-modal-qr-wrap {
  background: var(--mc-bg-elevated) !important;
  border-color: var(--mc-border) !important;
}
html.dark .sb-contact-item:hover,
html.dark .sb-plan-card:hover,
html.dark .sb-share-btn:hover,
html.dark .sb-type-option:hover .sb-type-card {
  background: var(--mc-bg-hover) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html.dark .sb-plan-card--featured,
html.dark .sb-type-option .peer:checked + .sb-type-card {
  background: rgba(7, 193, 96, 0.1) !important;
  border-color: rgba(7, 193, 96, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(7, 193, 96, 0.15) !important;
}
html.dark .sb-plan-badge {
  background: var(--mc-accent) !important;
  color: var(--mc-bg) !important;
}
html.dark .sb-modal-note {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--mc-border) !important;
}
html.dark .sb-modal-note-title {
  color: var(--mc-text-muted) !important;
}
html.dark .sb-contact-icon,
html.dark .sb-share-btn-icon {
  background: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
  color: var(--mc-text-muted) !important;
}
html.dark .sb-contact-icon--brand,
html.dark .sb-share-btn-icon--brand {
  background: var(--mc-bg-card) !important;
}
html.dark .sb-modal-primary-btn,
html.dark .sb-btn-secondary {
  background: var(--mc-accent) !important;
  border-color: var(--mc-accent) !important;
  color: var(--mc-bg) !important;
}
html.dark .sb-modal-primary-btn:hover,
html.dark .sb-btn-secondary:hover {
  background: var(--mc-accent-strong, #06ad56) !important;
  border-color: var(--mc-accent-strong, #06ad56) !important;
}
html.dark .sb-btn-outline,
html.dark .sb-btn-ghost {
  background: var(--mc-bg-elevated) !important;
  border-color: var(--mc-border) !important;
  color: var(--mc-text-muted) !important;
}
html.dark .sb-btn-outline:hover,
html.dark .sb-btn-ghost:hover {
  background: var(--mc-bg-hover) !important;
  color: var(--mc-text) !important;
}
html.dark .sb-input-readonly,
html.dark .sb-textarea,
html.dark .sb-input-field {
  background: var(--mc-bg-elevated) !important;
  border-color: var(--mc-border) !important;
  color: var(--mc-text) !important;
}
html.dark .sb-input-readonly {
  color: var(--mc-text-muted) !important;
}
html.dark .sb-textarea::placeholder,
html.dark .sb-input-field::placeholder {
  color: #6b6b6b !important;
}
html.dark .sb-textarea:focus,
html.dark .sb-input-field:focus {
  border-color: rgba(7, 193, 96, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.15) !important;
}
html.dark .sb-share-letter {
  color: var(--mc-text-muted) !important;
}
html.dark #floating-sidebar-panel .group .bg-gray-900 {
  background: var(--mc-bg-card) !important;
  border: 1px solid var(--mc-border);
  color: var(--mc-text) !important;
}
html.dark #floating-sidebar-panel .border-l-gray-900 {
  border-left-color: var(--mc-bg-card) !important;
}
html.dark main .bg-indigo-600 .text-white,
html.dark main .bg-indigo-700 .text-white,
html.dark main .bg-purple-600 .text-white,
html.dark main .bg-green-600 .text-white,
html.dark main .bg-red-600 .text-white,
html.dark main .bg-black .text-white,
html.dark main .bg-indigo-600.text-white,
html.dark main .bg-indigo-700.text-white,
html.dark main .bg-purple-600.text-white,
html.dark main .bg-green-600.text-white,
html.dark main .bg-red-600.text-white,
html.dark main .bg-black.text-white,
html.dark main .from-indigo-600 .text-white,
html.dark main .from-purple-600 .text-white,
html.dark main .from-green-600 .text-white,
html.dark main .from-indigo-600.text-white,
html.dark main .from-purple-600.text-white,
html.dark main .from-green-600.text-white {
  color: #ffffff !important;
}
html.dark .from-indigo-50 {
  --tw-gradient-from: rgb(10 10 10 / 1) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(10 10 10 / 0) var(--tw-gradient-to-position) !important;
}
html.dark .via-white {
  --tw-gradient-stops: var(--tw-gradient-from), rgb(17 17 17 / 1) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}
html.dark .to-purple-50 {
  --tw-gradient-to: rgb(10 10 10 / 1) var(--tw-gradient-to-position) !important;
}
html.dark .bg-indigo-100 { background-color: var(--mc-accent-muted) !important; }
html.dark .bg-purple-100 { background-color: rgba(7, 193, 96, 0.08) !important; }
html.dark .bg-indigo-100\/60 { background-color: rgba(7, 193, 96, 0.12) !important; }
html.dark .modal-content { background: var(--mc-bg-card) !important; border-color: var(--mc-border); }

/* 深色模式 — 弹窗内周期/支付方式等选项按钮 */
html.dark .sub-opt-btn {
  background: var(--mc-bg-hover) !important;
  border-color: var(--mc-border) !important;
  color: var(--mc-text-muted) !important;
}
html.dark .sub-opt-btn:hover:not(.sub-opt-btn--active):not(:disabled) {
  border-color: rgba(7, 193, 96, 0.35) !important;
  color: var(--mc-text) !important;
}
html.dark .sub-opt-btn--active {
  background: var(--mc-accent) !important;
  border-color: var(--mc-accent) !important;
  color: #0a0a0a !important;
  box-shadow: 0 0 0 1px rgba(7, 193, 96, 0.45), 0 8px 20px rgba(7, 193, 96, 0.22) !important;
}
html.dark .sub-opt-btn--disabled,
html.dark .sub-opt-btn:disabled {
  background: var(--mc-bg-elevated) !important;
  border-color: var(--mc-border) !important;
  color: #71717a !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}
html.dark .shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important; }
html.dark .shadow-lg { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45) !important; }
html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
  --tw-ring-color: rgba(7, 193, 96, 0.35);
}
html.dark .text-indigo-600,
html.dark .text-indigo-500,
html.dark .hover\:text-indigo-400:hover,
html.dark .hover\:text-indigo-600:hover { color: var(--mc-accent) !important; }
html.dark .text-purple-600 { color: #d8b4fe !important; }
html.dark .text-amber-600 { color: #fcd34d !important; }
html.dark .text-cyan-600 { color: #67e8f9 !important; }
html.dark .bg-purple-100\/60 { background-color: rgba(168, 85, 247, 0.12) !important; }
html.dark .bg-amber-100\/60 { background-color: rgba(245, 158, 11, 0.12) !important; }
html.dark .bg-cyan-100\/60 { background-color: rgba(6, 182, 212, 0.12) !important; }
html.dark .bg-indigo-50 { background-color: rgba(99, 102, 241, 0.1) !important; }
html.dark .bg-purple-50 { background-color: rgba(168, 85, 247, 0.1) !important; }
html.dark .bg-cyan-50 { background-color: rgba(6, 182, 212, 0.1) !important; }
html.dark .bg-amber-50 { background-color: rgba(245, 158, 11, 0.1) !important; }
html.dark .bg-green-50 { background-color: rgba(34, 197, 94, 0.1) !important; }
html.dark .bg-red-50 { background-color: rgba(239, 68, 68, 0.1) !important; }
html.dark .bg-blue-50 { background-color: rgba(59, 130, 246, 0.1) !important; }
html.dark .bg-rose-50 { background-color: rgba(244, 63, 94, 0.1) !important; }
html.dark .bg-pink-50 { background-color: rgba(236, 72, 153, 0.1) !important; }
html.dark .border-amber-200,
html.dark .border-amber-300 { border-color: rgba(245, 158, 11, 0.28) !important; }
html.dark .border-cyan-200 { border-color: rgba(6, 182, 212, 0.28) !important; }
html.dark .text-amber-800 { color: #fde68a !important; }
html.dark .bg-rose-100,
html.dark .bg-pink-100 { opacity: 0.12; }

/* 顶部导航 — 与首页碳基圈浅色风格一致 */
.site-header {
  overflow: visible;
}
.site-nav-logo {
  display: block;
  height: 2rem;
  width: auto;
  object-fit: contain;
}
.site-nav-logo--mono {
  filter: brightness(0) saturate(100%);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover {
  color: #172033;
  background: #f1f5f9;
}
.nav-link.is-active {
  color: #172033;
  background: #f1f5f9;
  font-weight: 600;
}
.nav-link:focus-visible {
  outline: 2px solid #cbd5e1;
  outline-offset: 2px;
}
.nav-link:active {
  color: #172033;
  background: #e2e8f0;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  background: #1e293b;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
  max-width: none;
  overflow: visible;
}
.nav-auth-btn-text {
  display: inline-block;
  white-space: nowrap;
}
.site-header-guest-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.25rem;
}
@media (min-width: 640px) {
  .site-header-guest-group {
    gap: 0.5rem;
  }
}
.nav-auth-btn:hover {
  background: #0f172a;
  color: #fff !important;
}
.nav-auth-btn:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

/* 浅色模式显示太阳，深色模式显示月亮 */
.site-header-theme-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}
.floating-sidebar-theme-btn .site-header-theme-icon-wrap {
  width: 1.5rem;
  height: 1.5rem;
}
.floating-sidebar-theme-btn .site-header-theme-icon {
  position: absolute;
  inset: 0;
  margin: auto;
}
html.dark #floating-sidebar-panel .floating-sidebar-theme-btn {
  background: var(--mc-bg-elevated);
  border-color: var(--mc-border);
}
html.dark #floating-sidebar-panel .floating-sidebar-theme-btn .site-header-theme-icon--sun,
html.dark #floating-sidebar-panel .floating-sidebar-theme-btn .site-header-theme-icon--moon {
  color: var(--mc-text-muted);
}
html:not(.dark) #floating-sidebar-panel .floating-sidebar-theme-btn:hover {
  border-color: rgba(148, 163, 184, 0.35);
}
.site-header-theme-icon {
  display: block;
}
html:not(.dark) .site-header-theme-icon--moon {
  display: none;
}
html.dark .site-header-theme-icon--sun {
  display: none;
}

.site-header-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.site-header-icon-btn:hover {
  background: #f1f5f9;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header-user-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  min-width: 0;
  white-space: nowrap;
}
.site-header-user-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.carbon-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #818cf8, #a855f7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.carbon-user-avatar.is-sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
}

.carbon-user-avatar.is-initial {
  letter-spacing: 0;
  padding: 0 2px;
}

img.carbon-user-avatar {
  display: block;
  background: #e2e8f0;
}
.user-menu-panel {
  pointer-events: auto;
}
.user-menu-panel.is-open {
  display: block;
}
.user-menu-link {
  position: relative;
  z-index: 1;
  cursor: pointer;
  text-decoration: none;
}
.site-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}
.site-header-actions > * {
  flex-shrink: 0;
}
.site-header-menu-btn .site-header-menu-icon--close {
  display: none;
}
.site-header-menu-btn.is-open .site-header-menu-icon--open {
  display: none;
}
.site-header-menu-btn.is-open .site-header-menu-icon--close {
  display: block;
}
.site-mobile-nav-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  top: 3.5rem;
  bottom: 0;
  z-index: 49;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.site-mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-mobile-nav-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 3.5rem;
  z-index: 51;
  max-height: min(70vh, calc(100vh - 3.5rem));
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  padding: 0.5rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transform: translateY(-0.35rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-mobile-nav-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.site-mobile-nav-link {
  display: block;
  padding: 0.8rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-mobile-nav-link:hover {
  color: #172033;
  background: #f8fafc;
}
.site-mobile-nav-link.is-active {
  color: #172033;
  background: #f1f5f9;
  font-weight: 600;
}
body.site-mobile-nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-header-inner {
    height: 4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .site-nav-logo {
    height: 2rem;
  }
  .site-header-actions {
    gap: 0.5rem;
  }
  .site-mobile-nav-backdrop,
  .site-mobile-nav-panel {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .site-mobile-nav-backdrop,
  .site-mobile-nav-panel {
    top: 4rem;
  }
}

@media (max-width: 767px) {
  .site-nav-logo {
    height: 1.65rem;
  }
  .nav-auth-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  #user-menu-panel {
    width: min(17rem, calc(100vw - 1.5rem));
  }
  #floating-sidebar-panel {
    right: 0.65rem !important;
    bottom: max(0.65rem, env(safe-area-inset-bottom)) !important;
    padding: 0.45rem 0.55rem !important;
    border-radius: 30px !important;
  }
  #floating-sidebar-panel > .flex {
    flex-direction: column !important;
    gap: 0.45rem !important;
  }
  #floating-sidebar-panel a,
  #floating-sidebar-panel button {
    width: 2.65rem !important;
    height: 2.65rem !important;
    min-width: 2.65rem;
    min-height: 2.65rem;
  }
  #floating-sidebar-panel a svg,
  #floating-sidebar-panel button svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
  }
  #floating-sidebar-panel .group-hover\:opacity-100 {
    display: none !important;
  }
  #announcement-bar {
    top: 3.5rem !important;
  }
}

/* 法律页章节序号徽章 */
.legal-section-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background-color: #059669;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html.dark body.legal-page .legal-section-num {
  background-color: var(--mc-accent) !important;
  color: var(--mc-bg) !important;
}

/* 法律声明页（隐私政策 / 服务条款 / 免责声明 / Cookie 设置）— 深色模式 */
html.dark body.legal-page main {
  color: var(--mc-text-muted);
}
html.dark body.legal-page main h1,
html.dark body.legal-page main h2,
html.dark body.legal-page main h3,
html.dark body.legal-page main .font-bold.text-gray-900,
html.dark body.legal-page main .font-semibold.text-gray-800 {
  color: var(--mc-text) !important;
}
html.dark body.legal-page main .bg-white {
  background: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
  box-shadow: none !important;
}
html.dark body.legal-page .legal-kicker.bg-indigo-100\/60 {
  background: rgba(99, 102, 241, 0.14) !important;
  color: #a5b4fc !important;
}
html.dark body.legal-page .legal-kicker.bg-purple-100\/60 {
  background: rgba(168, 85, 247, 0.14) !important;
  color: #d8b4fe !important;
}
html.dark body.legal-page .legal-kicker.bg-amber-100\/60 {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fcd34d !important;
}
html.dark body.legal-page .legal-kicker.bg-cyan-100\/60 {
  background: rgba(6, 182, 212, 0.14) !important;
  color: #67e8f9 !important;
}
html.dark body.legal-page .bg-indigo-50,
html.dark body.legal-page .bg-purple-50,
html.dark body.legal-page .bg-cyan-50,
html.dark body.legal-page .bg-green-50,
html.dark body.legal-page .bg-amber-50,
html.dark body.legal-page .bg-rose-50,
html.dark body.legal-page .bg-red-50,
html.dark body.legal-page .bg-blue-50 {
  background: var(--mc-bg-elevated) !important;
  border: 1px solid var(--mc-border);
}
html.dark body.legal-page .bg-indigo-50.rounded-xl p-4,
html.dark body.legal-page .bg-purple-50.rounded-xl p-4,
html.dark body.legal-page .bg-cyan-50.rounded-xl p-4,
html.dark body.legal-page .bg-green-50.rounded-xl p-4,
html.dark body.legal-page .bg-amber-50.rounded-xl p-4,
html.dark body.legal-page .bg-rose-50.rounded-xl p-4 {
  border: 1px solid var(--mc-border);
}
html.dark body.legal-page .text-indigo-700 { color: #a5b4fc !important; }
html.dark body.legal-page .text-purple-700 { color: #d8b4fe !important; }
html.dark body.legal-page .text-cyan-700 { color: #67e8f9 !important; }
html.dark body.legal-page .text-green-700 { color: var(--mc-accent) !important; }
html.dark body.legal-page .text-amber-700 { color: #fcd34d !important; }
html.dark body.legal-page .text-rose-700 { color: #fda4af !important; }
html.dark body.legal-page .text-red-700 { color: #fca5a5 !important; }
html.dark body.legal-page .text-blue-700 { color: #93c5fd !important; }
html.dark body.legal-page .bg-amber-50.border-amber-200,
html.dark body.legal-page .bg-amber-50.border-amber-300 {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
html.dark body.legal-page .text-amber-800 {
  color: #fde68a !important;
}
html.dark body.legal-page .text-amber-600 { color: #fcd34d !important; }
html.dark body.legal-page .text-cyan-600 { color: #67e8f9 !important; }
html.dark body.legal-page .text-purple-600 { color: #d8b4fe !important; }
html.dark body.legal-page .text-pink-600 { color: #f9a8d4 !important; }
html.dark body.legal-page .text-indigo-500 { color: #a5b4fc !important; }
html.dark body.legal-page .border-amber-200,
html.dark body.legal-page .border-amber-300,
html.dark body.legal-page .border-amber-400 { border-color: rgba(245, 158, 11, 0.35) !important; }
html.dark body.legal-page .border-red-200 { border-color: rgba(239, 68, 68, 0.3) !important; }
html.dark body.legal-page .border-blue-200 { border-color: rgba(59, 130, 246, 0.3) !important; }
html.dark body.legal-page .border-green-200 { border-color: rgba(34, 197, 94, 0.3) !important; }
html.dark body.legal-page .border-cyan-200 { border-color: rgba(6, 182, 212, 0.3) !important; }
html.dark body.legal-page .bg-red-50.rounded-lg { background: rgba(239, 68, 68, 0.1) !important; }
html.dark body.legal-page .text-red-500 { color: #fca5a5 !important; }
html.dark body.legal-page .border-gray-200.rounded-xl { border-color: var(--mc-border) !important; }
html.dark body.legal-page table thead tr.bg-gray-50 { background: var(--mc-bg-hover) !important; }
html.dark body.legal-page table tbody tr.bg-gray-50 { background: rgba(255, 255, 255, 0.03) !important; }
html.dark body.legal-page table th,
html.dark body.legal-page table td { border-color: var(--mc-border) !important; }
html.dark body.legal-page .font-mono { color: #e4e4e7; }
html.dark body.legal-page .legal-nav a {
  color: var(--mc-text-muted) !important;
}
html.dark body.legal-page .legal-nav a:hover {
  color: var(--mc-accent) !important;
}
html.dark body.legal-page .legal-nav .legal-nav-divider {
  color: #52525b !important;
}
html.dark body.legal-page .cookie-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
html.dark body.legal-page .toggle-label {
  background: #3f3f46;
}
html.dark body.legal-page .toggle-input:checked + .toggle-label {
  background: var(--mc-accent);
}
html.dark body.legal-page .toggle-label::after {
  background: #f4f4f5;
}
html.dark body.legal-page #save-toast {
  background: var(--mc-bg-card);
  border: 1px solid var(--mc-border);
  color: var(--mc-text);
}
html.dark body.legal-page .btn-secondary {
  background: transparent;
  border-color: var(--mc-border) !important;
  color: var(--mc-text-muted) !important;
}
html.dark body.legal-page .btn-secondary:hover {
  background: var(--mc-bg-hover);
  color: var(--mc-text) !important;
}

/* 联系我们页 */
.contact-brand-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}
.contact-brand-icon img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  display: block;
}
html.dark body.contact-page {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, var(--mc-accent-glow), transparent 58%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(7, 193, 96, 0.05), transparent 50%),
    var(--mc-bg);
  color: var(--mc-text);
}
html.dark body.contact-page .contact-card,
html.dark body.contact-page .contact-panel {
  background: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
  box-shadow: none !important;
}
html.dark body.contact-page .contact-tip {
  background: var(--mc-bg-elevated) !important;
  border: 1px solid var(--mc-border);
}
html.dark body.contact-page .contact-brand-icon {
  background: var(--mc-bg-elevated);
  border-color: var(--mc-border);
}
html.dark body.contact-page .text-blue-600 { color: #38bdf8 !important; }
html.dark body.contact-page .text-green-600 { color: var(--mc-accent) !important; }
html.dark body.contact-page .text-amber-600 { color: #fadb14 !important; }
html.dark body.contact-page .text-amber-600 a { color: #fadb14 !important; }

/* 站点页脚 */
.site-footer {
  margin-top: auto;
  background: #0a0a0a;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

/* 页脚顶部 CTA */
.site-footer-cta {
  padding: 3rem 1.25rem 2.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-cta-title {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.site-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #0a0a0a;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.site-footer-cta-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.site-footer-cta-arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.site-footer-cta-btn:hover .site-footer-cta-arrow {
  transform: translateX(2px);
}

@media (max-width: 479px) {
  .site-footer-cta {
    padding: 2.25rem 1rem 2rem;
  }

  .site-footer-cta-btn {
    width: 100%;
    max-width: 18rem;
  }
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 720px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 193, 96, 0.45), transparent);
  pointer-events: none;
}

.site-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.site-footer-cols-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

@media (max-width: 767px) {
  .site-footer-cols-wrap--hide-mobile {
    display: none !important;
  }

  .site-footer-inner {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .site-footer-brand {
    padding-bottom: 0.25rem;
  }
}

@media (min-width: 640px) {
  .site-footer-inner {
    padding: 2.25rem 1.5rem 1.75rem;
  }

  .site-footer-cols-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .site-footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 2fr);
    gap: 2rem 2.5rem;
    align-items: start;
  }

  .site-footer-cols-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
}

.site-footer-brand-title {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.site-footer-brand-title:hover {
  color: #07c160;
}

.site-footer-brand-desc {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 20rem;
}

.site-footer-social-title {
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.site-footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  max-width: 16.5rem;
}

.site-footer-social-icon-btn {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.site-footer-social-icon-btn svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.site-footer-social-icon-btn:hover {
  color: #ffffff;
  border-color: rgba(7, 193, 96, 0.35);
  background: rgba(7, 193, 96, 0.1);
  transform: translateY(-1px);
}

.site-footer-qr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 16.5rem;
}

@media (max-width: 479px) {
  .site-footer-qr-grid {
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer-social-icons {
    max-width: 100%;
  }

  .site-footer-cols-wrap {
    gap: 1.25rem 0.85rem;
  }

  .site-footer-link {
    min-height: 2rem;
  }

  .site-footer-brand-desc {
    max-width: none;
  }

  .site-footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    gap: 0.65rem;
  }

  .site-footer-legal {
    gap: 0.35rem 0.75rem;
  }
}

.site-footer-qr-btn {
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.site-footer-qr-box {
  aspect-ratio: 1;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-footer-qr-btn:hover .site-footer-qr-box {
  transform: translateY(-2px);
  border-color: rgba(7, 193, 96, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.site-footer-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer-qr-label {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  line-height: 1.25;
  color: #94a3b8;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 英文页脚：二维码区加宽、标签单行显示 */
html[lang="en"] .site-footer-qr-grid,
.site-footer--en .site-footer-qr-grid {
  max-width: 21rem;
  gap: 0.625rem;
  grid-template-columns: repeat(4, minmax(4.5rem, 1fr));
}

html[lang="en"] .site-footer-qr-label,
.site-footer--en .site-footer-qr-label {
  font-size: 0.6875rem;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

html[lang="en"] .site-footer-brand-desc,
.site-footer--en .site-footer-brand-desc {
  max-width: 22rem;
  line-height: 1.6;
}

html[lang="en"] .site-footer-social-title,
.site-footer--en .site-footer-social-title {
  letter-spacing: 0.08em;
}

html[lang="en"] .site-footer-status,
.site-footer--en .site-footer-status {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  html[lang="en"] .site-footer-bottom,
  .site-footer--en .site-footer-bottom {
    gap: 1rem;
  }

  html[lang="en"] .site-footer-legal,
  .site-footer--en .site-footer-legal {
    justify-content: center;
    flex: 1;
    min-width: 0;
  }
}

.site-footer-col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer-col-title-icon {
  width: 1rem;
  height: 1rem;
  color: #64748b;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer-col-title-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer-link {
  font-size: 0.8125rem;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  min-height: 1.75rem;
}

.site-footer-link-icon {
  width: 0.9375rem;
  height: 0.9375rem;
  color: #64748b;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.site-footer-link-icon svg {
  width: 0.9375rem;
  height: 0.9375rem;
  display: block;
}

.site-footer-link-text {
  line-height: 1.35;
}

.site-footer-link:hover {
  color: #07c160;
}

.site-footer-link:hover .site-footer-link-icon {
  color: #07c160;
}

.site-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer-copy {
  font-size: 0.75rem;
  color: #64748b;
}

.site-footer-copy-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer-copy-link:hover {
  color: #07c160;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.site-footer-legal a {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.site-footer-legal a:hover {
  color: #07c160;
}

.site-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.site-footer-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #07c160;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.2);
}

.site-footer-modal {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

html.dark .site-footer-modal {
  background: var(--mc-bg-elevated) !important;
  border-color: var(--mc-border) !important;
}

html.dark .site-footer-modal h3 {
  color: var(--mc-text) !important;
}

html.dark .site-footer-modal p {
  color: var(--mc-text-muted) !important;
}

html.dark footer.site-footer .site-footer-link:hover,
html.dark footer.site-footer .site-footer-link:hover .site-footer-link-icon,
html.dark footer.site-footer .site-footer-legal a:hover {
  color: var(--mc-accent) !important;
}

html.dark footer.site-footer .site-footer-social-icon-btn:hover {
  color: #ffffff !important;
  border-color: rgba(7, 193, 96, 0.45) !important;
  background: rgba(7, 193, 96, 0.12) !important;
}

html.dark footer.site-footer .site-footer-qr-btn:hover .site-footer-qr-box {
  border-color: rgba(7, 193, 96, 0.45) !important;
}

/* 页面容器 — 与碳基圈 carbon-shell 同宽 */
.page-shell {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* 侧栏 + 主内容（个人中心）：17% / 83% */
.page-layout-17-83 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .page-layout-17-83 {
    grid-template-columns: minmax(0, 17fr) minmax(0, 83fr);
  }
}

/* 主内容 + 侧栏（元币中心）：75% / 25% */
.page-layout-75-25 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .page-layout-75-25 {
    grid-template-columns: minmax(0, 75fr) minmax(0, 25fr);
  }
}

.page-hero-band {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.8)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015), rgba(100, 116, 139, 0.03));
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.page-hero-title {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: #172033;
}

.page-hero-intro {
  margin-top: 0.5rem;
  max-width: 700px;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

html.dark body.account-page .page-hero-band,
html.dark body.coin-page .page-hero-band {
  background: var(--mc-bg-card) !important;
  background-image: none !important;
  border-color: var(--mc-border) !important;
  box-shadow: none !important;
}

html.dark body.account-page .page-hero-title,
html.dark body.coin-page .page-hero-title {
  color: var(--mc-text) !important;
}

html.dark body.account-page .page-hero-intro,
html.dark body.coin-page .page-hero-intro {
  color: var(--mc-text-muted) !important;
}

/* ===== 全站表单控件可读性 ===== */
html:not(.dark) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html:not(.dark) textarea,
html:not(.dark) select {
  background-color: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.dark textarea,
html.dark select {
  background-color: var(--mc-bg-elevated);
  color: var(--mc-text);
  border-color: var(--mc-border);
  -webkit-text-fill-color: var(--mc-text);
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #71717a;
  opacity: 1;
}

html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
  border-color: rgba(7, 193, 96, 0.45);
  outline: none;
}

html.dark .form-surface-light,
html.dark [data-form-surface="light"],
html.dark .admin-form-light {
  color-scheme: light !important;
}

html.dark .form-surface-light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.dark .form-surface-light textarea,
html.dark .form-surface-light select,
html.dark [data-form-surface="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.dark [data-form-surface="light"] textarea,
html.dark [data-form-surface="light"] select,
html.dark .admin-form-light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.dark .admin-form-light textarea,
html.dark .admin-form-light select {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
  -webkit-text-fill-color: #111827 !important;
  caret-color: #111827;
}

html.dark .form-surface-light input::placeholder,
html.dark .form-surface-light textarea::placeholder,
html.dark [data-form-surface="light"] input::placeholder,
html.dark [data-form-surface="light"] textarea::placeholder,
html.dark .admin-form-light input::placeholder,
html.dark .admin-form-light textarea::placeholder {
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af;
  opacity: 1;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #111827 !important;
  transition: background-color 9999s ease-out 0s;
}

html.dark input:-webkit-autofill,
html.dark textarea:-webkit-autofill,
html.dark select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--mc-bg-elevated) inset !important;
  -webkit-text-fill-color: var(--mc-text) !important;
}

html.dark .form-surface-light input:-webkit-autofill,
html.dark .form-surface-light textarea:-webkit-autofill,
html.dark [data-form-surface="light"] input:-webkit-autofill,
html.dark .admin-form-light input:-webkit-autofill,
html.dark .admin-form-light textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #111827 !important;
}

/* Ghost icon shell — transparent bg + stroke SVG (light: green, dark: neutral) */
.ghost-icon-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #07c160;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: color 0.2s ease;
}
.ghost-icon-shell svg {
  stroke: currentColor;
  fill: none;
}
html:not(.dark) .ghost-icon-shell,
html:not(.dark) .ghost-icon-shell svg {
  color: #07c160;
}
html.dark .ghost-icon-shell,
html.dark .ghost-icon-shell svg {
  color: #d4d4d8;
}

/* ===== 全站促销/公告弹窗 ===== */
body.site-promo-popup-open { overflow: hidden; }
.site-promo-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.site-promo-popup-shell {
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.site-promo-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.site-promo-popup-header-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  flex-shrink: 0;
}
.site-promo-popup-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.site-promo-popup-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.site-promo-popup-tab span {
  font-size: 0.8125rem;
  line-height: 1;
}
.site-promo-popup-tab.is-active {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
}
.site-promo-popup-close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.site-promo-popup-close:hover { color: #475569; background: rgba(148, 163, 184, 0.12); }
.site-promo-popup-content {
  padding: 1rem 1.15rem;
  overflow-y: auto;
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.65;
}
.site-promo-popup-headline {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.site-promo-popup-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.site-promo-popup-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.site-promo-popup-sub {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: #64748b;
}
.site-promo-popup-body :where(p, ul, ol) { margin: 0.5rem 0; }
.site-promo-popup-body a { color: #2563eb; text-decoration: underline; }
.site-promo-popup-actions { margin-top: 1rem; }
.site-promo-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  background: #07c160;
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.22);
}
.site-promo-popup-cta:hover { background: #06ad56; }
.site-promo-popup-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.site-promo-popup-btn {
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-promo-popup-btn-secondary {
  color: #64748b;
}
.site-promo-popup-btn-secondary:hover {
  color: #475569;
  background: rgba(148, 163, 184, 0.12);
}
.site-promo-popup-btn-primary {
  color: #059669;
}
.site-promo-popup-btn-primary:hover {
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
}
/* 兼容旧类名 */
.site-promo-popup-muted {
  border: none;
  background: transparent;
  color: #059669;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.site-promo-popup-muted:hover { color: #047857; background: rgba(5, 150, 105, 0.1); border-radius: 0.5rem; }

html.dark .site-promo-popup-shell {
  background: var(--mc-bg-card);
  border-color: var(--mc-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
html.dark .site-promo-popup-header {
  border-bottom-color: var(--mc-border);
}
html.dark .site-promo-popup-header-title,
html.dark .site-promo-popup-title {
  color: var(--mc-text);
}
html.dark .site-promo-popup-tab {
  background: var(--mc-bg-elevated);
  border-color: var(--mc-border);
  color: var(--mc-text-muted);
}
html.dark .site-promo-popup-tab.is-active {
  color: var(--mc-accent);
  border-color: rgba(7, 193, 96, 0.4);
  background: rgba(7, 193, 96, 0.14);
}
html.dark .site-promo-popup-content,
html.dark .site-promo-popup-body {
  color: var(--mc-text-muted);
}
html.dark .site-promo-popup-sub {
  color: #94a3b8;
}
html.dark .site-promo-popup-footer {
  border-top-color: var(--mc-border);
}
html.dark .site-promo-popup-btn-secondary {
  color: #a1a1aa;
}
html.dark .site-promo-popup-btn-secondary:hover {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.08);
}
html.dark .site-promo-popup-btn-primary {
  color: #34d399;
}
html.dark .site-promo-popup-btn-primary:hover {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.14);
}
html.dark .site-promo-popup-muted {
  color: #34d399;
}
html.dark .site-promo-popup-muted:hover {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.14);
}
html.dark .site-promo-popup-cta {
  background: var(--mc-accent);
  color: var(--mc-bg) !important;
}
html.dark .site-promo-popup-cta:hover {
  background: var(--mc-accent-strong);
}

@media (max-width: 639px) {
  .site-promo-popup-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .site-promo-popup-tabs {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 0.35rem;
  }
  .site-promo-popup-close {
    margin-left: auto;
  }
}

/* ===== 横向 Tab 滑动条（移动端，可拖动） ===== */
.hscroll-wrap {
  position: relative;
  width: 100%;
}

.hscroll-viewport {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hscroll-viewport::-webkit-scrollbar {
  display: none;
}

.hscroll-track {
  display: none;
  position: relative;
  height: 1.25rem;
  margin-top: 0.35rem;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.hscroll-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.28);
  pointer-events: none;
}

.hscroll-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  min-width: 2.5rem;
  border-radius: 9999px;
  background: rgba(100, 116, 139, 0.85);
  cursor: grab;
  touch-action: none;
  will-change: left, width;
}

.hscroll-thumb.is-dragging {
  cursor: grabbing;
  background: rgba(71, 85, 105, 0.95);
  transition: none !important;
}

html.dark .hscroll-track::before {
  background: rgba(255, 255, 255, 0.14);
}

html.dark .hscroll-thumb {
  background: rgba(180, 180, 180, 0.75);
}

html.dark .hscroll-thumb.is-dragging {
  background: rgba(220, 220, 220, 0.9);
}

@media (max-width: 767px) {
  .hscroll-track.is-active {
    display: block;
  }
}

@media (min-width: 768px) {
  .hscroll-track {
    display: none !important;
  }
}
