/* 本地蓝金主题，仅呈现层。保留原内容、接口、事件及后台保存的正文颜色。
   删除本文件的覆写即可恢复旧外观；不需要重建或修改业务脚本。 */
:root { --gold:#2f67d2; --gold-dark:#194b9b; }
:root, body[data-theme] {
  --gold-soft:#edf3ff;
  --cream:#f3f4f6; --paper:#fff; --border:#dce5f2; --text:#172b46; --muted:#667892;
  --shadow:0 3px 12px rgba(22,53,101,.06);
  --theme-navy:#143e77; --theme-blue:var(--gold); --theme-gold:#ffda57;
  --theme-heading:linear-gradient(105deg,#0a2f78 0%,var(--gold) 48%,var(--gold) 100%);
}
html,body,body[data-theme] { background:#f3f4f6; }
body { font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif; }

/* 前台框架：保留原有站名、品牌图片和登录入口。 */
#app .shell { max-width:744px; background:#f3f4f6; }
#app .topbar { height:calc(60px + env(safe-area-inset-top)); border-radius:0 0 14px 14px; background:var(--theme-heading); box-shadow:0 2px 0 #0c2e6d24; }
#app .topbar-inner { height:60px; padding:0 16px; gap:10px; }
#app .topbar h1 { font-size:22px; font-weight:800; text-shadow:0 1px 2px #0b2f7166; }
#app .post-page .topbar h1 { font-size:13px; }
#app .guest-actions { padding:7px 11px; border:1px solid #ffe898; border-radius:22px; color:#153257; background:linear-gradient(135deg,#ffdf64,#ffc631); font-size:12px; }
#app .member-action,#app .header-action { border-color:#ffffff66; color:#fff; background:#ffffff17; }
#app .back { text-shadow:none; }
#app .banner { width:calc(100% - 32px); margin:10px 16px 0; border-radius:13px; background:#fff; }
#app .banner img { border-radius:inherit; }

/* 开奖区：深蓝外框、白底号码、彩色圆环。 */
#app .lottery-box { margin:10px 16px; padding:10px 12px 12px; border:1px solid #3267a7; border-radius:13px; background:var(--theme-navy); box-shadow:none; }
#app .lottery-tabs { height:40px; gap:5px; padding:3px; background:#092b575e; border-radius:9px; }
#app .lottery-tab { color:#c9dbff; font-size:14px; }
#app .lottery-tab.active { color:#173f7b; background:#ffdc65; box-shadow:0 1px 3px #061b4b33; }
#app .draw-meta { min-height:43px; color:#eef5ff; font-size:13px; }
#app .draw-meta strong { color:#ffde63; font-size:13px; }
#app .draw-meta .history-link { color:#dceaff; }
#app .balls { height:80px; padding:6px 8px; gap:5px; border-radius:13px; background:#fff; }
#app .balls .ball { --ball-ring:#3273e8; background:transparent; color:#17365e; border-radius:0; }
#app .balls .ball.red { --ball-ring:#e72c42; }
#app .balls .ball.green { --ball-ring:#1eaf59; }
#app .balls .ball.special { position:relative; margin-left:10px; outline:none; }
#app .balls .ball.special::before { content:"+"; position:absolute; top:15px; left:-13px; color:#294b75; font-size:20px; font-weight:800; }
#app .ball-num { width:44px; height:44px; display:grid; place-items:center; flex:0 0 auto; border:4px solid var(--ball-ring); border-radius:50%; color:#12243d; background:radial-gradient(circle at 35% 28%,#fff 30%,#f2f7ff 75%); box-shadow:0 0 0 1px #bed2f5,inset 0 1px 2px #214b8830; font-size:24px; line-height:1; font-weight:800; }
#app .ball-meta { margin-top:4px; padding:0; background:transparent; color:var(--ball-ring); font-size:11px; font-weight:700; }

/* 推荐站点：所有链接及两行文字原样保留。 */
#app .lottery-partner-ad { margin:12px 16px; padding:0 12px 12px; border:1px solid #d7e2f2; border-radius:13px; background:#fff; box-shadow:var(--shadow); }
#app .lottery-partner-title,#app .group-title { position:relative; justify-content:flex-start; min-height:46px; height:auto; padding:12px 18px; color:#fff; background:linear-gradient(105deg,#2045b4,var(--theme-blue)); border:0; font-size:16px; font-weight:800; letter-spacing:.3px; }
#app .lottery-partner-title { margin:0 -12px 12px; }
#app .lottery-partner-title::before,#app .group-title::before { content:""; width:3px; height:17px; flex:0 0 auto; margin-right:8px; border-radius:3px; background:#ffe282; }
#app .lottery-partner-links { grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
#app .lottery-partner-links a { --partner-glow:#e5c578; max-width:none; min-height:70px; padding:11px 6px; gap:5px; border:1px solid #dcc58b; border-radius:12px; color:#ffe9a9; background:linear-gradient(135deg,#173a57,#102b45); box-shadow:0 3px 0 #dac795,inset 0 1px 0 #ffffff13; transition:transform .15s ease,box-shadow .15s ease; }
#app .lottery-partner-links a::before,#app .lottery-partner-links a::after { content:none; animation:none; }
#app .lottery-partner-links strong { color:#ffe9a9; font-size:15px; letter-spacing:.4px; }
#app .lottery-partner-links small { color:#d8e5f4; font-size:11px; letter-spacing:.1px; }

/* 资料编辑器只改外框和tab，正文单字颜色、背景、对齐不覆盖。 */
#app .home-ad-text { margin:12px 16px; border:1px solid #d7e2f2; border-radius:12px; box-shadow:var(--shadow); }
#app .home-ad-text .rich-tabs-bar { padding:10px; border-color:#dce6f5; background:#eaf1ff; }
#app .rich-tabs-buttons { gap:8px; }
#app .rich-tab-button { min-height:46px; padding:9px; border:1px solid #cedbf0; border-radius:10px; color:#315582; background:#fff; font-size:16px; }
#app .rich-tab-button.is-active { color:#fff; border-color:#2355b4; background:var(--theme-heading); box-shadow:0 3px 8px #174b9d25; }
#app .home-image-ad { border-radius:12px; overflow:hidden; }
#app .home-intro { border-color:#dce5f2; border-radius:12px; }
#app .filters { margin:12px 16px 0; padding:3px 0; border:1px solid #dce5f2; border-radius:12px; background:#fff; }
#app .category-row { padding:8px 10px; gap:6px; }
#app .chip { padding:7px 12px; border:1px solid #e0e8f4; border-radius:8px; background:#f3f6fc; color:#536984; font-size:13px; }
#app .chip.active { color:#fff; border-color:var(--theme-blue); background:var(--theme-blue); }
#app .search-row { padding:4px 10px 8px; }
#app .search-control { height:38px; border-color:#d6e1f0; border-radius:8px; }
#app .search-control select { color:#315582; background:#edf3ff; }
#app .search-control input { color:#17365e; }

/* 帖子卡片：原标题保留，状态及统计读取同条帖子的现有数据。 */
#app .post-groups { padding:14px 16px 0; }
#app .post-group { margin-bottom:18px; border:0; border-radius:12px; background:transparent; box-shadow:none; }
#app .post-group .group-title { border-radius:10px; }
#app .post-list { padding:10px 0 3px; }
#app .post-groups .post-row { min-height:56px; margin:0 0 9px; padding:6px 3px; border:1px solid #e7d9c4; border-radius:14px; background:linear-gradient(180deg,#fff,#fffdf9); box-shadow:0 3px 0 #e7d3b2,0 4px 8px #18386006; }
/* 已有价格脚本强制的间距/换行，仅以局部视觉规则覆盖。 */
#app .post-groups li.post-row.mz-sale-row { padding-top:8px!important; padding-bottom:8px!important; }
#app .post-groups .post-link { min-height:40px; padding:8px 10px; gap:6px; line-height:1.65; }
#app .post-groups .post-link>span:first-child { white-space:normal!important; overflow-wrap:anywhere; font-size:14px!important; line-height:1.65!important; letter-spacing:0!important; }
#app .post-groups .post-link .lock { font-size:12px!important; }
#app .post-group.layout-pyramid .post-list { gap:8px; }
#app .post-group.layout-pyramid .post-row { margin-bottom:0; }

/* 底部导航与现有内页，保留各原有状态和导航目的地。 */
#app .bottom-nav { width:min(100%,744px); height:calc(64px + env(safe-area-inset-bottom)); padding:5px 6px calc(5px + env(safe-area-inset-bottom)); border:1px solid #a8bddc; border-radius:13px 13px 0 0; background:linear-gradient(180deg,#2a4d7bf2,#0e3267fa); box-shadow:0 -3px 13px #10366d20; }
#app .nav-item { position:relative; margin:0 3px; border-radius:9px; color:#e1eaff; font-size:11px; }
#app .nav-item.active { color:#fff; background:#356fd08c; box-shadow:inset 0 1px 0 #ffffff26; }
#app .nav-item.active::after { content:""; position:absolute; bottom:0; left:18%; right:18%; height:3px; border-radius:3px; background:#ffdb57; }
#app .nav-icon { font-size:23px; }
#app .info-page,#app .auth-shell,#app .recharge-page,#app .recharge-shell { background:#f3f4f6; }
#app .paper,#app .draw-card,#app .auth-card,#app .balance-card,#app .account-list,#app .unlock-card { border-color:#dce5f2; border-radius:12px; box-shadow:var(--shadow); }
#app .history-tabs { background:#eaf1ff; }
#app .history-tabs a.active,#app .year-row a.active { color:#fff; background:#2b63cd; }
#app .year-row a { color:#536984; background:#edf3ff; }
#app .profile-card,#app .auth-logo,#app .recharge-hero { background:var(--theme-heading); box-shadow:0 4px 14px #174b9d22; }
#app .auth-brand-logo { overflow:hidden; }
#app .auth-brand-logo img { display:block; width:100%; height:100%; max-width:100%; object-fit:contain; border-radius:inherit; }
#app .recharge-hero { border-color:#3267a7; }
#app .auth-form input { border-color:#d6e1f0; background:#fbfcff; }
#app .auth-switch a { color:#245cc2; }
#app .unlock-card { background:#f2f6ff; }
#app .account-section-head,#app .ledger-card h3 { border-color:#dce5f2; color:#244c87; background:#edf3ff; }
#app .auth-form .primary-button,#app .primary-button { background:var(--theme-blue); }
.site-notice { border-color:#d3dff0; background:#fff; color:#172b46; }
.site-notice header { border-color:#dce5f2; background:#edf3ff; }
.site-notice h2 { color:#17365e; }
.site-notice-eyebrow { color:#2b63cd; }
.site-notice-confirm { background:#285fc7; }
.site-notice-progress i { background:#2f67d2; }

/* 管理后台：不改布局显示、表单绑定、富文本内容、权限与隐藏状态。 */
body .admin-shell { color:#172b46; }
.admin-shell .sidebar { border-color:#dce5f2; background:#fff; }
.admin-shell .brand { border-color:#dce5f2; }
.admin-shell .brand span,.login-card .brand-mark { background:var(--theme-heading); box-shadow:0 4px 12px #173e7820; }
.admin-shell .menu.active { background:var(--theme-heading); box-shadow:inset 3px 0 #ffda57,0 3px 8px #123c8422; }
.admin-shell .menu:hover:not(.active) { background:#f1f5fd; }
.admin-shell .workspace-head { border-bottom-color:#dce5f2; }
.admin-shell .panel,.admin-shell .metric { border-color:#dce5f2; border-radius:13px; box-shadow:0 3px 12px #173d7306; }
.admin-shell .primary,.dialog-actions .primary { background:#285fc7; }
.admin-shell .primary:hover,.dialog-actions .primary:hover { background:#194b9b; }
.admin-shell .quick-grid button:hover { border-color:#b1c8ee; color:#194b9b; background:#edf3ff; }
.admin-shell .posting-tabs button.active { color:#194b9b; background:#edf3ff; }
.admin-shell .form-grid input:focus,.admin-shell .form-grid select:focus,.admin-shell .form-grid textarea:focus { border-color:#5587dd; box-shadow:0 0 0 3px #2f67d218; }
.admin-shell .notice-editor { border-color:#dce5f2; background:#f8faff; }
.admin-shell .notice-editor h3,.admin-shell .notice-editor label { color:#244571; }
.admin-shell .notice-editor input:not([type=checkbox]),.admin-shell .notice-editor select,.admin-shell .notice-editor textarea { border-color:#d6e1f0; }
.admin-shell .mz-editor-heading { border-color:#dce5f2; background:#edf3ff; }
.admin-shell .mz-editor-heading strong,.admin-shell .mz-editor-heading b { color:#2454a5; }
.admin-shell .mz-editor-tabs { background:#f8faff; }
.admin-shell .mz-panel-buttons button { border-color:#c6d6ef!important; color:#315582!important; }
.admin-shell .mz-panel-buttons button.active { background:#dfeaff!important; box-shadow:inset 0 0 0 1px #9cb9e8; }
.login-layer { background:radial-gradient(ellipse at 50% 0,#2b66cc,#102d58 70%); }
.login-card { border-color:#ffffff33; background:#ffffff12; }
.login-card button { color:#153257; background:linear-gradient(135deg,#ffdf64,#ffc631); }

/* 客服工作台只改配色；不碰消息滚动、媒体、通话和移动端切换。 */
#agent-app .workspace-root,#agent-app .workspace-root .chat-screen { background:#f3f6fb; }
#agent-app .workbench-brand { background:var(--theme-heading); }
#agent-app .inbox-head { background:#f8faff; }
#agent-app .inbox-head h1,#agent-app .workspace-empty h2 { color:#244571; }
#agent-app .inbox-head h1 span { background:#e7effd; color:#46668c; }
#agent-app .inbox-state>span,#agent-app .inbox-footer,#agent-app .inbox-footer button { color:#426288; }
#agent-app .inbox-state button,#agent-app .inbox-filters select { color:#315582; background:#edf3ff; }
#agent-app .conversation-row.active { background:#edf3ff; box-shadow:inset 3px 0 #2f67d2; }
#agent-app .conv-avatar,#agent-app .empty-chat-icon { color:#2b63cd; background:#e4edfd; }
#agent-app .service .msg-bubble { border-color:#285fc7; background:#285fc7; }
#agent-app .compose button,#agent-app .agent-login button { background:#285fc7; }
#agent-app .agent-login { background:radial-gradient(ellipse at 30% 20%,#e0ebff,transparent 65%),#f3f6fb; }
#agent-app .agent-login h1 { color:#244571; }
#agent-app .agent-login input:focus { border-color:#2f67d2; }

/* 本地导航保留原有线路。 */
body>.wrap { max-width:744px; background:#fff; box-shadow:0 3px 18px #173d730d; }
.wrap>.top { border-bottom-color:#ffda57; background:var(--theme-heading); border-radius:0 0 14px 14px; }
.wrap>.top strong { color:#ffe27c; }
.wrap .route { border-radius:12px; box-shadow:0 3px 8px #173d7314; }
.wrap .route.mobile { background:linear-gradient(120deg,#194b9b,#346fda); }
.wrap .route.telecom { background:linear-gradient(120deg,#163d73,#2e6aad); }
.wrap .route.unicom { background:linear-gradient(120deg,#14445b,#257a96); }

@media(hover:hover) {
  #app .lottery-partner-links a:hover { transform:translateY(-1px); box-shadow:0 4px 0 #dac795,0 5px 12px #12375b25; }
  #app .post-groups .post-row:hover { border-color:#b9cbe8; box-shadow:0 3px 0 #c4d5ef,0 4px 10px #173d7310; }
}
@media(max-width:520px) {
  .admin-shell .secondary-site-pane .form-grid { grid-template-columns:minmax(0,1fr); padding:12px; }
  .admin-shell .secondary-site-pane .form-grid>* { min-width:0; }
  .admin-shell .secondary-site-pane .copy-editor { padding:12px; }
  .admin-shell .secondary-site-pane .copy-editor>header { flex-wrap:wrap; }
  .admin-shell .site-console .site-tab-row { overflow-x:auto; }
  .admin-shell .mz-modern-editor .mz-editor-colorbar>span { flex-wrap:wrap; }
  .admin-shell .mz-tab-labels { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .admin-shell .mz-modern-editor .mz-tab-labels input { min-width:0; }
  #app .topbar-inner { padding:0 12px; }
  #app .topbar h1 { font-size:20px; }
  #app .post-page .topbar h1 { font-size:12px; }
  #app .banner { width:calc(100% - 12px); margin:8px 6px 0; }
  #app .lottery-box { margin:8px 6px; padding:8px 7px 10px; }
  #app .draw-meta { font-size:12px; gap:4px; }
  #app .draw-meta strong { font-size:12px; margin-right:3px; }
  #app .balls { height:76px; padding:6px 4px; gap:2px; }
  #app .ball-num { width:36px; height:36px; border-width:3px; font-size:22px; }
  #app .ball-meta { font-size:10px; }
  #app .balls .ball.special { margin-left:9px; }
  #app .balls .ball.special::before { top:13px; left:-11px; font-size:17px; }
  #app .lottery-partner-ad { margin:10px 6px; padding:0 8px 12px; }
  #app .lottery-partner-title { margin:0 -8px 10px; }
  #app .lottery-partner-title,#app .group-title { min-height:44px; padding:11px 12px; font-size:15px; }
  #app .lottery-partner-links { gap:8px; }
  #app .lottery-partner-links a { min-height:65px; padding:9px 4px; }
  #app .lottery-partner-links strong { font-size:13px; }
  #app .lottery-partner-links small { font-size:10px; }
  #app .home-ad-text,#app .filters { margin:10px 6px 0; }
  #app .rich-tabs-bar { padding:8px; }
  #app .rich-tab-button { min-height:44px; padding:8px 4px; font-size:15px; }
  #app .post-groups { padding:12px 6px 0; }
  #app .post-groups .post-link { padding:6px 8px; }
  #app .post-groups .post-link>span:first-child { font-size:13px!important; }
  #app .post-groups .post-row { min-height:54px; }
  #app .bottom-nav { border-radius:11px 11px 0 0; }
}
@media(max-width:360px) {
  #app .ball-num { width:32px; height:32px; font-size:19px; }
  #app .ball-meta { font-size:9px; }
  #app .guest-actions { padding:7px 8px; }
}
@media(prefers-reduced-motion:reduce) { #app .lottery-partner-links a { transition:none; } }

/* 参考布局细化：双列推荐、分层帖子卡片、低密度标题与胶囊状态。 */
#app .lottery-partner-links { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 8px; }
#app .lottery-partner-links a { grid-column:span 2; min-height:52px; flex-direction:row; flex-wrap:wrap; column-gap:7px; row-gap:2px; padding:9px 6px; }
#app .lottery-partner-links a:last-child:nth-child(3n+1),
#app .lottery-partner-links a:nth-last-child(2):nth-child(3n+1),
#app .lottery-partner-links a:last-child:nth-child(3n+2) { grid-column:span 2; }
#app .lottery-partner-links a:last-child:nth-child(2n+1) { grid-column:2/span 2; }
#app .lottery-partner-links strong { width:auto; max-width:100%; color:#fff8e6; font-size:14px; }
#app .lottery-partner-links small { width:auto; max-width:100%; color:#ffd76a; font-size:11px; }
#app .lottery-partner-title::before,#app .group-title::before { background:#d5e8ff; box-shadow:0 0 6px #b9d9ff66; }
#app .lottery-partner-ad { padding-top:0; border-radius:16px; }
#app .post-group .group-title { border-radius:12px 12px 0 0; }
#app .post-list { padding:12px 0 5px; }
#app .post-groups .theme-post-card { position:relative; margin-bottom:13px; min-height:78px; padding:0; border-radius:14px; box-shadow:0 4px 0 -1px #e9d3b2,0 6px 0 -1px #ddc198,0 8px 13px -4px #78541e2b; }
#app .post-groups li.theme-post-card.mz-sale-row { padding-top:0!important; padding-bottom:0!important; }
#app .post-groups .theme-post-card>.post-link { position:relative; width:100%; min-width:0; min-height:78px; display:grid!important; grid-template-columns:minmax(0,1fr) auto; gap:6px; padding:10px 12px 12px; color:inherit; align-items:center; }
#app .post-group.sale .theme-post-card>.post-link { color:#172b46; }
#app .post-group.hot .theme-post-card>.post-link { color:#172b46; }
#app .post-group.recommended .theme-post-card>.post-link { color:#172b46; }
#app .post-group.expert .theme-post-card>.post-link { color:#172b46; }
#app .post-group.reference .theme-post-card>.post-link { color:#172b46; }
#app .post-groups .theme-post-card>.post-link>.theme-post-title { position:relative; display:block!important; grid-column:1; min-width:0; font-size:13.5px!important; line-height:1.5!important; white-space:normal!important; }
#app .post-groups .theme-priced>.post-link>.theme-post-title { padding-right:70px; }
#app .theme-post-issue { font-weight:800; }
#app .theme-post-author { font-weight:800; }
#app .theme-post-kind { display:inline; margin:0 4px; padding:0 4px; border:1px solid currentColor; border-radius:5px; font-size:12px; font-weight:700; }
#app .theme-post-suffix { display:inline-block; white-space:nowrap; font-size:10px; font-weight:500; opacity:.78; }
#app .post-groups .theme-post-card .lock { grid-column:2; grid-row:1; align-self:start; padding-top:2px; font-size:11px!important; }
#app .theme-post-title>.mz-sale-price { position:absolute; top:0; right:0; font-size:14px!important; margin:0!important; }
#app .post-groups .theme-post-card .sell-price { position:absolute; top:10px; right:28px; max-width:90px; overflow:hidden; font-size:12px!important; }
#app .theme-post-card .theme-post-meta { display:flex; min-width:0; width:100%; grid-column:1/-1; gap:6px; font-size:10px; line-height:1.3; }
#app .theme-post-meta>.theme-post-status,#app .theme-post-meta>.theme-post-stat { flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; gap:4px; padding:5px 4px; border-radius:8px; background:#faf5ec; white-space:nowrap; }
#app .theme-post-meta>.theme-post-status { background:#ecfdf5; color:#07833d; font-size:11px; font-weight:700; }
#app .theme-post-meta>.theme-post-status.is-waiting { color:#65758c; background:#eef2f7; }
#app .theme-post-stat small { color:#7b8ba2; font-size:10px; }
#app .theme-post-stat b { color:#285fc7; font-size:12px; }
#app .theme-free-label { grid-column:2; grid-row:1; align-self:start; padding:1px 4px; color:#c77900; font-size:12px; font-weight:800; }
#app .theme-post-card .theme-post-meta>.theme-post-status { color:#07833d!important; }
#app .theme-post-card .theme-post-meta>.theme-post-status.is-waiting { color:#65758c!important; }
#app .theme-post-card .theme-post-meta .theme-post-stat { color:#7b8ba2!important; }
#app .theme-post-card .theme-post-meta .theme-post-stat b { color:#285fc7!important; }
#app .bottom-nav { background:linear-gradient(180deg,#2a4d7bf5,#0e3267fd); }
#app .nav-icon { width:30px; height:30px; border-radius:9px; background:#ffffff0f; box-shadow:inset 0 0 0 1px #ffffff20; }
#app .nav-item.active .nav-icon { background:#58e38e; box-shadow:inset 0 1px 1px #bfffd3; }
@media(min-width:745px) { #app .support-widget { right:max(16px,calc((100vw - 744px)/2 + 16px)); } }
@media(max-width:520px) {
  #app .lottery-tabs { height:34px; }
  #app .draw-meta { min-height:40px; }
  #app .lottery-partner-links a { min-height:50px; padding:8px 4px; }
  #app .lottery-partner-links strong { font-size:13px; }
  #app .lottery-partner-links small { font-size:10px; }
  #app .post-groups .theme-post-card>.post-link { padding:9px 11px 11px; }
  #app .post-groups .theme-post-card>.post-link>.theme-post-title { font-size:12.5px!important; }
  #app .theme-post-kind { font-size:11.5px; padding:0 3px; }
  #app .theme-post-suffix { font-size:9.5px; }
  #app .theme-post-title>.mz-sale-price { font-size:13px!important; }
  #app .post-groups .theme-priced>.post-link>.theme-post-title { padding-right:61px; }
  #app .theme-post-meta>.theme-post-status,#app .theme-post-meta>.theme-post-stat { gap:3px; padding:5px 3px; }
}
@media(max-width:360px) {
  #app .post-groups .theme-post-card>.post-link { padding-left:8px; padding-right:8px; }
  #app .post-groups .theme-post-card>.post-link>.theme-post-title { font-size:12px!important; }
  #app .theme-post-meta { gap:4px; }
  #app .theme-post-stat small { font-size:9px; }
}

/* 参考站式动效：仅 CSS 光带、字面光泽与皇冠，不添加导航或业务事件。 */
#app .lottery-partner-links a {
  position:relative; isolation:isolate; overflow:hidden; gap:5px;
  min-height:48px; border:1px solid #ecc977;
  background:linear-gradient(135deg,#07314f 0%,#1d6f8e 48%,#10304a 100%);
  box-shadow:0 3px 0 #c3933a,0 5px 0 #94691f,0 9px 14px -6px #966e1480,inset 0 1px 0 #fff0c88c;
}
#app .lottery-partner-links a::before {
  content:"♛"; position:static; z-index:1; width:14px; flex:0 0 14px;
  height:auto; inset:auto; background:none; border:0; border-radius:0; box-shadow:none;
  color:#32cbff; font-size:14px; line-height:1; text-shadow:0 0 7px #11b7fb;
  animation:theme-crown-glimmer 2.8s ease-in-out infinite; pointer-events:none;
}
#app .lottery-partner-links a::after {
  content:""; position:absolute; z-index:0; top:-20%; bottom:-20%; left:-45%; width:32%;
  border-radius:0; background:linear-gradient(105deg,transparent,#c2f5ff45,transparent);
  transform:translateX(-160%) skewX(-20deg); pointer-events:none;
  animation:theme-button-shine 5s ease-in-out infinite;
}
#app .lottery-partner-links a:nth-child(2n)::before { animation-delay:-1.4s; }
#app .lottery-partner-links a:nth-child(2n)::after { animation-delay:-2.5s; }
#app .lottery-partner-links a strong { flex:0 1 auto; font-size:14px; font-weight:850; }
#app .lottery-partner-links a small { flex:0 1 auto; color:#ffd76a; font-size:13px; font-weight:800; text-shadow:0 0 6px #ffd76a45; }
#app .lottery-partner-links a:active { transform:translateY(3px); box-shadow:0 0 0 #c3933a,0 1px 0 #94691f,inset 0 1px 0 #fff0c866; }
#app .lottery-partner-title { background:linear-gradient(105deg,#347dff,#2455dd 70%,#244694); }
#app .lottery-partner-title { overflow:hidden; background-size:200% 100%; animation:theme-section-flow 4s linear infinite; }
#app .lottery-partner-title::after { content:""; position:absolute; top:0; bottom:0; left:-38%; width:38%; pointer-events:none; background:linear-gradient(105deg,transparent,#ffffff38,transparent); animation:theme-button-shine 2.8s ease-in-out infinite; }
@keyframes theme-section-flow { from { background-position:0% 0; } to { background-position:200% 0; } }
@keyframes theme-crown-glimmer { 0%,100% { color:#32cbff; opacity:.65; transform:scale(.88); } 50% { color:#ffe253; opacity:1; transform:scale(1.12); } }
@keyframes theme-button-shine { 0%,15% { transform:translateX(-160%) skewX(-20deg); opacity:0; } 25% { opacity:1; } 65%,100% { transform:translateX(650%) skewX(-20deg); opacity:0; } }

/* 出售帖四栏：状态 / 连中 / 已购人数 / 浏览。320px 保持两两对齐。 */
#app .post-group.sale .theme-post-meta { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
#app .post-group.sale .theme-post-meta>span { min-height:26px; gap:3px; padding:5px 3px; }
#app .theme-post-card .theme-post-meta .theme-post-streak { background:#fff6dd; }
#app .theme-post-card .theme-post-meta .theme-post-streak b { color:#b36a00!important; }

/* 特别公告用既有首页补充内容保存；选择器只作用于该独立公告。 */
#app .home-intro.theme-notice-container { margin:12px 16px; padding:0; border:0; background:transparent; }
#app .theme-special-notice { isolation:isolate; overflow:hidden; border:1px solid #abd9f2; border-radius:0; color:#44445b; background:#edf8ff; font-size:17px; line-height:1.75; text-align:left; }
#app .theme-special-notice * { box-sizing:border-box; }
#app .theme-special-notice h2 { position:relative; overflow:hidden; margin:0; padding:12px 10px; border:0; text-align:center; background:radial-gradient(ellipse at 20% 0%,#ffffffd9,transparent 75%),linear-gradient(115deg,#216db9,#107aff 50%,#1a70c4); }
#app .theme-special-notice h2 span { display:inline-block; color:#ff920b; font-size:33px; line-height:1.3; font-weight:900; letter-spacing:.5px; text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 3px 0 #bd6829; }
#app .theme-special-notice h2::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(105deg,transparent 35%,#ffffff5c 49%,transparent 63%); transform:translateX(-100%); animation:theme-notice-sweep 4.5s ease-in-out infinite; }
#app .theme-notice-section { margin:8px 4px 0; border:1px solid #c5e4fb; background:#fff; }
#app .theme-notice-section h3 { display:flex; align-items:center; gap:10px; margin:0; padding:10px; background:#e0f3ff; }
#app .theme-notice-section h3 i { position:relative; isolation:isolate; display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; color:#fff; font-family:Arial,sans-serif; font-style:italic; font-weight:900; font-size:23px; line-height:1; text-shadow:0 2px 2px #9b480a66; }
#app .theme-notice-section h3 i::before,#app .theme-notice-section h3 i::after { content:""; position:absolute; inset:0; z-index:-1; border-radius:7px; transform:skewX(-8deg); background:linear-gradient(145deg,#ffd956,#ffad10 38%,#f27d0d); border:1px solid #ffffff50; box-shadow:inset 0 1px 0 #ffffff66; }
#app .theme-notice-section h3 i::before { z-index:-2; transform:translateY(3px) skewX(-8deg); background:#b95b17; box-shadow:0 3px 5px #b7670e33; }
#app .theme-notice-section h3>span { position:relative; overflow:hidden; color:#1559be; font-size:22px; line-height:1.4; font-weight:900; text-shadow:0 1px 0 #fff,0 2px 0 #b7d4f4; }
#app .theme-notice-section h3>span::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(105deg,transparent 35%,#ffffff8c 50%,transparent 65%); animation:theme-notice-sweep 4.5s ease-in-out infinite; }
#app .theme-notice-section:nth-of-type(2) h3>span::after { animation-delay:.35s; }
#app .theme-notice-section:nth-of-type(3) h3>span::after { animation-delay:.7s; }
#app .theme-notice-section p { margin:0; padding:8px 11px 10px; overflow-wrap:anywhere; }
#app .theme-special-notice strong { color:#ed174d; font-weight:800; }
#app .theme-special-notice .theme-notice-highlight { display:block; margin:0 11px 8px; padding:5px 8px; border-radius:6px; color:#287014; background:#eef7e7; font-weight:700; }
#app .theme-special-notice .theme-notice-highlight.is-gold { color:#a65e05; background:#fff6df; }
#app .theme-notice-banner { position:relative; isolation:isolate; overflow:hidden; margin:8px 0 0; padding:12px 14px; border-radius:12px; background:repeating-linear-gradient(160deg,#4c16a6 0 13px,#6024bd 13px 26px,#4b19a0 26px 39px); }
#app .theme-notice-banner::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(115deg,#05cfe894,transparent 53%,#4d1bd900); animation:theme-banner-glow 4.5s ease-in-out infinite alternate; }
#app .theme-notice-banner b { display:block; color:#ffe179; font-size:clamp(18px,3vw,29px); line-height:1.4; font-weight:900; text-shadow:0 2px 0 #5129a5; }
#app .theme-notice-banner span { display:block; margin-top:3px; color:#f7e7ff; font-size:clamp(13px,2vw,21px); font-weight:800; }
@keyframes theme-notice-sweep { 0%,20% { transform:translateX(-100%); } 70%,100% { transform:translateX(100%); } }
@keyframes theme-banner-glow { from { opacity:.45; transform:translateX(-12%); } to { opacity:1; transform:translateX(12%); } }

/* 对照表：绿松石标题、双列生肖卡、同站规则的彩色号码与原属性清单。 */
#app .theme-zodiac-reference,#app .mz-zodiac-reference { margin:14px 16px; overflow:hidden; border:1px solid #d9e5e7; border-radius:12px; background:#fff; }
#app .theme-zodiac-reference>h2,#app .mz-zodiac-reference>h2 { display:flex; align-items:center; gap:8px; margin:0; padding:11px 14px; border:0; color:#fff; background:linear-gradient(90deg,#059669,#14b8a6); font-size:17px; line-height:1.4; font-weight:800; text-align:left; }
#app .theme-reference-body { padding:10px; }
#app .theme-zodiac-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
#app .theme-zodiac-item { min-width:0; padding:8px 5px; border:1px solid #d2d6dc; border-radius:12px; background:#fff; box-shadow:0 2px 4px #17325108; }
#app .theme-zodiac-item h3 { display:block; margin:0 0 5px; color:#0f172a; font-size:15px; line-height:1.15; font-weight:600; text-align:center; }
#app .theme-zodiac-item h3>span { display:block; margin-bottom:4px; font-size:46px; line-height:1.05; }
#app .theme-zodiac-item h3 small { color:#324862; font-size:12px; font-weight:500; }
#app .theme-zodiac-codes { display:flex; justify-content:center; flex-wrap:wrap; gap:3px; }
#app .theme-zodiac-code { display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:25px; padding:0 2px; border:0; border-radius:5px; color:#fff; font-family:Arial,sans-serif; font-size:14px; font-weight:700; line-height:1; }
#app .theme-zodiac-code.red { color:#fff; background:#ef1835; }
#app .theme-zodiac-code.blue { color:#fff; background:#2861f0; }
#app .theme-zodiac-code.green { color:#fff; background:#009a42; }
#app .theme-reference-group { margin-top:12px; overflow:hidden; border:1px solid #d2d9e4; border-radius:12px; }
#app .theme-reference-group h3 { margin:0; padding:8px 10px; color:#0f172a; background:linear-gradient(#f8fbff,#eef7ff); border-bottom:1px solid #e1e8f2; font-size:21px; line-height:1.2; text-align:center; }
#app .theme-reference-group dl { margin:0; }
#app .theme-reference-line { display:flex; align-items:center; gap:8px; margin:0; padding:7px 8px; border-bottom:1px solid #e7edf4; }
#app .theme-reference-line:last-child { border-bottom:0; }
#app .theme-reference-line dt { display:grid; place-items:center; flex:0 0 48px; min-height:27px; border-radius:6px; color:#225eaa; background:#eaf2ff; font-size:12px; font-weight:800; }
#app .theme-reference-line dt.tone-金 { color:#986100; background:#fff4d6; }
#app .theme-reference-line dt.tone-木,#app .theme-reference-line dt.tone-green { color:#07824e; background:#e8f8ee; }
#app .theme-reference-line dt.tone-火,#app .theme-reference-line dt.tone-red { color:#c1273e; background:#fff0f3; }
#app .theme-reference-line dt.tone-土 { color:#8e6125; background:#faf0dc; }
#app .theme-reference-line dd { display:flex; flex:1; flex-wrap:wrap; gap:4px; min-width:0; margin:0; }
#app .mz-zodiac-reference .mz-zodiac-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px; }
#app .mz-zodiac-reference .mz-zodiac-row { display:block; padding:8px 9px; border:1px solid #e5ebf1; border-radius:9px; background:#fcfdfe; font-size:13px; }
#app .mz-zodiac-reference .mz-zodiac-row dt { display:inline-block; margin-bottom:4px; padding:2px 8px; border:1px solid #bdd0ff; border-radius:7px; color:#1d4ed8; background:#eaf2ff; font-size:12px; }
#app .mz-zodiac-reference .mz-zodiac-row dd { color:#334155; line-height:1.65; }
#app .mz-zodiac-reference .mz-zodiac-row:nth-child(3n+2) dt { color:#067449; background:#e9faf1; border-color:#bce8d3; }
#app .mz-zodiac-reference .mz-zodiac-row:nth-child(3n) dt { color:#a26508; background:#fff6e3; border-color:#edd9ab; }
@media(max-width:520px) {
  #app .lottery-partner-links { gap:10px 7px; }
  #app .lottery-partner-links a { flex-wrap:wrap; min-height:50px; padding:7px 4px; column-gap:3px; row-gap:2px; }
  #app .lottery-partner-links a::before { width:10px; flex-basis:10px; font-size:11px; }
  #app .lottery-partner-links a strong { font-size:12px; }
  #app .lottery-partner-links a small { font-size:11px; }
  #app .home-intro.theme-notice-container { margin:12px 6px; }
  #app .theme-special-notice { font-size:14px; line-height:1.8; }
  #app .theme-special-notice h2 span { font-size:27px; }
  #app .theme-notice-section h3 { padding:9px 7px; gap:8px; }
  #app .theme-notice-section h3>span { font-size:18px; }
  #app .theme-notice-section h3 i { flex-basis:29px; width:29px; height:29px; font-size:20px; }
  #app .theme-zodiac-reference,#app .mz-zodiac-reference { margin:12px 6px; }
  #app .theme-zodiac-reference>h2,#app .mz-zodiac-reference>h2 { font-size:16px; padding:10px; }
  #app .theme-reference-body { padding:8px; }
  #app .theme-zodiac-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  #app .theme-zodiac-item { padding:5px 3px 6px; }
  #app .theme-zodiac-item h3 { font-size:14px; margin-bottom:4px; }
  #app .theme-zodiac-item h3>span { font-size:43px; margin-bottom:2px; }
  #app .theme-zodiac-item h3 small { font-size:11px; }
  #app .theme-zodiac-code { min-width:19px; height:21px; font-size:13px; padding:0 1px; }
  #app .theme-zodiac-codes { gap:2px; }
  #app .theme-reference-line { gap:6px; padding:6px; }
  #app .theme-reference-line dt { flex-basis:43px; font-size:11px; }
  #app .mz-zodiac-reference .mz-zodiac-grid { padding:8px; gap:6px; }
}
@media(max-width:400px) {
  #app .post-group.sale .theme-post-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:359px) {
  #app .theme-zodiac-grid { gap:5px; }
  #app .theme-zodiac-item { padding-left:2px; padding-right:2px; }
  #app .theme-zodiac-item h3 { font-size:12px; }
  #app .theme-zodiac-item h3 small { font-size:9px; }
  #app .theme-zodiac-code { min-width:16px; height:19px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
  #app .lottery-partner-links a::before,#app .lottery-partner-links a::after,
  #app .lottery-partner-title,#app .lottery-partner-title::after,
  #app .theme-special-notice h2::after,#app .theme-notice-section h3>span::after,
  #app .theme-notice-banner::before { animation:none; }
  #app .lottery-partner-links a::after,#app .lottery-partner-title::after,#app .theme-special-notice h2::after,#app .theme-notice-section h3>span::after { opacity:0; }
}

/* 特别公告精修：仅该公告，原站其他选择器与正文配色不变。 */
#app .theme-special-notice.notice-faithful {
  box-sizing:border-box; width:100%; max-width:920px; margin:0 auto; padding:0;
  isolation:isolate; overflow:hidden; border:1px solid #abd9f2; border-radius:0;
  color:#44445b; background:#edf8ff; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif;
  font-size:17px; font-weight:400; line-height:1.7; text-align:left; -webkit-text-size-adjust:100%;
}
#app .notice-faithful>h2 { margin:0; padding:12px 10px 11px; border:0; background:radial-gradient(ellipse at 20% 0%,#ffffffd9,transparent 75%),linear-gradient(115deg,#216db9 0%,#107aff 50%,#1a70c4 100%); text-align:center; }
#app .notice-faithful>h2::after,#app .notice-faithful .theme-notice-section h3>span::after { content:none; animation:none; }
#app .notice-faithful>h2>span { display:block; margin:0; padding:0; color:#f58a08; font-size:33px; font-weight:900; line-height:1.3; letter-spacing:.5px; text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 3px 0 #bd6829,0 4px 5px #a153153d; }
#app .notice-faithful .notice-body { display:grid; gap:8px; margin:0; padding:8px 4px; background:#edf8ff; }
#app .notice-faithful .theme-notice-section { width:100%; min-width:0; margin:0; padding:0; overflow:hidden; border-style:solid; border-color:#c9e6f8; border-width:1px 0; border-radius:0; background:#fff; }
#app .notice-faithful .theme-notice-section h3 { display:flex; align-items:center; gap:9px; margin:0; padding:9px 11px; background:#e2f3ff; }
#app .notice-faithful .theme-notice-section h3 i { position:relative; isolation:isolate; display:grid; place-items:center; flex:0 0 35px; width:35px; height:34px; margin:0; padding:0; border:0; color:#fff; background:transparent; font-family:Arial,sans-serif; font-size:22px; font-style:normal; font-weight:900; line-height:1; letter-spacing:-1px; text-shadow:0 1px 0 #9b480a59,0 2px 2px #9b480a2e; }
#app .notice-faithful .theme-notice-section h3 i::before { background:linear-gradient(135deg,#dc6a0a,#b95b17); }
#app .notice-faithful .theme-notice-section h3 i::after { border:1px solid #ffffff3d; background:linear-gradient(145deg,#ffd956 0%,#ffad10 38%,#f27d0d 100%); box-shadow:inset 0 1px 0 #ffffff6b,inset 1px 0 0 #ffffff1f,inset 0 -1px 0 #9f4d0a33; }
#app .notice-faithful .theme-notice-section h3>.notice-lead { position:relative; display:block; flex:1; min-width:0; margin:0; padding:0; border:0; overflow:visible; color:#1559be; background:none; font-family:inherit; font-size:22px; font-weight:900; line-height:1.4; letter-spacing:0; text-shadow:0 1px 0 #fff,0 2px 0 #b7d4f4,0 3px 3px #1a4e9429; overflow-wrap:anywhere; }
#app .notice-faithful .lead-face,#app .notice-faithful .lead-shine { display:block; margin:0; padding:0; font:inherit; letter-spacing:inherit; }
#app .notice-faithful .lead-shine { display:none; position:absolute; inset:0; text-shadow:none; pointer-events:none; }
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  #app .notice-faithful .lead-shine { display:block; background:linear-gradient(110deg,transparent 36%,#d4efffa6 43%,#fff 48%,#fff 52%,#d4efffa6 57%,transparent 64%); background-size:300% 100%; background-position:100% 50%; -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; animation:notice-faithful-shine 4.5s ease-in-out infinite; }
  #app .notice-faithful .theme-notice-section:nth-child(2) .lead-shine { animation-delay:.35s; }
  #app .notice-faithful .theme-notice-section:nth-child(3) .lead-shine { animation-delay:.7s; }
}
@keyframes notice-faithful-shine { 0%,12% { background-position:100% 50%; } 72%,100% { background-position:0% 50%; } }
#app .notice-faithful .notice-copy { margin:0; padding:9px 11px; color:#44445b; background:#fff; font-family:inherit; font-size:inherit; line-height:inherit; }
#app .notice-faithful .notice-copy p { display:block; min-width:0; margin:0; padding:0; border:0; color:inherit; background:none; font-family:inherit; font-size:inherit; font-weight:400; line-height:inherit; text-align:left; text-indent:0; white-space:normal; word-break:normal; overflow-wrap:anywhere; }
#app .notice-faithful .notice-copy p+p { margin-top:6px; }
#app .notice-faithful .notice-copy .privacy,#app .notice-faithful .notice-copy .note { padding:6px 8px; border-radius:5px; font-size:16px; font-weight:800; line-height:1.6; }
#app .notice-faithful .notice-copy .privacy { color:#29821d; background:#eff8e9; }
#app .notice-faithful .notice-copy .note { color:#98590c; background:#fff6de; }
#app .notice-faithful strong { color:#ed174d; font-family:inherit; font-weight:800; }
#app .notice-faithful .theme-notice-banner { container-type:inline-size; margin:0; padding:10px 12px; border-radius:12px; background:linear-gradient(125deg,#00cbde80,transparent 53%),repeating-linear-gradient(162deg,#531ca3 0 15px,#6e32c1 15px 29px,#4b1b9d 29px 43px); }
#app .notice-faithful .theme-notice-banner::before { animation:none; opacity:1; background:linear-gradient(115deg,#36dcf554,transparent 60%); transform:none; }
#app .notice-faithful .theme-notice-banner b { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:clamp(14px,2.5vw,30px); font-size:clamp(14px,4.5cqw,30px); font-weight:900; line-height:1.4; white-space:nowrap; }
#app .notice-faithful .theme-notice-banner b>span { display:inline; margin:0; color:#fff; font:inherit; text-shadow:0 2px 2px #292471; }
#app .notice-faithful .theme-notice-banner b>em { color:#ffe16e; font:inherit; font-style:normal; text-shadow:0 2px 2px #8733ac; }
#app .notice-faithful .theme-notice-banner p { display:flex; justify-content:space-between; gap:10px; margin:2px 0 0; padding:0; color:#f1d7ff; font-size:clamp(12px,2vw,23px); font-size:clamp(12px,3.8cqw,23px); font-weight:800; line-height:1.4; white-space:nowrap; }
#app .notice-faithful .theme-notice-banner p>span { display:inline; margin:0; color:inherit; font:inherit; }
#app .notice-faithful .theme-notice-banner p>span:first-child { color:#5fffe6; }
@media(max-width:600px) {
  #app .theme-special-notice.notice-faithful { font-size:16px; }
  #app .notice-faithful>h2 { padding:11px 8px 10px; }
  #app .notice-faithful>h2>span { font-size:28px; }
  #app .notice-faithful .notice-body { gap:7px; padding:7px 4px; }
  #app .notice-faithful .theme-notice-section h3 { gap:8px; padding:8px 10px; }
  #app .notice-faithful .theme-notice-section h3 i { flex-basis:33px; width:33px; height:32px; font-size:21px; }
  #app .notice-faithful .theme-notice-section h3>.notice-lead { font-size:20px; }
  #app .notice-faithful .notice-copy { padding:8px 10px; }
  #app .notice-faithful .notice-copy .privacy,#app .notice-faithful .notice-copy .note { font-size:15px; }
  #app .notice-faithful .theme-notice-banner { padding:8px 10px; }
}
@media(max-width:360px) {
  #app .notice-faithful>h2>span { font-size:26px; letter-spacing:0; }
  #app .notice-faithful .notice-body { padding:6px 4px; }
  #app .notice-faithful .theme-notice-section h3,#app .notice-faithful .notice-copy { padding:8px; }
  #app .notice-faithful .theme-notice-section h3>.notice-lead { font-size:19px; }
}
@media(prefers-reduced-motion:reduce) { #app .notice-faithful .lead-shine { display:none; animation:none; } }

/* Local admin only: structured notice fields, with the existing HTML retained. */
.intro-easy-editor { padding:18px; }
.intro-easy-editor>header h3 { font-size:16px; }
.intro-easy-editor>header p { font-size:12px; line-height:1.7; }
.intro-easy-editor .intro-help { margin:14px 0; padding:12px 14px; border-left:3px solid #3b82f6; border-radius:5px; color:#24538a; background:#edf5ff; font-size:13px; line-height:1.9; }
.intro-easy-editor .intro-help small { color:#64748b; font-size:12px; }
.intro-easy-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.95fr); gap:20px; align-items:start; }
.intro-easy-layout>* { min-width:0; }
.intro-easy-editor .intro-field { min-width:0; margin-bottom:12px; }
.intro-easy-editor .intro-field>label { display:block; margin-bottom:6px; color:#344054; font-size:13px; font-weight:600; }
.intro-easy-editor .intro-field>input { display:block; width:100%; min-width:0; height:40px; padding:8px 10px; font-size:14px; background:#fff; }
.intro-easy-editor .intro-section-fields { min-width:0; margin:16px 0; padding:14px 14px 0; border:1px solid #dce5ef; border-radius:9px; background:#fff; }
.intro-easy-editor .intro-section-fields>legend { padding:0 8px; color:#1d5da0; font-size:14px; font-weight:700; }
.intro-easy-editor .intro-inline-tools { display:flex; flex-wrap:wrap; gap:6px; padding:6px 8px; border:1px solid #d0d5dd; border-radius:6px 6px 0 0; background:#f8fafc; }
.intro-easy-editor .intro-inline-tools button { min-height:30px; height:auto; padding:4px 10px; border:1px solid #d7e0ea; border-radius:4px; background:#fff; color:#344054; font-size:12px; cursor:pointer; }
.intro-easy-editor .intro-inline-tools button:nth-child(2) { color:#d92347; }
.intro-easy-editor .intro-body-input { min-height:82px; max-height:280px; overflow:auto; padding:10px; border:1px solid #d0d5dd; border-top:0; border-radius:0 0 6px 6px; background:#fff; color:#44445b; font-size:14px; font-weight:400; line-height:1.8; overflow-wrap:anywhere; white-space:pre-wrap; user-select:text!important; -webkit-user-select:text!important; cursor:text; }
.intro-easy-editor .intro-body-input * { user-select:text!important; -webkit-user-select:text!important; }
.intro-easy-editor .intro-body-input strong,.intro-easy-editor .intro-body-input b { color:#ed174d; font-weight:800; }
.intro-easy-editor .intro-body-input:focus { outline:2px solid #2f80ed; outline-offset:1px; }
.intro-easy-editor .intro-banner-fields,.intro-easy-editor .intro-advanced { margin-top:14px; padding:12px; border:1px solid #dce3ee; border-radius:7px; background:#fff; }
.intro-easy-editor summary { color:#475467; font-size:13px; line-height:1.7; cursor:pointer; }
.intro-easy-editor .intro-banner-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; margin-top:12px; }
.intro-easy-editor .intro-preview-panel { position:sticky; top:16px; padding:10px; border:1px solid #dce3ee; border-radius:9px; background:#fff; }
.intro-easy-editor .intro-preview-panel h4 { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px; margin:2px 2px 10px; color:#344054; font-size:13px; }
.intro-easy-editor .intro-preview-panel h4 small { color:#7b8797; font-size:11px; font-weight:400; }
.intro-easy-editor .intro-preview-panel iframe { display:block; width:100%; height:740px; border:0; background:#fff; }
.intro-easy-editor .intro-advanced>p { color:#667085; font-size:12px; }
.intro-easy-editor .intro-advanced textarea { margin-top:10px; min-height:150px; font-family:Consolas,monospace; font-size:12px; }
.intro-easy-editor .intro-advanced .copy-reset { margin-top:10px; font-size:11px; }
.intro-easy-editor .intro-save-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:18px; padding-top:14px; border-top:1px solid #dce3ee; }
.intro-easy-editor .intro-save-row [role=status] { color:#667085; font-size:12px; }
.intro-easy-editor .intro-save-row [data-dirty=true] { color:#946200; }
.intro-easy-editor .intro-save-row button { min-height:40px; padding:9px 18px; font-size:14px; }
.intro-easy-editor .intro-fallback { color:#667085; font-size:13px; line-height:1.8; }
@media(max-width:1100px) { .intro-easy-layout { grid-template-columns:minmax(0,1fr); } .intro-easy-editor .intro-preview-panel { position:static; } }
@media(max-width:600px) { .intro-easy-editor { padding:12px; } .intro-easy-editor .intro-section-fields { padding:10px 10px 0; } .intro-easy-editor .intro-banner-grid { grid-template-columns:minmax(0,1fr); } .intro-easy-editor .intro-preview-panel { padding:4px; } .intro-easy-editor .intro-preview-panel iframe { height:700px; } }

/* Homepage ticker and its scoped admin editor share the same visual renderer. */
.theme-ticker { display:flex; align-items:center; gap:6px; box-sizing:border-box; min-width:0; padding:6px 8px; border:1px solid #e9ad38; border-radius:10px; background:var(--ticker-bg,#fff8d8); color:var(--ticker-color,#b91c1c); font-family:"Microsoft YaHei",system-ui,sans-serif; font-size:13px; font-weight:700; line-height:1.5; }
#app #home-ticker { margin:8px 16px 0; }
#app #home-ticker:empty { display:none; }
.theme-ticker-label { display:inline-flex; flex:none; align-items:center; gap:3px; max-width:40%; padding:1px 6px; border-radius:12px; background:var(--ticker-badge,#b91c1c); color:#fff; line-height:1.5; }
.theme-ticker-label span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.theme-ticker-label svg { flex:none; width:13px; height:13px; fill:currentColor; }
.theme-ticker-window { flex:1; min-width:0; overflow:hidden; }
.theme-ticker-track { display:flex; width:max-content; animation:theme-ticker-scroll var(--ticker-duration,28s) linear infinite; will-change:transform; }
.theme-ticker-track>span { display:block; flex:none; padding-right:48px; white-space:nowrap; }
.theme-ticker:hover .theme-ticker-track,.theme-ticker:focus .theme-ticker-track { animation-play-state:paused; }
.theme-ticker:focus-visible { outline:2px solid #2879e0; outline-offset:2px; }
@keyframes theme-ticker-scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media(prefers-reduced-motion:reduce) { .theme-ticker-track { animation:none; will-change:auto; } .theme-ticker-window { overflow:auto; } .theme-ticker-track>span[aria-hidden] { display:none; } }
.ticker-editor { padding:18px; border:1px solid #dce3ee; border-radius:10px; background:#f8fafc; }
.ticker-editor>header { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:14px; }
.ticker-editor h3 { margin:0; color:#101828; font-size:16px; }
.ticker-editor>header p { margin:6px 0 0; color:#667085; font-size:12px; line-height:1.7; }
.ticker-editor label { display:block; color:#344054; font-size:13px; font-weight:600; }
.ticker-editor .check { display:flex; align-items:center; white-space:nowrap; }
.ticker-editor-fields { display:grid; grid-template-columns:140px minmax(0,1fr); gap:16px; }
.ticker-editor-fields input,.ticker-editor-fields textarea { display:block; box-sizing:border-box; width:100%; margin-top:7px; padding:9px 10px; color:#344054; background:#fff; font-size:14px; }
.ticker-editor-fields input { height:40px; }
.ticker-editor-fields textarea { min-height:90px; resize:vertical; }
.ticker-editor small { color:#667085; font-size:12px; font-weight:400; line-height:1.7; }
.ticker-style-settings { margin-top:12px; padding:10px 12px; border:1px solid #dce3ee; border-radius:7px; background:#fff; }
.ticker-style-settings summary { color:#475467; font-size:13px; cursor:pointer; }
.ticker-style-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:14px; }
.ticker-style-grid label>span { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:8px; }
.ticker-style-grid input[type=color] { width:42px; height:32px; padding:2px; }
.ticker-style-grid select { height:34px; margin-top:8px; font-size:13px; }
.ticker-style-grid output { color:#667085; font-size:12px; }
.ticker-preview { margin-top:16px; padding:12px; border:1px dashed #b8c5d8; border-radius:8px; background:#fff; }
.ticker-preview>b { display:block; margin-bottom:4px; color:#344054; font-size:13px; }
.ticker-preview .theme-ticker { margin-top:10px; }
.ticker-preview p { margin:10px 0 0; color:#667085; font-size:13px; }
.ticker-save-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid #dce3ee; }
.ticker-save-row [role=status] { color:#667085; font-size:12px; }
.ticker-save-row button { min-height:40px; padding:9px 18px; font-size:14px; }
@media(max-width:600px) { .ticker-editor { padding:12px; } .ticker-editor-fields { grid-template-columns:minmax(0,1fr); gap:12px; } .ticker-style-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .ticker-preview { padding:8px; } }

/* Public five-column image catalogue, reconstructed without an external iframe. */
#app .theme-directory { margin:12px 16px; padding:2px; border:1px solid #d2c791; background:#fffef5; }
#app .theme-directory-table { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:2px; border:1px solid #d2d2d2; background:#fff; }
#app .theme-directory-table td { height:30px; padding:0; border:1px dashed #c0c0c0; background:linear-gradient(#fff,#f8f8f8); text-align:center; }
#app .theme-directory-table button { display:block; width:100%; min-height:30px; padding:2px 1px; border:0; border-radius:0; color:#000; background:transparent; font-family:SimSun,"宋体",serif; font-size:13px; font-weight:700; line-height:1.9; white-space:nowrap; cursor:pointer; }
#app .theme-directory-table button:hover { color:#a66300; background:#fff8d9; }
#app .theme-directory-table button:focus-visible { position:relative; outline:2px solid #2f67d2; outline-offset:-2px; background:#fff8d9; }
.theme-gallery-dialog { box-sizing:border-box; width:min(96vw,900px); max-width:96vw; max-height:94dvh; margin:auto; padding:0; border:1px solid #cbd5e1; border-radius:10px; color:#172b46; background:#fff; box-shadow:0 12px 55px #0005; }
.theme-gallery-dialog::backdrop { background:#000c; }
.theme-gallery-dialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border-bottom:1px solid #dce3ee; background:#f5f8fd; }
.theme-gallery-dialog h3 { margin:0; font-size:16px; }
.theme-gallery-dialog button { min-height:36px; padding:6px 12px; border:1px solid #cbd5e1; border-radius:6px; color:#254c82; background:#fff; font:600 13px/1.5 "Microsoft YaHei",sans-serif; cursor:pointer; }
.theme-gallery-content { max-height:calc(94dvh - 122px); overflow:auto; overscroll-behavior:contain; text-align:center; }
.theme-gallery-content img { display:block; width:100%; height:auto; margin:auto; }
.theme-gallery-content [hidden] { display:none!important; }
.theme-gallery-content p { margin:0; padding:32px 14px; color:#667085; font-size:14px; }
.theme-gallery-dialog footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:8px 12px; border-top:1px solid #dce3ee; }
.theme-gallery-dialog footer>span { color:#667085; font-size:12px; }
.theme-gallery-dialog footer nav { display:flex; gap:8px; }
.directory-editor { padding:16px; border:1px solid #dce3ee; border-radius:9px; background:#f8fafc; }
.directory-editor header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.directory-editor h3 { margin:0; font-size:15px; }
.directory-editor header p { margin:6px 0; color:#667085; font-size:12px; }
.directory-save-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:12px; }
.directory-save-row [role=status] { color:#667085; font-size:12px; }
@media(min-width:721px) { #app .theme-directory-table button { font-size:14px; } }
@media(max-width:360px) { #app .theme-directory { margin-left:10px; margin-right:10px; padding:0; } #app .theme-directory-table { border-spacing:1px; } #app .theme-directory-table button { font-size:11px; } }

/* 仅补回首页 K 线与日期卡，其他区域不变。 */
#app .theme-kline { margin:10px 6px 0; overflow:hidden; border:1px solid #e2e8f2; border-radius:14px; background:transparent; box-shadow:0 3px 12px #0f172a0d; font-family:Arial,"Microsoft YaHei",sans-serif; }
#app .theme-kline-head { padding:6px 10px 2px; }
#app .theme-kline-legend { display:flex; align-items:center; flex-wrap:nowrap; gap:10px; min-width:0; line-height:22px; }
#app .theme-kline-legend>span { white-space:nowrap; font-size:15px; font-weight:800; }
#app .theme-kline-legend .theme-kline-key { color:#94a3b8; font-size:13px; font-weight:700; }
#app .theme-kline .ma-5 { color:#f59e0b; }
#app .theme-kline .ma-10 { color:#8b5cf6; }
#app .theme-kline .ma-30 { color:#3f8cff; }
#app .theme-kline-subtitle { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:3px; color:#94a3b8; font-size:12px; font-weight:700; line-height:17px; }
#app .theme-kline-info { flex:none; display:inline-flex; align-items:center; gap:3px; padding:0; border:0; border-radius:3px; color:#94a3b8; background:transparent; font:inherit; cursor:pointer; }
#app .theme-kline-info:focus-visible,#app .theme-kline-close:focus-visible { outline:2px solid #3f8cff; outline-offset:3px; }
#app .theme-kline-plot { display:block; width:100%; height:auto; }
#app .theme-kline-grid { stroke:#e6ecf5; stroke-width:1; fill:none; }
#app .theme-kline-axis { fill:#94a3b8; font-size:12px; font-family:Arial,sans-serif; }
#app .theme-kline-candle path { fill:none; stroke-width:1.5; }
#app .theme-kline-candle.up path { stroke:#f6465d; }
#app .theme-kline-candle.up rect { fill:#f6465d; }
#app .theme-kline-candle.down path { stroke:#2ebd85; }
#app .theme-kline-candle.down rect { fill:#2ebd85; }
#app .theme-kline-ma { fill:none; stroke-width:2; }
#app .theme-kline-ma.ma-5 { stroke:#f59e0b; }
#app .theme-kline-ma.ma-10 { stroke:#8b5cf6; }
#app .theme-kline-ma.ma-30 { stroke:#3f8cff; }
#app .theme-kline-current { stroke:#3f8cff; stroke-width:1.5; stroke-dasharray:7 5; fill:none; }
#app .theme-kline-price rect { fill:#3f8cff; }
#app .theme-kline-price text { fill:#fff; font:700 15px Arial,sans-serif; }
#app .theme-kline-modal { position:fixed; z-index:10060; inset:0; display:grid; place-items:center; padding:18px; background:#0f172a73; }
#app .theme-kline-modal[hidden] { display:none; }
#app .theme-kline-dialog { box-sizing:border-box; width:100%; max-width:420px; max-height:80vh; overflow:auto; padding:20px; border-radius:16px; color:#475569; background:#fff; box-shadow:0 18px 50px #0f172a4d; font-family:"PingFang SC","Microsoft YaHei",sans-serif; }
#app .theme-kline-dialog h3 { margin:0 0 12px; color:#1e293b; font-size:17px; font-weight:800; }
#app .theme-kline-dialog p { margin:0 0 11px; font-size:13.5px; line-height:1.65; }
#app .theme-kline-close { width:100%; height:40px; margin-top:6px; padding:0; border:0; border-radius:10px; color:#fff; background:#3f8cff; font:700 15px "Microsoft YaHei",sans-serif; cursor:pointer; }
#app .theme-calendar { box-sizing:border-box; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:10px 6px 0; padding:12px 18px; border:1px solid #d9e2ef; border-radius:12px; background:#fff; font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif; }
#app .theme-calendar-column { position:relative; display:grid; grid-template-rows:22px 44px 24px; align-items:center; min-width:0; padding:0 4px; text-align:center; }
#app .theme-calendar-column+.theme-calendar-column::before { content:""; position:absolute; top:6px; bottom:6px; left:0; width:1px; background:#d9e2ef; }
#app .theme-calendar-label { color:#6b7280; font-size:15px; font-weight:600; line-height:22px; }
#app .theme-calendar-date,#app .theme-calendar-time,#app .theme-calendar-lunar { display:block; margin:0; padding:0; font-size:26px; line-height:44px; font-weight:800; white-space:nowrap; font-variant-numeric:tabular-nums; }
#app .theme-calendar-date { color:#f59e0b; }
#app .theme-calendar-time { color:#b91c1c; }
#app .theme-calendar-lunar { color:#dc2626; }
#app .theme-calendar-year,#app .theme-calendar-weekday,#app .theme-calendar-cycle { display:flex; align-items:center; justify-content:center; margin:0; padding:0; font-size:17px; font-weight:600; line-height:24px; white-space:nowrap; }
#app .theme-calendar-year { color:#4b5563; }
#app .theme-calendar-weekday { color:#2563eb; }
#app .theme-calendar-cycle { gap:4px; color:#16a34a; }
#app .theme-calendar-animal { color:#9333ea; }
@media(max-width:767px) {
  #app .theme-calendar { padding:10px 0; }
  #app .theme-calendar-column { grid-template-rows:19px 38px 21px; }
  #app .theme-calendar-label { font-size:13px; font-weight:400; line-height:19px; }
  #app .theme-calendar-date,#app .theme-calendar-time,#app .theme-calendar-lunar { font-size:22px; font-weight:700; line-height:38px; }
  #app .theme-calendar-year,#app .theme-calendar-weekday,#app .theme-calendar-cycle { font-size:15px; font-weight:500; line-height:21px; }
}
@media(max-width:400px) {
  #app .theme-kline-legend { gap:7px; }
  #app .theme-kline-legend>span { font-size:12px; }
  #app .theme-kline-legend .theme-kline-key { font-size:11px; }
  #app .theme-calendar-date,#app .theme-calendar-time,#app .theme-calendar-lunar { font-size:20px; }
  #app .theme-calendar-cycle { gap:2px; font-size:12px; }
}

#app .theme-calendar-lunar[data-unavailable="true"] { font-size:12px; white-space:normal; line-height:1.4; }
@media(max-width:359px) {
  #app .theme-kline-legend { gap:5px; }
  #app .theme-kline-legend>span { font-size:10.5px; }
  #app .theme-kline-legend .theme-kline-key { font-size:9.5px; }
}

/* 仅首页左上角：圆角图标、白色站名、黄色域名。 */
#app .theme-brand-header { height:calc(64px + env(safe-area-inset-top)); border-radius:0 0 12px 12px; }
#app .theme-brand-header .topbar-inner { height:64px; padding:6px 12px; gap:10px; }
#app .theme-home-brand { display:flex; align-items:center; gap:9px; flex:1 1 auto; min-width:0; height:52px; }
#app .theme-home-brand-mark { display:flex; align-items:center; justify-content:center; flex:0 0 48px; width:48px; height:48px; overflow:hidden; border-radius:14px; background:radial-gradient(circle at 28% 24%,#fff9cf,#facc15 42%,#f59e0b); box-shadow:inset 0 1px 2px #ffffff80; }
#app .theme-home-brand-mark img { display:block; width:100%; height:100%; max-width:none; max-height:none; object-fit:cover; border-radius:inherit; }
#app .theme-home-brand-copy { display:flex; flex-direction:column; justify-content:center; gap:3px; min-width:0; }
#app .theme-brand-header .theme-home-brand h1 { flex:none; margin:0; padding:0; color:#f8fbff; font-size:26px; font-weight:900; line-height:26px; text-shadow:0 1px 2px #0b2f7166; }
#app .theme-home-brand-domain { display:flex; align-items:center; gap:5px; min-width:0; color:#f8f66d; font:800 17px/17px Arial,"Microsoft YaHei",sans-serif; white-space:nowrap; }
#app .theme-home-brand-domain i { flex:0 0 5px; width:5px; height:5px; border-radius:50%; background:currentColor; }
#app .theme-home-brand-domain>span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
#app .theme-brand-header .guest-actions { flex:0 0 auto; }
@media(max-width:767px) {
  #app .theme-brand-header { height:calc(60px + env(safe-area-inset-top)); }
  #app .theme-brand-header .topbar-inner { height:60px; padding:5px 8px; gap:8px; }
  #app .theme-home-brand { height:50px; gap:7px; }
  #app .theme-home-brand-mark { flex-basis:44px; width:44px; height:44px; }
  #app .theme-brand-header .theme-home-brand h1 { font-size:22px; line-height:22px; }
  #app .theme-home-brand-domain { font-size:15px; line-height:15px; }
}
@media(max-width:359px) {
  #app .theme-home-brand { gap:6px; }
  #app .theme-brand-header .theme-home-brand h1 { font-size:20px; line-height:22px; }
  #app .theme-home-brand-domain { font-size:13px; line-height:15px; }
}
@media(max-width:520px) {
  #app .theme-brand-header.has-member .theme-home-brand { gap:5px; }
  #app .theme-brand-header.has-member .theme-home-brand-mark { flex-basis:34px; width:34px; height:34px; border-radius:10px; }
  #app .theme-brand-header.has-member .theme-home-brand h1 { font-size:16px; line-height:20px; }
  #app .theme-brand-header.has-member .theme-home-brand-domain { gap:3px; font-size:11px; line-height:14px; }
  #app .theme-brand-header.has-member .member-summary { flex:0 1 52%; min-width:0; margin-left:0; gap:4px; }
  #app .theme-brand-header.has-member .member-identity { flex:1 1 54px; min-width:0; max-width:62px; }
  #app .theme-brand-header.has-member .coin-balance { flex:1 1 66px; min-width:0; padding:4px; }
  #app .theme-brand-header.has-member .member-exit { flex:0 0 auto; }
}
