* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, Roboto, sans-serif; }
body { background: #f5f7fb; display: flex; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ========= 左侧一级导航 ========= */
.left-sidebar { width: 160px; background: #ffffff; height: 100vh; position: fixed; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; padding: 24px 0 20px; border-right: 1px solid #edeff2; z-index: 100; box-shadow: 2px 0 12px rgba(0,0,0,.02); overflow-y: auto; }
.sidebar-logo { font-size: 24px; font-weight: 800; margin-bottom: 36px; color: #1f2a3e; letter-spacing: -.5px; background: linear-gradient(130deg,#1e2f4b,#2c3e66); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sidebar-logo-img { width: 105px; height: 105px; object-fit: contain; border-radius: 6px; margin-top: -16px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; width: 100%; }
.sidebar-bottom { width: 100%; margin-top: auto; display: flex; flex-direction: column; align-items: center; padding-top: 20px; border-top: 1px solid #f0f2f5; }
/* 右上角 操作区（充值 + 登录/注册 或 用户头像） */
.top-right-actions { position: fixed; top: 14px; right: 24px; z-index: 300; display: flex; align-items: center; gap: 18px; }
/* 充值按钮（￥ 圆圈 + 文字） */
.top-recharge-btn { display: inline-flex; align-items: center; gap: 8px; margin-right: 30px; color: #111; font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: .5px; }
.top-recharge-btn .trc-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 2px solid #111; border-radius: 50%; font-size: 15px; font-weight: 700; line-height: 1; }
.top-recharge-btn:hover { color: #000; }
.top-recharge-btn:hover .trc-ico { background: #111; color: #fff; }
/* 收藏网站按钮 + 提示气泡 */
.top-fav-btn { display: inline-flex; align-items: center; gap: 6px; color: #111; font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: .5px; }
.top-fav-btn .tf-ico { width: 20px; height: 20px; object-fit: contain; display: block; }
.top-fav-btn:hover { color: #000; }
.fav-tip { position: fixed; z-index: 400; background: #1e293b; color: #fff; font-size: 13px; padding: 9px 14px; border-radius: 9px; box-shadow: 0 8px 22px rgba(0,0,0,.25); opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .18s; pointer-events: none; white-space: nowrap; }
.fav-tip.show { opacity: 1; transform: translateY(0); }
.fav-tip b { color: #fbbf24; }
/* 右上角 登录/注册 按钮（未登录时显示） */
.top-auth-btn { width: 100px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: #222; color: #fff; font-size: 15px; font-weight: 700; padding: 0; border-radius: 50px; text-decoration: none; letter-spacing: .5px; transition: background .2s; line-height: 1; }
.top-auth-btn:hover { background: #000; }
/* 右上角 已登录用户头像 */
.top-user-btn, .top-user-btn.user-pop-trigger { position: relative; }
.top-user-link { display: block; text-decoration: none; }
.top-user-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: .2s; }
.top-user-avatar:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.24); }
.top-user-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 1; }
/* 出现右上角操作区时，把页面头部右侧的「返回首页」左移，避免遮挡 */
body:has(.top-recharge-btn) .detail-header .back-home { margin-right: 196px; }
/* 右上角固定操作区会盖住居中的搜索框：给头部右侧预留空间，使搜索框左移避开 */
body:has(.top-right-actions) .detail-header { padding-right: 250px; }
.sidebar-item { width: 100%; text-align: left; padding: 12px 18px; cursor: pointer; font-size: 12px; color: #000; display: flex; flex-direction: row; gap: 12px; align-items: center; transition: .2s; margin-bottom: 4px; border-left: 3px solid transparent; box-sizing: border-box; text-decoration: none; }
.sidebar-item i { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-item[data-auth-open="1"] { flex-direction: column; gap: 4px; text-align: center; }
.sidebar-item[data-auth-open="1"] i { font-size: 22px; width: auto; margin-bottom: 2px; }
.sidebar-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 28px; margin-bottom: 2px; }
.sidebar-avatar i { font-size: 22px; margin-bottom: 0; }
.sidebar-avatar img { position: absolute; inset: 0; width: 26px; height: 26px; object-fit: cover; border-radius: 50%; z-index: 1; }
.sidebar-item span:last-child { font-size: 16px; font-weight: 500; font-family: 'MiSans', system-ui, 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .2px; }
.sidebar-item.active { color: #000; border-left-color: #000; background: #f5f5f5; }
.sidebar-item:hover:not(.active) { color: #000; background: #e7ecf3; }

/* ========= 主内容 ========= */
.main-wrap { margin-left: 160px; width: calc(100% - 160px); background: #f5f7fb; min-height: 100vh; }

/* 顶部导航搜索框 Banner（浅色主题，原 .top-banner 已弃用）*/
.hs-banner { background: #F5F7FB; margin: 16px 20px; padding: 36px 24px 0px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.hs-banner .hs-title { font-size: 32px; font-weight: 400; color: #1a1a1a; letter-spacing: 2px; margin-bottom: 36px; text-align: center; text-shadow: 0 4px 6px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03); }
.hs-widget { width: 100%; max-width: 1100px; position: relative; --tc-top: #93C5FD; --tc-bottom: #2563EB; --tc-solid: #2563EB; }
.hs-widget[data-theme="purple"] { --tc-top: #C4B5FD; --tc-bottom: #7C3AED; --tc-solid: #7C3AED; }
.hs-widget[data-theme="orange"] { --tc-top: #FDBA74; --tc-bottom: #EA580C; --tc-solid: #EA580C; }
.hs-widget[data-theme="green"]  { --tc-top: #86EFAC; --tc-bottom: #16A34A; --tc-solid: #16A34A; }
.hs-widget[data-theme="pink"]   { --tc-top: #F9A8D4; --tc-bottom: #DB2777; --tc-solid: #DB2777; }
.hs-widget[data-theme="cyan"]   { --tc-top: #67E8F9; --tc-bottom: #0891B2; --tc-solid: #0891B2; }
.hs-widget[data-theme="red"]    { --tc-top: #EF4444; --tc-bottom: #B91C1C; --tc-solid: #B91C1C; }
.hs-widget[data-theme="indigo"] { --tc-top: #A5B4FC; --tc-bottom: #4F46E5; --tc-solid: #4F46E5; }
.hs-tabs { display: flex; justify-content: center; flex-wrap: nowrap; margin-bottom: -4px; position: relative; z-index: 1; }
.hs-tab { position: relative; height: 54px; display: flex; align-items: center; justify-content: center; padding: 0 39px; font-size: 16px; font-weight: 500; color: #0e0e0e; text-decoration: none; cursor: pointer; background: rgba(255,255,255,.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.8); border-bottom: none; transition: all .3s cubic-bezier(.4,0,.2,1); clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%); margin-left: -15px; z-index: 1; white-space: nowrap; }
.hs-tab:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%); border-radius: 12px 0 0 0; margin-left: 0; }
.hs-tab:last-child { clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 12px 0 0; }
.hs-tab.active { color: var(--tc-solid); font-weight: 600; transform: scale(1.08) translateY(-2px); z-index: 5; background: transparent; border-color: transparent; box-shadow: 0 -6px 16px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.02); }
.hs-tab.active::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--tc-bottom) 0%, var(--tc-top) 100%); clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%); }
.hs-tab.active::after { content: ''; position: absolute; inset: 1px 1px 0 1px; background: #fff; z-index: -1; clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%); }
.hs-tab.active:first-child::before { clip-path: polygon(10px 0, 100% 0, calc(100% - 15px) 100%, 0 100%); border-radius: 12px 10px 0 0; }
.hs-tab.active:first-child::after { clip-path: polygon(10px 0, 100% 0, calc(100% - 15px) 100%, 0 100%); border-radius: 11px 9px 0 0; }
.hs-tab.active:last-child::before { clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 12px 0 0; }
.hs-tab.active:last-child::after { clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 11px 0 0; }
.hs-tab.active:not(:first-child):not(:last-child)::before { border-radius: 10px 10px 0 0; }
.hs-tab.active:not(:first-child):not(:last-child)::after { border-radius: 9px 9px 0 0; inset: 1px 1px 0 1px; }
.hs-cover { display: none; }
.hs-tab.active .hs-cover { display: block; position: absolute; bottom: -5px; left: 0; right: 0; height: 10px; background: #fff; z-index: 6; }
.hs-searchwrap { position: relative; z-index: 2; border-radius: 22px; padding: 2px; background: linear-gradient(to top, var(--tc-bottom) 0%, var(--tc-top) 100%); box-shadow: 0 4px 24px rgba(59,130,246,.15); }
.hs-searchinner { background: #fff; border-radius: 20px; width: 100%; min-height: 64px; display: flex; align-items: center; padding: 8px 8px 8px 22px; }
.hs-sicon { width: 26px; height: 26px; fill: #94A3B8; margin-right: 14px; flex: none; }
.hs-input { flex: 1; padding: 0; border: none; outline: none; font-size: 16px; font-weight: 400; color: #1E293B; background: transparent; min-width: 0; height: auto; border-radius: 0; }
.hs-input::placeholder { color: #A0AEC0; font-weight: 400; }
.hs-cam { width: 24px; height: 24px; fill: #94A3B8; cursor: pointer; margin-right: 14px; flex: none; transition: fill .2s; }
.hs-cam:hover { fill: var(--tc-solid); }
.hs-btn { background: var(--tc-solid); color: #fff; border: none; border-radius: 14px; height: 50px; padding: 0 45px; font-size: 16px; font-weight: 500; cursor: pointer; transition: filter .25s; flex: none; width: auto; margin-left: 0; }
.hs-btn:hover { filter: brightness(.94); }
/* AI创作模式（点击「AI创作」tab 后替换搜索框）*/
.hs-ai { position: relative; z-index: 2; border-radius: 22px; padding: 2px; background: linear-gradient(to top, var(--tc-bottom) 0%, var(--tc-top) 100%); box-shadow: 0 4px 24px rgba(124,58,237,.18); }
.hs-ai-inner { background: #fff; border-radius: 20px; padding: 16px 20px; display: flex; flex-direction: column; }
.hs-ai-textarea { width: 100%; min-height: 92px; border: none; outline: none; resize: none; font-size: 16px; color: #1E293B; background: transparent; margin-bottom: 16px; font-family: inherit; }
.hs-ai-textarea::placeholder { color: #A0AEC0; }
.hs-ai-tools { display: flex; justify-content: space-between; align-items: center; }
.hs-ai-left { display: flex; align-items: center; gap: 10px; }
.hs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; font-size: 14px; color: #475569; cursor: pointer; }
.hs-pill:hover { background: #F1F5F9; }
#hsAiUploadBtn { font-size: 15px; line-height: 1; padding: 4px 14px; font-weight: 600; }
.hs-ai-ref { position: relative; display: inline-block; margin-top: 12px; }
.hs-ai-ref img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid #E2E8F0; display: block; }
.hs-ai-ref-del { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; background: #334155; color: #fff; font-size: 15px; cursor: pointer; }
.hs-ai-ref-del:hover { background: #111; }
.hs-ai-result { margin-top: 14px; text-align: center; }
.hs-ai-result img { max-width: 100%; max-height: 420px; border-radius: 12px; border: 1px solid #E2E8F0; }
.hs-ai-imgwrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.hs-ai-dl { position: absolute; right: 12px; bottom: 12px; display: inline-block; padding: 7px 16px; border-radius: 18px; font-size: 13px; line-height: 1.3; color: #fff; background: rgba(15,23,42,.68); text-decoration: none; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .18s, transform .18s; }
.hs-ai-dl:hover { background: rgba(15,23,42,.86); transform: translateY(-1px); }
.hs-ai-result .hs-ai-tip { font-size: 14px; color: #64748B; padding: 16px 0; }
.hs-btn:disabled { opacity: .5; cursor: not-allowed; }
/* banner 下方：标签区（参考 .bottom-tags：居中、max-width:860、上 20 下 35）*/
.hs-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 860px; margin: 20px auto 35px; padding: 0 20px; }
.hs-tag { color: #676a6f; padding: 8px 18px; border-radius: 20px; font-size: 14px; cursor: default; }
/* 工具卡片区（参考 .tools-grid：4 列等宽网格，max-width:1000）*/
.hs-tools { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hs-tool { background: #fff; border-radius: 16px; padding: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.hs-tool:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
.hs-tool-text { font-size: 16px; font-weight: 600; color: #1E293B; }
.hs-tool-img { width: 100px; height: 55px; border-radius: 10px; flex-shrink: 0; margin-left: 10px; overflow: hidden; }
.hs-tool-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 以图搜图结果浮层 */
.imgsearch-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; }
.imgsearch-panel { background: #fff; border-radius: 16px; width: 100%; max-width: 1000px; max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.imgsearch-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #eef2f8; }
.imgsearch-title { font-size: 16px; font-weight: 600; color: #1e293b; }
.imgsearch-close { cursor: pointer; font-size: 24px; color: #94a3b8; line-height: 1; }
.imgsearch-close:hover { color: #1e293b; }
.imgsearch-body { overflow-y: auto; padding: 16px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); grid-auto-rows: max-content; align-content: start; gap: 16px; }
.imgsearch-card { cursor: pointer; border-radius: 10px; overflow: hidden; border: 1px solid #eef2f8; background: #fff; display: flex; flex-direction: column; }
.imgsearch-card img { width: 100%; height: 160px; object-fit: cover; display: block; background: #f1f5f9; }
.imgsearch-card span { display: block; font-size: 12.5px; color: #475569; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imgsearch-cat { display: inline-block; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.6; color: #2563EB; background: #eaf2fd; border: 1px solid #cfe1fb; border-radius: 6px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px; }
.imgsearch-card:hover { border-color: #2563EB; box-shadow: 0 6px 16px rgba(37,99,235,.15); }
.imgsearch-tip { grid-column: 1/-1; text-align: center; color: #94a3b8; padding: 40px 0; font-size: 14px; }
.hs-subtitle { margin-top: 20px; font-size: 16px; color: #475569; text-align: center; }
.hs-subtitle b { color: #2563EB; font-weight: 600; }
@media (max-width: 1024px) { .hs-tools { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .hs-banner { padding: 24px 14px 30px; }
  .hs-banner .hs-title { font-size: 23px; margin-bottom: 26px; }
  .hs-tab { height: 46px; padding: 0 12px; font-size: 13px; margin-left: -12px; }
  .hs-searchinner { min-height: 52px; padding: 6px 6px 6px 16px; }
  .hs-sicon { width: 22px; height: 22px; margin-right: 10px; }
  .hs-btn { height: 42px; padding: 0 22px; font-size: 15px; }
  .hs-tools { grid-template-columns: repeat(2, 1fr); }
}

/* 搜索栏 */
.search-box { display: flex; align-items: center; width: 85%; max-width: 980px; height: 58px; box-shadow: 0 8px 20px rgba(0,0,0,.08); border-radius: 99px; background: #fff; transition: all .2s ease; border: 1px solid #eef2f8; }
.search-box:hover { border-color: rgb(200,1,34); box-shadow: 0 0 0 2px rgba(200,1,34,.12); }
.search-box:focus-within { border-color: rgb(200,1,34); box-shadow: 0 0 0 3px rgba(200,1,34,.15); }
.search-input { flex: 1; padding: 0 12px; border: none; outline: none; font-size: 16px; font-weight: 500; background: #fff; color: #1f2a3e; height: 100%; min-width: 0; border-radius: 99px 0 0 99px; }
.search-input::placeholder { color: #94a3b8; font-weight: 400; }
.search-clear { background: none; border: none; cursor: pointer; font-size: 18px; color: #94a3b8; align-items: center; justify-content: center; padding: 0 6px; transition: color .2s; height: 100%; }
.search-clear:hover { color: #1e293b; }
.search-btn { background: #c80122; color: #fff; border: none; border-radius: 99px; font-size: 16px; font-weight: 700; cursor: pointer; transition: .2s; letter-spacing: 1px; padding: 0 16px; height: 100%; width: 112px; white-space: nowrap; flex-shrink: 0; margin-left: 8px; }
.search-btn:hover { background: #a9001d; }

/* 横向分类导航 */
.cate-nav { background: #ffffff; padding: 14px 60px; display: flex; gap: 28px; justify-content: center; border-top: 1px solid #eef2f8; border-bottom: 1px solid #eef2f8; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; flex-wrap: wrap; position: relative; z-index: 1; box-shadow: 0 2px 6px rgba(0,0,0,.02); margin: 0 20px; border-radius: 24px; }
.cate-nav span { font-size: 14px; font-weight: 500; color: #4b5a6e; cursor: pointer; transition: .2s; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.cate-nav span.active { color: #1e293b; border-bottom-color: #1e293b; }
.cate-nav span:hover { color: #1e293b; }

/* 卡片网格 */
.card-container { padding: 32px 20px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
/* 搜索无结果 → 引导去 AI 图生3D */
.search-3d-promo { grid-column: 1/-1; text-align: center; padding: 40px 20px 54px; }
.search-3d-promo-wrap { padding: 0 20px 24px; }
.search-3d-promo .s3d-card { position: relative; max-width: 640px; margin: 0 auto; padding: 48px 44px 44px; border-radius: 26px; overflow: hidden;
    background: linear-gradient(165deg, #faf9ff 0%, #f3f6ff 52%, #edf3ff 100%);
    border: 1px solid #eae6fb;
    box-shadow: 0 30px 70px -34px rgba(92,61,219,.42), inset 0 1px 0 rgba(255,255,255,.85); }
.search-3d-promo .s3d-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 260px;
    background: radial-gradient(60% 100% at 50% 0%, rgba(124,58,237,.18), rgba(124,58,237,0) 70%); pointer-events: none; }
.search-3d-promo .s3d-icon { position: relative; width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px;
    background: linear-gradient(140deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
    box-shadow: 0 16px 34px -10px rgba(99,102,241,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.search-3d-promo .s3d-icon::after { content: ""; position: absolute; inset: -10px; border-radius: 30px;
    border: 1px solid rgba(124,58,237,.22); }
.search-3d-promo .s3d-heading { position: relative; font-size: 24px; font-weight: 800; letter-spacing: .2px; color: #241a4d; margin-bottom: 12px; }
.search-3d-promo .s3d-sub { position: relative; font-size: 15px; line-height: 1.7; color: #6a6a8a; max-width: 460px; margin: 0 auto 24px; }
.search-3d-promo .s3d-feats { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.search-3d-promo .s3d-feat { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #4b4b6b;
    background: rgba(255,255,255,.9); border: 1px solid #e6e8f5; border-radius: 99px; padding: 8px 16px; box-shadow: 0 4px 12px -6px rgba(60,60,120,.25); }
.search-3d-promo .s3d-feat i { background: linear-gradient(135deg,#8b5cf6,#3b82f6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 14px; }
.search-3d-promo .s3d-btn { position: relative; display: inline-flex; align-items: center; gap: 9px; overflow: hidden;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%); color: #fff; font-size: 16px; font-weight: 700;
    padding: 15px 40px; border-radius: 99px; text-decoration: none;
    box-shadow: 0 16px 34px -12px rgba(79,70,229,.75); transition: transform .22s ease, box-shadow .22s ease; }
.search-3d-promo .s3d-btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0)); transition: left .6s ease; }
.search-3d-promo .s3d-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -12px rgba(79,70,229,.85); }
.search-3d-promo .s3d-btn:hover::after { left: 130%; }
.search-3d-promo .s3d-btn i { font-size: 15px; }
@media (max-width: 560px) {
  .search-3d-promo .s3d-card { padding: 38px 22px 36px; border-radius: 22px; }
  .search-3d-promo .s3d-heading { font-size: 20px; }
  .search-3d-promo .s3d-icon { width: 64px; height: 64px; font-size: 26px; border-radius: 19px; }
  .search-3d-promo .s3d-btn { padding: 14px 30px; font-size: 15px; }
}
.model-card { background: #ffffff; border-radius: 20px; overflow: hidden; position: relative; transition: all .25s ease; box-shadow: 0 5px 12px rgba(0,0,0,.03); border: 1px solid #eff2f9; height: 240px; cursor: pointer; }
.model-card:hover { transform: translateY(-5px); box-shadow: 0 20px 28px -12px rgba(0,0,0,.12); border-color: #e2e9f2; }
img.card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; background-color: #f5f7fb; background-image: url('/images/loading.png'); background-repeat: no-repeat; background-position: center; background-size: 46px 46px; }
img.card-img.loaded, img.card-img[src=""] { background-image: none; }
.model-card:hover img.card-img { transform: scale(1.03); }
/* 卡片信息：悬停显示（默认隐藏） */
.card-text { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(20,20,20,0.68) 0%, rgba(20,20,20,0) 100%); color: #fff; padding: 35px 12px 10px; border-radius: 0 0 20px 20px; text-align: left; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.model-card:hover .card-text, .rec-card:hover .card-text { opacity: 1; visibility: visible; }
.card-main-text { font-weight: 600; font-size: 13px; line-height: 1.4; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-main-text .card-cat { display: inline-block; font-size: 11px; font-weight: 600; color: #ffe08a; background: rgba(0,0,0,0.35); padding: 0 6px; border-radius: 4px; margin-right: 2px; vertical-align: 1px; }
.card-sub-text { font-size: 11px; color: rgba(255,255,255,.8); margin-top: 2px; }
/* 格式角标：默认隐藏，悬浮显示 */
.format-badge { position: absolute; top: 10px; right: 10px; background: transparent; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; letter-spacing: .5px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.model-card:hover .format-badge, .rec-card:hover .format-badge { opacity: 1; visibility: visible; }

/* ===== 效果图分类：知末网风格 justify 画廊（等高行 + 变宽，圆角 12，无边框阴影） ===== */
.card-container.justified { display: block; position: relative; }
.card-container.justified .model-card { position: absolute; height: auto; border: none; border-radius: 12px; box-shadow: none; background: #eef0f3; overflow: hidden; transition: none; }
.card-container.justified .model-card:hover { transform: none; box-shadow: none; border: none; }
.card-container.justified img.card-img { border-radius: 12px; transition: transform .5s ease; }
.card-container.justified .model-card:hover img.card-img { transform: scale(1.1); }
.card-container.justified .card-text { border-radius: 0 0 12px 12px; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%); }
.card-container.justified .format-badge { border-radius: 8px; }

/* 回到顶部 */
.go-top { position: fixed; bottom: 40px; right: 30px; width: 48px; height: 48px; background: #1e293b; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s ease; box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 200; border: none; font-size: 22px; }
.go-top.show { opacity: 1; visibility: visible; }
.go-top:hover { background: #333; transform: translateY(-3px); }

/* 详情页大图全屏放大 */
.image-zoom-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.image-zoom-overlay img { background-color: #f5f7fb; }
.image-zoom-wrap { width: 92vw; height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-zoom-wrap img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 6px; box-shadow: 0 0 40px rgba(0,0,0,.6); transform-origin: center center; transition: transform .1s ease; }
.image-zoom-close { position: absolute; top: 20px; right: 30px; font-size: 46px; color: #fff; cursor: pointer; line-height: 1; opacity: .8; transition: .2s; }
.image-zoom-close:hover { opacity: 1; transform: scale(1.1); }

/* ========= 详情页 ========= */.detail-header { position: sticky; top: 0; z-index: 90; height: 75px; background: #ffffff; border-bottom: 1px solid #edeff2; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
/* 首页/分类列表页的固定搜索栏：默认藏在顶部上方，滚动分类栏被遮住时显示（JS 控制 .show） */
.app-fixed-search { position: fixed; left: 160px; right: 0; top: 0; z-index: 95; transform: translateY(-102%); transition: transform .25s ease; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.app-fixed-search.show { transform: translateY(0); }
.header-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.header-crumb { font-size: 14px; color: #7c8ba0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-crumb a:hover { color: #1f2a3e; }
.back-home { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #1f2a3e; background: #f5f5f5; border: 1px solid #e2e8f0; border-radius: 99px; padding: 8px 18px; transition: .2s; flex-shrink: 0; }
.back-home:hover { background: #1e293b; color: #fff; border-color: #1e293b; }

/* 游客浏览上限登录提示 */
.guest-gate { margin: 8px 0 40px; }
.guest-gate--outside { padding-left: 20px; padding-right: 20px; }
.guest-gate-inner { width: 100%; box-sizing: border-box; text-align: center; background: #fff; border: 1px dashed #d5deeb; border-radius: 18px; padding: 34px 28px; box-shadow: 0 8px 26px rgba(30,47,75,.06); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.guest-gate-title { font-size: 20px; font-weight: 800; color: #1e293b; }
.guest-gate-sub { font-size: 14px; color: #7b8aa0; line-height: 1.7; }
.guest-gate-btn { display: inline-block; background: #c80122; color: #fff; border: none; border-radius: 99px; padding: 12px 44px; font-size: 15px; font-weight: 700; cursor: pointer; transition: .2s; box-shadow: 0 8px 22px rgba(200,1,34,.28); }
.guest-gate-btn:hover { background: #a9001d; transform: translateY(-1px); }
.detail-card { display: flex; max-width: 1238px; width: 100%; margin: 21px auto 27px; background: #fff; box-shadow: 0 0 10px 4px hsla(0,0%,69%,.15); border-radius: 16px; overflow: hidden; padding: 20px 20px 20px 16px; }
.slider-wrap { display: flex; flex: 1; min-width: 0; align-items: flex-start; }
.thumb-col { width: 72px; margin-right: 12px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.thumb-item { width: 72px; height: 72px; border-radius: 11px; display: flex; justify-content: center; align-items: center; border: 2px solid transparent; cursor: pointer; position: relative; background: #fff; }
.thumb-item.active { border-color: #dbdbdb; }
.thumb-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.main-pic { flex: 1; min-width: 0; height: 584px; background: #f5f7fb; border-radius: 12px; overflow: hidden; display: flex; justify-content: center; align-items: center; position: relative; }
.main-pic img { background-color: #f5f7fb; }
.main-pic img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; display: block; cursor: url('/images/magnifier.png') 16 16, zoom-in; }
.description { width: 404px; flex-shrink: 0; padding-left: 20px; display: flex; flex-direction: column; height: 584px; }
.description h1 { min-height: 28px; height: auto; font-size: 20px; font-weight: 600; color: #111; line-height: 28px; overflow: hidden; text-overflow: ellipsis; }
.description h1 .h1-sub { font-size: 13px; font-weight: 400; color: #8a94a6; margin-left: 8px; white-space: nowrap; }
.id-row { display: flex; align-items: center; margin-top: 6px; gap: 8px; }
.model-id { height: 28px; font-size: 15px; font-weight: 600; color: #111; line-height: 28px; display: inline-block; }
.price-row { display: flex; align-items: baseline; margin-top: 10px; height: 35px; }
.price { font-size: 14px; font-weight: 600; color: #ed0027; }
.price b { font-size: 30px; font-weight: 700; color: #ed0027; margin-left: 2px; }
.divider { width: 100%; height: 1px; background: #f2f2f2; margin-top: 16px; }
.params-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-top: 16px; padding-right: 4px; }
.param-block { margin-bottom: 16px; }
.param-title { height: 17px; font-size: 12px; color: #999; line-height: 17px; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; height: 36px; border-radius: 8px; border: 1px solid #e7e7e7; padding: 0 12px; font-size: 14px; color: #222; line-height: 34px; cursor: pointer; display: inline-flex; align-items: center; }
.chip.active { border-color: #cb0018; color: #cb0018; }
.more-grid { background: #f7f7f7; border-radius: 8px; padding: 14px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; row-gap: 17px; }
.more-item { display: flex; flex-direction: column; align-items: center; width: 100%; overflow: hidden; white-space: nowrap; }
.more-item .val { height: 20px; font-size: 14px; font-weight: 500; color: #222; line-height: 20px; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.more-item .name { height: 17px; font-size: 12px; color: #999; line-height: 17px; margin-top: 3px; }
.btn-bar { padding-top: 8px; }
.download-btn { width: 100%; height: 44px; background: rgb(200,1,34); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: .2s; }
.download-btn:hover { filter: brightness(1.12); }
/* 去客户端下载按钮（描边样式，与主下载区分） */
.client-dl-btn { margin-top: 10px; background: #fff; color: #1e293b; border: 1px solid #d5deeb; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.client-dl-btn:hover { background: #f6f9ff; border-color: #b9c8e0; filter: none; }
.client-dl-btn i { font-size: 15px; color: #1e4a76; }
/* 「去客户端下载」按钮下方的常显提示（醒目、带向上箭头与流光） */
.client-dl-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.clientdl-hint {
  position: relative; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px;
  margin: 15px auto 2px; padding: 9px 17px; max-width: 100%; box-sizing: border-box;
  font-size: 13px; font-weight: 600; letter-spacing: .3px; line-height: 1; white-space: nowrap;
  color: #fff; border-radius: 999px;
  background: linear-gradient(135deg,#ff6175 0%,#e31533 46%,#c80122 100%);
  box-shadow: 0 8px 20px rgba(200,1,34,.26), 0 2px 5px rgba(200,1,34,.16), inset 0 1px 0 rgba(255,255,255,.28);
  animation: cdlBob 2.8s ease-in-out infinite;
}
.clientdl-hint::before {
  content: ''; position: absolute; top: -7px; left: 50%; width: 0; height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ff6175;
}
.clientdl-hint::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, rgba(255,255,255,.45) 48%, transparent 62%);
  background-size: 220% 100%;
  animation: cdlShine 3.8s ease-in-out infinite;
}
.clientdl-hint i { font-size: 12.5px; opacity: .96; }
@keyframes cdlBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes cdlShine { 0% { background-position: 150% 0; } 58%,100% { background-position: -70% 0; } }
@media (prefers-reduced-motion: reduce) {
  .clientdl-hint { animation: none; }
  .clientdl-hint::after { animation: none; opacity: 0; }
}
@media (max-width: 520px) {
  .clientdl-hint {
    font-size: 12px; padding: 8px 13px; gap: 6px; border-radius: 14px;
    white-space: normal; line-height: 1.4; text-align: center;
  }
  .clientdl-hint i { font-size: 11.5px; }
}
/* 客户端下载确认弹框 */
.clientdl-mask { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(15,20,30,.55); backdrop-filter: blur(2px); }
.clientdl-box { width: 420px; max-width: 92vw; background: #fff; border-radius: 18px; padding: 34px 32px 28px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.28); position: relative; }
.clientdl-close { position: absolute; top: 12px; right: 16px; width: 30px; height: 30px; line-height: 28px; text-align: center; font-size: 26px; color: #b6c0cf; cursor: pointer; border-radius: 50%; transition: .2s; }
.clientdl-close:hover { color: #1e293b; background: #f0f3f8; }
.clientdl-icon { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg,#1e2f4b,#2c4370); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.clientdl-title { font-size: 20px; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.clientdl-sub { font-size: 14px; color: #7b8aa0; line-height: 1.75; margin-bottom: 26px; }
.clientdl-actions { display: flex; gap: 12px; }
.clientdl-cancel { flex: 1; height: 44px; border: 1px solid #d5deeb; background: #fff; color: #475569; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s; }
.clientdl-cancel:hover { background: #f4f7fc; }
.clientdl-go { flex: 1; height: 44px; border: none; background: #c80122; color: #fff; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: .2s; }
.clientdl-go:hover { background: #a9001d; }

/* 相关推荐 */
.recommend { width: 100%; padding: 8px 20px 60px; }
.recommend-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.recommend-head h2 { font-size: 24px; font-weight: 800; color: #1f2a3e; }
.recommend-head span { font-size: 14px; color: #94a3b8; }
.recommend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.rec-card { background: #ffffff; border-radius: 20px; overflow: hidden; position: relative; cursor: pointer; transition: all .25s ease; box-shadow: 0 5px 12px rgba(0,0,0,.03); border: 1px solid #eff2f9; height: 240px; }
.rec-card:hover { transform: translateY(-5px); box-shadow: 0 20px 28px -12px rgba(0,0,0,.12); border-color: #e2e9f2; }
.rec-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; background-image: url('/images/loading.png'); background-repeat: no-repeat; background-position: center; background-size: 46px 46px; }
.rec-card img.loaded { background-image: none; }
.rec-card:hover img { transform: scale(1.03); }
/* 相关推荐卡片：信息常驻显示 */
.rec-card .card-text { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(20,20,20,0.68) 0%, rgba(20,20,20,0) 100%); color: #fff; padding: 35px 14px 10px; border-radius: 0 0 20px 20px; text-align: left; }
.breadcrumb { width: 100%; padding: 16px 32px 40px; font-size: 13px; color: #94a3b8; }
.breadcrumb a { color: #7c8ba0; }
.breadcrumb a:hover { color: #1f2a3e; }
.breadcrumb span { color: #1f2a3e; }
.breadcrumb .sep { margin: 0 8px; color: #c2cbd8; }

/* 登录页 */
.login-wrap { display: flex; justify-content: center; padding: 80px 0; }
.login-box { background: #fff; border-radius: 16px; padding: 40px; width: 380px; box-shadow: 0 0 10px 4px hsla(0,0%,69%,.12); }
.login-box h2 { text-align: center; margin-bottom: 24px; color: #1f2a3e; }
.login-box h2 i { margin-right: 6px; color: #2c3e66; }
.form-group { margin-bottom: 16px; }
.form-group input { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; }
.form-group input:focus { outline: none; border-color: #1e293b; }
.error-msg { color: #dc2626; font-size: 13px; margin-bottom: 10px; text-align: center; }
.login-hint { color: #94a3b8; font-size: 12px; text-align: center; margin-top: 14px; }

/* 响应式 */
@media (max-width: 1240px) { .main-pic { height: 480px; } .description { height: 480px; } }
@media (max-width: 1080px) {
    .detail-card { flex-direction: column; height: auto; padding: 16px; margin: 16px 12px 20px; }
    .slider-wrap { flex-direction: column; }
    .thumb-col { flex-direction: row; width: 100%; margin: 0 0 10px; }
    .main-pic { height: auto; }
    .main-pic img { max-height: 60vh; }
    .description { width: 100%; height: auto; padding-left: 0; margin-top: 16px; }
    .params-scroll { overflow: visible; padding-right: 0; }
    .more-grid { grid-template-columns: repeat(2, 1fr); }
    .recommend { padding: 8px 16px 40px; }
    .recommend-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .top-banner { padding: 32px 30px; }
    .cate-nav { padding: 12px 30px; gap: 20px; }
    .card-container { padding: 28px 30px; }
    .guest-gate--outside { padding-left: 30px; padding-right: 30px; }
    .search-box { width: 90%; max-width: 860px; }
}
@media (max-width: 780px) {
    .left-sidebar { width: 150px; }
    .main-wrap { margin-left: 150px; width: calc(100% - 150px); }
    .app-fixed-search { left: 150px; }
    .tab-btn { padding: 6px 18px; font-size: 13px; }
    .search-box { width: 95%; max-width: 700px; height: 50px; }
    .search-btn { width: 90px; font-size: 13px; padding: 0 8px; margin-left: 6px; }
    .model-card { height: 200px; }
}

/* 分页器 */
.pg-btn{min-width:36px;height:36px;padding:0 12px;border:1px solid #dbe3ec;border-radius:8px;background:#fff;color:#334;font-size:14px;cursor:pointer;transition:all .15s;}
.pg-btn:hover:not(:disabled){border-color:#2563eb;color:#2563eb;}
.pg-btn.active{background:#2563eb;border-color:#2563eb;color:#fff;}
.pg-btn:disabled{opacity:.4;cursor:not-allowed;}
.pg-dots{padding:0 4px;color:#94a3b8;}
.pg-info{margin-left:10px;font-size:13px;color:#64748b;}

/* ===== 自定义分类 树形(知末网式 一级/二级/三级) ===== */
.cate-tree {
  display: block !important;
  padding: 10px 20px !important;
  gap: 0 !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  white-space: normal !important;
  text-align: left !important;
  border-top: 1px solid #eef2f8;
  border-bottom: 1px solid #eef2f8;
}
.cate-tree .tree-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  margin: 1px 0;
  border-radius: 6px;
  cursor: pointer;
  color: #444;
  font-size: 14px;
  line-height: 1.4;
}
.cate-tree .tree-node:hover { background: #f1f5fb; }
.cate-tree .tree-node.active { background: #e0e8f2; color: #1e4a76; font-weight: 600; }
.cate-tree .tree-node.l1 { font-weight: 600; color: #2c3e50; }
.cate-tree .tree-node.l2 { padding-left: 24px; font-weight: 400; color: #555; }
.cate-tree .tree-node.l3 { padding-left: 44px; font-weight: 400; color: #777; font-size: 13px; }
.cate-tree .arr {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #9aa7b8;
  font-style: normal;
}
.cate-tree .arr-has::before { content: '▸'; }
.cate-tree .arr:not(.arr-has)::before { content: ''; }
.cate-tree .tree-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cate-tree .tree-count { color: #9aa7b8; font-size: 12px; margin-left: 6px; }

/* ===== 知末网式 多行横向 三级分类筛选 ===== */
.cate-nav.haohao-cat,
.haohao-cat {
  display: flex !important;
  flex-direction: row;
  justify-content: center !important;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  margin: 0 20px !important;
  padding: 12px 20px !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  white-space: normal !important;
  text-align: left !important;
  border-top: 1px solid #eef2f8;
  border-bottom: 1px solid #eef2f8;
  line-height: 1.6;
  box-sizing: border-box;
}
.haohao-row { display: flex; align-items: flex-start; justify-content: flex-start; padding: 4px 0; }
.haohao-cat .haohao-label {
  color: #999999 !important;
  flex: 0 0 auto;
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  flex-shrink: 0;
  white-space: nowrap;
  color: #999999;
  font-size: 13px;
  line-height: 26px;
  padding-right: 8px;
  box-sizing: border-box;
}
.haohao-tags { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 2px 6px; }
.haohao-tag {
  color: #666;
  font-size: 14px;
  line-height: 26px;
  padding: 0 6px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 3px;
}
.haohao-tag:hover { color: #d32f2f; }
.haohao-tag.active { color: #d32f2f; font-weight: 700; }

/* ===== 分类栏内层(内容宽度, 保证一行/二级/三级标签列左对齐) ===== */
.haohao-inner {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
}


/* ========= 登录弹窗（微信/QQ/手机号） ========= */
.auth-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.auth-modal-mask { position: absolute; inset: 0; background: rgba(15,20,30,.55); backdrop-filter: blur(2px); }
.auth-dialog { position: relative; width: 400px; max-width: 94vw; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 28px 30px 30px; overflow-y: auto; max-height: 92vh; }
.auth-close { position: absolute; top: 12px; right: 16px; font-size: 26px; color: #94a3b8; cursor: pointer; line-height: 1; z-index: 2; }
.auth-close:hover { color: #1e293b; }
.auth-tabs { display: flex; border-bottom: 1px solid #eef2f8; margin-bottom: 22px; }
.auth-tab { flex: 1; background: none; border: none; padding: 12px 0; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; display: flex; align-items: center; justify-content: center; gap: 6px; transition: .2s; }
.auth-tab.active { color: #1e293b; border-bottom-color: #1e293b; }
.auth-tab-icon { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.auth-tab-icon.wechat { background: none; color: #07c160; font-size: 19px; }
.auth-tab-icon.qq { background: none; color: rgb(76,175,233); font-size: 19px; }
.auth-tab-icon.phone { background: none; color: #000; font-size: 16px; }
.auth-panel { display: none; }
.auth-subtabs { display: flex; gap: 10px; margin-bottom: 18px; }
.auth-subtab { background: #f1f5f9; border: none; border-radius: 60px; padding: 8px 18px; font-size: 13px; color: #64748b; cursor: pointer; transition: .2s; font-weight: 500; }
.auth-subtab.active { background: #1e293b; color: #fff; }
.auth-form { }
.auth-field { position: relative; margin-bottom: 14px; }
.auth-field-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.auth-input { width: 100%; padding: 12px 12px 12px 38px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; outline: none; transition: .2s; }
.auth-input:focus { border-color: #1e293b; box-shadow: 0 0 0 3px rgba(30,41,59,.08); }
.auth-field-code .auth-input { padding-right: 118px; }
.auth-send-code { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: #f1f5f9; color: #1e293b; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.auth-send-code:disabled { color: #94a3b8; cursor: not-allowed; }
.auth-submit { width: 100%; padding: 13px; background: #c80122; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: 2px; transition: .2s; margin-top: 4px; }
.auth-submit:hover { background: #a9001d; }
.auth-switch { text-align: center; margin-top: 14px; font-size: 13px; color: #64748b; }
.auth-link { color: #1e293b; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-social-placeholder { text-align: center; padding: 24px 0 8px; }
.auth-social-code { background: #f8fafc; border-radius: 12px; padding: 28px 20px; }
.auth-qr-placeholder { width: 140px; height: 140px; margin: 0 auto 14px; background: #eef2f8; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #94a3b8; }
.auth-qr-placeholder.qq { font-size: 26px; font-weight: 800; color: #12b7f5; }
/* QQ 快捷登录：企鹅图标展示（替代文字 QQ） */
.auth-qr-show { width: 120px; height: 120px; margin: 0 auto 14px; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(18,183,245,.15); }
.auth-qr-show .auth-qq-icon { width: 88px; height: 88px; object-fit: contain; }
.auth-social-code p { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.auth-pending-tip { font-size: 12px !important; color: #94a3b8 !important; font-weight: 400 !important; }
.auth-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px; z-index: 10001; opacity: 0; transition: opacity .3s; box-shadow: 0 8px 20px rgba(0,0,0,.25); max-width: 80vw; text-align: center; }
.auth-toast.ok { background: #07a35a; }

/* ===== 用户悬浮卡（侧边栏头像hover显示）===== */
.user-pop-trigger { position: relative; }
.user-pop {
  position: fixed;
  z-index: 2000;
  width: 250px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 16px;
  display: none;
  text-align: left;
}
.user-pop::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 18px;
  border: 8px solid transparent;
  border-right-color: #fff;
}
/* 顶部：头像在左，右侧信息列（名称上、ID下） */
.user-pop .pop-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.user-pop .pop-avatar {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  position: relative; overflow: hidden;
}
.user-pop .pop-avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  z-index: 1;
}
.user-pop .pop-head-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-pop .pop-name {
  font-size: 15px; font-weight: 600; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-pop .pop-name-link { text-decoration: none; }
.user-pop .pop-name-link:hover { color: #1e4a76; }
.user-pop .pop-uid {
  font-size: 12px; color: #94a3b8;
}
.user-pop .pop-uid b { color: #64748b; font-weight: 600; }
/* 好币行：与文案紧邻排列 */
.user-pop .pop-coins {
  font-size: 14px; color: #64748b;
  background: #fff8ed;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.user-pop .pop-coins b { color: #f59e0b; font-weight: 700; }
.user-pop .pop-btns {
  margin-top: 6px;
  display: flex; gap: 8px;
}
.user-pop .pop-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.user-pop .pop-btn-recharge {
  background: linear-gradient(135deg,#f59e0b,#f97316);
  color: #fff;
}
.user-pop .pop-btn-recharge:hover { opacity: 0.9; }
.user-pop .pop-btn-logout {
  background: #f1f5f9;
  color: #64748b;
}
.user-pop .pop-btn-logout:hover { background: #fee2e2; color: #dc2626; }
.user-pop .pop-btn { min-width: 0; }

/* QQ 扫码登录按钮 */
.auth-qq-btn {
  margin-top: 12px;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: #12b7f5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-qq-btn:hover { background: #0ea5e9; }

/* 微信扫码登录按钮 */
.auth-qr-show.auth-wx-show { color: #07c160; font-size: 54px; box-shadow: 0 2px 10px rgba(7,193,96,.18); }
.auth-wx-btn {
  margin-top: 12px;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: #07c160;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-wx-btn:hover { background: #06ad56; }
.auth-wx-btn:disabled { opacity: .7; cursor: default; }
.auth-wx-qr { width: 100%; height: 158px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.auth-wx-qr iframe { width: 300px; height: 400px; border: 0; margin-top: -2px; }
.auth-wx-qr-loading { display: flex; align-items: center; justify-content: center; height: 180px; color: #94a3b8; font-size: 13px; }
.auth-wx-refresh { display: block; margin: 10px auto 0; padding: 0; background: none; border: none; color: #94a3b8; font-size: 12px; cursor: pointer; }
.auth-wx-refresh:hover { color: #07c160; text-decoration: underline; }

/* ============ 个人主页 profile ============ */
.profile-page { max-width: 1080px; margin: 0 auto; padding: 24px 18px 60px; }
.profile-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; margin-bottom: 20px; overflow: hidden; }
.profile-hero { display: flex; align-items: center; gap: 22px; padding: 28px 30px; background: linear-gradient(135deg,#1e293b 0%,#0f172a 100%); color: #fff; }
.profile-avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; overflow: visible; flex-shrink: 0; }
.profile-avatar img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; }
.profile-avatar-edit { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: #f59e0b; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: default; border: 2px solid #0f172a; }
.profile-hero-info { flex: 1; min-width: 0; }
.profile-name { font-size: 24px; font-weight: 700; margin-bottom: 6px; word-break: break-all; }
.profile-uid { color: #94a3b8; font-size: 14px; }
.profile-coins { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 14px 22px; border-radius: 14px; }
.profile-coins-icon { font-size: 34px; color: #fbbf24; }
.profile-coins-info { display: flex; flex-direction: column; }
.profile-coins-label { color: #cbd5e1; font-size: 13px; }
.profile-coins-value { color: #fbbf24; font-size: 22px; font-weight: 700; line-height: 1.1; }
.profile-coins-row { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.profile-coins-recharge { padding: 6px 18px; font-size: 14px; font-weight: 700; }
.profile-btn-recharge { background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff; }
.profile-btn-recharge:hover { opacity: .92; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } .profile-hero { flex-direction: column; text-align: center; } .profile-hero-info { text-align: center; } }
.profile-card-head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #1e293b; padding: 18px 24px; border-bottom: 1px solid #f1f5f9; }
.profile-card-count { margin-left: auto; font-size: 13px; font-weight: 400; color: #94a3b8; }
.profile-body { padding: 10px 24px 24px; }
.profile-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .profile-two-cols { grid-template-columns: 1fr; } }
/* 右侧好币信息独立卡内容 */
.setting-coins-panel { display: flex; align-items: center; justify-content: center; padding: 24px; }
.setting-coins-box { width: 100%; height: 260px; display: flex; align-items: center; justify-content: center; padding: 30px 28px; border-radius: 16px; background: linear-gradient(135deg,#1e293b 0%,#0f172a 100%); }
.coins-wrap { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-left: 60px; }
.setting-coins-box .profile-coins { background: transparent; border: none; padding: 0; }
/* 右侧好币面板内容放大，更大气 */
.setting-coins-box .profile-coins-icon { font-size: 52px; }
.setting-coins-box .coins-icon-tip { font-size: 12px; color: #94a3b8; line-height: 1.4; text-align: left; max-width: 200px; }
.coins-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; width: 100%; }
.setting-coins-box .profile-coins-info { gap: 6px; }
.setting-coins-box .profile-coins-label { font-size: 16px; }
.setting-coins-box .profile-coins-value { font-size: 34px; }
.setting-coins-box .profile-coins-row { gap: 20px; margin-top: 4px; }
.setting-coins-box .profile-coins-recharge { padding: 10px 26px; font-size: 16px; transform: translateX(-15px); }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed #eef2f7; }
.setting-row:last-of-type { border-bottom: none; }
.setting-label { display: flex; align-items: center; gap: 8px; color: #334155; font-size: 15px; }
.setting-label i { width: 20px; color: #64748b; }
.setting-control { display: flex; align-items: center; gap: 12px; }
.setting-val { color: #0f172a; font-size: 14px; }
.setting-muted { color: #94a3b8; }
.setting-tip { margin-top: 14px; color: #94a3b8; font-size: 12px; line-height: 1.7; }
.profile-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; transition: all .2s; text-decoration: none; color: #fff; background: #1e4a76; }
.profile-btn:hover { background: #163b5e; }
.profile-btn:disabled { opacity: .55; cursor: not-allowed; }
.profile-btn-sm { padding: 6px 12px; font-size: 12px; }
.profile-btn-ghost { background: #f1f5f9; color: #475569; }
.profile-btn-ghost:hover { background: #e2e8f0; }
.profile-btn-primary { background: #16a34a; }
.profile-btn-primary:hover { background: #15803d; }
.profile-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.profile-table th, .profile-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.profile-table th { color: #64748b; font-weight: 600; background: #f8fafc; }
.profile-table td.mono { font-family: monospace; }
/* 充值记录表格：全宽卡内正常铺满，避免超出边框 */
.profile-table-recharge th, .profile-table-recharge td { padding: 10px 14px; }
.order-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.order-paid { background: #dcfce7; color: #166534; }
.order-pending { background: #fef9c3; color: #854d0e; }
.order-failed, .order-refunded { background: #fee2e2; color: #991b1b; }
.order-repay { text-decoration: none; cursor: pointer; }
.order-repay:hover .order-status { filter: brightness(1.05); }
.profile-empty { text-align: center; padding: 42px 20px; color: #94a3b8; }
.profile-empty i { font-size: 44px; color: #cbd5e1; margin-bottom: 10px; display: block; }
.profile-empty p { margin: 4px 0; font-size: 15px; color: #64748b; }
.profile-empty .profile-empty-sub { font-size: 13px; color: #94a3b8; }
.profile-downloads { display: flex; flex-direction: column; gap: 10px; }
.profile-dl-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #f1f5f9; border-radius: 12px; text-decoration: none; transition: all .2s; background: #fbfdff; }
.profile-dl-item:hover { border-color: #cbd5e1; background: #f8fafc; }
.profile-dl-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.profile-dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.profile-dl-ic { position: absolute; font-size: 26px; color: #cbd5e1; }
.profile-dl-info { flex: 1; min-width: 0; }
.profile-dl-name { color: #0f172a; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-dl-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.profile-dl-cat { background: #eef2ff; color: #4338ca; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
/* ============ 开发中功能弹窗（全景/AI/客户端） ============ */
.coming-soon-mask { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; background: rgba(15,23,42,.5); }
.coming-soon-box { background: #fff; border-radius: 18px; padding: 40px 56px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.coming-soon-icon { font-size: 52px; color: #f59e0b; margin-bottom: 14px; }
.coming-soon-text { font-size: 24px; font-weight: 700; color: #1e293b; margin-bottom: 22px; }
.coming-soon-btn { padding: 9px 34px; border: none; border-radius: 8px; background: #1e4a76; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.coming-soon-btn:hover { background: #163b5e; }
/* ============ 充值页 ============ */
.recharge-amount { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 16px 8px; text-align: center; cursor: pointer; transition: all .2s; }
.recharge-amount:hover { border-color: #cbd5e1; }
.recharge-amount.active { border-color: #f59e0b; background: #fffbeb; }
.recharge-amount .recharge-coins { display: block; font-size: 12px; color: #94a3b8; margin-top: 4px; }
@media (max-width: 480px) { .recharge-amounts { grid-template-columns: repeat(2,1fr) !important; } }


.profile-dl-time { color: #94a3b8; font-size: 12px; }
.profile-dl-spent { display: inline-flex; align-items: center; gap: 25px; margin-right: 26px; white-space: nowrap; }
.profile-dl-spent-label { color: #94a3b8; font-size: 13px; font-weight: 500; }
.profile-dl-coins { display: inline-flex; align-items: center; gap: 5px; color: #92400e; background: transparent; font-size: 14px; font-weight: 700; }
.profile-dl-coins i { font-size: 14px; }
.profile-dl-meta .profile-dl-time i, .profile-dl-meta .profile-dl-coins i { margin-right: 3px; }
.profile-dl-action { color: #cbd5e1; font-size: 16px; }
.profile-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.profile-modal-mask { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.profile-modal-box { position: relative; width: 400px; max-width: 92vw; background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.profile-modal-title { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 18px; }
.profile-modal-field { margin-bottom: 14px; }
.profile-modal-code { display: flex; gap: 10px; }
.profile-modal-code .profile-input { flex: 1; }
.profile-modal-code .profile-btn { width: 120px; }
.profile-input { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; outline: none; }
.profile-input:focus { border-color: #1e4a76; box-shadow: 0 0 0 3px rgba(30,74,118,.12); }
.profile-modal-msg { font-size: 13px; margin: 4px 0 12px; display: none; }
.profile-modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
/* ============ 管理后台 admin ============ */
.admin-page { max-width: 1200px; margin: 0 auto; padding: 24px 18px 60px; }
.admin-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.admin-head h1 { margin: 0; font-size: 26px; color: #1e293b; }
.admin-head h1 i { color: #1e4a76; margin-right: 8px; }
.admin-head-sub { color: #94a3b8; font-size: 14px; }
.admin-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-num { font-size: 22px; font-weight: 800; color: #0f172a; }
.stat-label { color: #94a3b8; font-size: 13px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tab { padding: 10px 18px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #475569; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: all .2s; }
.admin-tab:hover { border-color: #cbd5e1; }
.admin-tab.active { background: #1e4a76; color: #fff; border-color: #1e4a76; }
.admin-panel { display: none; }
.admin-subcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin-bottom: 18px; }
.admin-subcards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .admin-subcards.cols-3 { grid-template-columns: repeat(1, 1fr); } }
.dl-model-cell { display: flex; align-items: center; gap: 8px; }
.dl-model-cell img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #eef0f3; flex: none; }
.sub-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; }
.sub-label { display: block; color: #94a3b8; font-size: 13px; margin-bottom: 6px; }
.sub-val { font-size: 24px; font-weight: 800; color: #1e293b; }
.sub-sub { color: #94a3b8; font-size: 12px; margin-left: 8px; }
.admin-table-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 6px 18px 18px; margin-bottom: 18px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.admin-card-head h3 { margin: 0; }
.admin-search { width: 220px; padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; outline: none; transition: border-color .2s; }
.admin-search:focus { border-color: #6366f1; }
.admin-table-card h3 { color: #1e293b; font-size: 15px; margin: 14px 0 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.admin-table th { color: #64748b; font-weight: 600; background: #f8fafc; font-size: 12px; }
.admin-table .empty { text-align: center; color: #94a3b8; padding: 24px; }
.admin-table .mono { font-family: monospace; font-size: 12px; }
.admin-coins { font-weight: 700; color: #d97706; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.admin-ops { white-space: nowrap; }
.op-btn { padding: 5px 12px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #1e4a76; font-size: 12px; cursor: pointer; margin-right: 6px; transition: .15s; }
.op-btn:hover { background: #eef2ff; }
.op-ban { color: #b91c1c; border-color: #fecaca; }
.op-ban:hover { background: #fef2f2; }
.op-enable { color: #15803d; border-color: #bbf7d0; }
.op-enable:hover { background: #f0fdf4; }
.op-refund { color: #b45309; border-color: #fde68a; }
.op-refund:hover { background: #fffbeb; }
.muted { color: #94a3b8; font-size: 12px; }
.admin-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px); background: #16a34a; color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 14px; z-index: 999999; opacity: 0; transition: all .25s; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.admin-toast.err { background: #dc2626; }
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 700px) { .admin-user-table { font-size: 11px; } }

/* 用户列表：最多显示 13 行，超出滚动（每页 30 条，>30 分页） */
.admin-user-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid #f1f5f9; }
.admin-user-scroll .admin-table thead th { position: sticky; top: 0; z-index: 2; }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 14px 0 4px; }
.admin-pager .pg-btn { min-width: 34px; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #475569; font-size: 13px; cursor: pointer; transition: all .15s; }
.admin-pager .pg-btn:hover:not(:disabled) { border-color: #cbd5e1; background: #f8fafc; }
.admin-pager .pg-btn.active { background: #1e4a76; border-color: #1e4a76; color: #fff; }
.admin-pager .pg-btn:disabled { opacity: .45; cursor: default; }
.admin-pager .pg-info { margin-left: 8px; color: #94a3b8; font-size: 12px; }
.admin-pager .pg-dots { color: #94a3b8; padding: 0 2px; }

/* ============ 登录页（复用弹窗组件） ============ */
.login-main { min-height: 60vh; position: relative; }
.auth-modal-login .auth-modal-mask { background: #f1f5f9; backdrop-filter: none; }
.auth-modal-login .auth-dialog { box-shadow: 0 8px 40px rgba(30,41,59,.12); border: 1px solid #e2e8f0; }
.auth-dialog-title { text-align: center; margin-bottom: 20px; }
.auth-dialog-title h2 { margin: 0 0 4px; color: #1e293b; font-size: 22px; }
.auth-dialog-title p { margin: 0; color: #94a3b8; font-size: 13px; }

/* 侧边栏昵称/头像 -> 个人主页链接（图标在上，名称在下，与「登录」一致） */
.sidebar-profile-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; color: inherit; text-decoration: none; box-sizing: border-box; text-align: center; }
.sidebar-profile-link .sidebar-avatar { width: auto; height: 28px; margin-bottom: 2px; }
.sidebar-profile-link span { font-size: 12px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-page { min-height: 60vh; }

/* 搜索结果「相关搜索」标签（分层模糊搜索） */
.search-related { max-width: 1100px; margin: 14px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.search-related-label { color: #94a3b8; }
.search-related-item { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #f1f5f9; color: #334155; text-decoration: none; transition: background .15s, color .15s; }
.search-related-item:hover { background: #e2e8f0; color: #0f172a; }
@media (max-width: 780px) { .search-related { padding: 0 16px; } }

/* 详情页 ID 复制按钮 */
.copy-id-btn { height: 24px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #64748b; font-size: 12px; line-height: 22px; cursor: pointer; transition: all .15s; }
.copy-id-btn:hover { border-color: #93c5fd; color: #2563eb; background: #eff6ff; }
.copy-id-btn.copied { border-color: #86efac; color: #059669; background: #f0fdf4; }

/* 充值页：更多支付折叠 */
.more-pay-toggle{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:#64748b;font-size:13px;cursor:pointer;padding:2px 8px;line-height:1;transition:color .15s;}
.more-pay-toggle:hover{color:#2563eb;}
.more-pay-caret{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s;margin-top:-3px;}
.more-pay-toggle.open .more-pay-caret{transform:rotate(-135deg);margin-top:2px;}
#morePayWrap{display:none;width:280px;}
#morePayWrap.show{display:block;}

/* ===== 新用户「注册送10好币」弹窗（来自 zhuce.html 的 ad-card） ===== */
body.new-ad-open{overflow:hidden;}
.new-ad-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:rgba(6,8,14,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);overflow-y:auto;}
.new-ad-overlay::before{content:'';position:fixed;inset:0;background:radial-gradient(circle at 20% 30%, rgba(0,180,255,.15) 0%, transparent 35%),radial-gradient(circle at 80% 70%, rgba(147,51,234,.15) 0%, transparent 40%),radial-gradient(circle at 40% 80%, rgba(255,120,0,.1) 0%, transparent 45%);pointer-events:none;z-index:0;}
.new-ad-overlay::after{content:'';position:fixed;inset:0;background-image:radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);background-size:40px 40px;pointer-events:none;z-index:0;}
.new-ad-overlay .ad-card{position:relative;z-index:2;width:100%;min-width:0;max-width:700px;max-height:calc(100vh - 3rem);overflow-y:auto;overflow-x:hidden;background:rgba(18,22,35,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.08);border-radius:2.5rem;padding:2.5rem 2rem;box-shadow:0 30px 50px -15px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.02) inset;display:flex;flex-direction:column;gap:1.5rem;animation:newAdFloat 6s ease-in-out infinite;color:#fff;}
.new-ad-overlay .ad-card::-webkit-scrollbar{width:6px;}
.new-ad-overlay .ad-card::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:3px;}
@keyframes newAdFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}
@keyframes newAdPulse{0%,100%{transform:scale(1);}50%{transform:scale(1.08);}}
@keyframes newAdShimmer{0%{transform:translateX(-100%);}50%{transform:translateX(100%);}100%{transform:translateX(100%);}}
@keyframes newAdFadeUp{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}

.new-ad-overlay .new-ad-close{position:absolute;top:14px;right:16px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:rgba(255,255,255,.75);font-size:22px;line-height:1;cursor:pointer;z-index:5;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s;}
.new-ad-overlay .new-ad-close:hover{background:rgba(255,255,255,.14);color:#fff;}

.new-ad-overlay .badge-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;}
.new-ad-overlay .brand-badge{display:inline-flex;align-items:center;gap:.6rem;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);padding:.45rem 1rem .45rem .8rem;border-radius:100px;backdrop-filter:blur(4px);}
.new-ad-overlay .brand-badge i{font-size:1.1rem;color:#00b4ff;background:linear-gradient(135deg,#00b4ff,#a855f7);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.new-ad-overlay .brand-badge span{font-weight:600;font-size:.9rem;letter-spacing:.3px;color:rgba(255,255,255,.9);}
.new-ad-overlay .brand-badge .highlight{color:#00b4ff;font-weight:700;}
.new-ad-overlay .new-ad-gift-badge{background:rgba(0,180,255,.1);border-color:rgba(0,180,255,.2);}
.new-ad-overlay .new-ad-gift-badge i{background:none;-webkit-text-fill-color:#ffd966;color:#ffd966;}

.new-ad-overlay .center-block{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.75rem;width:100%;}
.new-ad-overlay .congrats-title{font-size:2rem;font-weight:800;line-height:1.2;letter-spacing:-.02em;color:#fff;display:flex;align-items:center;justify-content:center;gap:.6rem;flex-wrap:wrap;}
.new-ad-overlay .congrats-title .emoji-big{font-size:2.2rem;filter:drop-shadow(0 0 10px rgba(255,200,0,.5));animation:newAdPulse 2s infinite;}
.new-ad-overlay .congrats-title .gradient-text{background:linear-gradient(120deg,#fff 0%,#b0e0ff 80%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
.new-ad-overlay .congrats-desc{font-size:1.05rem;color:rgba(255,255,255,.7);line-height:1.6;max-width:500px;margin:0 auto;text-align:center;}

.new-ad-overlay .coin-highlight{display:flex;align-items:center;justify-content:center;gap:.8rem;background:linear-gradient(135deg,rgba(0,180,255,.15),rgba(168,85,247,.1));border:1px solid rgba(0,180,255,.25);border-radius:1.2rem;padding:.9rem 2rem;margin:.25rem auto 0;position:relative;overflow:hidden;width:fit-content;box-shadow:0 8px 20px -8px rgba(0,180,255,.3);text-align:center;}
.new-ad-overlay .coin-highlight::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent);transform:translateX(-100%);animation:newAdShimmer 3s infinite;}
.new-ad-overlay .coin-highlight .number{font-size:3rem;font-weight:800;line-height:1;color:#fff;text-shadow:0 0 20px rgba(0,180,255,.7);letter-spacing:-.02em;}
.new-ad-overlay .coin-highlight .currency{display:flex;flex-direction:column;font-weight:600;color:#b0e0ff;text-align:left;}
.new-ad-overlay .coin-highlight .currency span{font-size:1.3rem;font-weight:700;color:#fff;}
.new-ad-overlay .coin-highlight .currency small{font-size:.8rem;font-weight:400;color:rgba(255,255,255,.6);letter-spacing:.5px;text-transform:uppercase;}
.new-ad-overlay .new-ad-coins-icon{font-size:2.5rem;color:#ffd966;margin-left:.2rem;opacity:.8;filter:drop-shadow(0 0 8px rgba(255,215,0,.5));}

.new-ad-overlay .usage-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:.25rem 0 .2rem;width:100%;}
.new-ad-overlay .usage-item{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05);border-radius:1.2rem;padding:1rem 1.2rem;display:flex;align-items:center;gap:1rem;transition:all .2s ease;backdrop-filter:blur(4px);}
.new-ad-overlay .usage-item:hover{background:rgba(255,255,255,.06);border-color:rgba(0,180,255,.3);transform:translateY(-2px);}
.new-ad-overlay .usage-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,rgba(0,180,255,.2),rgba(168,85,247,.15));display:flex;align-items:center;justify-content:center;font-size:1.3rem;color:#7ac9ff;flex-shrink:0;}
.new-ad-overlay .usage-text{display:flex;flex-direction:column;gap:.2rem;}
.new-ad-overlay .usage-text strong{font-size:.95rem;font-weight:600;color:rgba(255,255,255,.95);}
.new-ad-overlay .usage-text span{font-size:.75rem;color:rgba(255,255,255,.5);font-weight:400;}

.new-ad-overlay .divider{height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent);margin:.4rem 0;}
.new-ad-overlay .action-area{display:flex;flex-direction:column;gap:1rem;margin-top:.25rem;width:100%;}
.new-ad-overlay .cta-button{display:inline-flex;align-items:center;justify-content:center;gap:.7rem;background:linear-gradient(105deg,#00b4ff,#3b82f6,#a855f7);background-size:200% 200%;border:none;border-radius:100px;padding:1.1rem 2.2rem;font-size:1.15rem;font-weight:700;color:#fff;letter-spacing:.3px;cursor:pointer;transition:all .3s ease;box-shadow:0 12px 30px -8px rgba(0,150,255,.5);width:100%;border:1px solid rgba(255,255,255,.15);position:relative;overflow:hidden;font-family:inherit;}
.new-ad-overlay .cta-button i{font-size:1.1rem;transition:transform .2s ease;}
.new-ad-overlay .cta-button:hover{background-position:100% 0;box-shadow:0 18px 35px -8px rgba(0,180,255,.7);transform:scale(1.01);}
.new-ad-overlay .cta-button:hover i{transform:translateX(4px);}
.new-ad-overlay .cta-button:active{transform:scale(.99);}
.new-ad-overlay .sub-note{display:flex;align-items:center;justify-content:center;gap:1.5rem;font-size:.8rem;color:rgba(255,255,255,.45);flex-wrap:wrap;}
.new-ad-overlay .sub-note i{margin-right:.3rem;font-size:.8rem;color:#00b4ff;}
.new-ad-overlay .sub-note span{display:inline-flex;align-items:center;}
.new-ad-overlay .new-ad-foot{display:flex;justify-content:center;margin-top:.2rem;}
.new-ad-overlay .new-ad-foot span{font-size:.7rem;color:rgba(255,255,255,.2);letter-spacing:1px;}
.new-ad-overlay .new-ad-foot i{margin-right:4px;}

.new-ad-overlay .glow-spot{position:absolute;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(0,180,255,.2) 0%,transparent 70%);filter:blur(40px);z-index:0;pointer-events:none;}
.new-ad-overlay .glow-spot{position:absolute;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(0,180,255,.2) 0%,transparent 70%);filter:blur(40px);z-index:0;pointer-events:none;}
.new-ad-overlay .glow-1{top:-40px;right:-30px;}
.new-ad-overlay .glow-2{bottom:-50px;left:-40px;background:radial-gradient(circle,rgba(168,85,247,.2) 0%,transparent 70%);}

.new-ad-overlay .ad-card > *{animation:newAdFadeUp .7s ease both;}
.new-ad-overlay .ad-card > *:nth-child(2){animation-delay:.05s;}
.new-ad-overlay .ad-card > *:nth-child(3){animation-delay:.1s;}
.new-ad-overlay .ad-card > *:nth-child(4){animation-delay:.15s;}
.new-ad-overlay .ad-card > *:nth-child(5){animation-delay:.2s;}

@media (max-width:550px){
  .new-ad-overlay{padding:1rem;}
  .new-ad-overlay .ad-card{padding:2rem 1.5rem;border-radius:2rem;max-height:calc(100vh - 2rem);}
  .new-ad-overlay .congrats-title{font-size:1.6rem;gap:.4rem;}
  .new-ad-overlay .congrats-title .emoji-big{font-size:1.8rem;}
  .new-ad-overlay .coin-highlight .number{font-size:2.4rem;}
  .new-ad-overlay .coin-highlight{padding:.8rem 1.4rem;}
  .new-ad-overlay .usage-grid{grid-template-columns:1fr;gap:.75rem;}
  .new-ad-overlay .usage-item{padding:.9rem 1rem;}
  .new-ad-overlay .badge-row{flex-direction:column;align-items:flex-start;gap:.5rem;}
  .new-ad-overlay .sub-note{gap:1rem;}
  .new-ad-overlay .congrats-desc{font-size:.95rem;}
}
@media (max-width:380px){
  .new-ad-overlay .congrats-title{font-size:1.4rem;}
  .new-ad-overlay .coin-highlight .number{font-size:2rem;}
  .new-ad-overlay .coin-highlight{padding:.7rem 1rem;}
  .new-ad-overlay .coin-highlight .currency span{font-size:1.1rem;}
}

/* 搜索结果页：分类筛选条（全部 / 3D模型 / SU模型 / 效果图 …） */
/* 搜索页分类条：滚动时吸顶（固定搜索栏出现时自动下移到其下方） */
.search-cats{max-width:1200px;margin:-12px auto 20px;padding:12px 20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  position:sticky;top:0;z-index:92;background:#f5f7fb;
  transition:top .25s ease,box-shadow .2s ease;}
.search-cats.stuck{box-shadow:0 8px 18px -12px rgba(20,32,60,.35);}
body.fixed-search-open .search-cats{top:75px;}
.search-cat{
  display:inline-flex;align-items:center;gap:8px;padding:11px 24px;border-radius:999px;
  background:#fff;border:1.5px solid #e2e6ee;color:#3d4655;
  font-size:16px;font-weight:600;line-height:1;text-decoration:none;letter-spacing:.2px;
  box-shadow:0 2px 8px rgba(20,32,60,.05);
  transition:transform .16s cubic-bezier(.34,1.3,.64,1),box-shadow .16s,border-color .16s,color .16s,background .16s;
}
.search-cat em{
  font-style:normal;font-size:13px;font-weight:600;color:#8a94a6;line-height:1;
  background:#f1f4f9;border-radius:999px;padding:3px 8px;min-width:22px;text-align:center;
}
.search-cat:hover{border-color:#93b4f7;color:#1d4ed8;background:#f7faff;transform:translateY(-2px);box-shadow:0 8px 20px rgba(37,99,235,.14);}
.search-cat:hover em{background:#e4edff;color:#2563eb;}
.search-cat.active{
  background:linear-gradient(135deg,#3b82f6 0%,#2563eb 52%,#1d4ed8 100%);
  border-color:#2563eb;color:#fff;font-weight:700;
  box-shadow:0 8px 22px rgba(37,99,235,.32),inset 0 1px 0 rgba(255,255,255,.28);
  transform:translateY(-2px);
}
.search-cat.active em{background:rgba(255,255,255,.24);color:#fff;}
@media (max-width:768px){
  /* 移动端：单行横向滑动，避免吸顶后占用过多高度 */
  .search-cats{padding:10px 14px;gap:10px;margin:-10px auto 16px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
  .search-cats::-webkit-scrollbar{display:none;}
  .search-cat{padding:9px 16px;font-size:14.5px;gap:6px;flex:0 0 auto;}
  .search-cat em{font-size:12px;padding:2px 7px;}
}

/* 管理后台：广告管理 */
.admin-hint { font-size: 13px; color: #7c8ba0; line-height: 1.8; margin: 6px 0 12px; }

/* AI创作：模型下拉选择 */
.hs-ai-model-wrap { position: relative; display: inline-block; }
.hs-ai-model-btn { user-select: none; transition: background .15s, border-color .15s; }
.hs-ai-model-btn:hover { background: #F1F5F9; }
.hs-ai-model-btn.open { background: #EFF6FF; border-color: #93C5FD; color: #1D4ED8; }
.hs-ai-model-caret { font-size: 10px; opacity: .7; transition: transform .18s; }
.hs-ai-model-btn.open .hs-ai-model-caret { transform: rotate(180deg); }
/* fixed 定位：菜单向下弹出，且不受 .hs-banner 的 overflow:hidden 裁剪（坐标由 JS 按按钮位置计算） */
.hs-ai-model-menu { position: fixed; left: 0; top: 0; z-index: 900; min-width: 230px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.14); padding: 6px; display: none; }
.hs-ai-model-menu.show { display: block; }
.hs-ai-model-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #334155; cursor: pointer; transition: background .13s; }
.hs-ai-model-item:hover { background: #F5F8FF; }
.hs-ai-model-item.active { background: #EFF6FF; color: #1D4ED8; font-weight: 600; }
.hs-ai-model-name { white-space: nowrap; }
.hs-ai-model-cost { font-size: 12.5px; color: #94A3B8; white-space: nowrap; }
.hs-ai-model-item.active .hs-ai-model-cost { color: #3B82F6; }
@media (max-width: 640px) {
  .hs-ai-model-menu { min-width: 200px; }
  .hs-ai-model-item { font-size: 13.5px; padding: 8px 10px; }
}
