/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2e3340; border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb:hover { background: #3d4352; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
  min-width: 1200px;
}
a { text-decoration: none; color: inherit; }

/* ============ 顶部窄条 ============ */
.topbar {
  height: 56px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative; z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-img { height: 45px; width: auto; display: block; }
.brand-img-wrap { position: relative; display: inline-block; overflow: hidden; }
.brand-img-wrap::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.9), transparent);
  animation: brandShine 3s ease-in-out infinite; pointer-events: none;
  mix-blend-mode: overlay; z-index: 10;
}
@keyframes brandShine {
  0% { left: -75%; }
  60%, 100% { left: 125%; }
}
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6c8cff, #8b5cf6);
  color: #fff;
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(108,140,255,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; color: #f1f5f9; font-weight: 700; letter-spacing: -.3px; }
.brand-text em { font-style: normal; font-size: 11px; color: #8b95a7; letter-spacing: .5px; }

.top-nav .home-link { font-size: 15px; color: #cbd5e1; font-weight: 500; transition: color .15s; }
.top-nav .home-link:hover { color: #10b981; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-upload {
  font-size: 13px; color: #cbd5e1;
  display: flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid #2e3340; background: #1a1d24;
  cursor: pointer; transition: all .2s;
}
.btn-upload:hover { color: #fff; border-color: #6c8cff; background: rgba(108,140,255,.12); }
.btn-vip {
  font-size: 13px; color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #ff9a3d, #ff6a00);
  padding: 7px 18px; border-radius: 8px;
  display: none; align-items: center; gap: 6px;
  box-shadow: 0 2px 10px rgba(255,106,0,.35);
  transition: all .2s;
}
.btn-vip.vip-show { display: flex; }
.btn-vip:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,106,0,.5); }
.btn-vip svg { flex-shrink: 0; }
.btn-recharge {
  font-size: 13px; color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 7px 18px; border-radius: 8px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 10px rgba(99,102,241,.35);
  transition: all .2s; text-decoration: none;
}
.btn-recharge:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,92,246,.5); }
.btn-recharge svg { flex-shrink: 0; }
.btn-login {
  font-size: 13px; color: #ff9a3d; font-weight: 500;
  border: 1px solid rgba(255,154,61,.5); background: transparent;
  padding: 7px 18px; border-radius: 8px;
  cursor: pointer; transition: all .2s;
}
.btn-login:hover { background: rgba(255,154,61,.12); transform: none; box-shadow: none; }
.btn-register {
  font-size: 13px; color: #10b981; font-weight: 600;
  border: 1px solid rgba(16,185,129,.5); background: transparent;
  padding: 7px 18px; border-radius: 8px;
  cursor: pointer; transition: all .2s;
}
.btn-register:hover { border-color: #10b981; color: #10b981; background: rgba(16,185,129,.12); }
.btn-user {
  font-size: 13px; font-weight: 600; color: #8fb0ff;
  padding: 7px 16px; border-radius: 8px;
  border: 1px solid rgba(108,140,255,.5);
  background: rgba(108,140,255,.1);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; transition: all .2s;
}
.btn-user:hover { color: #fff; background: rgba(108,140,255,.22); border-color: #6c8cff; }

/* ============ 紧凑吸顶导航 ============ */
.compact-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px; background: rgba(15,23,42,.95);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; gap: 24px;
  padding: 0 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  pointer-events: none;
}
.compact-header.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.compact-header .compact-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center;
  height: 38px; width: 520px;
  border: 1.5px solid #6366f1; border-radius: 19px;
  background: rgba(255,255,255,.08); overflow: hidden;
  box-shadow: 0 2px 16px rgba(99,102,241,.15);
}
.compact-header .compact-search input {
  flex: 1; height: 100%; border: none; outline: none;
  padding: 0 18px; font-size: 13px; background: transparent;
  color: #e2e8f0;
}
.compact-header .compact-search input::placeholder { color: #64748b; }
.compact-header .compact-search .search-btn {
  height: 100%; padding: 0 24px;
  border: none; background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 14px; cursor: pointer; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.compact-header .compact-search .search-btn:hover { opacity: .95; }
/* 吸顶导航按钮尺寸与 topbar 完全一致，避免切换时右侧区域水平位移（抖动） */
.compact-header .btn-login,
.compact-header .btn-register,
.compact-header .btn-user,
.compact-header .btn-upload,
.compact-header .btn-vip { padding: 7px 18px; }
.compact-header .btn-user { padding: 7px 16px; }
.compact-header .btn-upload { padding: 7px 14px; }

/* ============ 主体布局 ============ */
.layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
}

/* 左侧导航 */
.sidebar {
  width: 190px; flex-shrink: 0;
  position: sticky; top: 56px;
  align-self: flex-start;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  padding: 18px 10px;
  border-right: 1px solid rgba(255,255,255,.06);
  min-height: calc(100vh - 56px);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }

.side-item {
  font-size: 14px; color: #94a3b8;
  padding: 9px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; line-height: 1.2;
  white-space: nowrap;
  transition: all .15s;
}
.side-item .ico { flex-shrink: 0; color: #64748b; }
.side-item:hover { background: rgba(255,255,255,.06); color: #10b981; }
.side-item:hover .ico { color: #10b981; }
.side-item.active {
  color: #10b981; font-weight: 600;
  background: rgba(16,185,129,.12);
}
.side-item.active .ico { color: #10b981; }

.side-group-label {
  font-size: 11px; color: #475569;
  padding: 14px 12px 6px;
  text-transform: uppercase; letter-spacing: 1px;
}

.side-item .badge {
  font-style: normal;
  margin-left: auto;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10px; padding: 2px 7px; border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(239,68,68,.4);
}
.side-item.has-badge { position: relative; }

.side-sub { display: flex; flex-direction: column; min-height: 200px; }
.side-item.sub {
  padding-left: 32px; font-size: 13px; color: #94a3b8;
  border-radius: 6px;
}
.side-item.sub:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.side-item.sub.selected {
  color: #10b981; background: rgba(16,185,129,.12); font-weight: 500;
}
.side-item.has-arrow { justify-content: space-between; }
.side-item .arrow { color: #64748b; font-size: 11px; margin-left: auto; }
.side-item.has-badge .arrow { margin-left: 6px; }

/* 侧栏底部品牌 / 版权 / 备案 */
.side-footer {
  margin-top: auto;
  padding: 14px 8px 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center;
}
.side-footer .sf-brand {
  font-size: 15px; font-weight: 800; letter-spacing: 1.5px; white-space: nowrap;
  background: linear-gradient(90deg, #fbbf24 0%, #fde68a 25%, #f87171 50%, #fde68a 75%, #fbbf24 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: fbFlow 2.5s linear infinite;
}
.side-footer .sf-power { font-size: 11px; color: #94a3b8; letter-spacing: .3px; white-space: nowrap; }
.side-footer .sf-icp { font-size: 10px; color: #64748b; letter-spacing: .2px; white-space: nowrap; }

/* 右侧内容 */
.content {
  flex: 1; min-width: 0;
  padding: 20px 28px 40px;
}

/* 横幅 */
.banner {
  position: relative;
  height: 210px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(16,185,129,.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(139,92,246,.3) 0%, transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  display: flex; align-items: center;
  padding: 0 60px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(15,23,42,.3);
  border: 1px solid rgba(255,255,255,.06);
}
.banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.banner-deco {
  position: absolute;
  font-size: 60px;
  opacity: .9;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}
.left-deco { left: 40px; top: 50%; transform: translateY(-50%); }

.banner-main { flex: 1; text-align: center; position: relative; z-index: 1; padding-bottom: 48px; box-sizing: border-box; }
.banner-title {
  font-size: 30px; font-weight: 800;
  letter-spacing: 3px; margin-bottom: 18px;
  background: linear-gradient(90deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.banner .search-box {
  display: flex; align-items: center;
  height: 46px; max-width: 560px; margin: 0 auto;
  background: rgba(255,255,255,.08); border: 1.5px solid #6366f1;
  border-radius: 23px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.banner .search-select {
  height: 100%; padding: 0 16px;
  border: none; background: transparent;
  color: #cbd5e1; font-size: 14px; cursor: pointer;
  border-right: 1px solid rgba(255,255,255,.15);
}
.banner .search-box input {
  flex: 1; height: 100%; border: none; outline: none;
  padding: 0 16px; font-size: 14px; color: #e2e8f0;
  background: transparent;
}
.banner .search-box input::placeholder { color: #64748b; }
.banner .search-icon {
  height: 100%; padding: 0 18px;
  border: none; cursor: pointer; background: linear-gradient(135deg,#6366f1,#8b5cf6);
  display: flex; align-items: center;
}
.hot-tags {
  margin-top: 16px;
  display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 12px;
}
.hot-tags span {
  font-size: 16px; color: rgba(255,255,255,.85);
  font-weight: 600;
}
.hot-tags .hot-tag-hl {
  color: #fbbf24; font-weight: 700;
}
/* 启用背景图的横幅：右侧搜索列，标题随列右对齐，搜索框整体略向左收 */
.banner.has-bg .banner-title { text-align: right; margin-right: 50px; font-size: 20px; margin-bottom: 12px; }
.banner.has-bg .search-box { margin-left: auto; margin-right: 50px; }
.banner.has-bg .hot-tags { justify-content: flex-end; padding-right: 50px; }

.banner-qr {
  flex-shrink: 0; margin-left: 40px;
  text-align: center;
  position: relative; z-index: 1;
}
.qr-img {
  width: 88px; height: 88px;
  background:
    repeating-linear-gradient(0deg, #222 0 3px, #fff 3px 10px),
    repeating-linear-gradient(90deg, #222 0 3px, #fff 3px 10px);
  border-radius: 10px;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.qr-label {
  display: inline-block;
  margin-top: 10px;
  background: #10b981; color: #fff;
  font-size: 12px; padding: 3px 12px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* 热门推荐 / 新图速递 */
.switch-tabs {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 12px; margin-bottom: 24px;
  position: relative;
}
.switch-tab {
  position: relative;
  font-size: 16px; color: #94a3b8; font-weight: 600;
  padding: 10px 32px; cursor: pointer;
  border-radius: 10px;
  transition: all .2s;
}
.switch-tab:hover { color: #e2e8f0; background: rgba(255,255,255,.06); }
.switch-tab.active {
  background: rgba(16,185,129,.15);
  color: #10b981;
  box-shadow: 0 2px 12px rgba(16,185,129,.2);
}
.switch-tab .new-badge {
  position: absolute; top: -10px; right: -28px;
  font-style: normal; font-weight: 500;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(239,68,68,.3);
}

/* 素材卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  width: 100%;
  padding-top: 75%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.card-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: rgba(255,255,255,.7);
  text-shadow: 0 0 20px rgba(255,255,255,.3);
}
.card-img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; color: #fff;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  padding: 3px 9px; border-radius: 5px;
  font-weight: 500;
  max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-pts {
  position: absolute; top: 8px; right: 8px;
  font-size: 11px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #ff9a3d, #ff6a00);
  padding: 3px 9px; border-radius: 5px;
  box-shadow: 0 2px 8px rgba(255,106,0,.35);
}
.card-watermark {
  position: absolute; left: 10px; bottom: 8px;
  font-size: 10px; color: rgba(255,255,255,.85);
  line-height: 1.3;
}
.card-watermark b { display: block; font-size: 12px; font-weight: 700; }
.card-watermark span { font-size: 9px; opacity: .75; }
.card-stats {
  position: absolute; right: 10px; bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.9);
}
.card-stats .eye {
  display: inline-flex; align-items: center; gap: 3px;
}
.card-stats .dl {
  display: inline-flex; align-items: center; gap: 3px;
  color: rgba(255,255,255,.6);
}

/* 素材图片 + 图片下方标题 */
.material-card {
  padding-top: 0;
  overflow: hidden;
  background: #121d2f;
  border: 1px solid rgba(148,163,184,.1);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  transition: transform .25s, box-shadow .25s, border-color .2s;
}
.material-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,.34);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.material-card .card-media {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  border-radius: 0;
  background: #111;
  box-shadow: none;
  transition: none;
}
.material-card:hover .card-media {
  transform: none;
  box-shadow: none;
}
.material-card .card-title {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 10px 12px;
  overflow: hidden;
  color: #e7eef8;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: .15px;
  background: linear-gradient(180deg, #18263b, #121c2d);
  border-top: 1px solid rgba(148,163,184,.1);
  border-radius: 0;
  transition: color .18s, background .18s;
}
.material-card .card-title::before {
  content: '';
  flex: 0 0 3px;
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,.45);
}
.material-card .card-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-card:hover .card-title {
  color: #6ee7b7;
  background: linear-gradient(180deg, rgba(16,185,129,.12), rgba(15,23,42,.96));
}

/* 加载状态 */
.loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 36px 0; color: #64748b; font-size: 14px;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.1); border-top-color: #10b981;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-end { text-align: center; padding: 28px 0; color: #475569; font-size: 13px; }

/* 右侧悬浮工具栏 */
.side-tools {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 300;
  background: rgba(20,25,40,.92);
  border: 1px solid rgba(255,255,255,.08);
  border-right: none;
  border-radius: 14px 0 0 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  display: flex; flex-direction: column;
}
.side-tool {
  width: 64px; padding: 12px 0 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #94a3b8; font-size: 11px;
  cursor: pointer; border: none; background: transparent;
  transition: all .2s;
}
.side-tool + .side-tool { border-top: 1px solid rgba(255,255,255,.06); }
.side-tool:hover { color: #818cf8; background: rgba(99,102,241,.1); }
.side-tool svg { width: 22px; height: 22px; }
.side-tool:first-child { border-radius: 13px 13px 0 0; }
.side-tool:last-child { border-radius: 0 0 13px 13px; }
.side-contact { position: relative; }
.side-popup {
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%) translateX(10px);
  background: #1a1f30; border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  padding: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: all .2s;
  white-space: nowrap; z-index: 301; pointer-events: none; width: 200px;
  margin-right: 0;
}
.side-contact:hover .side-popup {
  opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); pointer-events: auto;
}
.sp-title { text-align: center; font-size: 14px; font-weight: 600; color: #e2e8f0; margin-bottom: 12px; }
.side-popup img { width: 140px; height: 140px; object-fit: contain; display: block; margin: 0 auto; }
.sp-sub { text-align: center; font-size: 12px; color: #94a3b8; margin-top: 10px; }
.sp-id { text-align: center; font-size: 18px; font-weight: 700; color: #fbbf24; margin: 8px 0 12px; letter-spacing: 1px; }
.sp-copy {
  display: block; width: 100%; padding: 8px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
  font-size: 13px; cursor: pointer; transition: opacity .2s;
}
.sp-copy:hover { opacity: .9; }

/* ============ 登录/注册弹窗 ============ */
.modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(0,0,0,.55);
  align-items: center; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal-box {
  position: relative;
  width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 36px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border: none;
  background: #f3f4f6; border-radius: 50%;
  font-size: 14px; color: #6b7280; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #e5e7eb; }
.modal-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 20px;
}
.modal-brand .brand-logo { width: 40px; height: 40px; font-size: 20px; }
.modal-brand .brand-text strong { color: #1a1c22; font-size: 18px; }
.modal-brand .brand-text em { color: #9ca3af; }
.modal-title {
  text-align: center; font-size: 20px; color: #1a1c22;
  font-weight: 700; margin-bottom: 20px;
}
.form-item { margin-bottom: 14px; position: relative; }
.form-item input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; color: #1a1c22; outline: none;
  transition: border-color .15s;
  background: #f9fafb;
}
.form-item input:focus { border-color: #10b981; background: #fff; }
.form-item input.error { border-color: #ef4444; }
.err-tip {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: #ef4444; display: none;
}
.form-item input.error + .err-tip, .form-item .err-tip.show { display: inline; }
.error-line { text-align: center; color: #ef4444; font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* 滑块验证 */
.slide-wrap {
  position: relative; width: 100%; height: 44px;
  margin: 16px 0; border-radius: 6px;
  background: #1e1b4b; overflow: hidden;
  user-select: none;
}
.slide-track {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #a5b4fc;
  letter-spacing: 1px;
  position: relative;
}
.slide-track::after {
  content: ''; position: absolute; top: 0; left: -50%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(165,180,252,.4), transparent);
  animation: slideShine 2.5s infinite;
}
@keyframes slideShine {
  0% { left: -50%; } 100% { left: 100%; }
}
.slide-btn {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  cursor: grab; box-shadow: 0 2px 8px rgba(99,102,241,.4);
  transition: background .2s;
  z-index: 2;
}
.slide-btn:active { cursor: grabbing; }
.slide-wrap.done { background: rgba(34,197,94,.15); }
.slide-wrap.done .slide-track { color: #22c55e; }
.slide-wrap.done .slide-track::after { display: none; }
.slide-wrap.done .slide-btn { background: #22c55e; color: #fff; }

.modal-btn {
  width: 100%; height: 46px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: all .2s;
  margin-top: 6px;
}
.modal-btn:hover { opacity: .95; transform: translateY(-1px); }
.modal-btn:disabled { background: #d1d5db; cursor: not-allowed; transform: none; }
.modal-switch {
  text-align: center; margin-top: 16px;
  font-size: 13px; color: #9ca3af;
}
.modal-switch a { color: #10b981; text-decoration: none; }
.modal-switch a:hover { text-decoration: underline; }

/* 验证码行 */
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
#captchaCanvas {
  width: 100px; height: 44px; border-radius: 10px;
  border: 1.5px solid #e5e7eb; cursor: pointer;
}

/* ============ 独立分类页：豪华大工具条（左子分类 + 分隔 + 右排序，连成一体） ============ */
.cat-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-bottom: 22px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 10px 14px;
  min-height: 54px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.sub-tabs {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 5px;
}
.sub-tab {
  display: inline-block; padding: 9px 22px; border-radius: 10px;
  color: #94a3b8; font-size: 15px; font-weight: 500; letter-spacing: .5px;
  cursor: pointer; text-decoration: none;
  transition: all .2s;
}
.sub-tab:hover { color: #e2e8f0; background: rgba(255,255,255,.08); }
.sub-tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 16px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.25);
}
.sort-tabs {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 4px;
}
.sort-tab {
  display: inline-block; padding: 7px 16px; border-radius: 8px;
  color: #94a3b8; font-size: 13px; cursor: pointer; text-decoration: none;
  transition: all .2s;
}
.sort-tab:hover { color: #e2e8f0; background: rgba(255,255,255,.07); }
.sort-tab.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(99,102,241,.4); }

/* 免费专区右侧流光提示横幅 */
.free-banner {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  position: relative; overflow: hidden;
  padding: 8px 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(251,191,36,.14), rgba(239,68,68,.14));
  border: 1px solid rgba(251,191,36,.35);
  box-shadow: 0 2px 12px rgba(251,191,36,.12), inset 0 1px 0 rgba(255,255,255,.06);
}
.free-banner .fb-tip {
  color: #fcd34d; font-size: 14px; font-weight: 700; letter-spacing: .5px;
  white-space: nowrap;
}
.free-banner .fb-hl {
  font-size: 15px; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
  background: linear-gradient(90deg, #fbbf24 0%, #fde68a 25%, #f87171 50%, #fde68a 75%, #fbbf24 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fbFlow 2.5s linear infinite;
}
/* 从左到右扫过的流光 */
.free-banner::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  animation: fbShine 2.8s ease-in-out infinite; pointer-events: none;
}
@keyframes fbFlow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
@keyframes fbShine { 0% { left: -60%; } 60%, 100% { left: 120%; } }
