/* ===== 爱古装 · PC 通屏通栏主题 ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; scroll-behavior:smooth; }

:root{
  --bg:#08080a;
  --bg-elev:#0e0e12;
  --card:#121217;
  --card-hover:#18181f;
  --line:#1d1d25;
  --line-strong:#2a2a34;
  --text:#b7b7c2;
  --text-strong:#f3f3f6;
  --muted:#6d6d7a;
  --brand:#e8491d;
  --brand-2:#ff7a45;
  --radius:14px;
  --gutter:clamp(14px, 2.2vw, 34px);
  --header-h:60px;
  --nav-h:46px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height:1.6; min-height:100vh;
  overflow-x:hidden;
}
/* 顶部氛围光 */
body::before{
  content:""; position:fixed; left:0; right:0; top:0; height:520px; z-index:0; pointer-events:none;
  background:radial-gradient(1100px 420px at 50% -180px, rgba(232,73,29,.18), rgba(232,73,29,0) 70%);
}
a { color:#ccc; text-decoration:none; transition:color .2s; }
a:hover { color:#fff; }
img { max-width:100%; height:auto; display:block; }
::selection { background:rgba(232,73,29,.35); color:#fff; }

/* 自定义滚动条 */
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:#0b0b0e; }
::-webkit-scrollbar-thumb { background:#2a2a34; border-radius:6px; }
::-webkit-scrollbar-thumb:hover { background:var(--brand); }

/* ===== Header（通栏） ===== */
.header {
  position:fixed; top:0; left:0; right:0; z-index:100; width:100%;
  background:rgba(10,10,13,.82); backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line);
  box-shadow:0 1px 0 rgba(255,255,255,.02), 0 8px 24px rgba(0,0,0,.35);
}
.header-inner {
  width:100%; padding:0 var(--gutter);
  display:flex; align-items:center; height:var(--header-h); position:relative;
}
.logo { font-size:1.2rem; font-weight:700; color:#fff; white-space:nowrap; flex-shrink:0; display:flex; align-items:center; }
.logo img { height:34px; width:auto; display:block; }

/* 导航（通栏第二行） */
.nav-wrap {
  width:100%; padding:0 var(--gutter);
  display:flex; align-items:center; min-height:var(--nav-h);
  border-top:1px solid rgba(255,255,255,.05); overflow-x:auto;
  scrollbar-width:none;
}
.nav-wrap::-webkit-scrollbar { display:none; }
.nav-toggle { display:none; background:none; border:none; color:#fff; font-size:1.5rem; cursor:pointer; padding:8px; }
.nav { white-space:nowrap; padding:5px 0; width:100%; }
.nav ul { list-style:none; display:flex; gap:4px; }
.nav li a {
  position:relative; display:block; padding:7px 14px; border-radius:999px; font-size:.85rem;
  color:#9a9aa6; transition:all .2s; white-space:nowrap;
}
.nav li a:hover { background:rgba(255,255,255,.06); color:#fff; }
.nav li a.active {
  background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; font-weight:600;
  box-shadow:0 4px 14px rgba(232,73,29,.32);
}

/* 搜索 */
.header-right { display:flex; align-items:center; gap:10px; margin-left:auto; flex-shrink:0; flex-wrap:nowrap; }
.header-right form { display:flex; align-items:center; flex-shrink:0; }
.header-right input[type="text"] {
  width:170px; height:34px; padding:0 12px; border:1px solid var(--line-strong); border-radius:999px 0 0 999px;
  background:#14141a; color:#ddd; font-size:.8rem; outline:none; transition:width .25s, border-color .2s;
}
.header-right input[type="text"]:focus { width:210px; border-color:var(--brand); background:#181820; }
.header-right input[type="text"]::placeholder { color:#5d5d68; }
.header-right button {
  height:34px; padding:0 14px; border:none; border-radius:0 999px 999px 0;
  background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; cursor:pointer; font-size:.8rem;
  transition:filter .2s;
}
.header-right button:hover { filter:brightness(1.12); }
.header-right .user-link { color:#9a9aa6; font-size:.8rem; padding:6px 10px; border-radius:999px; white-space:nowrap; }
.header-right .user-link:hover { background:rgba(255,255,255,.06); color:#fff; }
.header-right .auth-btns { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.header-right .auth-btns a { font-size:.75rem; padding:6px 14px; border-radius:999px; white-space:nowrap; transition:all .2s; text-decoration:none; }
.header-right .auth-btns .btn-qq { background:rgba(255,255,255,.06); padding:4px; line-height:0; }
.header-right .auth-btns .btn-qq:hover { background:rgba(255,255,255,.12); }
.qq-icon { height:22px; width:auto; display:block; border-radius:50%; }
.header-right .auth-btns .btn-login { background:transparent; border:1px solid var(--line-strong); color:#aaa; }
.header-right .auth-btns .btn-login:hover { border-color:var(--brand); color:#fff; }
.header-right .auth-btns .btn-reg { background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; box-shadow:0 4px 14px rgba(232,73,29,.28); }
.header-right .auth-btns .btn-reg:hover { filter:brightness(1.1); }

/* ===== Main（通栏满屏） ===== */
.main { width:100%; position:relative; z-index:1; margin:calc(var(--header-h) + var(--nav-h) + 8px) auto 0; padding:0 var(--gutter) 48px; }

/* ===== 首页 Hero（通栏） ===== */
.hero {
  position:relative; width:100%; margin:0 0 8px; padding:clamp(34px, 5vw, 72px) var(--gutter);
  border-radius:0 0 22px 22px; overflow:hidden;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(232,73,29,.22), transparent 70%),
    radial-gradient(600px 300px at 88% 10%, rgba(255,122,69,.14), transparent 70%),
    linear-gradient(120deg, #12121a 0%, #0c0c11 60%, #0a0a0d 100%);
  border:1px solid var(--line); border-top:none;
}
.hero-inner { width:100%; max-width:1560px; margin:0 auto; position:relative; z-index:1; }
.hero h1 {
  font-size:clamp(1.5rem, 2.6vw, 2.4rem); font-weight:800; letter-spacing:1px; line-height:1.35;
  background:linear-gradient(120deg,#fff 20%, var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero .slogan { margin-top:10px; color:#9a9aa6; font-size:clamp(.85rem,1vw,1rem); }
.hero-search { display:flex; max-width:640px; margin-top:22px; border-radius:999px; overflow:hidden; box-shadow:0 14px 34px rgba(0,0,0,.45); }
.hero-search input[type="text"] {
  flex:1; height:50px; padding:0 22px; border:none; outline:none;
  background:rgba(255,255,255,.06); color:#f0f0f5; font-size:.95rem;
}
.hero-search input[type="text"]::placeholder { color:#7a7a86; }
.hero-search button {
  height:50px; padding:0 32px; border:none; cursor:pointer; color:#fff; font-size:.95rem;
  background:linear-gradient(135deg, var(--brand), var(--brand-2)); transition:filter .2s;
}
.hero-search button:hover { filter:brightness(1.12); }
.hero-tags { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.hero-tags a {
  padding:6px 16px; border-radius:999px; font-size:.8rem; color:#b9b9c6;
  background:rgba(255,255,255,.05); border:1px solid var(--line-strong); transition:all .2s;
}
.hero-tags a:hover { color:#fff; border-color:var(--brand); background:rgba(232,73,29,.14); transform:translateY(-2px); }

/* 页面标题 */
.page-title {
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:28px 0 18px; margin-bottom:22px; border-bottom:1px solid var(--line);
}
.page-title h1 {
  font-size:clamp(1.4rem, 1.9vw, 2rem); color:var(--text-strong); font-weight:700; letter-spacing:.5px;
  display:flex; align-items:center;
}
.page-title h1::before{
  content:""; display:inline-block; width:5px; height:1.05em; margin-right:12px; border-radius:3px;
  background:linear-gradient(180deg, var(--brand-2), var(--brand));
  box-shadow:0 0 14px rgba(232,73,29,.5);
}
.page-title .count {
  color:var(--muted); font-size:.85rem; padding:5px 14px; border-radius:999px;
  background:rgba(255,255,255,.04); border:1px solid var(--line);
}
.page-title .count strong { color:var(--brand-2); }

/* ===== 图片网格（通栏铺满） ===== */
.pic-grid {
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:clamp(14px, 1.3vw, 26px);
}
.pic-card {
  position:relative; display:block;
  background:var(--card); border-radius:var(--radius); overflow:hidden;
  transition:transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s;
  cursor:pointer; border:1px solid var(--line);
}
.pic-card::after{
  content:""; position:absolute; inset:0; border-radius:var(--radius); pointer-events:none;
  border:1px solid transparent; transition:border-color .25s;
}
.pic-card:hover {
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,.55);
  border-color:rgba(232,73,29,.45);
}
.pic-card .thumb { position:relative; width:100%; aspect-ratio:1/1; overflow:hidden; background:#15151b; }
.pic-card .thumb img {
  position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; object-position:center 40%;
  /* 大图高倍率缩小时使用高质量重采样，避免糊 */
  image-rendering:-webkit-optimize-contrast;
  image-rendering:high-quality;
  backface-visibility:hidden; will-change:transform;
  transition:transform .45s cubic-bezier(.2,.7,.3,1), opacity .4s;
}
.pic-card:hover .thumb img { transform:scale(1.04); }
.pic-card .thumb::after{
  content:""; position:absolute; inset:0; opacity:0; transition:opacity .25s;
  background:linear-gradient(to top, rgba(8,8,10,.9) 0%, rgba(8,8,10,.15) 45%, transparent 70%);
}
.pic-card:hover .thumb::after { opacity:1; }
.pic-card .thumb .views {
  position:absolute; bottom:10px; right:10px; background:rgba(0,0,0,.6); backdrop-filter:blur(6px);
  padding:3px 10px; border-radius:999px; font-size:.72rem; color:#d8d8e0; z-index:2;
  border:1px solid rgba(255,255,255,.08);
}
.pic-card .info { padding:14px 16px 16px; }
.pic-card .info h3 {
  font-size:1rem; font-weight:500; color:#e6e6ee; line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.9em;
  transition:color .2s;
}
.pic-card:hover .info h3 { color:var(--brand-2); }
.pic-card .info .meta { display:flex; justify-content:space-between; margin-top:10px; font-size:.8rem; color:var(--muted); }
.pic-card .thumb .views { font-size:.78rem; padding:4px 12px; bottom:12px; right:12px; }

/* ===== 分页 ===== */
.pagination { display:flex; justify-content:center; gap:8px; padding:44px 0 12px; flex-wrap:wrap; }
.pagination a, .pagination span {
  display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px;
  padding:0 14px; border-radius:10px; font-size:.875rem; color:#9a9aa6; background:var(--card); border:1px solid var(--line); transition:all .2s;
}
.pagination a:hover { background:var(--card-hover); color:#fff; border-color:var(--brand); transform:translateY(-2px); }
.pagination .current { background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; border-color:transparent; box-shadow:0 6px 18px rgba(232,73,29,.3); }
.pagination .disabled { opacity:.3; cursor:default; }

/* ===== 详情页 ===== */
.detail-header { width:100%; padding:22px 0 20px; border-bottom:1px solid var(--line); margin-bottom:24px; }
.detail-header h1 { font-size:clamp(1.2rem, 1.6vw, 1.7rem); color:var(--text-strong); font-weight:700; line-height:1.4; }
.detail-header .meta { display:flex; gap:20px; margin-top:12px; font-size:.82rem; color:var(--muted); flex-wrap:wrap; }
.detail-header .meta span { display:flex; align-items:center; gap:4px; }

.detail-nav { display:flex; gap:12px; padding:16px 0 22px; flex-wrap:wrap; }
.detail-nav a {
  display:inline-flex; align-items:center; gap:6px; max-width:46%; padding:9px 20px; border-radius:999px;
  background:var(--card); color:#c6c6d0; font-size:.85rem; border:1px solid var(--line); transition:all .2s;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.detail-nav a:hover { background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; border-color:transparent; }

/* 图库（通栏） */
.gallery { display:grid; grid-template-columns:1fr; gap:18px; width:100%; }
.gallery .img-wrap {
  width:100%; background:var(--card); border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
  position:relative; cursor:zoom-in; transition:border-color .25s, box-shadow .25s;
}
.gallery .img-wrap:hover { border-color:rgba(232,73,29,.4); box-shadow:0 12px 34px rgba(0,0,0,.45); }
.gallery .img-wrap img {
  width:100%; max-width:1280px; height:auto; margin:0 auto; display:block; background:#15151b;
  image-rendering:-webkit-optimize-contrast; image-rendering:high-quality;
}
.gallery .img-wrap .img-index {
  position:absolute; bottom:14px; right:14px;
  background:rgba(0,0,0,.62); backdrop-filter:blur(6px); color:#d8d8e0; padding:4px 12px; border-radius:999px;
  font-size:.75rem; border:1px solid rgba(255,255,255,.08);
}

/* VIP 锁定（通栏） */
.vip-lock {
  text-align:center; padding:48px 24px; margin:24px 0 28px; border-radius:var(--radius);
  background:linear-gradient(135deg, rgba(232,73,29,.12), rgba(232,73,29,.02)), var(--card);
  border:1px solid rgba(232,73,29,.28);
}
.vip-lock .lock-icon { font-size:3rem; margin-bottom:12px; }
.vip-lock h3 { color:var(--text-strong); font-size:1.15rem; margin-bottom:8px; }
.vip-lock p { color:var(--muted); font-size:.9rem; margin-bottom:20px; }
.vip-lock .btn-group { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.vip-lock .btn {
  padding:11px 32px; border-radius:999px; font-size:.9rem; font-weight:500; cursor:pointer; transition:all .2s; border:none;
}
.vip-lock .btn-primary { background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; box-shadow:0 8px 22px rgba(232,73,29,.3); }
.vip-lock .btn-primary:hover { filter:brightness(1.1); transform:translateY(-2px); }
.vip-lock .btn-secondary { background:rgba(255,255,255,.06); color:#ccc; border:1px solid var(--line-strong); }
.vip-lock .btn-secondary:hover { background:rgba(255,255,255,.12); color:#fff; }

/* 下载条 */
.download-bar { text-align:center; padding:22px 0 26px; }
.download-bar .btn-download {
  display:inline-flex; align-items:center; gap:8px; padding:13px 38px; border-radius:999px;
  background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; font-size:1rem; font-weight:500;
  transition:all .2s; box-shadow:0 10px 26px rgba(232,73,29,.3);
}
.download-bar .btn-download:hover { filter:brightness(1.1); transform:translateY(-2px); }

/* ===== 相关推荐 ===== */
.section-title {
  font-size:1.15rem; color:var(--text-strong); font-weight:600; padding:40px 0 18px;
  display:flex; align-items:center;
}
.section-title::before{
  content:""; display:inline-block; width:5px; height:1.05em; margin-right:12px; border-radius:3px;
  background:linear-gradient(180deg, var(--brand-2), var(--brand));
}
.related-grid { display:grid; grid-template-columns:repeat(6, 1fr); gap:clamp(12px,1.1vw,20px); }
.related-card { background:var(--card); border-radius:12px; overflow:hidden; border:1px solid var(--line); transition:transform .25s, border-color .25s; }
.related-card:hover { transform:translateY(-4px); border-color:rgba(232,73,29,.45); }
.related-card .thumb { width:100%; aspect-ratio:1/1; position:relative; overflow:hidden; background:#15151b; }
.related-card .thumb img {
  position:absolute; top:0;left:0;width:100%;height:100%;object-fit:cover; object-position:center 40%;
  image-rendering:-webkit-optimize-contrast; image-rendering:high-quality;
  backface-visibility:hidden; transition:transform .4s;
}
.related-card:hover .thumb img { transform:scale(1.04); }
.related-card .info { padding:10px 12px; }
.related-card .info h4 { font-size:.82rem; color:#cfcfd8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ===== 搜索页 ===== */
.search-box-page { width:100%; max-width:780px; margin:26px auto 8px; }
.search-box-page form { display:flex; box-shadow:0 12px 32px rgba(0,0,0,.4); border-radius:999px; overflow:hidden; }
.search-box-page input[type="text"] {
  flex:1; height:52px; padding:0 22px; border:1px solid var(--line-strong); border-right:none; border-radius:999px 0 0 999px;
  background:#14141a; color:#e6e6ee; font-size:1rem; outline:none;
}
.search-box-page input[type="text"]:focus { border-color:var(--brand); }
.search-box-page button {
  height:52px; padding:0 32px; border:none; border-radius:0 999px 999px 0;
  background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; font-size:1rem; cursor:pointer; transition:filter .2s;
}
.search-box-page button:hover { filter:brightness(1.12); }
.search-results .result-item {
  display:flex; gap:18px; padding:16px; background:var(--card); border-radius:12px; margin-bottom:14px;
  border:1px solid var(--line); transition:all .2s;
}
.search-results .result-item:hover { background:var(--card-hover); border-color:rgba(232,73,29,.35); transform:translateX(3px); }
.search-results .result-item img {
  width:150px; height:100px; object-fit:cover; border-radius:8px; flex-shrink:0;
  image-rendering:-webkit-optimize-contrast; image-rendering:high-quality;
}
.search-results .result-item .result-info { flex:1; min-width:0; }
.search-results .result-item h3 { font-size:1rem; color:#e4e4ec; margin-bottom:6px; }
.search-results .result-item .desc { font-size:.82rem; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ===== Footer（通栏） ===== */
.footer {
  position:relative; z-index:1; width:100%; padding:44px var(--gutter) 32px;
  border-top:1px solid var(--line); background:linear-gradient(180deg,#0c0c10,#08080a); margin-top:56px;
}
.footer-inner {
  width:100%; display:flex; flex-wrap:wrap; gap:28px 40px; align-items:flex-start; justify-content:space-between;
}
.footer-brand { min-width:200px; }
.footer-brand img { height:32px; width:auto; margin-bottom:10px; }
.footer-brand p { font-size:.8rem; color:var(--muted); }
.footer-col h4 { font-size:.85rem; color:#e2e2ea; font-weight:600; margin-bottom:12px; }
.footer-col a {
  display:inline-block; font-size:.8rem; color:var(--muted); margin:0 14px 8px 0; transition:color .2s;
}
.footer-col a:hover { color:var(--brand-2); }
.footer-stats { display:flex; flex-wrap:wrap; gap:10px 26px; font-size:.78rem; color:#5f5f6c; }
.footer-stats strong { color:var(--brand-2); font-size:.95rem; }
.footer-copy {
  width:100%; margin-top:28px; padding-top:18px; border-top:1px solid rgba(255,255,255,.05);
  display:flex; flex-wrap:wrap; gap:6px 18px; justify-content:space-between; align-items:center;
  font-size:.78rem; color:#55555f;
}
.footer-copy a { color:#7a7a86; margin:0 4px; }
.footer-copy a:hover { color:var(--brand-2); }
/* 兼容旧结构（未改造的页面） */
.footer p { font-size:.8rem; color:#55555f; }
.footer a { color:#7a7a86; }
.footer-links { margin-top:8px; }
.footer-links a { color:#8a8a96; margin:0 4px; }
.footer-links a:hover { color:var(--brand-2); }

/* ===== 返回顶部 ===== */
#gotop {
  position:fixed; bottom:34px; right:34px; width:46px; height:46px; border-radius:50%;
  background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; border:none; font-size:1.25rem; cursor:pointer;
  display:none; align-items:center; justify-content:center; z-index:99; box-shadow:0 8px 22px rgba(232,73,29,.35);
  transition:all .3s;
}
#gotop:hover { transform:translateY(-3px); box-shadow:0 12px 26px rgba(232,73,29,.45); }
#gotop.show { display:flex; }

/* ===== 空状态 ===== */
.empty-state { text-align:center; padding:80px 20px; }
.empty-state .empty-icon { font-size:3rem; margin-bottom:14px; opacity:.35; }
.empty-state p { color:var(--muted); font-size:.9rem; }

/* ===== 内容页（政策/联系 等通栏） ===== */
.policy { width:100%; max-width:1560px; margin:calc(var(--header-h) + 24px) auto 40px; padding:0 var(--gutter); position:relative; z-index:1; }
.policy h1 { font-size:clamp(1.5rem,2vw,2rem); color:var(--text-strong); margin-bottom:8px; font-weight:700; }
.policy .upd { color:var(--muted); font-size:.85rem; margin-bottom:26px; }
.policy h2 { font-size:1.15rem; color:#fff; margin:32px 0 12px; padding-left:12px; border-left:3px solid var(--brand); }
.policy h3 { font-size:1rem; color:#ddd; margin:16px 0 6px; }
.policy p,.policy li { color:#b9b9c4; font-size:.95rem; max-width:1100px; }
.policy ul,.policy ol { padding-left:22px; margin:8px 0; }
.policy li { margin:6px 0; }
.policy strong { color:#ececf2; }
.policy .box { background:rgba(255,255,255,.03); border:1px solid var(--line); border-radius:12px; padding:16px 20px; margin:18px 0; color:#c3c3ce; max-width:1100px; }
.policy .box .row { display:flex; flex-wrap:wrap; gap:8px 28px; margin:8px 0; }
.policy .box .row span { color:#ddd; font-size:.95rem; }
.policy a { color:var(--brand-2); }
.policy table { width:100%; max-width:1100px; border-collapse:collapse; margin:14px 0; font-size:.92rem; color:#bbb; }
.policy th,.policy td { border:1px solid var(--line-strong); padding:9px 12px; text-align:left; vertical-align:top; }
.policy th { background:rgba(255,255,255,.04); color:#ececf2; }
.policy .warn { background:rgba(232,73,29,.08); border:1px solid rgba(232,73,29,.3); border-radius:12px; padding:14px 18px; color:#e0b98a; margin:18px 0; max-width:1100px; }
.qr { text-align:center; margin:20px 0; }
.qr img { width:180px; height:180px; border-radius:12px; border:1px solid var(--line-strong); background:#fff; padding:8px; }
.qr .cap { color:var(--muted); font-size:.85rem; margin-top:8px; }

/* ===== 响应式 ===== */
@media (max-width:1200px) {
  .header-right input[type="text"] { width:140px; }
  .header-right input[type="text"]:focus { width:170px; }
}

/* 栅格列数：宽屏 5 列，逐级降级 */
@media (max-width:1560px) {
  .pic-grid { grid-template-columns:repeat(5, 1fr); }
  .related-grid { grid-template-columns:repeat(6, 1fr); }
}
@media (max-width:1400px) {
  .pic-grid { grid-template-columns:repeat(4, 1fr); }
  .related-grid { grid-template-columns:repeat(5, 1fr); }
}
@media (max-width:1100px) {
  .pic-grid { grid-template-columns:repeat(3, 1fr); }
  .related-grid { grid-template-columns:repeat(4, 1fr); }
}
@media (max-width:820px) {
  .pic-grid { grid-template-columns:repeat(2, 1fr); }
  .related-grid { grid-template-columns:repeat(3, 1fr); }
}

@media (max-width:768px) {
  :root { --header-h:52px; }
  .header-inner { height:52px; }
  .nav-wrap { height:0; min-height:0; overflow:visible; border:none; }
  .nav-toggle { display:block; }
  .nav {
    display:none; position:fixed; top:52px; left:0; right:0; z-index:99;
    height:calc(100vh - 52px);
    background:rgba(8,8,10,.98); padding:16px 16px 40px; overflow-y:auto; white-space:normal;
  }
  .nav.open { display:block; }
  .nav ul { flex-direction:column; gap:2px; }
  .nav li a { padding:14px 16px; font-size:1rem; border-radius:10px; }
  .header-right { gap:6px; }
  .header-right input[type="text"] { width:110px; }
  .header-right input[type="text"]:focus { width:130px; }
  .header-right .auth-btns { gap:5px; }
  .header-right .auth-btns a { font-size:.68rem; padding:5px 10px; }

  .main { margin-top:68px; padding:0 12px 32px; }
  .hero { padding:28px 16px; margin-bottom:4px; }
  .hero-search { max-width:100%; }
  .hero-search button { padding:0 22px; }
  .pic-grid { grid-template-columns:repeat(2, 1fr); gap:10px; }
  .pic-card .info { padding:10px 12px 12px; }
  .pic-card .info h3 { font-size:.9rem; min-height:2.6em; }
  .page-title { padding:18px 0 14px; margin-bottom:16px; }
  .page-title h1 { font-size:1.2rem; }
  .detail-header h1 { font-size:1.15rem; }
  .detail-nav a { max-width:100%; }

  .search-results .result-item { flex-direction:column; }
  .search-results .result-item img { width:100%; height:auto; max-height:180px; }

  .related-grid { grid-template-columns:repeat(3, 1fr); }
  .footer { padding:32px 16px 24px; }
  .footer-inner { flex-direction:column; gap:20px; }
  .footer-copy { justify-content:center; text-align:center; }
  .policy { margin-top:76px; }
}

@media (max-width:480px) {
  .pic-grid { grid-template-columns:repeat(2,1fr); gap:8px; }
  .header-right input[type="text"] { width:80px; font-size:.7rem; }
  .header-right input[type="text"]:focus { width:100px; }
  .header-right .auth-btns a { font-size:.62rem; padding:4px 8px; }
  .vip-lock .btn { width:100%; }
  #gotop { right:16px; bottom:20px; }
}
