/* 老徐资源站 · 首页/门户统一视觉（红金 · 暖白）
   2026-11-07 v3 */

:root {
  --lx-c: #c8332b;
  --lx-c-d: #8f1d18;
  --lx-c-l: #e0563c;
  --lx-gold: #c99a2e;
  --lx-ink: #241f1c;
  --lx-ink2: #5b524c;
  --lx-line: #ece3da;
  --lx-bg: #faf7f4;
  --lx-card: #ffffff;
  --lx-r: 12px;
  --lx-sh: 0 1px 2px rgba(36,31,28,.04), 0 6px 18px rgba(36,31,28,.05);
}

.lx-idx, .lx-pt { width: 100%; max-width: 1200px; margin: 0 auto; padding: 18px 0 26px; color: var(--lx-ink); box-sizing: border-box; }
.lx-idx *, .lx-pt * { box-sizing: border-box; }
.lx-idx a, .lx-pt a { text-decoration: none; }

/* ============ 通用区块 ============ */
.lx-sec { margin: 26px 0 0; }
.lx-sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--lx-line); }
.lx-sec-hd h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .2px; color: var(--lx-ink); display: flex; align-items: baseline; gap: 10px; }
.lx-sec-hd h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--lx-c), var(--lx-gold)); }
.lx-sec-hd h2 em { font-style: normal; font-size: 12px; font-weight: 400; color: #a1958c; }
.lx-sec-more { font-size: 13px; color: #8d817a; white-space: nowrap; }
.lx-sec-more:hover { color: var(--lx-c); }

/* 图片统一：等比裁切，永不拉伸 */
.lx-pic { display: block; position: relative; overflow: hidden; background: linear-gradient(135deg, #f2ece6, #e8ded4); border-radius: var(--lx-r); }
.lx-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
a:hover .lx-pic img { transform: scale(1.04); }

/* ============ Hero ============ */
.lx-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: stretch; padding: 26px; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, #fff6f2 0%, #fdf8f4 45%, #f6ece4 100%); border: 1px solid #f0e3d8; box-shadow: var(--lx-sh); }
.lx-hero-l { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.lx-hero-eyebrow { display: inline-block; align-self: flex-start; padding: 5px 12px; margin-bottom: 14px; font-size: 12px; letter-spacing: .5px;
  color: var(--lx-c-d); background: #fdeee9; border: 1px solid #f6d8d5; border-radius: 999px; }
.lx-hero h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.25; font-weight: 800; color: var(--lx-ink); }
.lx-hero p { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--lx-ink2); }
.lx-hero-search { display: flex; height: 46px; margin-bottom: 14px; background: #fff; border: 1px solid #efded4; border-radius: 999px; overflow: hidden; box-shadow: 0 2px 10px rgba(143,29,24,.06); }
.lx-hero-search input[type=text] { flex: 1; height: 100%; padding: 0 18px; border: 0; outline: 0; font-size: 14px; color: var(--lx-ink); background: transparent; }
.lx-hero-search button { width: 108px; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--lx-c), var(--lx-c-d)); }
.lx-hero-search button:hover { background: linear-gradient(135deg, var(--lx-c-l), var(--lx-c)); }
.lx-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-hero-tags a { padding: 5px 12px; font-size: 12px; color: #7d7168; background: #fff; border: 1px solid #eee2d8; border-radius: 999px; }
.lx-hero-tags a:hover { color: var(--lx-c); border-color: #f0c9c4; }

/* Hero 图墙 2x2，16:11 */
.lx-hero-wall { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 12px; height: 340px; min-height: 340px; max-height: 340px; }
.lx-hero-wall > a { display: block; height: 100%; min-height: 0; overflow: hidden; border-radius: 12px; }
.lx-hero-wall .lx-pic { height: 100%; min-height: 0; border-radius: 12px; }
.lx-hero-wall .lx-pic img { width: 100%; height: 100%; object-fit: cover; }
.lx-hero-wall .lx-pic b { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; font-size: 12px; font-weight: 500; color: #fff; line-height: 1.35;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.68)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 分类 ============ */
.lx-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lx-cat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: var(--lx-r); transition: .22s; }
.lx-cat:hover { border-color: #f2cbc6; box-shadow: 0 6px 16px rgba(200,51,43,.08); transform: translateY(-2px); }
.lx-cat-ico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--lx-c), var(--lx-gold)); }
.lx-cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.lx-cat-tx { display: flex; flex-direction: column; min-width: 0; }
.lx-cat-tx b { font-size: 13.5px; font-weight: 600; color: var(--lx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-cat-tx span { font-size: 11.5px; color: #a89c93; margin-top: 2px; }

/* ============ 精选（1 大 4 小） ============ */
.lx-feat { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 430px; }
.lx-fc { position: relative; display: block; overflow: hidden; border-radius: 14px; background: #f3ece6; box-shadow: var(--lx-sh); }
.lx-fc .lx-pic { height: 100%; border-radius: 0; }
.lx-fc-lg { grid-row: span 2; }
.lx-fc-bd { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(20,15,13,.78)); }
.lx-fc-bd b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #fff; }
.lx-fc-lg .lx-fc-bd b { font-size: 19px; -webkit-line-clamp: 2; }
.lx-fc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lx-fc-meta em { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.78); }
.lx-fc-chip { position: absolute; top: 10px; left: 10px; padding: 3px 9px; font-size: 11px; font-style: normal; color: #fff; background: rgba(200,51,43,.92); border-radius: 999px; }

/* ============ 两栏 ============ */
.lx-two { display: grid; grid-template-columns: minmax(0, 2.55fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 26px; }

/* 卡片网格 4 列，图 16:10 */
.lx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lx-card { display: block; background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 14px; overflow: hidden; transition: .22s; }
.lx-card:hover { border-color: #f2cbc6; box-shadow: 0 10px 22px rgba(143,29,24,.09); transform: translateY(-2px); }
.lx-card .lx-pic { border-radius: 0; aspect-ratio: 16 / 10; }
.lx-card-bd { display: block; padding: 10px 12px 12px; }
.lx-card-bd b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--lx-ink); min-height: 38px; }
.lx-card-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.lx-card-meta em { font-style: normal; font-size: 11.5px; color: #a89c93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 侧栏 */
.lx-box { background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 14px; overflow: hidden; }
.lx-box-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--lx-line); background: linear-gradient(180deg, #fffdfb, #fbf6f1); }
.lx-box-hd h3 { margin: 0; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lx-box-hd h3::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--lx-c), var(--lx-gold)); }
.lx-box-hd a { font-size: 12px; color: #a89c93; }
.lx-box-bd { padding: 8px 6px; }
.lx-rank { display: flex; flex-direction: column; }
.lx-rank a { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 8px; }
.lx-rank a:hover { background: #fdf5f1; }
.lx-rank i { flex: 0 0 20px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-style: normal; font-weight: 700; color: #b2a69d; background: #f5efe9; border-radius: 6px; }
.lx-rank a:nth-child(1) i { color: #fff; background: var(--lx-c); }
.lx-rank a:nth-child(2) i { color: #fff; background: var(--lx-c-l); }
.lx-rank a:nth-child(3) i { color: #fff; background: var(--lx-gold); }
.lx-rank span { flex: 1; min-width: 0; font-size: 13px; color: var(--lx-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-rank em { font-style: normal; font-size: 11.5px; color: #b6aaa1; }

.lx-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--lx-line); }
.lx-stat > div { background: #fff; padding: 16px 10px; text-align: center; }
.lx-stat b { display: block; font-size: 21px; font-weight: 800; color: var(--lx-c); line-height: 1.2; }
.lx-stat span { display: block; margin-top: 3px; font-size: 11.5px; color: #a1968d; }

.lx-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.lx-links a { padding: 9px 10px; font-size: 12.5px; color: var(--lx-ink2); background: #fbf7f3; border: 1px solid #f1e8e0; border-radius: 8px; text-align: center; }
.lx-links a:hover { color: var(--lx-c); background: #fdf0ec; border-color: #f4cfc9; }

/* 底部说明 */
.lx-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 16px 20px; border-radius: 14px; background: linear-gradient(120deg, #fff8f4, #fbf2ec); border: 1px solid #f2e4d9; }
.lx-note span { font-size: 12.5px; line-height: 1.6; color: #8d817a; }
.lx-note b { flex: 0 0 auto; font-size: 13px; color: var(--lx-c-d); }

/* ============ 门户专属 ============ */
.lx-pt-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
.lx-pt-hero-l { padding: 30px 28px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, #fff6f2, #f8eee6 70%, #f3e5da); border: 1px solid #f0e3d8; box-shadow: var(--lx-sh); display: flex; flex-direction: column; justify-content: center; }
.lx-pt-eyebrow { display: inline-block; align-self: flex-start; padding: 5px 12px; margin-bottom: 14px; font-size: 12px; color: var(--lx-c-d); background: #fdeee9; border: 1px solid #f6d8d5; border-radius: 999px; }
.lx-pt-hero-l h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.28; font-weight: 800; }
.lx-pt-hero-l p { margin: 0 0 18px; font-size: 14px; line-height: 1.75; color: var(--lx-ink2); }
.lx-pt-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-pt-keys a { padding: 6px 14px; font-size: 12.5px; color: #7d7168; background: #fff; border: 1px solid #eee2d8; border-radius: 999px; }
.lx-pt-keys a:hover { color: var(--lx-c); border-color: #f0c9c4; }
.lx-pt-hero-r { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.lx-pt-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 14px; box-shadow: var(--lx-sh); }
.lx-pt-stat b { font-size: 26px; font-weight: 800; color: var(--lx-c); line-height: 1.2; }
.lx-pt-stat span { margin-top: 4px; font-size: 12px; color: #a1968d; }

/* 门户精选：左大图 + 右 4 条图文行 */
.lx-pt-feat { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.lx-pt-feat-main { position: relative; display: block; border-radius: 16px; overflow: hidden; min-height: 380px; box-shadow: var(--lx-sh); background: #f3ece6; }
.lx-pt-feat-main .lx-pic { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.lx-pt-feat-main-bd { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(20,15,13,.82)); }
.lx-pt-feat-main-bd b { display: block; font-size: 21px; font-weight: 700; line-height: 1.35; color: #fff; }
.lx-pt-feat-main-bd span { display: flex; gap: 12px; margin-top: 8px; }
.lx-pt-feat-main-bd em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.8); }

.lx-pt-rows { display: grid; grid-auto-rows: 1fr; gap: 12px; }
.lx-pt-row { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; padding: 10px; background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 12px; transition: .2s; }
.lx-pt-row:hover { border-color: #f2cbc6; box-shadow: 0 8px 18px rgba(143,29,24,.08); }
.lx-pt-row .lx-pic { aspect-ratio: 4 / 3; border-radius: 10px; }
.lx-pt-row-tx { min-width: 0; }
.lx-pt-row-tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--lx-ink); }
.lx-pt-row-tx span { display: flex; gap: 10px; margin-top: 8px; }
.lx-pt-row-tx em { font-style: normal; font-size: 11.5px; color: #a89c93; }

/* 门户分组：按版块的图文块 */
.lx-pt-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lx-pt-cat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: var(--lx-r); transition: .22s; }
.lx-pt-cat:hover { border-color: #f2cbc6; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(200,51,43,.08); }
.lx-pt-cat-ico { flex: 0 0 38px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; border-radius: 10px; background: linear-gradient(135deg, var(--lx-c), var(--lx-gold)); }
.lx-pt-cat-tx { display: flex; flex-direction: column; min-width: 0; }
.lx-pt-cat-tx b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-pt-cat-tx span { margin-top: 2px; font-size: 11.5px; color: #a89c93; }

/* 响应式 */
@media (max-width: 1180px) {
  .lx-cats, .lx-pt-cats { grid-template-columns: repeat(4, 1fr); }
  .lx-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .lx-hero, .lx-pt-hero { grid-template-columns: 1fr; }
  .lx-two { grid-template-columns: 1fr; }
  .lx-feat { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .lx-fc, .lx-fc-lg { grid-row: auto; height: 190px; }
  .lx-pt-feat { grid-template-columns: 1fr; }
  .lx-cats, .lx-pt-cats { grid-template-columns: repeat(2, 1fr); }
  .lx-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== 2026-11-07 v11 内容丰富化区块 ===== */
/* 卡片图统一 4:3，避免竖图被裁成怪比例 */
.lx-card .lx-pic{ aspect-ratio: 4 / 3 !important; }
.lx-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lx-grid-3{ grid-template-columns: repeat(3, 1fr) !important; }

/* 全站热门 3 列卡片 */
.lx-grid-3 .lx-card .lx-pic{ aspect-ratio: 16 / 10 !important; }

/* 分类条目文字不截断 */
.lx-cat-tx{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.lx-cat-tx b{ font-size:13px; font-weight:600; color:var(--lx-ink); line-height:1.35; white-space:normal; word-break:break-all; }
.lx-cat-tx > span{ font-size:11px; color:#a1958c; }
.lx-cats{ grid-template-columns: repeat(4, 1fr) !important; }

/* 版块聚合三栏 */
.lx-groups{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.lx-group{ background:var(--lx-card); border:1px solid var(--lx-line); border-radius:14px; overflow:hidden; display:flex; flex-direction:column; }
.lx-group-hd{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border-bottom:1px solid var(--lx-line); background:linear-gradient(180deg,#fdf8f5,#fff); }
.lx-group-hd h3{ margin:0; font-size:14px; font-weight:700; color:var(--lx-ink); }
.lx-group-hd h3::before{ content:""; display:inline-block; width:3px; height:13px; margin-right:8px; border-radius:2px; background:linear-gradient(180deg,var(--lx-c),var(--lx-gold)); vertical-align:-1px; }
.lx-group-hd a{ font-size:12px; color:#8d817a; white-space:nowrap; }
.lx-group-bd{ padding:12px; display:flex; flex-direction:column; gap:12px; }
.lx-gcard{ display:flex; gap:10px; align-items:center; }
.lx-gcard .lx-pic{ width:82px; height:62px; flex:0 0 82px; border-radius:8px; aspect-ratio:auto !important; }
.lx-gcard-tx{ min-width:0; display:flex; flex-direction:column; gap:4px; }
.lx-gcard-tx b{ font-size:13px; font-weight:600; line-height:1.5; color:var(--lx-ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lx-gcard-tx > span{ font-size:11px; color:#a1958c; display:flex; gap:10px; }

/* 门户统计横条 */
.lx-statbar{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:16px; }
.lx-statbar > div{ background:var(--lx-card); border:1px solid var(--lx-line); border-radius:14px; padding:18px 10px; text-align:center; }
.lx-statbar b{ display:block; font-size:24px; font-weight:800; color:var(--lx-c); line-height:1.2; }
.lx-statbar span{ display:block; margin-top:4px; font-size:12px; color:#8d817a; }

/* 侧栏统计更清晰 */
.lx-stat > div b{ font-size:20px !important; }
.lx-stat > div span{ font-size:12px !important; color:#8d817a; }

@media (max-width: 1100px){
  .lx-grid{ grid-template-columns:repeat(3,1fr); }
  .lx-groups{ grid-template-columns:1fr; }
  .lx-cats{ grid-template-columns:repeat(3,1fr) !important; }
  .lx-statbar{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px){
  .lx-grid,.lx-grid-3{ grid-template-columns:repeat(2,1fr) !important; }
  .lx-cats{ grid-template-columns:repeat(2,1fr) !important; }
  .lx-hero-wall{ height:240px !important; min-height:240px !important; max-height:240px !important; }
}
