:root{
  color-scheme:light;
  --theme-bg:#f5f8fc;
  --theme-panel:#fff;
  --theme-panel-2:#f8fbff;
  --theme-line:#dbe3ee;
  --theme-line-strong:#bfd0e5;
  --theme-text:#17243a;
  --theme-muted:#66758c;
  --theme-dim:#8190a6;
  --theme-blue:#2563eb;
  --theme-blue-soft:#eaf2ff;
  --theme-shadow:0 18px 48px rgba(33,61,104,.12);
}

[data-theme="dark"]{
  color-scheme:dark;
  --theme-bg:#050b19;
  --theme-panel:#0a1325;
  --theme-panel-2:#0d172a;
  --theme-line:#172741;
  --theme-line-strong:#2b4770;
  --theme-text:#eef4ff;
  --theme-muted:#92a4c3;
  --theme-dim:#617493;
  --theme-blue:#3a8cff;
  --theme-blue-soft:#10284d;
  --theme-shadow:0 22px 70px rgba(0,0,0,.28);
}

.luxcon-theme-toggle{
  width:42px;
  min-width:42px;
  height:42px;
  padding:0;
  border:1px solid var(--theme-line-strong);
  border-radius:12px;
  background:color-mix(in srgb,var(--theme-panel) 92%,transparent);
  color:var(--theme-muted);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 5px 18px rgba(15,23,42,.08);
  transition:background .16s,border-color .16s,color .16s,transform .16s;
  z-index:100;
}
.luxcon-theme-toggle-icon{display:block;width:20px;height:20px;object-fit:contain;transition:transform .2s ease,filter .2s ease}
.luxcon-theme-toggle:hover .luxcon-theme-toggle-icon{transform:rotate(8deg) scale(1.08)}
.luxcon-theme-toggle:hover{border-color:var(--theme-blue);color:var(--theme-blue);transform:translateY(-1px)}
.luxcon-theme-toggle[data-theme-placement="inline"]{position:static;flex:0 0 auto}
.luxcon-theme-toggle[data-theme-placement="floating"]{position:fixed;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right))}
html[data-theme-mode="light-only"] .luxcon-theme-toggle{display:none!important}

/* 模型广场与方舟专区：保留原布局，仅为浅色状态换用同一套产品色板。 */
[data-theme="light"] .model-plaza-page,
[data-theme="light"] .ark-catalog-page{
  background:
    radial-gradient(circle at 23% 19%,rgba(68,123,215,.10),transparent 29rem),
    radial-gradient(circle at 84% 74%,rgba(99,102,241,.06),transparent 35rem),var(--theme-bg)!important;
  color:var(--theme-text)!important;
}
[data-theme="light"] .model-plaza-page .topbar,
[data-theme="light"] .ark-catalog-page .topbar{background:rgba(255,255,255,.92)!important;border-color:var(--theme-line)!important;box-shadow:0 1px 0 rgba(23,36,58,.03)}
[data-theme="light"] .model-plaza-page .brand img,
[data-theme="light"] .ark-catalog-page .brand img{content:normal!important}
[data-theme="light"] .model-plaza-page .nav-links a,
[data-theme="light"] .ark-catalog-page .nav-links a,
[data-theme="light"] .model-plaza-page .nav-actions,
[data-theme="light"] .ark-catalog-page .nav-actions{color:#65758e!important}
[data-theme="light"] .model-plaza-page .nav-links a:hover,
[data-theme="light"] .ark-catalog-page .nav-links a:hover,
[data-theme="light"] .model-plaza-page .nav-links a.active,
[data-theme="light"] .ark-catalog-page .nav-links a.active{color:#17243a!important}
[data-theme="light"] .model-plaza-page .mobile-menu-button,
[data-theme="light"] .model-plaza-page .mobile-filter-toggle,
[data-theme="light"] .ark-catalog-page .mobile-menu-button,
[data-theme="light"] .ark-catalog-page .mobile-filter-toggle{background:#fff!important;border-color:#bfd0e5!important;color:#315a94!important}
[data-theme="light"] .model-plaza-page .mobile-nav-panel,
[data-theme="light"] .ark-catalog-page .mobile-nav-panel{background:rgba(255,255,255,.98)!important;border-color:#d5dfec!important;box-shadow:0 20px 54px rgba(33,61,104,.18)!important}
[data-theme="light"] .model-plaza-page .mobile-nav-panel a,
[data-theme="light"] .ark-catalog-page .mobile-nav-panel a{color:#52647e!important}
[data-theme="light"] .model-plaza-page .mobile-nav-panel a:hover,
[data-theme="light"] .model-plaza-page .mobile-nav-panel a.active,
[data-theme="light"] .ark-catalog-page .mobile-nav-panel a:hover,
[data-theme="light"] .ark-catalog-page .mobile-nav-panel a.active{background:#eaf2ff!important;color:#1d4ed8!important}
[data-theme="light"] .model-plaza-page .avatar,
[data-theme="light"] .ark-catalog-page .avatar{background:#eef3fb!important;color:#334155!important;border-color:#d5dfec!important}
[data-theme="light"] .model-plaza-page .intro p,
[data-theme="light"] .model-plaza-page .verified,
[data-theme="light"] .ark-catalog-page .crumbs,
[data-theme="light"] .ark-catalog-page .section-title p,
[data-theme="light"] .ark-catalog-page .result-count,
[data-theme="light"] .ark-catalog-page .foot-note{color:var(--theme-muted)!important}
[data-theme="light"] .model-plaza-page .ark-content,
[data-theme="light"] .model-plaza-page .ark-content p,
[data-theme="light"] .model-plaza-page .ark-title strong,
[data-theme="light"] .model-plaza-page .ark-title small,
[data-theme="light"] .ark-catalog-page .hero-copy,
[data-theme="light"] .ark-catalog-page .hero-copy h1,
[data-theme="light"] .ark-catalog-page .hero-copy p,
[data-theme="light"] .ark-catalog-page .eyebrow,
[data-theme="light"] .ark-catalog-page .eyebrow small,
[data-theme="light"] .ark-catalog-page .hero-stat,
[data-theme="light"] .ark-catalog-page .hero-stat span{color:#eef4ff!important}

[data-theme="light"] .model-plaza-page .capability-tabs,
[data-theme="light"] .model-plaza-page .filters,
[data-theme="light"] .ark-catalog-page .type-tabs,
[data-theme="light"] .ark-catalog-page .filters{background:rgba(255,255,255,.88)!important;border-color:var(--theme-line)!important;box-shadow:0 10px 34px rgba(33,61,104,.06)}
[data-theme="light"] .model-plaza-page .cap-tab,
[data-theme="light"] .ark-catalog-page .type-tab{border-color:var(--theme-line)!important;color:var(--theme-text)!important}
[data-theme="light"] .model-plaza-page .cap-tab:hover,
[data-theme="light"] .ark-catalog-page .type-tab:hover{background:#f5f8fd!important}
[data-theme="light"] .model-plaza-page .cap-tab.active,
[data-theme="light"] .ark-catalog-page .type-tab.active{background:linear-gradient(135deg,#edf5ff,#f8fbff)!important;border-color:#3b82f6!important;box-shadow:inset 0 0 24px rgba(59,130,246,.06)!important}
[data-theme="light"] .model-plaza-page .cap-copy p,
[data-theme="light"] .ark-catalog-page .type-copy span,
[data-theme="light"] .model-plaza-page .result-count{color:var(--theme-muted)!important}
[data-theme="light"] .model-plaza-page .cap-arrow{color:#60728d!important}

[data-theme="light"] .model-plaza-page .market-switch,
[data-theme="light"] .model-plaza-page .search-box,
[data-theme="light"] .model-plaza-page .sort-select,
[data-theme="light"] .ark-catalog-page .search-box,
[data-theme="light"] .ark-catalog-page .sort-select{background:#fff!important;border-color:var(--theme-line)!important;color:#52647e!important}
[data-theme="light"] .model-plaza-page .market-btn{color:#6b7d96!important}
[data-theme="light"] .model-plaza-page .market-btn.active{background:#eaf2ff!important;color:#1d4ed8!important;box-shadow:0 0 0 1px #bdd2f4 inset!important}
[data-theme="light"] .model-plaza-page .search-box input,
[data-theme="light"] .ark-catalog-page .search-box input{color:var(--theme-text)!important}
[data-theme="light"] .model-plaza-page .filter-group,
[data-theme="light"] .ark-catalog-page .filter-group{border-color:#e5ebf3!important}
[data-theme="light"] .model-plaza-page .filter-label,
[data-theme="light"] .model-plaza-page .check-row,
[data-theme="light"] .ark-catalog-page .filter-label,
[data-theme="light"] .ark-catalog-page .check-row{color:#61728b!important}
[data-theme="light"] .model-plaza-page .check-row input,
[data-theme="light"] .ark-catalog-page .check-row input{background:#fff!important;border-color:#9fb0c7!important}
[data-theme="light"] .model-plaza-page .check-row input:checked,
[data-theme="light"] .ark-catalog-page .check-row input:checked{background:#327fe9!important;border-color:#327fe9!important}

[data-theme="light"] .model-plaza-page .model-card,
[data-theme="light"] .ark-catalog-page .model-card,
[data-theme="light"] .ark-catalog-page .featured-card{background:linear-gradient(145deg,#fff,#f8fbff)!important;border-color:var(--theme-line)!important;color:var(--theme-text)!important;box-shadow:0 9px 30px rgba(33,61,104,.06)!important}
[data-theme="light"] .model-plaza-page .model-card:hover,
[data-theme="light"] .ark-catalog-page .model-card:hover,
[data-theme="light"] .ark-catalog-page .featured-card:hover{border-color:#9dbce9!important;box-shadow:0 14px 34px rgba(33,61,104,.12)!important}
[data-theme="light"] .model-plaza-page .model-id-row,
[data-theme="light"] .model-plaza-page .model-spec,
[data-theme="light"] .model-plaza-page .price-label,
[data-theme="light"] .model-plaza-page .price-detail,
[data-theme="light"] .ark-catalog-page .model-id-row,
[data-theme="light"] .ark-catalog-page .model-spec,
[data-theme="light"] .ark-catalog-page .price-label,
[data-theme="light"] .ark-catalog-page .price-detail,
[data-theme="light"] .ark-catalog-page .featured-card p{color:#667892!important}
[data-theme="light"] .model-plaza-page .model-spec,
[data-theme="light"] .model-plaza-page .model-price,
[data-theme="light"] .ark-catalog-page .model-spec,
[data-theme="light"] .ark-catalog-page .model-price{border-color:#e1e8f1!important}
[data-theme="light"] .model-plaza-page .feature-tag,
[data-theme="light"] .ark-catalog-page .feature-tag{background:#f2f6fb!important;border-color:#d4dfec!important;color:#52647e!important}
[data-theme="light"] .model-plaza-page .copy-id,
[data-theme="light"] .ark-catalog-page .copy-id,
[data-theme="light"] .ark-catalog-page .back-plaza{background:#fff!important;border-color:#bfd0e5!important;color:#315a94!important}
[data-theme="light"] .model-plaza-page .pager .page-btn{background:#fff!important;border-color:#d3deeb!important;color:#566a85!important}
[data-theme="light"] .model-plaza-page .pager .page-btn.active{background:#eaf2ff!important;border-color:#6299e8!important;color:#1d4ed8!important}
[data-theme="light"] .ark-catalog-page .source-note{background:#f2f7ff!important;border-color:#cfdef2!important;color:#52647e!important}
[data-theme="light"] .ark-catalog-page .featured-type{background:#eef4ff!important;border-color:#cbdcf4!important;color:#2e67bb!important}

/* Tailwind 旧页面：在深色状态覆盖现有浅色工具类，保持脚本动态生成内容一致。 */
[data-theme="dark"] .theme-tailwind-page{background:#060b1a!important;color:#e6ecff!important}
[data-theme="dark"] .theme-tailwind-page .bg-white{background-color:#0f172a!important}
[data-theme="dark"] .theme-tailwind-page .bg-slate-50{background-color:#0b1324!important}
[data-theme="dark"] .theme-tailwind-page .bg-slate-100{background-color:#17223a!important}
[data-theme="dark"] .theme-tailwind-page .text-slate-900,
[data-theme="dark"] .theme-tailwind-page .text-slate-800{color:#eef4ff!important}
[data-theme="dark"] .theme-tailwind-page .text-slate-700,
[data-theme="dark"] .theme-tailwind-page .text-slate-600{color:#b8c6df!important}
[data-theme="dark"] .theme-tailwind-page .text-slate-500{color:#8fa1c9!important}
[data-theme="dark"] .theme-tailwind-page .text-slate-400,
[data-theme="dark"] .theme-tailwind-page .text-slate-300{color:#7183a7!important}
[data-theme="dark"] .theme-tailwind-page .border,
[data-theme="dark"] .theme-tailwind-page .border-t,
[data-theme="dark"] .theme-tailwind-page .border-r,
[data-theme="dark"] .theme-tailwind-page .border-b,
[data-theme="dark"] .theme-tailwind-page .border-slate-200{border-color:rgba(120,175,255,.16)!important}
[data-theme="dark"] .theme-tailwind-page input,
[data-theme="dark"] .theme-tailwind-page select,
[data-theme="dark"] .theme-tailwind-page textarea,
[data-theme="dark"] .theme-tailwind-page .input{background:#111a2f!important;border-color:rgba(148,163,184,.30)!important;color:#e6ecff!important}
[data-theme="dark"] .theme-tailwind-page input::placeholder,
[data-theme="dark"] .theme-tailwind-page textarea::placeholder{color:#64748b!important}
[data-theme="dark"] .theme-tailwind-page #modal > div{background:#0f172a!important;color:#e6ecff!important}
[data-theme="dark"] .theme-tailwind-page .auth-brand-mobile,
[data-theme="dark"] .theme-tailwind-page .admin-brand-mobile{content:url('/brand/lemonpie-official-lockup-dark.svg')}

/* 运营审核与错误页。 */
[data-theme="dark"] .theme-operations-page{background:#060b1a!important;color:#e6ecff!important}
[data-theme="dark"] .theme-operations-page .top,
[data-theme="dark"] .theme-operations-page .panel,
[data-theme="dark"] .theme-operations-page .toolbar,
[data-theme="dark"] .theme-operations-page .modalbox{background:#0f172a!important;border-color:rgba(120,175,255,.16)!important}
[data-theme="dark"] .theme-operations-page .brand img{content:url('/brand/lemonpie-official-lockup-dark.svg')}
[data-theme="dark"] .theme-operations-page .back,
[data-theme="dark"] .theme-operations-page .muted,
[data-theme="dark"] .theme-operations-page .field label,
[data-theme="dark"] .theme-operations-page .head p,
[data-theme="dark"] .theme-operations-page .tab{color:#8fa1c9!important}
[data-theme="dark"] .theme-operations-page .tab.active{color:#93c5fd!important}
[data-theme="dark"] .theme-operations-page .table th{background:#111a2f!important;color:#8fa1c9!important}
[data-theme="dark"] .theme-operations-page .table td,
[data-theme="dark"] .theme-operations-page .tabs,
[data-theme="dark"] .theme-operations-page .toolbar{border-color:rgba(120,175,255,.13)!important}
[data-theme="dark"] .theme-operations-page .input,
[data-theme="dark"] .theme-operations-page select{background:#111a2f!important;border-color:rgba(148,163,184,.30)!important;color:#e6ecff!important}
[data-theme="dark"] .theme-operations-page .btn,
[data-theme="dark"] .theme-operations-page .iconbtn{background:#17223a!important;border-color:rgba(148,163,184,.26)!important;color:#dbe7ff!important}
[data-theme="dark"] .theme-operations-page .previewstage{background:#08101f!important;border-color:rgba(120,175,255,.16)!important}

[data-theme="dark"] .theme-error-page{background:#060b1a!important;color:#e6ecff!important}
[data-theme="dark"] .theme-error-page .brand-lockup{content:url('/brand/lemonpie-official-lockup-dark.svg')}
[data-theme="dark"] .theme-error-page p{color:#8fa1c9!important}
[data-theme="dark"] .theme-error-page a:not(.primary),
[data-theme="dark"] .theme-error-page button{background:#111a2f!important;border-color:rgba(148,163,184,.30)!important;color:#dbe7ff!important}

/*
 * 官方品牌组合：所有几何均来自“柠檬派logo（定稿）.cdr”。平台名称是产品层文字，
 * 与品牌标志保持独立，避免再把界面字体伪装成 Logo 的一部分。
 */
.lp-brand-cluster{display:inline-flex;align-items:center;gap:12px;min-width:0;text-decoration:none}
.lp-brand-cluster>img{display:block;width:116px!important;height:40px!important;object-fit:contain!important;object-position:left center!important;flex:0 0 auto}
.side-brand.lp-brand-cluster>img{width:42px!important;height:42px!important}
.lp-platform-name{
  display:inline-flex!important;align-items:center;min-width:0;max-width:240px;
  color:#2563eb;font-size:20px;font-weight:850;line-height:1.25;letter-spacing:.012em;
  white-space:nowrap;text-align:left;
  background:linear-gradient(100deg,#1d4ed8 0%,#7c3aed 30%,#0ea5e9 58%,#f59e0b 82%,#1d4ed8 100%);
  background-size:260% 100%;-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;animation:lp-platform-name-flow 6s ease-in-out infinite
}
.lp-platform-name::before{
  content:"";width:1px;height:28px;margin-right:12px;flex:0 0 auto;
  background:rgba(100,116,139,.32)
}
[data-theme="dark"] .lp-platform-name{color:#e7eefc;background-image:linear-gradient(100deg,#f8fafc 0%,#93c5fd 28%,#c4b5fd 54%,#67e8f9 76%,#fde68a 90%,#f8fafc 100%)}
[data-theme="dark"] .lp-platform-name::before{background:rgba(148,163,184,.38)}
.lp-platform-name--stack{display:flex!important;justify-content:center;max-width:none;margin-top:14px;text-align:center}
.lp-platform-name--stack::before{display:none}
.lp-platform-name--hero{max-width:520px;margin:0 auto;color:inherit;font-size:clamp(32px,4vw,52px);font-weight:800;line-height:1.14;text-align:center;white-space:normal}
.lp-platform-name--hero::before{display:none}
@keyframes lp-platform-name-flow{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){.lp-platform-name{animation:none;background-position:50% 50%}}

@media(max-width:720px){
  .lp-brand-cluster{gap:8px}
  .lp-brand-cluster::before{content:"";display:block;width:38px;height:38px;flex:0 0 38px;background:url('/brand/lemonpie-official-icon.svg') center/contain no-repeat}
  .lp-brand-cluster>img{display:none!important}
  .lp-platform-name{max-width:118px;font-size:12px;line-height:1.25;white-space:normal}
  .lp-platform-name::before{height:24px;margin-right:8px}
  .lp-platform-name--stack{max-width:none;font-size:13px}
}

@media(max-width:720px){
  .luxcon-theme-toggle[data-theme-placement="floating"]{top:12px;right:12px}
  .luxcon-theme-toggle{width:38px;min-width:38px;height:38px;border-radius:11px}
  .luxcon-theme-toggle-icon{width:18px;height:18px}
}
