/* ===========================================================
   镜头样片库 · 前台样式
   所有页面共用。改配色只需改 :root 变量。
   =========================================================== */

:root{
  --ink:#2C2C2A;
  --ink2:#5F5E5A;
  --ink3:#8A887F;
  --line:rgba(44,44,42,.12);
  --line2:rgba(44,44,42,.22);
  --bg:#FAF9F6;
  --card:#FFFFFF;
  --soft:#F3F1EA;
  --accent:#185FA5;
  --accent-soft:#EAF1F8;
  --radius:12px;
  --wrap:1280px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:14px; line-height:1.65;
  color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
h1,h2,h3,h4,p{margin:0}
ul{margin:0; padding:0; list-style:none}
button{font:inherit; cursor:pointer}

/* ---------- 顶栏 ---------- */
.top{
  position:sticky; top:0; z-index:60;
  display:flex; align-items:center; gap:28px;
  height:60px; padding:0 32px;
  background:rgba(250,249,246,.93);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.logo{font-size:15px; font-weight:600; letter-spacing:.01em; white-space:nowrap}
.logo span{
  display:block; font-size:10px; font-weight:400;
  letter-spacing:.12em; color:var(--ink3); text-transform:uppercase;
  margin-top:-3px;
}
.nav{display:flex; gap:22px; font-size:13.5px; color:var(--ink2)}
.nav a{position:relative; padding:4px 0; transition:color .15s}
.nav a:hover{color:var(--ink)}
.nav a.on{color:var(--ink); font-weight:500}
.nav a.on::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background:var(--ink); border-radius:2px;
}
.top .search{margin-left:auto; position:relative}
.top .search input{
  width:210px; height:34px; padding:0 12px 0 32px;
  border:1px solid var(--line2); border-radius:18px;
  background:var(--card); color:var(--ink); font-size:13px;
  outline:none; transition:.15s;
}
.top .search input:focus{width:260px; border-color:var(--accent)}
.top .search::before{
  content:""; position:absolute; left:11px; top:10px;
  width:13px; height:13px; border:1.6px solid var(--ink3); border-radius:50%;
}
.top .search::after{
  content:""; position:absolute; left:21px; top:22px;
  width:6px; height:1.6px; background:var(--ink3);
  transform:rotate(45deg); border-radius:1px;
}

/* ---------- 布局 ---------- */
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 32px}
.wrap-narrow{max-width:960px; margin:0 auto; padding:0 32px}
.sec{padding:44px 0}
.sec + .sec{border-top:1px solid var(--line)}
.sec-head{display:flex; align-items:baseline; gap:14px; margin-bottom:20px}
.sec-head h2{font-size:19px; font-weight:600; letter-spacing:-.01em}
.sec-head p{font-size:12.5px; color:var(--ink3)}
.sec-head .more{margin-left:auto; font-size:12.5px; color:var(--accent)}
.sec-head .more:hover{text-decoration:underline}

.crumb{font-size:12px; color:var(--ink3); padding:18px 0 0}
.crumb a:hover{color:var(--accent)}
.crumb i{font-style:normal; margin:0 7px; opacity:.5}

/* ---------- 占位图 ---------- */
.ph{
  position:relative; overflow:hidden; background:#DED9CD;
  background-image:linear-gradient(150deg,#CFC7B6,#9AA694 48%,#4A5A52);
}
.ph.r32{aspect-ratio:3/2}
.ph.r43{aspect-ratio:4/3}
.ph.r11{aspect-ratio:1/1}
.ph.r34{aspect-ratio:3/4}
.ph.r169{aspect-ratio:16/9}
.ph.g2{background-image:linear-gradient(150deg,#D6CEC0,#A8A38E 45%,#5A5F52)}
.ph.g3{background-image:linear-gradient(150deg,#C8CFD2,#8A9BA4 50%,#3D4E58)}
.ph.g4{background-image:linear-gradient(150deg,#E0D2C4,#B99A83 50%,#6B4F3C)}
.ph.g5{background-image:linear-gradient(150deg,#D2D8CD,#8FA08B 50%,#425249)}
.ph.g6{background-image:linear-gradient(150deg,#D8D3CB,#9C948B 50%,#4E4741)}
.ph.g7{background-image:linear-gradient(150deg,#CBD3D6,#8B9EA6 50%,#3C4A52)}
.ph.g8{background-image:linear-gradient(150deg,#DDD6C8,#B0A588 50%,#5F5641)}

/* 极淡水印层 */
.wm{
  position:absolute; inset:0; pointer-events:none; opacity:.085;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='210' height='150'><text x='12' y='34' font-family='sans-serif' font-size='12' fill='%232C2C2A' transform='rotate(-24 12 34)'>镜头样片库</text></svg>");
}

/* ---------- 首页 ---------- */
.hero{padding:56px 0 40px; border-bottom:1px solid var(--line)}
.hero h1{
  font-size:34px; font-weight:600; letter-spacing:-.025em;
  line-height:1.3; max-width:640px;
}
.hero p{margin-top:14px; font-size:14.5px; color:var(--ink2); max-width:560px}
.hero-stats{display:flex; gap:44px; margin-top:32px}
.hero-stats div b{
  display:block; font-size:26px; font-weight:600;
  letter-spacing:-.02em; font-variant-numeric:tabular-nums;
}
.hero-stats div span{font-size:12px; color:var(--ink3)}

/* 品牌墙 */
.brands{display:grid; grid-template-columns:repeat(7,1fr); gap:10px}
.brand{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; height:88px; background:var(--card);
  border:1px solid var(--line); border-radius:10px;
  transition:.16s;
}
.brand:hover{border-color:var(--line2); transform:translateY(-2px)}
.brand b{font-size:13px; font-weight:600; letter-spacing:.02em}
.brand span{font-size:11px; color:var(--ink3)}

/* ---------- 品牌页：字母索引与分组 ---------- */
.alpha{display:flex; flex-wrap:wrap; gap:4px; align-items:center; margin:22px 0 2px}
.alpha a{
  min-width:26px; height:26px; display:grid; place-items:center;
  border-radius:6px; font-size:11.5px; color:var(--ink3);
  border:1px solid transparent; font-variant-numeric:tabular-nums;
}
.alpha a:hover{color:var(--ink); border-color:var(--line2)}
.alpha a.on{background:var(--ink); color:#fff}
.alpha .off{
  min-width:26px; height:26px; display:grid; place-items:center;
  border-radius:6px; font-size:11.5px; color:var(--ink3);
  opacity:.3; cursor:default; font-variant-numeric:tabular-nums;
}
.alpha .legend{margin-left:auto; display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--ink3)}
.alpha .legend i{width:15px; height:10px; border-radius:3px; background:var(--accent-soft); border:1px solid #C8DCEE}

.brand-sec{
  display:grid; grid-template-columns:54px minmax(0,1fr); gap:18px;
  align-items:start; padding:24px 0 8px;
}
.brand-sec:first-of-type{padding-top:14px}
.brand-sec + .brand-sec{border-top:1px solid var(--line)}
.brand-sec .letter{
  font-size:26px; font-weight:600; line-height:1;
  letter-spacing:-.02em; padding-top:1px;
}
.brand-sec .letter em{
  display:block; font-style:normal; font-size:10.5px; font-weight:400;
  color:var(--ink3); margin-top:7px; letter-spacing:0;
}
.brand-sec .lens-grid{grid-template-columns:repeat(auto-fill, 226px); gap:12px; margin-top:0}
.brand-sec .lens-body{padding:11px 13px 13px}
.brand-sec .lens-body h3{font-size:13.5px}
.brand-sec .lens-body .foot{font-size:11px}
.lens.is-hot{background:var(--accent-soft); border-color:#CBDEEE}
.lens.is-hot:hover{border-color:#A6C6E2}

/* 等高行 justified rows：行分组在生成时算好，前端零 JS
   --a = 该图的宽高比（flex 伸缩系数），--s = 整行宽高比之和
   行高由容器宽度决定，所有行自动齐宽、等高、不裁切 */
.grid{display:block}
.row{display:flex; gap:14px; margin-bottom:14px}
.row > .card{flex:var(--a,1) 1 0%; min-width:0}
.row.last{width:var(--fill,100%)}

.card{
  display:block;
  background:var(--card); border-radius:10px; overflow:hidden;
  border:1px solid var(--line);
  transition:border-color .16s, transform .16s;
}
.card:hover{border-color:var(--line2); transform:translateY(-2px)}
.card-meta{padding:9px 11px 10px}
.card-meta strong{
  display:block; font-size:12.5px; font-weight:500;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.card-meta span{font-size:11px; color:var(--ink3); font-variant-numeric:tabular-nums}

.flag{
  position:absolute; left:8px; top:8px; z-index:2;
  font-size:10px; font-weight:500; letter-spacing:.02em;
  color:#fff; background:rgba(24,95,165,.92);
  padding:2px 7px; border-radius:4px;
}
.flag.plain{background:rgba(44,44,42,.55)}
.flag.right{left:auto; right:8px}

/* ---------- 品牌页 / 型号列表 ---------- */
.page-head{padding:32px 0 24px; border-bottom:1px solid var(--line)}
.page-head h1{font-size:26px; font-weight:600; letter-spacing:-.02em}
.page-head p{margin-top:8px; color:var(--ink2); font-size:13.5px; max-width:620px}
.page-head .meta{display:flex; gap:22px; margin-top:16px; font-size:12.5px; color:var(--ink3)}
.page-head .meta b{color:var(--ink); font-weight:500}

.filters{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  padding:14px 0; border-bottom:1px solid var(--line); margin-bottom:24px;
}
.fgroup{display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--ink3)}
.fgroup b{font-weight:400; margin-right:2px}
.chip{
  padding:3px 11px; border-radius:14px; border:1px solid var(--line);
  background:var(--card); font-size:12px; color:var(--ink2); transition:.14s;
}
.chip:hover{border-color:var(--line2); color:var(--ink)}
.chip.on{background:var(--ink); border-color:var(--ink); color:#fff}
.filters .spacer{margin-left:auto}
.sortbtn{
  padding:4px 12px; border-radius:14px; border:1px solid var(--line2);
  background:var(--card); font-size:12px; color:var(--ink2);
}

/* 型号卡 */
.lens-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.lens{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; transition:.16s;
}
.lens:hover{border-color:var(--line2); transform:translateY(-2px)}
.lens .cover{position:relative}
.lens-body{padding:14px 16px 16px}
.lens-body h3{font-size:14.5px; font-weight:600; letter-spacing:-.01em}
.lens-body .specs{display:flex; flex-wrap:wrap; gap:5px; margin:9px 0 11px}
.tag{
  font-size:11px; padding:1px 8px; border-radius:12px;
  background:var(--soft); color:var(--ink2); border:1px solid var(--line);
}
.tag.hi{background:var(--accent-soft); color:#14507F; border-color:#CADCEC}
.lens-body .foot{
  display:flex; justify-content:space-between; align-items:center;
  font-size:11.5px; color:var(--ink3); padding-top:11px; border-top:1px solid var(--line);
}
.lens-body .foot .upd{color:var(--accent); font-variant-numeric:tabular-nums}

/* 5 列型号网格 */
.lens-grid5{display:grid; grid-template-columns:repeat(5,1fr); gap:14px}
.lens-grid5 .lens-body{padding:11px 12px 12px}
.lens-grid5 .lens-body h3{
  font-size:13px; line-height:1.45;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.lens-grid5 .lens-body .specs{gap:4px; margin:7px 0 9px}
.lens-grid5 .tag{font-size:10px; padding:0 6px}
.lens-grid5 .lens-body .foot{font-size:10.5px; padding-top:9px}

/* ---------- 闲鱼二手参考价 ---------- */
.resale{display:grid; grid-template-columns:repeat(3,1fr); gap:6px}
.resale > div{
  background:var(--soft); border:1px solid var(--line); border-radius:7px;
  padding:5px 7px 6px; min-width:0;
}
.resale span{display:block; font-size:10px; color:var(--ink3); line-height:1.35; white-space:nowrap}
.resale b{
  display:block; font-size:12px; font-weight:600; letter-spacing:-.01em;
  font-variant-numeric:tabular-nums; margin-top:1px;
}
.resale .resale-date{
  grid-column:1/-1; display:flex; gap:5px; align-items:center;
  font-size:10.5px; color:var(--ink3); background:none; border:0; padding:0;
}
.resale .resale-date i{font-style:normal; opacity:.6}
.resale.lg{gap:10px}
.resale.lg > div{padding:9px 12px 10px}
.resale.lg span{font-size:11px}
.resale.lg b{font-size:16px; letter-spacing:-.02em}
.resale.lg .resale-date{font-size:11.5px; margin-top:2px}

/* 型号页的价格带 */
.resale-band{
  display:flex; gap:18px; align-items:flex-start;
  margin-top:18px; padding:14px 16px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
}
.resale-band .rb-h{flex:none; width:104px}
.resale-band .rb-h b{display:block; font-size:12.5px; font-weight:600}
.resale-band .rb-h span{display:block; font-size:11px; color:var(--ink3); margin-top:3px; line-height:1.5}
.resale-band .resale{flex:1; min-width:0; max-width:680px}

/* 列表页用的紧凑价格 */
.resale-mini{
  display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline;
  margin-top:9px; font-size:10.5px; color:var(--ink3);
}
.resale-mini span{white-space:nowrap}
.resale-mini b{color:var(--ink); font-weight:500; font-variant-numeric:tabular-nums}
.resale-mini i{font-style:normal; margin-left:auto; opacity:.75}

/* 窄栏里的竖排价格（详情页右栏） */
.resale-v > div{
  display:flex; justify-content:space-between; align-items:baseline; gap:10px;
  padding:7px 0; border-bottom:1px solid var(--line);
}
.resale-v > div:last-child{border-bottom:0}
.resale-v span{font-size:12px; color:var(--ink2)}
.resale-v b{font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-.01em}

/* 相关镜头列表（右栏） */
.rel-list{display:flex; flex-direction:column}
.rel-list a{
  display:flex; align-items:baseline; gap:8px; padding:6px 0;
  border-bottom:1px solid var(--line); font-size:12px;
}
.rel-list a:last-child{border-bottom:0}
.rel-list .n{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink2)}
.rel-list .p{flex:none; font-size:11px; color:var(--ink3); font-variant-numeric:tabular-nums}
.rel-list a:hover .n{color:var(--accent)}

/* ---------- 型号页 ---------- */
.lens-hero{padding:28px 0 20px}
.lens-hero h1{font-size:24px; font-weight:600; letter-spacing:-.02em}
.lens-hero .tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:11px}
.lens-hero .desc{margin-top:14px; max-width:680px; color:var(--ink2); font-size:13.5px}

/* 讨论区 */
.discuss{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px}
.discuss h3{font-size:15px; font-weight:600; margin-bottom:14px}
.cmt{display:flex; gap:11px; padding:13px 0; border-top:1px solid var(--line)}
.cmt:first-of-type{border-top:0}
.avatar{
  width:32px; height:32px; border-radius:50%; flex:none;
  background:var(--accent-soft); color:#14507F;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:500;
}
.cmt-body{flex:1; min-width:0}
.cmt-body .who{font-size:12.5px; margin-bottom:2px}
.cmt-body .who b{font-weight:500}
.cmt-body .who span{color:var(--ink3); margin-left:8px; font-size:11.5px}
.cmt-body p{font-size:13px; color:var(--ink2)}
.cmt-form{display:flex; gap:8px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line)}
.cmt-form input{
  flex:1; height:36px; padding:0 13px; font-size:13px; font-family:inherit;
  border:1px solid var(--line2); border-radius:8px; background:var(--bg); outline:none;
}
.cmt-form input:focus{border-color:var(--accent)}
.cmt-form button{
  padding:0 18px; height:36px; border-radius:8px;
  border:1px solid var(--ink); background:var(--ink); color:#fff; font-size:13px;
}

/* ---------- 样片详情 ---------- */
.detail{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; padding-top:20px}
.stage{
  position:relative; border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--line); background:#DED9CD;
}
.stage img{width:100%; height:auto; display:block}
.stage .ph > img{cursor:zoom-in}
.stage-tip{margin:7px 0 0; font-size:11.5px; color:var(--ink3); text-align:right}
.crop-box{
  position:absolute; border:1.5px solid rgba(255,255,255,.95); border-radius:2px;
  outline:1px solid rgba(0,0,0,.55); box-shadow:0 1px 8px rgba(0,0,0,.28);
  cursor:zoom-in; transition:.14s;
}
.crop-box:hover{background:rgba(255,255,255,.16); border-color:#fff; outline-color:rgba(0,0,0,.7)}
.crop-box b{
  position:absolute; top:-19px; left:-1px; font-size:10px; font-weight:600;
  background:rgba(255,255,255,.96); color:var(--ink);
  padding:0 5px; line-height:17px; border-radius:3px 3px 0 0;
  box-shadow:0 1px 4px rgba(0,0,0,.2);
}
.panel{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden}
.panel-h{
  padding:12px 16px; border-bottom:1px solid var(--line);
  font-size:11.5px; font-weight:500; color:var(--ink3); letter-spacing:.05em;
}
.panel-b{padding:6px 16px 12px}
.kv{display:flex; justify-content:space-between; gap:12px; padding:6px 0;
  border-bottom:1px dashed rgba(44,44,42,.08); font-size:12.5px}
.kv:last-child{border:0}
.kv dt{color:var(--ink3); margin:0; font-size:12px}
.kv dd{margin:0; font-variant-numeric:tabular-nums}
.panel-note{padding:11px 16px; border-top:1px solid var(--line); background:#FBFAF6;
  font-size:11.5px; color:var(--ink3); line-height:1.6}

.crops-head{margin-top:30px; margin-bottom:0}
.crops-head h2{font-size:16px}
.crops{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:14px}
.crop-card{
  background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden;
  transition:.16s; cursor:zoom-in;
}
.crop-card:hover{border-color:var(--line2); transform:translateY(-2px)}
.crop-card .crop-meta{
  padding:9px 12px; display:flex; justify-content:space-between; align-items:center; gap:8px;
}
.crop-card .crop-meta strong{font-size:12.5px; font-weight:500}
.crop-card .crop-meta span{font-size:11px; color:var(--ink3)}
.badge100{
  position:absolute; left:8px; top:8px; z-index:2;
  font-size:10px; font-weight:500; color:#fff;
  background:rgba(24,95,165,.92); padding:2px 7px; border-radius:4px;
}

.pager{display:flex; justify-content:space-between; gap:16px; margin-top:26px;
  padding-top:20px; border-top:1px solid var(--line); font-size:12.5px}
.pager a{color:var(--ink2); max-width:46%}
.pager a:hover{color:var(--accent)}
.pager a span{display:block; font-size:11px; color:var(--ink3)}

/* ---------- 搜索结果 ---------- */
.search-hero{padding:36px 0 8px}
.search-hero h1{font-size:22px; font-weight:600}
.search-hero .sum{margin-top:8px; font-size:13px; color:var(--ink2)}
.search-hero .sum b{color:var(--ink); font-weight:500}
.big-search{
  display:flex; gap:8px; margin-top:18px; max-width:560px;
}
.big-search input{
  flex:1; height:40px; padding:0 16px; font-size:14px; font-family:inherit;
  border:1px solid var(--line2); border-radius:10px; background:var(--card); outline:none;
}
.big-search input:focus{border-color:var(--accent)}
.big-search button{
  padding:0 22px; height:40px; border-radius:10px;
  border:1px solid var(--ink); background:var(--ink); color:#fff; font-size:13.5px;
}

/* ---------- 关于 ---------- */
.prose{max-width:720px}
.prose h2{font-size:17px; font-weight:600; margin:30px 0 10px}
.prose h2:first-child{margin-top:0}
.prose p{font-size:13.5px; color:var(--ink2); margin-bottom:12px}
.prose ul{margin:0 0 12px; padding-left:0}
.prose li{
  font-size:13.5px; color:var(--ink2); padding-left:16px; position:relative; margin-bottom:6px;
}
.prose li::before{
  content:""; position:absolute; left:2px; top:9px;
  width:4px; height:4px; border-radius:50%; background:var(--ink3);
}

/* ---------- 页脚 ---------- */
footer.foot{border-top:1px solid var(--line); margin-top:60px; padding:36px 0 44px; background:var(--card)}
.foot-in{
  max-width:var(--wrap); margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:1.6fr 1fr 1.2fr; gap:36px;
}
footer.foot strong{font-size:14px; font-weight:600}
footer.foot p{font-size:12px; color:var(--ink3); margin-top:7px; line-height:1.7}
.foot-links{display:flex; flex-direction:column; gap:7px; font-size:12.5px; color:var(--ink2)}
.foot-links a:hover{color:var(--accent)}

/* ---------- 响应式 ---------- */
@media (max-width:1080px){
  .brands{grid-template-columns:repeat(5,1fr)}
  .lens-grid{grid-template-columns:repeat(2,1fr)}
  .lens-grid5{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:820px){
  .wrap,.wrap-narrow,.foot-in{padding:0 18px}
  .top{padding:0 18px; gap:14px}
  .nav{display:none}
  .top .search input{width:150px}
  .top .search input:focus{width:170px}
  .hero{padding:36px 0 28px}
  .hero h1{font-size:25px}
  .hero-stats{gap:26px; flex-wrap:wrap}
  .brands{grid-template-columns:repeat(3,1fr)}
  .row{flex-wrap:wrap; gap:10px; margin-bottom:10px}
  .row > .card{flex:1 1 44%; max-width:calc(50% - 5px)}
  .row.last{width:100%}
  .detail{grid-template-columns:1fr}
  .crops{grid-template-columns:1fr}
  .lens-grid{grid-template-columns:1fr}
  .lens-grid5{grid-template-columns:repeat(2,1fr)}
  .resale-band{flex-direction:column; gap:11px}
  .resale-band .rb-h{width:auto}
  .alpha .legend{margin-left:0; width:100%; margin-top:4px}
  .brand-sec{grid-template-columns:1fr; gap:8px}
  .brand-sec .letter{font-size:18px; display:flex; align-items:baseline; gap:8px; padding-top:0}
  .brand-sec .letter em{margin-top:0}
  .brand-sec .lens-grid{grid-template-columns:1fr 1fr}
  .foot-in{grid-template-columns:1fr; gap:22px}
  .sec{padding:30px 0}
  .pager a{max-width:48%}
}

/* ---------- 全屏看图灯箱（鼠标 + 触摸共用） ---------- */
#lb{position:fixed; inset:0; z-index:999; background:rgba(22,22,20,.94); display:none; overflow:hidden;
  cursor:grab; touch-action:none; overscroll-behavior:contain;
  -webkit-user-select:none; user-select:none; -webkit-touch-callout:none}
#lb.on{display:block}
#lb .lb-bar{position:absolute; top:0; left:0; right:0; z-index:2; display:flex; align-items:center;
  gap:14px; padding:12px 20px; color:#fff; font-size:12px; white-space:nowrap;
  background:linear-gradient(rgba(0,0,0,.82),rgba(0,0,0,.42) 65%,rgba(0,0,0,0))}
#lb .lb-label{font-weight:500; letter-spacing:.01em}
#lb .lb-read{opacity:.85; font-variant-numeric:tabular-nums; background:rgba(255,255,255,.16);
  padding:2px 8px; border-radius:5px}
#lb .lb-hint{opacity:.55; font-size:11px}
#lb .lb-btns{margin-left:auto; display:flex; gap:8px}
#lb .lb-btns button{background:rgba(255,255,255,.14); color:#fff; border:0; border-radius:6px;
  padding:5px 11px; font-size:12px; cursor:pointer; font-family:inherit}
#lb .lb-btns button:hover{background:rgba(255,255,255,.24)}
#lb .lb-img{position:absolute; top:50%; left:50%; transform-origin:center center;
  max-width:none; user-select:none; -webkit-user-drag:none}

@media (max-width:720px){
  #lb .lb-bar{top:auto; bottom:0; padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background:linear-gradient(0deg,rgba(0,0,0,.88),rgba(0,0,0,.4) 70%,rgba(0,0,0,0));
    flex-wrap:wrap; gap:8px}
  #lb .lb-hint{display:none}
  #lb .lb-label{font-size:12px; max-width:58%; overflow:hidden; text-overflow:ellipsis}
  #lb .lb-btns{width:100%; margin-left:0; gap:6px; flex-wrap:nowrap}
  #lb .lb-btns button{flex:1 1 0; min-width:0; min-height:44px; font-size:12.5px; padding:8px 0;
    border-radius:8px; white-space:nowrap}
}

/* ---------- 镜头页顶部：左侧文字流，右侧参数 ----------
   grid 用两行：标题+标签占第一行左列，第二行左列是说明/图片/价格，右列是参数。
   这样参数卡会自然从「说明文字」那一行开始，和正文对齐，不会顶到标题高度。 */
.lens-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px;
  /* head 跨两列：收藏按钮才能和右栏参数表一样贴到页面右侧 */
  grid-template-areas:
    "head head"
    "body spec";
  column-gap:34px;
  align-items:start;
  padding:16px 0 14px;
}
.lt-head{grid-area:head; display:flex; flex-wrap:wrap; align-items:flex-start; gap:0 14px}
.lt-head h1{
  flex:1 1 auto; min-width:0; font-size:25px; font-weight:600;
  letter-spacing:-.02em; line-height:1.3;
}
.fav-btn{
  flex:none; margin-top:4px; display:inline-flex; align-items:center; gap:6px;
  height:30px; padding:0 12px; border-radius:15px;
  border:1px solid var(--line2); background:var(--card);
  font-size:12px; color:var(--ink2); font-family:inherit; cursor:pointer;
  transition:.14s; white-space:nowrap;
}
.fav-btn:hover{border-color:var(--accent); color:var(--accent)}
.fav-btn.on{background:var(--accent-soft); border-color:#C3D8EC; color:#14507F}
.fav-btn em{font-style:normal; font-size:10.5px; opacity:.6; margin-left:2px}
.lt-tags{flex:0 0 100%; display:flex; flex-wrap:wrap; gap:6px; margin-top:9px}
.lt-tags .tag{font-size:11px; padding:0 8px; height:20px; line-height:20px}

.lt-body{grid-area:body; min-width:0}
.lt-desc{
  font-size:13px; color:var(--ink2); margin:8px 0 0; max-width:720px; line-height:1.75;
}
.lt-meta{font-size:12px; color:var(--ink3); margin:8px 0 0}
.lt-meta b{color:var(--ink); font-weight:500}

/* 图片：一排小方图，不再抢视线 */
.lt-shots{display:flex; gap:10px; margin-top:14px}
.lt-shot{
  flex:0 0 148px; width:148px; aspect-ratio:1 / 1;
  display:block; overflow:hidden; cursor:zoom-in;
  border:1px solid var(--line); border-radius:8px; background:#F7F6F2;
  transition:border-color .15s;
}
.lt-shot img{width:100%; height:100%; object-fit:cover; display:block}
.lt-shot:hover{border-color:var(--line2)}

/* 闲鱼价：一行普通文字，和说明同级，不加框、不加分隔线 */
.lt-price{
  display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 14px;
  margin-top:10px; font-size:12px; color:var(--ink3);
}
.lt-price .lp-h{font-size:11.5px; color:var(--ink3); letter-spacing:.02em}
.lt-price .lp-item{color:var(--ink2); white-space:nowrap}
.lt-price .lp-item i{font-style:normal; color:var(--ink3); margin-right:4px}
.lt-price .lp-item b{font-weight:400; color:var(--ink2); font-variant-numeric:tabular-nums}
.lt-price .lp-note{
  flex:0 0 100%; margin:2px 0 0; font-size:10.5px; color:var(--ink3); opacity:.85; line-height:1.6;
}

/* 右栏参数：纯文字列表，无卡片背景 */
.lt-spec{grid-area:spec; position:sticky; top:12px; min-width:0; margin-top:8px}
.lt-spec h2{
  font-size:11.5px; font-weight:600; color:var(--ink2);
  letter-spacing:.04em; margin-bottom:2px; padding-bottom:7px;
  border-bottom:1px solid var(--line);
}
.spec-list{margin:0}
.spec-list > div{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; padding:7px 0; border-bottom:1px solid var(--line);
}
.spec-list > div:last-child{border-bottom:0}
.spec-list dt{flex:none; font-size:11.5px; color:var(--ink3); white-space:nowrap}
.spec-list dd{
  margin:0; font-size:12.5px; text-align:right; line-height:1.5;
  color:var(--ink2); font-variant-numeric:tabular-nums; overflow-wrap:anywhere;
}

/* ---------- 我的收藏 ---------- */
.fav-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:12px}
.fav-card{
  display:flex; align-items:center; gap:12px; padding:10px 12px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
}
.fav-cover{flex:none; width:76px; height:58px; border-radius:8px; overflow:hidden; background:#F1EFE8}
.fav-cover img{width:100%; height:100%; object-fit:cover; display:block}
.fav-cover .ph{width:100%; height:100%; border-radius:0}
.fav-body{flex:1; min-width:0}
.fav-name{
  display:block; font-size:13.5px; font-weight:600; letter-spacing:-.01em;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.fav-name:hover{color:var(--accent)}
.fav-sub{font-size:11px; color:var(--ink3); margin-top:3px}
.fav-del{
  flex:none; padding:5px 10px; border-radius:14px; cursor:pointer;
  border:1px solid var(--line2); background:var(--card);
  font-size:11.5px; color:var(--ink3); font-family:inherit;
}
.fav-del:hover{border-color:#D9B3B3; color:#A32D2D}

/* ---------- 悬浮提示（注册按钮等） ---------- */
.tip-host{position:relative; cursor:pointer}
.tip-host::after{
  content:attr(data-tip); position:absolute; right:-6px; top:calc(100% + 10px);
  width:216px; padding:8px 10px; border-radius:8px;
  background:rgba(42,42,40,.96); color:#fff;
  font-size:11.5px; line-height:1.65; text-align:left; white-space:normal;
  opacity:0; visibility:hidden; transform:translateY(-3px);
  transition:opacity .16s, transform .16s, visibility .16s; z-index:90;
  pointer-events:none; box-shadow:0 6px 20px rgba(0,0,0,.16);
}
.tip-host::before{
  content:""; position:absolute; right:14px; top:calc(100% + 4px);
  border:6px solid transparent; border-bottom-color:rgba(42,42,40,.96);
  opacity:0; visibility:hidden; transition:opacity .16s, visibility .16s; z-index:91;
}
.tip-host:hover::after, .tip-host:focus::after,
.tip-host:hover::before, .tip-host:focus::before{opacity:1; visibility:visible; transform:translateY(0)}

footer.foot p a.icp{color:inherit; text-decoration:none}
footer.foot p a.icp:hover{text-decoration:underline; color:var(--ink2)}
