/* 下载屋 前台样式 - 仿小蚂蚁资源网风格（橙主题 · 精修版） */
:root {
  --orange: #ff6a00;
  --orange-light: #ff8a2a;
  --orange-grad: linear-gradient(135deg, #ff8a2a, #ff5a00);
  --dark: #25272f;
  --dark-deep: #1b1d23;
  --text: #333;
  --text-light: #999;
  --border: #eee;
  --bg: #f5f6f8;
  --white: #fff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-lg: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font: 14px/1.65 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--orange); }
img { border: 0; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ========== 顶部细条 ========== */
.topbar { background: var(--dark-deep); color: rgba(255,255,255,.7); font-size: 12.5px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar-notice { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-links a { color: rgba(255,255,255,.7); margin-left: 20px; transition: .2s; }
.topbar-links a:hover { color: var(--orange-light); }

/* ========== 头部：logo + 搜索 ========== */
.header { background: var(--white); border-bottom: 1px solid var(--border); }
.header-in { display: flex; align-items: center; gap: 30px; height: 100px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-ico {
  width: 58px; height: 58px; flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(61,143,216,.35));
  transition: transform .3s ease;
}
.logo:hover .logo-ico { transform: translateY(-2px) scale(1.06); }
.logo-ico.sm { width: 40px; height: 40px; filter: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 26px; color: var(--dark); letter-spacing: 1px; }
.logo-text em { font-style: normal; font-size: 12px; color: var(--text-light); letter-spacing: .5px; }
.search-area { flex: 1; max-width: 580px; margin: 0 auto; }
.search { display: flex; }
.search input {
  flex: 1; height: 46px; padding: 0 20px; font-size: 14px;
  border: 2px solid var(--orange); border-right: 0; border-radius: 23px 0 0 23px;
  outline: none; background: #fff; transition: .2s;
}
.search input:focus { box-shadow: 0 0 0 4px rgba(255,106,0,.1); border-color: var(--orange); }
.search button {
  width: 110px; height: 46px; border: 0; cursor: pointer;
  background: var(--orange-grad); color: #fff; font-size: 16px; letter-spacing: 4px;
  border-radius: 0 23px 23px 0; transition: .25s;
}
.search button:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(255,106,0,.3); }
.hot-kws { margin-top: 8px; font-size: 12px; color: var(--text-light); display: flex; gap: 6px; flex-wrap: wrap; }
.hot-kws span { opacity: .7; }
.hot-kws a {
  color: var(--text-light); padding: 1px 8px; border-radius: 10px; transition: .2s;
}
.hot-kws a:hover { color: var(--orange); background: #fff5ee; }
.header-side { flex-shrink: 0; color: var(--text-light); font-size: 13px; }
.header-side i { margin: 0 10px; color: #ddd; font-style: normal; }

/* ========== 主导航 ========== */
.nav { background: var(--dark); box-shadow: 0 2px 10px rgba(0,0,0,.2); position: relative; z-index: 50; }
.nav-menu { display: flex; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; color: #fff; padding: 13px 22px; font-size: 15px; transition: .2s;
}
.nav-item:hover > a, .nav-item.on > a { background: var(--orange); color: #fff; }
.nav-item.has-sub > a::after {
  content: ""; display: inline-block; margin-left: 6px;
  border: 4px solid transparent; border-top-color: rgba(255,255,255,.8); vertical-align: 2px;
}
.nav-drop {
  display: none; position: absolute; left: 0; top: 100%; z-index: 99; min-width: 150px;
  background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--shadow-lg);
  padding: 6px 0; border-top: 2px solid var(--orange);
}
.nav-item:hover .nav-drop { display: block; animation: fadeSlideIn .18s ease; }
/* 汉堡按钮（仅移动端显示） */
.nav-toggle { display: none; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav-drop a { display: block; padding: 9px 18px; font-size: 13.5px; color: var(--text); white-space: nowrap; transition: .15s; }
.nav-drop a:hover { background: #fff5ee; color: var(--orange); padding-left: 24px; }

/* ========== 全宽横幅广告 ========== */
.ad-banner-wrap { background: var(--bg); padding: 14px 0 4px; }
.ad-banner { display: block; max-width: 1920px; height: 320px; margin: 0 auto 10px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: .3s; }
.ad-banner:hover { box-shadow: var(--shadow-lg); }
.ad-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-placeholder {
  display: flex; align-items: center; justify-content: center; height: 320px;
  background: #ffe9d9; color: #ff9a4d; font-size: 15px; letter-spacing: 1px;
  border: 1px dashed #ffb273; border-radius: var(--radius-lg);
}

/* 轮播（多广告时启用） */
/* Hero 轮播广告 */
.ad-carousel { position: relative; max-width: 1920px; height: 320px; margin: 0 auto 10px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.ad-carousel .ad-banner { height: 100%; margin-bottom: 0; border-radius: 0; box-shadow: none; }
.ad-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.ad-slide.on { opacity: 1; visibility: visible; z-index: 1; }
.ad-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.07); transition: transform 6.5s ease-out; }
.ad-slide.on .ad-banner img { transform: scale(1); }
.ad-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,17,32,.74) 0%, rgba(12,17,32,.42) 38%, rgba(12,17,32,0) 62%); pointer-events: none; }
.ad-copy { position: absolute; left: 6%; top: 50%; transform: translateY(-46%); max-width: 580px; color: #fff; z-index: 2; }
.ad-slide.on .ad-copy { animation: adUp .7s .12s ease both; }
@keyframes adUp { from { opacity: 0; transform: translateY(-30%); } to { opacity: 1; transform: translateY(-46%); } }
.ad-tag { display: inline-block; font-size: 11.5px; letter-spacing: 3px; padding: 4px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(4px); margin-bottom: 14px; }
.ad-title { font-size: 34px; font-weight: 800; letter-spacing: 1px; line-height: 1.25; text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.ad-sub { margin-top: 8px; font-size: 14.5px; color: rgba(255,255,255,.85); letter-spacing: .5px; }
.ad-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 11px 30px; border-radius: 999px; background: var(--orange-grad); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 8px 22px rgba(255,90,0,.45); transition: .25s; }
.ad-cta span { transition: transform .25s; }
.ad-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,90,0,.55); color: #fff; }
.ad-cta:hover span { transform: translateX(4px); }
.ad-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); transition: .25s; display: flex; align-items: center; justify-content: center; }
.ad-arrow:hover { background: var(--orange); }
.ad-prev { left: 16px; }
.ad-next { right: 16px; }
.ad-ctrl { position: absolute; left: 6%; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.ad-count { font-size: 12.5px; color: rgba(255,255,255,.9); letter-spacing: 1.5px; font-weight: 600; }
.ad-dots { display: flex; gap: 6px; }
.ad-dot { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; transition: .3s; border: none; padding: 0; }
.ad-dot.on { background: #fff; width: 36px; }
@media (max-width: 768px) {
  .ad-carousel { height: 220px; }
  .ad-copy { left: 8%; max-width: 78%; }
  .ad-title { font-size: 20px; }
  .ad-sub { font-size: 12px; }
  .ad-cta { padding: 8px 20px; font-size: 13px; margin-top: 12px; }
  .ad-arrow { display: none; }
}
@keyframes fadeIn { from { opacity: .4; } to { opacity: 1; } }

/* ========== 主体布局 ========== */
.page-body { padding: 18px 0 34px; }
.panel {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px; overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.panel-head h2 { font-size: 17px; color: var(--dark); display: flex; align-items: center; font-weight: 700; }
.panel-head h2 a { color: var(--dark); transition: .2s; }
.panel-head h2 a:hover { color: var(--orange); }
.ph-icon {
  display: inline-block; width: 4px; height: 18px; border-radius: 2px;
  background: var(--orange-grad); margin-right: 9px;
  box-shadow: 0 0 0 3px rgba(255,106,0,.12);
}
.panel-head .more { font-size: 13px; color: var(--text-light); transition: .2s; }
.panel-head .more:hover { color: var(--orange); }
.panel-head .count { font-size: 13px; color: var(--text-light); }

/* ========== 分类前置长条广告 ========== */
.cat-ad {
  margin-bottom: 20px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden; line-height: 0;
}
.cat-ad a { display: block; }
.cat-ad img { display: block; width: 100%; height: auto; }
.cat-ad iframe { display: block; width: 100%; border: 0; }

/* ========== 站点统计条 ========== */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 18px 0 2px;
}
.stats-bar .st-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 10px 15px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stats-bar .st-item::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--orange-grad);
}
.stats-bar .st-num {
  display: block; font-size: 27px; font-weight: 800; line-height: 1.15;
  background: var(--orange-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-variant-numeric: tabular-nums;
}
.stats-bar .st-label { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-light); letter-spacing: 3px; }

/* ========== 广告位招商色块 ========== */
.ad-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 16px 0 2px;
}
.ad-grid .ag-big, .ad-grid .ag-sm {
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; font-weight: 700; text-decoration: none;
  border-radius: 8px; padding: 14px 8px; font-size: 15px; letter-spacing: 1px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ad-grid .ag-big { grid-column: span 2; padding: 18px 10px; font-size: 17px; }
.ad-grid a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.ad-grid .ag-b1 { background: #29b6f6; }
.ad-grid .ag-b2 { background: #2c3e50; }
.ad-grid .ag-s1 { background: #e74c3c; }
.ad-grid .ag-s2 { background: #2196f3; }
.ad-grid .ag-s3 { background: #27ae60; }
.ad-grid .ag-s4 { background: #f39c12; }

/* ========== 首页分类区块：1 大卡 + 8 小卡 ========== */
.sec-grid {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; padding: 18px;
}
.sec-big { grid-column: span 2; grid-row: span 2; position: relative; min-height: 296px; }
.sec-big .sb-link { display: block; position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; background: #f8f5f2; box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: all .25s ease; }
.sec-big .sb-link:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(255,106,0,.2); }
.sec-big .sb-thumb { display: block; position: absolute; inset: 0; }
.sec-big .sb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.sec-big .sb-link:hover .sb-thumb img { transform: scale(1.06); }
.sec-big .sb-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,20,0) 42%, rgba(10,12,20,.82) 100%); pointer-events: none; }
.sec-big .sb-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 15px; color: #fff; z-index: 2; }
.sec-big .sb-tag { display: inline-flex; align-items: center; font-size: 11.5px; padding: 3px 10px; border-radius: 4px; background: var(--orange-grad); margin-bottom: 9px; letter-spacing: 1px; }
.sec-big .sb-tag .ph-icon { width: 3px; height: 11px; margin-right: 6px; background: #fff; box-shadow: none; }
.sec-big .sb-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 17px; font-weight: 700; line-height: 1.45; text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.sec-big .sb-meta { display: flex; gap: 14px; margin-top: 7px; font-size: 12.5px; color: rgba(255,255,255,.78); }
.sec-big .sb-meta .views::before { content: "◉"; margin-right: 3px; color: #ffb273; font-size: 10px; }
.sec-big .no-thumb {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 18px; color: #ffbe92; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(135deg, #fff5ee, #ffe8d8);
}

/* ========== 资源卡片网格 ========== */
.res-grid {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; padding: 18px;
}
.main-col .res-grid { grid-template-columns: repeat(4, 1fr); }
.res-card {
  background: #fff; border: 1px solid #f0f0f0; border-radius: var(--radius);
  overflow: hidden; transition: all .25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.res-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(255,106,0,.18);
  border-color: #ffd9bd;
}
.res-card .thumb {
  display: block; height: 134px; background: #f8f5f2; overflow: hidden; position: relative;
}
.res-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.04));
  pointer-events: none;
}
.res-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.res-card:hover .thumb img { transform: scale(1.07); }
.res-card .no-thumb {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 15px; color: #ffbe92; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(135deg, #fff5ee, #ffe8d8);
}
.badge-top {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--orange-grad); color: #fff; font-size: 11px;
  padding: 3px 9px; border-radius: 5px; box-shadow: 0 2px 8px rgba(255,106,0,.45);
  font-weight: 600; letter-spacing: .5px;
}
.res-card h3 { font-size: 12.5px; padding: 10px 12px 5px; line-height: 1.5; height: 44px; overflow: hidden; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.res-card h3 a { color: var(--text); transition: .2s; }
.res-card h3 a:hover { color: var(--orange); }
.res-card .meta {
  display: flex; justify-content: space-between; padding: 0 12px 11px;
  font-size: 12px; color: var(--text-light);
}
.res-card .meta .views::before { content: "◉"; margin-right: 3px; color: #ffb273; font-size: 10px; }

/* ========== 文字列表 ========== */
.res-list { list-style: none; padding: 10px 20px 16px; }
.res-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px dashed #f0f0f0; font-size: 13.5px;
  transition: .15s;
}
.res-list li:hover { padding-left: 4px; }
.res-list li:last-child { border-bottom: 0; }
.res-list .res-title {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text);
}
.res-list .res-title:hover { color: var(--orange); }
.res-list .res-title::before { content: "·"; color: var(--orange); font-weight: 700; margin-right: 6px; }
.res-list .res-time, .res-list .res-views { color: var(--text-light); font-size: 12px; flex-shrink: 0; }
.hot-list .res-title::before { content: none; }

/* 排名序号 */
.rank {
  width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; background: #c9cdd4; font-weight: 700;
}
.rank-1 { background: #ff5a00; box-shadow: 0 2px 6px rgba(255,90,0,.4); }
.rank-2 { background: #ff8a2a; }
.rank-3 { background: #ffb273; }

/* 最新/热门 双栏 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo .panel { margin-bottom: 0; }

/* ========== 两栏（主 + 侧栏） ========== */
.two-col { display: flex; gap: 20px; align-items: flex-start; }
.main-col { flex: 1; min-width: 0; }
.side-col { width: 290px; flex-shrink: 0; }

/* 面包屑 */
.breadcrumb {
  font-size: 13px; color: var(--text-light); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); transition: .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .cur { color: var(--orange); font-weight: 600; }

/* 子分类筛选条 */
.sub-filter {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 14px 18px; margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.sub-filter .sf-label { font-size: 13px; color: var(--text-light); margin-right: 4px; }
.chip {
  padding: 6px 16px; border-radius: 17px; font-size: 13px;
  background: #f5f6f8; color: var(--text); border: 1px solid transparent;
  transition: all .2s;
}
.chip:hover { color: var(--orange); border-color: var(--orange); background: #fff5ee; }
.chip.on { background: var(--orange-grad); color: #fff; box-shadow: 0 2px 8px rgba(255,106,0,.3); }

/* ========== 侧栏 ========== */
.side-panel .panel-head { padding: 12px 16px; }
.side-panel .panel-head h2 { font-size: 15px; }
.side-cats { list-style: none; padding: 12px 16px 16px; }
.side-cats > li > a {
  display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; color: var(--text);
  transition: .2s;
}
.side-cats > li > a:hover { background: #fff5ee; color: var(--orange); padding-left: 18px; }
.side-cats > li > a.cur { background: var(--orange-grad); color: #fff; }
.sub-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 10px; }
.sub-cats a {
  font-size: 12.5px; color: var(--text-light); background: #f5f6f8;
  padding: 3px 10px; border-radius: 12px; transition: .2s;
}
.sub-cats a:hover { color: var(--orange); background: #fff5ee; }
.sub-cats a.cur { background: var(--orange); color: #fff; }
.side-hot { list-style: none; padding: 12px 16px 16px; }
.side-hot li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #f0f0f0; }
.side-hot li:last-child { border-bottom: 0; }
.side-hot a {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; color: var(--text); transition: .2s;
}
.side-hot a:hover { color: var(--orange); }
.side-views { font-size: 12px; color: var(--text-light); flex-shrink: 0; }

/* ========== 分页 ========== */
.pager { display: flex; justify-content: center; gap: 8px; padding: 8px 0 22px; }
.pager a {
  min-width: 36px; height: 36px; padding: 0 12px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f5f6f8; color: var(--text); font-size: 13.5px;
  transition: .2s; font-weight: 500;
}
.pager a:hover { background: #ffe8d8; color: var(--orange); }
.pager a.on { background: var(--orange-grad); color: #fff; box-shadow: 0 3px 10px rgba(255,106,0,.35); }
.pager { flex-wrap: wrap; row-gap: 8px; }
.pager .pg-dots { display: inline-flex; align-items: center; padding: 0 4px; color: var(--gray); }

/* ========== 详情页 ========== */
.detail-panel { padding: 26px 30px; }
.detail-title { font-size: 20px; color: var(--dark); line-height: 1.5; font-weight: 700; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px; color: var(--text-light);
  padding: 13px 0; margin: 13px 0 4px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.detail-meta a { color: var(--orange); }
.detail-body { padding-top: 8px; }
.detail-cover { text-align: center; margin: 10px 0 18px; }
.detail-cover img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.detail-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.detail-gallery img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: .25s; }
.detail-gallery img:hover { box-shadow: var(--shadow-md); transform: scale(1.01); }
.detail-content { font-size: 14.5px; line-height: 1.9; color: #444; }
.detail-content p { margin-bottom: 14px; }
.detail-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0; box-shadow: var(--shadow-sm); }
.detail-content a { color: var(--orange); text-decoration: underline; }
.detail-content strong, .detail-content b { color: var(--dark); }
.detail-content h2, .detail-content h3, .detail-content h4 { margin: 18px 0 10px; color: var(--dark); line-height: 1.4; }
.detail-content ul, .detail-content ol { padding-left: 22px; margin-bottom: 14px; }
.detail-content blockquote { border-left: 3px solid var(--orange); background: #fff9f4; padding: 10px 16px; margin: 0 0 14px; color: #666; border-radius: 0 8px 8px 0; }
/* 采集内容防溢出 */
.detail-content { overflow-wrap: break-word; word-break: break-word; overflow: hidden; }
.detail-content table { max-width: 100%; border-collapse: collapse; }
.detail-content td, .detail-content th { padding: 6px 10px; border: 1px solid var(--border); }
.detail-content pre, .detail-content code { white-space: pre-wrap; word-break: break-all; max-width: 100%; }
.detail-content iframe, .detail-content video, .detail-content embed, .detail-content object { max-width: 100%; }
.detail-content div, .detail-content section, .detail-content article { max-width: 100%; }
.detail-gallery img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 6px 0; box-shadow: var(--shadow-sm); }
.detail-tags { margin-top: 20px; font-size: 13px; color: var(--text-light); }
.detail-tags em {
  font-style: normal; background: #f5f6f8; color: var(--text);
  padding: 4px 14px; border-radius: 14px; margin-right: 8px; transition: .2s;
  display: inline-block; margin-bottom: 4px;
}
.detail-tags em:hover { background: #fff5ee; color: var(--orange); }
.detail-download {
  margin-top: 24px; padding: 24px; text-align: center;
  background: linear-gradient(135deg, #fff9f4, #fff3e8); border: 1px dashed #ffc49b; border-radius: var(--radius-lg);
}
.btn-download {
  display: inline-block; padding: 14px 64px; border-radius: 30px;
  background: var(--orange-grad); color: #fff; font-size: 17px; letter-spacing: 3px;
  box-shadow: 0 6px 20px rgba(255,106,0,.4); transition: .25s; font-weight: 600;
}
.btn-download:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 8px 28px rgba(255,106,0,.5); filter: brightness(1.08); }
.btn-download:active { transform: translateY(0); }
.download-tip { display: block; margin-top: 12px; font-size: 12.5px; color: var(--text-light); }
.download-none { color: var(--text-light); font-size: 14px; }

/* 详情右侧资源信息 */
.info-panel .info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed #f0f0f0; font-size: 13.5px;
}
.info-panel .info-row:last-child { border-bottom: 0; }
.info-panel .info-label { color: var(--text-light); }
.info-panel .info-val { color: var(--dark); font-weight: 600; }
.info-panel .info-val.orange { color: var(--orange); }

/* 相关推荐卡片 */
.rel-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 20px 18px; }
.rel-card {
  background: #fafafa; border-radius: var(--radius); padding: 12px 14px;
  transition: .2s; border: 1px solid transparent;
}
.rel-card:hover { background: #fff5ee; border-color: #ffd9bd; }
.rel-card a { display: block; }
.rel-card .rel-title { font-size: 13px; font-weight: 600; color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; transition: .2s; }
.rel-card:hover .rel-title { color: var(--orange); }
.rel-card .rel-meta { font-size: 12px; color: var(--text-light); }

/* ========== 页脚 ========== */
.footer { background: var(--dark); color: rgba(255,255,255,.65); margin-top: 10px; }
.footer-in {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px;
  padding: 40px 15px 32px;
}
.f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.f-logo .logo-ico { width: 40px; height: 40px; }
.f-logo strong { font-size: 20px; color: #fff; letter-spacing: 1px; }
.f-about p, .f-note { font-size: 13px; line-height: 1.9; }
.f-col h4 {
  font-size: 15px; color: #fff; margin-bottom: 16px; padding-left: 10px;
  border-left: 3px solid var(--orange); font-weight: 600;
}
.f-links { display: flex; flex-wrap: wrap; gap: 6px 0; }
.f-links a { width: 50%; font-size: 13px; color: rgba(255,255,255,.65); padding: 3px 0; transition: .2s; }
.f-links a:hover { color: var(--orange-light); padding-left: 4px; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.45);
}
.footer-copy a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-copy a:hover { color: #ffb980; text-decoration: underline; }

/* 空状态 */
.empty { padding: 40px 0; text-align: center; color: var(--text-light); font-size: 14px; list-style: none; }
.res-grid .empty { grid-column: 1 / -1; }

/* ========== 响应式 ========== */
@media (max-width: 1400px) {
  .res-grid { grid-template-columns: repeat(4, 1fr); }
  .main-col .res-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .sec-grid { grid-template-columns: repeat(3, 1fr); }
  .main-col .res-grid { grid-template-columns: repeat(3, 1fr); }
  .header-side { display: none; }
}
/* ===== H5 手机端模式 ===== */
@media (max-width: 900px) {
  body { font-size: 13.5px; }
  /* 站点统计条：3 列 */
  .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
  .stats-bar .st-item { padding: 13px 8px 11px; }
  .stats-bar .st-num { font-size: 21px; }
  .stats-bar .st-label { font-size: 11.5px; letter-spacing: 2px; }
  /* 广告位招商：2 列，大块整行 */
  .ad-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
  .ad-grid .ag-big { grid-column: span 2; padding: 13px 8px; font-size: 14.5px; }
  .ad-grid .ag-sm { padding: 11px 6px; font-size: 12.5px; }
  /* 头部 */
  .header-in { flex-wrap: wrap; height: auto; padding: 14px 0 12px; gap: 12px; }
  .logo-ico { width: 42px; height: 42px; }
  .logo-text strong { font-size: 19px; }
  .logo-text em { font-size: 10.5px; }
  .search-area { order: 3; max-width: none; width: 100%; margin: 0; }
  .search input { height: 40px; padding: 0 16px; }
  .search button { width: 84px; height: 40px; font-size: 14px; letter-spacing: 2px; }
  .hot-kws { margin-top: 6px; }
  /* 顶栏简化 */
  .topbar-links a { margin-left: 10px; }
  /* 汉堡导航 */
  .nav { position: sticky; top: 0; z-index: 100; }
  .nav .container { position: relative; padding-right: 54px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 9px; cursor: pointer;
    background: var(--orange-grad); box-shadow: 0 2px 8px rgba(255,106,0,.35);
  }
  .nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
    display: block; position: relative; width: 18px; height: 2px;
    background: #fff; border-radius: 2px; content: ""; transition: .25s;
  }
  .nav-toggle i::before { position: absolute; top: -6px; }
  .nav-toggle i::after { position: absolute; top: 6px; }
  .nav-open .nav-toggle i { background: transparent; }
  .nav-open .nav-toggle i::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle i::after { top: 0; transform: rotate(-45deg); }
  .nav-menu { display: none; padding: 6px 0 10px; }
  .nav-open .nav-menu { display: block; }
  .nav-item { width: 100%; }
  .nav-item > a { padding: 12px 14px; font-size: 14.5px; border-radius: 8px; }
  .nav-item.on > a { background: none; color: var(--orange); }
  .nav-item:hover > a { background: rgba(255,255,255,.08); }
  .nav-item.has-sub > a::after { float: right; }
  .nav-drop { display: block !important; position: static; min-width: 0; background: transparent; box-shadow: none; border-top: 0; padding: 0 0 4px 12px; }
  .nav-drop a { color: rgba(255,255,255,.62); padding: 8px 14px; }
  .nav-drop a:hover { background: rgba(255,255,255,.06); color: var(--orange-light); padding-left: 18px; }
  /* 布局 */
  .two-col { flex-direction: column; }
  .side-col { width: 100%; }
  .duo { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 20px; padding: 30px 15px 26px; }
  .footer-in .f-col:nth-child(2), .footer-in .f-col:nth-child(3) { display: none; }
  /* 首页区块 */
  .sec-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px; }
  .sec-big { grid-column: span 2; grid-row: auto; min-height: 220px; }
  .sec-big .sb-title { font-size: 15px; }
  .res-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px; }
  .res-card .thumb { height: 110px; }
  /* 轮播 */
  .ad-carousel, .ad-banner { height: 200px; border-radius: var(--radius); }
  .ad-copy { left: 8%; max-width: 80%; }
  .ad-title { font-size: 19px; }
  .ad-sub { font-size: 12px; margin-top: 4px; }
  .ad-cta { padding: 7px 18px; font-size: 12.5px; margin-top: 10px; }
  .ad-tag { margin-bottom: 8px; font-size: 10px; }
  .ad-arrow { display: none; }
  .ad-ctrl { left: 8%; bottom: 12px; }
  .ad-banner-wrap { padding: 10px 0 2px; }
}
@media (max-width: 640px) {
  .res-grid, .main-col .res-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
  .sec-big { min-height: 190px; }
  .res-card .thumb { height: 96px; }
  .res-card h3 { font-size: 12px; height: 40px; padding: 8px 10px 4px; }
  .res-card .meta { padding: 0 10px 9px; font-size: 11px; }
  .topbar { display: none; }
  .detail-panel { padding: 18px 16px; }
  .detail-title { font-size: 17px; }
  .btn-download { padding: 12px 40px; font-size: 15px; }
  .rel-grid { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .pager a { min-width: 32px; height: 32px; font-size: 12.5px; }
  .sub-filter { padding: 12px 12px; }
}

/* ========== 网站公告弹窗 ========== */
.notice-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 9999;
  display: none; justify-content: center; align-items: center; padding: 16px;
  opacity: 0; transition: opacity .25s ease;
}
.notice-mask.on { opacity: 1; }
.notice-pop {
  position: relative; width: min(660px, 94vw); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,.3);
  padding: 24px 26px 20px; transform: translateY(26px); transition: transform .3s ease;
}
.notice-mask.on .notice-pop { transform: translateY(0); }
.np-close {
  position: absolute; top: 8px; right: 12px; width: 34px; height: 34px;
  border: none; background: transparent; font-size: 26px; line-height: 34px;
  color: #94a3b8; cursor: pointer; border-radius: 50%;
}
.np-close:hover { background: #f1f5f9; color: #334155; }
.np-head { text-align: center; font-size: 21px; font-weight: 800; color: #1e293b; }
.np-horn { margin-right: 6px; }
.np-text { text-align: center; margin: 12px 0 16px; font-size: 15px; color: #475569; }
.np-big, .np-bar { display: block; border-radius: 10px; overflow: hidden; }
.np-big img { display: block; width: 100%; height: auto; }
.np-bar { margin-top: 12px; }
.np-bar img { display: block; width: 100%; height: auto; }
.np-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.np-btn {
  display: inline-block; padding: 10px 26px; border-radius: 8px;
  background: #2196f3; color: #fff; font-size: 15px; font-weight: 700;
  text-decoration: none; letter-spacing: 2px; transition: background .18s, transform .18s;
}
.np-btn:hover { background: #1d87e0; transform: translateY(-1px); }
@media (max-width: 768px) {
  .notice-pop { padding: 18px 14px 14px; }
  .np-head { font-size: 18px; }
  .np-text { font-size: 13.5px; margin: 10px 0 12px; }
  .np-btn { padding: 9px 20px; font-size: 14px; }
}

/* ========== 会员：登录 / 注册 ========== */
.auth-wrap { display: flex; justify-content: center; padding: 26px 0 10px; }
.auth-card {
  width: 410px; max-width: 100%; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 34px 34px 26px;
}
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-head h2 { font-size: 21px; color: var(--dark); letter-spacing: 2px; }
.auth-head p { margin-top: 6px; font-size: 12.5px; color: var(--text-light); }
.auth-tabs { display: flex; background: #f2f3f5; border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tabs .at-btn { flex: 1; text-align: center; padding: 9px 0; border-radius: 8px; font-size: 14.5px; color: var(--text-light); cursor: pointer; transition: .2s; }
.auth-tabs .at-btn.on { background: #fff; color: var(--orange); font-weight: 700; box-shadow: var(--shadow-sm); }
.af-item { margin-bottom: 13px; }
.af-item input {
  width: 100%; height: 46px; border: 1px solid #e4e6eb; border-radius: 10px;
  padding: 0 16px; font-size: 14px; outline: none; transition: .2s; background: #fff;
}
.af-item input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.1); }
.af-err { color: #e74c3c; font-size: 13px; min-height: 19px; margin: 0 0 6px; text-align: center; }
.af-submit {
  width: 100%; height: 46px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--orange-grad); color: #fff; font-size: 15.5px; letter-spacing: 3px; transition: .2s;
}
.af-submit:hover { filter: brightness(1.08); box-shadow: 0 6px 16px rgba(255,106,0,.3); }
.af-submit:disabled { opacity: .6; cursor: not-allowed; }
.af-swap { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-light); }
.af-swap a { color: var(--orange); font-weight: 600; }

/* ========== 会员：个人中心 ========== */
.uc-wrap { display: flex; gap: 20px; align-items: flex-start; }
.uc-side { width: 280px; flex-shrink: 0; padding: 30px 24px; text-align: center; }
.uc-avatar {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 50%;
  background: var(--orange-grad); color: #fff; font-size: 30px; font-weight: 700;
  line-height: 76px; box-shadow: 0 6px 16px rgba(255,106,0,.3);
}
.uc-name { margin-top: 12px; font-size: 17px; font-weight: 700; color: var(--dark); word-break: break-all; }
.uc-vip-badge {
  display: inline-block; margin-top: 10px; padding: 4px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #2b2f3a, #4a5063); color: #ffd965;
  font-size: 12.5px; letter-spacing: 2px; font-weight: 700;
}
.uc-vip-badge.gray { background: #eef0f3; color: #9aa0aa; }
.uc-expire { margin-top: 10px; font-size: 12.5px; color: var(--text-light); }
.uc-logout {
  display: block; margin-top: 18px; padding: 9px 0; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; color: var(--text-light); transition: .2s;
}
.uc-logout:hover { color: #e74c3c; border-color: #e74c3c; }
.uc-main { flex: 1; min-width: 0; }
.uc-form { padding: 22px 24px; }
.uc-msg { margin-bottom: 14px; padding: 10px 14px; border-radius: 8px; background: #fff3f2; border: 1px solid #ffd9d5; color: #e74c3c; font-size: 13.5px; }
.uc-msg.ok { background: #f0fbf3; border-color: #cdeed8; color: #27ae60; }
.uc-form form { display: flex; gap: 10px; }
.uc-form input {
  flex: 1; height: 46px; border: 1px solid #e4e6eb; border-radius: 10px;
  padding: 0 16px; font-size: 14px; outline: none; transition: .2s;
}
.uc-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.1); }
.uc-form button {
  height: 46px; padding: 0 30px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--orange-grad); color: #fff; font-size: 15px; transition: .2s;
}
.uc-form button:hover { filter: brightness(1.08); }
.uc-benefit { margin-top: 22px; border-top: 1px dashed var(--border); padding-top: 18px; }
.uc-benefit h3 { font-size: 15px; color: var(--dark); margin-bottom: 8px; }
.uc-benefit ul { list-style: none; }
.uc-benefit li { padding: 8px 0; font-size: 13.5px; color: #666; border-bottom: 1px dotted #f0f1f3; }
.uc-benefit li b { color: var(--orange); margin-right: 10px; }
.uc-tip { margin-top: 12px; font-size: 12.5px; color: var(--text-light); }
@media (max-width: 900px) {
  .uc-wrap { flex-direction: column; }
  .uc-side { width: 100%; }
  .uc-form form { flex-direction: column; }
  .uc-form button { width: 100%; }
}

/* ========== 会员：下载等待页 ========== */
.wait-panel { max-width: 560px; margin: 30px auto; padding: 40px 34px; text-align: center; }
.wait-title { font-size: 19px; color: var(--dark); margin-bottom: 26px; line-height: 1.5; }
.wait-ring {
  width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--orange-grad); box-shadow: 0 10px 26px rgba(255,106,0,.35);
  display: flex; align-items: center; justify-content: center; gap: 3px; color: #fff;
  animation: waitPulse 1s ease infinite;
}
.wait-ring span { font-size: 44px; font-weight: 800; }
.wait-ring em { font-style: normal; font-size: 14px; margin-top: 20px; opacity: .9; }
@keyframes waitPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.wait-tip { font-size: 13.5px; color: var(--text-light); margin-bottom: 20px; }
.wait-tip b { color: var(--orange); }
.wait-btn {
  display: block; padding: 13px 0; border-radius: 10px; background: #fff;
  border: 1px solid var(--orange); color: var(--orange); font-size: 14.5px; transition: .2s;
}
.wait-btn:hover { background: var(--orange); color: #fff; }
.wait-vip { margin-top: 22px; padding: 18px; border-radius: 10px; background: #fffaf5; border: 1px dashed #ffc79a; }
.wait-vip b { display: block; font-size: 14.5px; color: var(--dark); }
.wait-vip span { display: block; margin: 6px 0 10px; font-size: 12.5px; color: var(--text-light); }
.wait-vip a { color: var(--orange); font-weight: 700; font-size: 13.5px; }
