/* 3h3.com 风格仿制 */
:root {
  --red: #ff3333;
  --red-d: #e60012;
  --bg: #f2f2f2;
  --surface: #fff;
  --line: #eee;
  --line-d: #ddd;
  --t1: #333;
  --t2: #666;
  --t3: #999;
  --topbar: #404040;
  --maxw: 1200px;
  --shadow: 0 3px 6px rgba(0,0,0,.05);
  --radius: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
  --dl: #ff6600;
  --input-bg: #fff;
  --hover-row: #fafafa;
  --chip-bg: #f5f5f5;
  --footer-bg: #ececec;
  --footer-text: #888;
  --notice-bg: #fffbe6;
  --notice-border: #f0e6b2;
  --notice-text: #7a6518;
  --tip-bg: #fffbe6;
  --tip-border: #f0e6b2;
  --tip-text: #7a6518;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-gutter: stable;
}

body {
  font-family: "Microsoft YaHei", SimSun, Arial, sans-serif;
  background: var(--bg);
  color: var(--t1);
  font-size: 12px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wp { max-width: var(--maxw); margin: 0 auto; padding: 0 10px; }
.mb20 { margin-bottom: 15px; }

.well {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 顶部工具条 */
.black {
  background: var(--topbar);
  color: #ccc;
  font-size: 12px;
  line-height: 35px;
  height: 35px;
}
.black .wp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 35px;
}
.black a { color: #ccc; padding: 0 8px; }
.black a:hover { color: #fff; }
.black .nav-l, .black .nav-r { display: flex; align-items: center; }
.black .sep { color: #666; margin: 0 2px; }

/* 头部卡片 */
.header-a { padding: 14px 0 0; }
.hdr-row2 {
  display: flex;
  align-items: stretch;
  padding: 0 20px;
  gap: 0;
  min-height: 52px;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

.pic-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 10px 20px 10px 0;
  margin-right: 0;
  border-right: 1px solid var(--line);
}
.pic-logo:hover { color: inherit; opacity: .92; }
.logo-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.logo-wrap-img {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}
.logo-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.3px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}
.logo-domain {
  font-size: 11px;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.2px;
  margin-top: 1px;
}
.logo-text {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}
.logo-text .c1 { color: #ff3333; }
.logo-text .c2 { color: #3399ff; }
.logo-text .c3 { color: #33cc66; }
.logo-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--t1);
  margin-top: 2px;
  letter-spacing: 1px;
}

.hdr-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  padding-left: 4px;
}
.ul-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  min-width: 0;
  flex-wrap: nowrap;
}
.ul-nav li { flex: 0 0 auto; }
.ul-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  color: var(--t2);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.ul-nav a:hover {
  color: var(--red);
  background: transparent;
}
.ul-nav a.active {
  color: var(--red);
  font-weight: 600;
  border-bottom-color: var(--red);
  background: transparent;
}

.hdr-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 10px 16px;
  margin-left: auto;
  border-left: 1px solid var(--line);
}

.m-search button {
  width: 36px;
  border: none;
  background: var(--red);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.m-search button .ico-svg { display: block; stroke: #fff; }
.m-search button:hover { background: #e62e2e; }

.m-search {
  flex-shrink: 0;
  width: 200px;
  height: 34px;
  border: 1px solid var(--line-d);
  border-radius: 3px;
  display: flex;
  overflow: hidden;
  background: var(--bg);
}
.m-search:focus-within {
  border-color: #ccc;
  box-shadow: none;
}
.m-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  background: transparent;
  min-width: 0;
  color: var(--t1);
}
.m-search input::placeholder { color: var(--t3); }

.theme-btn {
  margin-left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-d);
  border-radius: 3px;
  background: var(--bg);
  font-size: 12px;
  color: var(--t3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.theme-btn:hover {
  color: var(--red);
  border-color: #ccc;
}

/* 分类标签区 */
.row-a1 { margin-top: 15px; padding: 12px 20px 10px; }
.notice-bar-inner {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--t2);
  line-height: 1.6;
}
.notice-bar-inner em { color: var(--red); font-style: normal; font-weight: 700; margin-right: 6px; }

/* 统计条 */
.stats-bar {
  margin-top: 0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--t2);
}
.stats-bar b { color: var(--red); font-weight: 700; }
.stats-sep { color: var(--line-d); }

.ul-morenavs li {
  display: flex;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.ul-morenavs li:last-child { border-bottom: none; }
.tag-label {
  flex-shrink: 0;
  width: 90px;
  margin-right: 10px;
  padding: 3px 0;
  text-align: center;
  color: #fff;
  font-size: 12px;
  border-radius: 14px;
  line-height: 1.4;
}
.tag-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.tag-links a {
  padding: 5px 10px;
  color: #404040;
  font-size: 12px;
  white-space: nowrap;
}
.tag-links a.hot { color: var(--red); }
.tag-links a:hover { color: var(--red); }

/* 三栏主区 */
.row-a2 {
  display: flex;
  margin-top: 15px;
  gap: 10px;
  align-items: flex-start;
}
.col-l { width: 370px; flex-shrink: 0; min-width: 0; overflow: hidden; }
.col-c { width: 490px; flex-shrink: 0; min-width: 0; }
.col-r { width: 300px; flex-shrink: 0; min-width: 0; }
.col-r > * { max-width: 100%; }
.mr20 { margin-right: 0; }

/* 左栏：轮播 */
.carousel-box {
  border-radius: var(--radius);
  overflow: hidden;
  background: #222;
  position: relative;
  height: 260px;
}
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .5s;
  display: block;
  color: #fff;
}
.carousel-slide.on { opacity: 1; z-index: 1; }
.carousel-slide:hover { color: #fff; }
.carousel-bg {
  position: absolute; inset: 0;
  background-size: cover, 80px;
  background-position: center;
  background-repeat: no-repeat;
}
.carousel-mask {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,.8));
}
.carousel-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 16px 14px;
}
.carousel-cat { font-size: 11px; opacity: .8; margin-bottom: 4px; }
.carousel-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.carousel-desc {
  font-size: 12px; line-height: 1.45;
  opacity: .88; margin-bottom: 8px;
  max-width: 92%;
}
.carousel-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 12px;
}
.carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 0 0;
}
.carousel-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}
.carousel-dots span.on { background: var(--red); }

/* 编辑推荐图标格 */
.editor-box {
  margin-top: 15px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px 14px;
  overflow: hidden;
}
.editor-hd {
  display: flex; align-items: center;
  margin-bottom: 10px;
}
.editor-hd h3 { font-size: 14px; font-weight: 700; }
.editor-hd .more { margin-left: auto; font-size: 12px; color: var(--t3); }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 6px;
}
.icon-grid a {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.icon-grid .ig-ico,
.app-icon.ig-ico {
  width: 52px; height: 52px;
  border-radius: 12px;
  font-size: 20px;
  flex-shrink: 0;
}
.icon-grid .ig-name {
  font-size: 12px; color: var(--t1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  width: 100%;
  max-width: 100%;
}
.icon-grid a:hover .ig-name { color: var(--red); }

/* 左栏：本周热门 */
.left-hot-box { margin-top: 15px; }
.left-hot-list { display: flex; flex-direction: column; }
.left-hot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  min-width: 0;
}
.left-hot-item:last-child { border-bottom: none; }
.left-hot-item:hover .left-hot-name { color: var(--red); }
.left-hot-no {
  width: 16px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--t3);
  text-align: center;
}
.left-hot-item:nth-child(1) .left-hot-no { color: var(--red); }
.left-hot-item:nth-child(2) .left-hot-no { color: #ff6600; }
.left-hot-item:nth-child(3) .left-hot-no { color: #ffaa00; }
.left-hot-ico,
.app-icon.left-hot-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  flex-shrink: 0;
}
.left-hot-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.left-hot-name {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.left-hot-meta {
  font-size: 11px;
  color: var(--t3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.left-hot-date {
  flex-shrink: 0;
  font-size: 12px;
  color: #f00;
}

/* 中栏：Tab + 列表 */
.nav-news {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ul-nav3 {
  display: flex;
  background: #fafafa;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  height: 56px;
  align-items: center;
}
.ul-nav3 li { margin-right: 24px; }
.ul-nav3 a {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--t1);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.ul-nav3 li.on a { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
.tab-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.news-list { padding: 8px 20px 12px; }
.news-item {
  display: flex;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  transition: background .12s;
}
.news-item:hover { background: var(--hover-row); }
.news-item:last-child { border-bottom: none; }
.news-item::before {
  content: "";
  width: 4px; height: 4px;
  background: #ccc;
  border-radius: 50%;
  margin: 7px 8px 0 0;
  flex-shrink: 0;
}
.news-body {
  flex: 1;
  min-width: 0;
}
.news-item .news-tit {
  display: block;
  font-weight: 600;
  color: var(--t1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item .news-tit:hover { color: var(--red); }
.news-desc {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--t3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item .news-date { color: #f00; font-size: 12px; flex-shrink: 0; margin: 2px 0 0 10px; }
.news-more {
  display: block;
  text-align: center;
  padding: 10px 0 14px;
  font-size: 12px;
  color: var(--t3);
  border-top: 1px solid var(--line);
}
.news-more:hover { color: var(--red); }

/* 右栏：推广 + 排行 */
.side-promo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  height: 64px;
  background: linear-gradient(135deg, #ff6b8a 0%, #ff9a6c 100%);
  display: flex; align-items: center;
  padding: 0 16px;
  color: #fff;
  position: relative;
}
.side-promo:hover { color: #fff; opacity: .95; }
.promo-deco {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%;
}
.promo-deco::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  transform: translate(-35%, -35%);
}
.side-promo strong { font-size: 14px; display: block; }
.side-promo span { font-size: 11px; opacity: .9; }

.rank-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  overflow: hidden;
}
.rank-hd { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.rank-tabs {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.rank-tabs span {
  padding: 2px 10px;
  border: 1px solid var(--line-d);
  border-radius: 3px;
  font-size: 12px;
  color: var(--t2);
  cursor: pointer;
}
.rank-tabs span.on { background: var(--red); border-color: var(--red); color: #fff; }

.rank-top {
  display: flex; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 6px;
  color: inherit;
  cursor: pointer;
}
.rank-top:hover .rt-name { color: var(--red); }
.rank-top .rt-ico { width: 80px; height: 80px; border-radius: 8px; font-size: 28px; flex-shrink: 0; }
.rank-top .rt-info { flex: 1; min-width: 0; }
.rank-top .rt-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.rank-top .rt-meta { font-size: 12px; color: var(--t3); line-height: 1.6; word-break: break-word; overflow-wrap: anywhere; }
.rank-top .rt-meta em { color: #3399ff; font-style: normal; }
.rank-top .rt-btn {
  display: inline-block; margin-top: 6px;
  background: var(--red); color: #fff;
  padding: 3px 12px; border-radius: 3px; font-size: 12px;
}
.rank-top:hover .rt-btn { opacity: .9; }

.rank-item {
  display: flex; align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.rank-no {
  width: 18px; flex-shrink: 0;
  color: var(--t3); font-weight: 700;
}
.rank-item:nth-child(1) .rank-no,
.rank-item:nth-child(2) .rank-no,
.rank-item:nth-child(3) .rank-no {
  width: 18px; height: 18px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff;
}
.rank-item:nth-child(1) .rank-no { background: var(--red); color: #fff; }
.rank-item:nth-child(2) .rank-no { background: #ff6600; color: #fff; }
.rank-item:nth-child(3) .rank-no { background: #ffaa00; color: #fff; }

/* row-a3 三栏图标区 */
.row-a3 {
  display: flex;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.row-a3 .cat-panel {
  flex: 1;
  min-width: 0;
  padding: 12px 14px 16px;
  overflow: hidden;
}
.row-a3 .cat-panel + .cat-panel { border-left: 1px solid var(--line); }
.row-a3 .icon-grid-lg {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 6px;
}
.row-a3 .icon-grid-lg .ig-ico,
.row-a3 .icon-grid-lg .app-icon.ig-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.icon-grid-lg { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; }
.icon-grid-lg .ig-ico,
.icon-grid-lg .app-icon.ig-ico {
  width: 56px; height: 56px; border-radius: 14px;
}

/* row-a4 三栏迷你榜 */
.row-a4 {
  display: flex;
  gap: 0;
  padding: 0;
}
.row-a4 .col-mini {
  flex: 1;
  padding: 12px 16px 14px;
  border-right: 1px solid var(--line);
}
.row-a4 .col-mini:last-child { border-right: none; }
.mini-list { margin-top: 4px; }
.mini-item {
  display: flex; align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
}
.mini-item:last-child { border-bottom: none; }
.mini-no {
  width: 16px; flex-shrink: 0;
  color: var(--t3); font-weight: 700; font-size: 12px;
}
.mini-item:nth-child(1) .mini-no { color: var(--red); }
.mini-item:nth-child(2) .mini-no { color: #ff6600; }
.mini-item:nth-child(3) .mini-no { color: #ffaa00; }
.mini-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-ver { color: var(--t3); font-size: 12px; flex-shrink: 0; margin-left: 6px; }
.mini-item:hover .mini-name { color: var(--red); }

/* 下方分类版块 */
.row-block { margin-top: 0; }
.block-hd {
  display: flex; align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.block-hd h2 {
  font-size: 15px; font-weight: 700;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}
.block-hd .more { margin-left: auto; font-size: 12px; color: var(--t3); }
.block-hd .more:hover { color: var(--red); }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { color: var(--t3); font-size: 12px; flex-shrink: 0; margin-left: 6px; }
.rank-item:hover .rank-name { color: var(--red); }

/* 右栏：最新收录 */
.side-feed-box { margin-top: 15px; }
.side-feed-list { margin-bottom: 8px; }
.side-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  min-width: 0;
}
.side-feed-item:last-child { border-bottom: none; }
.side-feed-item:hover .side-feed-name { color: var(--red); }
.side-feed-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-feed-date { color: #f00; flex-shrink: 0; font-size: 12px; }
.side-feed-more {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--t3);
  padding-top: 4px;
}
.side-feed-more:hover { color: var(--red); }

.block-bd { padding: 8px 20px 14px; }
.soft-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* 固定侧栏 — 与详情页锚点导航同款竖排彩色样式 */
.ul-snvfixed {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  width: 32px;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: transparent;
}
.ul-snvfixed.well { background: transparent; }
.ul-snvfixed[hidden] { display: none; }
.ul-snvfixed li {
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  margin: 0;
  transition: background .15s;
}
.ul-snvfixed li:last-child { border-bottom: none; }
.ul-snvfixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 5px 0;
  font-size: 11px;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  white-space: nowrap;
  transition: color .15s;
}
.ul-snvfixed li.on a {
  box-shadow: inset 2px 0 0 currentColor;
  font-weight: 700;
}

.ul-snvfixed li:first-child,
.detail-anchor-nav li:first-child {
  border-top-left-radius: var(--radius);
}
.ul-snvfixed li:last-child,
.detail-anchor-nav li:last-child {
  border-bottom-left-radius: var(--radius);
}

/* 详情页左侧外挂锚点导航 */
body[data-page="detail"] #detailAnchorNav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  z-index: 70;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  background: transparent;
}
body[data-page="detail"] #detailAnchorNav[hidden] { display: none; }
.detail-anchor-nav {
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.detail-anchor-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-anchor-nav li {
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  margin: 0;
  transition: background .15s;
}
.detail-anchor-nav li:last-child { border-bottom: none; }
.detail-anchor-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 5px 0;
  font-size: 11px;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  white-space: nowrap;
  transition: color .15s;
}
.detail-anchor-nav li.tone-intro,
.ul-snvfixed li.tone-intro { background: #e8f4fd; }
.detail-anchor-nav li.tone-intro a,
.ul-snvfixed li.tone-intro a { color: #1565c0; }
.detail-anchor-nav li.tone-versions,
.ul-snvfixed li.tone-versions { background: #e8f8ef; }
.detail-anchor-nav li.tone-versions a,
.ul-snvfixed li.tone-versions a { color: #2e7d32; }
.detail-anchor-nav li.tone-download,
.ul-snvfixed li.tone-download { background: #fff3e0; }
.detail-anchor-nav li.tone-download a,
.ul-snvfixed li.tone-download a { color: #e65100; }
.detail-anchor-nav li.tone-history,
.ul-snvfixed li.tone-history { background: #f3e8fd; }
.detail-anchor-nav li.tone-history a,
.ul-snvfixed li.tone-history a { color: #7b1fa2; }
.detail-anchor-nav li.tone-jingpin,
.ul-snvfixed li.tone-jingpin { background: #fce8ec; }
.detail-anchor-nav li.tone-jingpin a,
.ul-snvfixed li.tone-jingpin a { color: #c2185b; }
.detail-anchor-nav li.tone-top,
.ul-snvfixed li.tone-top { background: #f0f0f0; }
.detail-anchor-nav li.tone-top a,
.ul-snvfixed li.tone-top a { color: #616161; }
.detail-anchor-nav li.tone-intro.on,
.detail-anchor-nav li.tone-intro:hover,
.ul-snvfixed li.tone-intro.on,
.ul-snvfixed li.tone-intro:hover { background: #bbdefb; }
.detail-anchor-nav li.tone-intro.on a,
.detail-anchor-nav li.tone-intro:hover a,
.ul-snvfixed li.tone-intro.on a,
.ul-snvfixed li.tone-intro:hover a { color: #0d47a1; }
.detail-anchor-nav li.tone-versions.on,
.detail-anchor-nav li.tone-versions:hover,
.ul-snvfixed li.tone-versions.on,
.ul-snvfixed li.tone-versions:hover { background: #c8e6c9; }
.detail-anchor-nav li.tone-versions.on a,
.detail-anchor-nav li.tone-versions:hover a,
.ul-snvfixed li.tone-versions.on a,
.ul-snvfixed li.tone-versions:hover a { color: #1b5e20; }
.detail-anchor-nav li.tone-download.on,
.detail-anchor-nav li.tone-download:hover,
.ul-snvfixed li.tone-download.on,
.ul-snvfixed li.tone-download:hover { background: #ffe0b2; }
.detail-anchor-nav li.tone-download.on a,
.detail-anchor-nav li.tone-download:hover a,
.ul-snvfixed li.tone-download.on a,
.ul-snvfixed li.tone-download:hover a { color: #bf360c; }
.detail-anchor-nav li.tone-history.on,
.detail-anchor-nav li.tone-history:hover,
.ul-snvfixed li.tone-history.on,
.ul-snvfixed li.tone-history:hover { background: #e1bee7; }
.detail-anchor-nav li.tone-history.on a,
.detail-anchor-nav li.tone-history:hover a,
.ul-snvfixed li.tone-history.on a,
.ul-snvfixed li.tone-history:hover a { color: #4a148c; }
.detail-anchor-nav li.tone-jingpin.on,
.detail-anchor-nav li.tone-jingpin:hover,
.ul-snvfixed li.tone-jingpin.on,
.ul-snvfixed li.tone-jingpin:hover { background: #f8bbd0; }
.detail-anchor-nav li.tone-jingpin.on a,
.detail-anchor-nav li.tone-jingpin:hover a,
.ul-snvfixed li.tone-jingpin.on a,
.ul-snvfixed li.tone-jingpin:hover a { color: #880e4f; }
.detail-anchor-nav li.tone-top.on,
.detail-anchor-nav li.tone-top:hover,
.ul-snvfixed li.tone-top.on,
.ul-snvfixed li.tone-top:hover { background: #e0e0e0; }
.detail-anchor-nav li.tone-top.on a,
.detail-anchor-nav li.tone-top:hover a,
.ul-snvfixed li.tone-top.on a,
.ul-snvfixed li.tone-top:hover a { color: #212121; }
.detail-anchor-nav li.on a {
  box-shadow: inset 2px 0 0 currentColor;
  font-weight: 700;
}

/* 公告 - 保留兼容 */
.notice-inline { display: none; }

/* 列表页 */
.crumb { font-size: 12px; color: var(--t3); padding: 12px 0 0; }
.crumb a { color: var(--t2); }

.filter-bar {
  margin-top: 12px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.fb-label { font-size: 12px; color: var(--t3); }
.filter-opts { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.filter-opts a {
  padding: 2px 10px; font-size: 12px; color: var(--t2);
  border: 1px solid var(--line-d); border-radius: 3px;
}
.filter-opts a.on { background: var(--red); color: #fff; border-color: var(--red); }
.filter-count { font-size: 12px; color: var(--t3); }
.filter-count b { color: var(--red); }
.filter-sel { border: 1px solid var(--line-d); padding: 3px 6px; font-size: 12px; font-family: inherit; border-radius: 3px; }

.list-pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 16px 6px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.list-pager:empty { display: none; }
.list-pager .pager-btn,
.list-pager .pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--t2);
  border: 1px solid var(--line-d);
  border-radius: 3px;
  text-decoration: none;
  background: var(--surface);
}
.list-pager .pager-btn:hover,
.list-pager .pager-num:hover {
  border-color: var(--red);
  color: var(--red);
}
.list-pager .pager-btn.disabled {
  opacity: .45;
  cursor: default;
}
.list-pager .pager-num.on {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.list-pager .pager-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--t3);
  font-size: 13px;
}
.list-pager .pager-info {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  font-size: 12px;
  color: var(--t3);
}

.sub-filter-bar {
  margin-top: 12px;
  padding: 14px 16px 16px;
}
.sub-filter-hd {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3399ff;
  display: inline-block;
  min-width: 72px;
}
.sub-filter-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px 10px;
}
.sub-filter-opts a {
  display: block;
  padding: 8px 6px;
  font-size: 13px;
  color: var(--t1);
  text-align: center;
  border: 1px solid var(--line-d);
  border-radius: 2px;
  background: var(--surface);
}
.sub-filter-opts a:hover {
  border-color: #3399ff;
  color: #3399ff;
}
.sub-filter-opts a.on {
  background: #3399ff;
  border-color: #3399ff;
  color: #fff;
}
.soft-subcat {
  color: #3399ff;
  font-weight: 600;
}

.row-list { display: flex; gap: 20px; margin-top: 12px; align-items: flex-start; }
.col-main { flex: 1; min-width: 0; }
.col-side { width: 300px; flex-shrink: 0; }
body[data-page="detail"] .detail-layout {
  align-items: stretch;
}
body[data-page="detail"] .detail-layout .col-main > #detailMain + #detailExtra {
  margin-top: 0;
}
body[data-page="detail"] .col-side {
  position: sticky;
  top: 12px;
  align-self: flex-start;
}
#detailExtra { margin-top: 12px; }
#detailExtra .panel + .panel { margin-top: 12px; }
#detailExtra .tip { margin-top: 12px; }

.side-soft-list { padding: 4px 14px 10px; }
.side-guess-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
  padding: 4px 14px 12px;
}
.side-guess-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--t2);
  min-width: 0;
}
.side-guess-item:hover { color: var(--red); }
.side-guess-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.sg-ico,
.app-icon.sg-ico {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 18px;
}

.well-hd {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.well-hd h2 {
  font-size: 15px; font-weight: 700;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}
.well-bd { padding: 8px 20px 14px; }

.soft-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.soft-item:last-child { border-bottom: none; }
.soft-item:hover .soft-tit { color: var(--red); }
.soft-ico { width: 40px; height: 40px; font-size: 16px; }
.soft-main { flex: 1; min-width: 0; }
.soft-tit { font-size: 14px; display: flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soft-tit-desc { font-weight: 400; color: var(--t2); }
.soft-sub { font-size: 12px; color: var(--t3); margin-top: 2px; }
.soft-cat { color: var(--red); font-size: 12px; }
.soft-right { flex-shrink: 0; text-align: right; }
.soft-date { font-size: 12px; color: var(--t3); }
.soft-btn {
  display: inline-block; margin-top: 2px;
  padding: 2px 10px; background: var(--dl); color: #fff; font-size: 12px; border-radius: 3px;
}
.soft-btn:hover { color: #fff; }
.badge-new { font-size: 10px; color: #fff; background: var(--red); padding: 0 3px; border-radius: 2px; }

.item-lg { padding: 10px 0; }
.item-lg .soft-ico { width: 50px; height: 50px; font-size: 20px; }
.item-lg .soft-tit { font-size: 15px; font-weight: 700; }
.item-lg .soft-desc { font-size: 12px; color: var(--t2); margin-top: 2px; }
.item-lg .soft-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.item-lg .soft-tags span { font-size: 12px; color: var(--t3); }

.soft-row-rich {
  display: block;
  padding: 14px 0;
}
.soft-row-rich .soft-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.soft-row-rich .soft-row-head .soft-tit {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.soft-stars {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--t3);
  white-space: nowrap;
}
.soft-star-icons {
  color: #f5a623;
  letter-spacing: 1px;
}
.soft-row-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.soft-row-rich .soft-ico-wrap { flex-shrink: 0; }
.soft-row-rich .soft-ico,
.soft-row-rich .app-icon.soft-ico {
  width: 72px;
  height: 72px;
  font-size: 28px;
  border-radius: 8px;
}
.soft-row-rich .soft-main { flex: 1; min-width: 0; }
.soft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 8px;
}
.soft-meta em {
  font-style: normal;
  color: var(--t1);
}
.soft-meta a.meta-link {
  color: var(--t1);
  text-decoration: none;
}
.soft-meta a.meta-link:hover { color: var(--red); }
.soft-row-rich .soft-desc {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.7;
  margin-top: 0;
}
.soft-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.soft-tagline i,
.soft-tagline a.tag-link {
  font-style: normal;
  font-size: 11px;
  color: var(--t3);
  background: var(--chip-bg);
  padding: 1px 6px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}
.soft-tagline a.tag-link:hover {
  color: var(--red);
  border-color: var(--red);
}
.soft-row-rich .soft-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 88px;
  padding-top: 4px;
}
.soft-btn-detail {
  display: block;
  padding: 8px 16px;
  background: #3399ff;
  color: #fff;
  font-size: 13px;
  text-align: center;
  border-radius: 2px;
  white-space: nowrap;
}
.soft-btn-detail:hover { color: #fff; opacity: .92; }
.soft-row-rich .soft-btn {
  margin-top: 0;
  padding: 6px 12px;
  text-align: center;
  background: var(--surface);
  color: var(--t1);
  border: 1px solid var(--line-d);
}
.soft-row-rich .soft-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--surface);
}

@media (max-width: 720px) {
  .soft-row-rich .soft-row-head { flex-direction: column; align-items: flex-start; }
  .soft-row-body { flex-wrap: wrap; }
  .soft-row-rich .soft-right {
    flex-direction: row;
    width: 100%;
    min-width: 0;
  }
  .soft-btn-detail,
  .soft-row-rich .soft-btn { flex: 1; }
}

.app-icon {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e6e6e6;
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8%;
  box-sizing: border-box;
}
.app-icon.no-img {
  background: var(--icon-bg, #888);
  border-color: transparent;
}
.app-icon.no-img img { display: none; }
.app-icon .icon-letter {
  display: none;
  color: #fff;
  font-weight: 700;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 42%;
}
.app-icon.no-img .icon-letter { display: flex; }

.side-rank-mini { margin-bottom: 15px; }
.cat-cloud { padding: 10px 14px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-cloud a {
  font-size: 12px; color: var(--t2);
  padding: 2px 8px; border: 1px solid var(--line-d); border-radius: 3px;
}
.cat-cloud a.on { background: var(--red); border-color: var(--red); color: #fff; }
.side-note { padding: 10px 14px 12px; font-size: 12px; color: var(--t2); line-height: 1.7; }
.side-note strong { color: var(--red); }

.empty { text-align: center; padding: 40px; color: var(--t3); }

/* 详情页 */
.detail-head {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.detail-head-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.detail-head-main {
  display: flex;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.detail-head-ads {
  flex-shrink: 0;
  width: 650px;
  max-width: 100%;
  height: 140px;
}
.detail-ad-slot {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--chip-bg);
}
.detail-ad-slot.is-top {
  width: 100%;
  height: 140px;
  justify-content: flex-start;
}
.detail-ad-slot.is-top .detail-ad-text {
  text-align: left;
  padding: 0 24px;
  align-items: flex-start;
}
.detail-ad-slot.is-top .detail-ad-text strong { font-size: 18px; }
.detail-ad-slot.is-top .detail-ad-text span { font-size: 13px; }
.detail-ad-slot.is-top.has-img { background: #f5f5f5; }
.detail-ad-empty.is-top .detail-ad-empty-inner em::after {
  content: " · 650×140";
  font-weight: 400;
  color: var(--t3);
}
.detail-ad-slot.is-lg {
  flex: 1;
  min-width: 0;
  min-height: 72px;
  justify-content: flex-start;
}
.detail-ad-slot.is-lg .detail-ad-text {
  text-align: left;
  padding: 0 18px;
  align-items: flex-start;
}
.detail-ad-slot.is-lg .detail-ad-text strong { font-size: 15px; }
.detail-ad-slot.is-lg .detail-ad-text span { font-size: 12px; }
.detail-ad-slot:hover { color: #fff; opacity: .92; }
.detail-ad-slot.has-img { background: #f0f0f0; }
.detail-ad-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-ad-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  text-align: center;
  line-height: 1.35;
}
.detail-ad-text strong { font-size: 14px; font-weight: 700; }
.detail-ad-text span { font-size: 11px; opacity: .92; }
.detail-ad-empty {
  border: 1px dashed var(--line-d);
  background: #fafafa;
  color: var(--t3);
}
.detail-ad-empty:hover { color: var(--t2); border-color: var(--t3); }
.detail-ad-empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1.4;
}
.detail-ad-empty-inner em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
}
.detail-ad-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 10px;
  line-height: 1;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  padding: 2px 4px;
  border-radius: 2px;
  pointer-events: none;
}
.detail-ad-empty .detail-ad-badge {
  background: rgba(0, 0, 0, .18);
  color: var(--t3);
}
.detail-head-dl {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.detail-head-dl-main {
  flex-shrink: 0;
}
.detail-head-dl-main .detail-actions,
.detail-head-dl-main .detail-download-group {
  margin-bottom: 0;
}
.detail-quick-meta {
  font-size: 12px;
  color: var(--t3);
  margin-top: 6px;
  line-height: 1.6;
}
.detail-icon { width: 80px; height: 80px; font-size: 32px; border-radius: 14px; flex-shrink: 0; }
.detail-info { flex: 1; min-width: 0; }
.detail-title { font-size: 22px; font-weight: 700; }
.detail-tagline { color: var(--t2); font-size: 13px; margin-top: 4px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.detail-tags span { font-size: 12px; color: var(--t2); background: var(--chip-bg); padding: 2px 8px; border-radius: 3px; }
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  align-items: flex-start;
}
.btn-official,
.btn-homepage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.btn-official { background: var(--red); }
.btn-official:hover { color: #fff; opacity: .92; }
.btn-homepage {
  background: var(--surface);
  color: var(--t1);
  border: 1px solid var(--line-d);
  font-weight: 600;
}
.btn-homepage:hover { border-color: var(--red); color: var(--red); }
.detail-download-group {
  width: 100%;
  margin-bottom: 0;
}
.detail-download-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
  margin-bottom: 8px;
}
.detail-pan-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-pan {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  border: none;
}
.btn-pan:hover { color: #fff; opacity: .92; }
.btn-pan em {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  opacity: .92;
}
.btn-pan-baidu { background: #2932e1; }
.btn-pan-quark { background: #4e6ef2; }
.btn-pan-xunlei { background: #0095ff; }
.btn-pan-uc { background: #ff6600; }
.btn-pan-aliyun { background: #ff6a00; }
.btn-pan-123 { background: #2d7cff; }
.btn-pan-lanzou { background: #3b8cff; }
.btn-pan-tianyi { background: #0085d0; }
.btn-pan-ctfile { background: #5c6bc0; }
.btn-pan-other { background: #666; }
.btn { padding: 8px 20px; font-size: 14px; font-weight: 700; border: 1px solid transparent; border-radius: 4px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { color: #fff; opacity: .9; }
.btn-ghost { background: var(--surface); border-color: var(--line-d); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 12px;
}
.panel-hd {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-hd h2 {
  font-size: 15px; font-weight: 700;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}
.panel-bd { padding: 14px 20px; }
.panel-bd p { color: var(--t2); font-size: 13px; margin-bottom: 8px; line-height: 1.7; }
.panel-bd p:last-child { margin-bottom: 0; }
.desc-rich .desc-h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  margin: 18px 0 8px;
}
.desc-rich .desc-h4:first-child { margin-top: 0; }
.desc-figure {
  margin: 10px 0 14px;
  text-align: center;
}
.desc-figure img {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.desc-figure figcaption {
  font-size: 12px;
  color: var(--t3);
  margin-top: 6px;
  line-height: 1.5;
}

.install-flow-diagram {
  text-align: left;
  background: #f0fdf4;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px 18px;
  box-shadow: var(--shadow);
}
.install-flow-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 16px;
}
.install-flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.install-flow-step {
  flex: 1 1 110px;
  min-width: 100px;
  padding: 12px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #10a37f;
  text-align: center;
}
.install-flow-step strong {
  display: block;
  font-size: 13px;
  color: #065f46;
  margin-bottom: 4px;
}
.install-flow-step span {
  display: block;
  font-size: 12px;
  color: #047857;
}
.install-flow-step-done {
  flex: 0 1 88px;
  background: #10a37f;
  border-color: #10a37f;
}
.install-flow-step-done strong {
  color: #fff;
  margin-bottom: 0;
}
.install-flow-arrow {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 20px;
  line-height: 1;
}
.install-flow-code {
  background: #111827;
  border-radius: 8px;
  padding: 16px 18px;
}
.install-flow-code code {
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  color: #10a37f;
  word-break: break-all;
  margin-bottom: 10px;
}
.install-flow-code p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}
.install-flow-code p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .install-flow-arrow { display: none; }
  .install-flow-steps { gap: 10px; }
}

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.feature-list li { padding-left: 12px; color: var(--t2); font-size: 13px; position: relative; }
.feature-list li::before { content: "·"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.log-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--t2); display: flex; gap: 10px; }
.log-list li:last-child { border-bottom: none; }
.log-ver { font-weight: 700; flex-shrink: 0; }

.detail-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-tag-cloud a {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--line-d);
  border-radius: 4px;
  color: var(--t2);
  background: var(--chip-bg);
  transition: color .12s, border-color .12s, background .12s;
}
.detail-tag-cloud a:hover {
  color: var(--red);
  border-color: var(--red);
  background: transparent;
}

.tip {
  padding: 10px 14px; margin-top: 12px;
  background: var(--tip-bg); border: 1px solid var(--tip-border);
  color: var(--tip-text); font-size: 12px; line-height: 1.6;
  border-radius: var(--radius);
}

.info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.info-table tr + tr { border-top: 1px solid var(--line); }
.info-table th { text-align: left; color: var(--t3); font-weight: 400; padding: 6px 0; width: 50px; }
.info-table td { padding: 6px 0; }

/* 详情页底部：3h3 风格 */
#detailBottom { margin-top: 12px; margin-bottom: 20px; }
.db-sec { margin-bottom: 15px; overflow: hidden; }
.db-hd {
  padding: 12px 20px;
  border-bottom: 2px solid #3399ff;
}
.db-hd h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
}
.db-bd { padding: 14px 20px 18px; }

.ver-list { display: flex; flex-direction: column; gap: 0; }
.ver-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.ver-item:last-child { border-bottom: none; }
.ver-ico-wrap { flex-shrink: 0; }
.ver-ico,
.app-icon.ver-ico {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-size: 22px;
}
.ver-main { flex: 1; min-width: 0; }
.ver-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ver-name:hover { color: var(--red); }
.ver-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--t3);
}
.ver-stars { color: #ff9900; letter-spacing: 1px; }
.ver-btn {
  flex-shrink: 0;
  padding: 6px 18px;
  border: 1px solid var(--line-d);
  border-radius: 4px;
  font-size: 13px;
  color: var(--t2);
  background: var(--surface);
}
.ver-btn:hover { border-color: var(--red); color: var(--red); }

.hist-list { display: flex; flex-direction: column; gap: 0; }
.hist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.hist-item:last-child { border-bottom: none; }
.hist-item-current { background: rgba(51, 153, 255, .04); margin: 0 -20px; padding: 12px 20px; }
.hist-main { flex: 1; min-width: 0; }
.hist-ver {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.hist-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #3399ff;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  vertical-align: middle;
}
.hist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--t3);
}
.hist-note { color: var(--t2); }
.hist-dl { flex-shrink: 0; text-align: right; }
.hist-pans { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.hist-pan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line-d);
  border-radius: 2px;
  font-size: 12px;
  color: var(--t1);
  background: var(--surface);
  white-space: nowrap;
}
.hist-pan:hover {
  border-color: #3399ff;
  color: #3399ff;
}
.hist-pan em {
  font-size: 11px;
  color: var(--t3);
  font-style: normal;
}
.hist-official,
.hist-jump {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--line-d);
  border-radius: 4px;
  font-size: 12px;
  color: var(--t2);
  background: var(--surface);
}
.hist-official:hover,
.hist-jump:hover { border-color: var(--red); color: var(--red); }
.hist-none { font-size: 12px; color: var(--t3); }

.dl-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dl-tabs span {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--t2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: default;
}
.dl-tabs span.on {
  color: #3399ff;
  border-bottom-color: #3399ff;
  font-weight: 700;
}
.dl-ver-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.dl-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.dl-left { flex: 1; min-width: 0; }
.dl-right { width: 280px; flex-shrink: 0; }
.dl-subhd {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--t1);
}
.dl-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.dl-channel {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line-d);
  border-radius: 2px;
  font-size: 13px;
  color: var(--t1);
  background: var(--surface);
  text-align: center;
  line-height: 1.4;
}
.dl-channel:hover {
  border-color: #3399ff;
  color: #3399ff;
}
.dl-channel em {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-style: normal;
  color: var(--t3);
}
.dl-channel-official {
  border-color: var(--red);
  color: var(--red);
}
.dl-channel-official:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.dl-channel-official em { color: inherit; opacity: .85; }
.dl-info {
  margin-top: 14px;
}
.dl-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid var(--line);
}
.dl-info-table th,
.dl-info-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.dl-info-table tr:last-child th,
.dl-info-table tr:last-child td {
  border-bottom: none;
}
.dl-info-table th {
  width: 72px;
  color: var(--t3);
  font-weight: 400;
  background: #fafafa;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.dl-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--t3);
  line-height: 1.7;
}
.dl-empty {
  padding: 20px;
  text-align: center;
  color: var(--t3);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 4px;
}
.dl-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
}
.dl-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--t2);
  min-width: 0;
}
.dl-tool:hover { color: var(--red); }
.dl-tool span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.dl-tool-ico,
.app-icon.dl-tool-ico {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 18px;
}

.jp-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px 10px;
}
.jp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}
.jp-item:hover .jp-name { color: var(--red); }
.jp-ico,
.app-icon.jp-ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 20px;
}
.jp-name {
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.jp-btn {
  display: inline-block;
  padding: 2px 12px;
  border: 1px solid var(--line-d);
  border-radius: 3px;
  font-size: 11px;
  color: var(--t3);
}
.jp-item:hover .jp-btn {
  border-color: var(--red);
  color: var(--red);
}

/* 页脚 */
.footer-a {
  background: #333;
  color: #999;
  margin-top: 20px;
  padding: 24px 0 20px;
  font-size: 12px;
  border-top: none;
}
.footer-divider {
  border-top: 1px dotted #555;
  margin: 0 0 18px;
}
.footer-bottom {
  text-align: center;
  line-height: 1.9;
}
.footer-nav {
  margin-bottom: 4px;
  color: #888;
}
.footer-nav a {
  color: #aaa;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }
.footer-sep {
  margin: 0 8px;
  color: #666;
}
.footer-tagline {
  color: #888;
  margin-bottom: 2px;
}
.footer-copy {
  color: #777;
  font-size: 11px;
}
.footer-disclaimer {
  margin-top: 8px;
  color: #666;
  font-size: 11px;
  line-height: 1.7;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

#toTop {
  position: fixed; right: 50px; bottom: 20px;
  width: 32px; height: 32px;
  border: 1px solid var(--line-d);
  background: var(--surface);
  color: var(--t2); font-size: 13px;
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  z-index: 70; box-shadow: var(--shadow);
}
#toTop.show { display: flex; }

/* 暗色模式 */
[data-theme="dark"] {
  --bg: #1a1a1a; --surface: #242424; --line: #333; --line-d: #444;
  --t1: #ddd; --t2: #aaa; --t3: #777; --hover-row: #2a2a2a;
  --chip-bg: #2e2e2e; --input-bg: #2a2a2a; --footer-bg: #1e1e1e;
  --notice-bg: #2a2618; --notice-border: #443820; --notice-text: #c8a060;
  --tip-bg: #2a2618; --tip-border: #443820; --tip-text: #c8a060;
  --topbar: #2a2a2a;
}
[data-theme="dark"] .footer-a {
  background: #1a1a1a;
  border-top: 1px solid #333;
}
[data-theme="dark"] .footer-divider { border-top-color: #444; }
[data-theme="dark"] .ul-nav3 { background: #2a2a2a; }
[data-theme="dark"] .app-icon:not(.no-img) {
  background: #2a2a2a;
  border-color: #444;
}
[data-theme="dark"] .detail-anchor-nav li.tone-intro a,
[data-theme="dark"] .ul-snvfixed li.tone-intro a { background: #1a3a52; color: #90caf9; }
[data-theme="dark"] .detail-anchor-nav li.tone-versions a,
[data-theme="dark"] .ul-snvfixed li.tone-versions a { background: #1a3d2a; color: #a5d6a7; }
[data-theme="dark"] .detail-anchor-nav li.tone-download a,
[data-theme="dark"] .ul-snvfixed li.tone-download a { background: #4a3010; color: #ffcc80; }
[data-theme="dark"] .detail-anchor-nav li.tone-history a,
[data-theme="dark"] .ul-snvfixed li.tone-history a { background: #3a1f4a; color: #ce93d8; }
[data-theme="dark"] .detail-anchor-nav li.tone-jingpin a,
[data-theme="dark"] .ul-snvfixed li.tone-jingpin a { background: #4a1a2e; color: #f48fb1; }
[data-theme="dark"] .detail-anchor-nav li.tone-top a,
[data-theme="dark"] .ul-snvfixed li.tone-top a { background: #333; color: #bdbdbd; }
[data-theme="dark"] .dl-info-table th { background: #2a2a2a; }

@media (max-width: 1380px) {
  body[data-page="detail"] #detailAnchorNav { display: none !important; }
}

@media (max-width: 1240px) {
  .ul-snvfixed { display: none; }
}

@media (max-width: 1100px) {
  .row-a2 { flex-wrap: wrap; }
  .col-l, .col-c, .col-r { width: 100%; margin: 0 0 15px; }
  .nav-news { min-height: auto; }
  .col-side { display: none; }
  .hdr-row2 { flex-wrap: wrap; padding: 0 12px; min-height: 0; }
  .pic-logo {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .hdr-nav { order: 2; width: 100%; padding-left: 0; overflow-x: auto; }
  .ul-nav { flex-wrap: nowrap; }
  .ul-nav a { padding: 0 10px; font-size: 13px; height: 44px; }
  .hdr-actions {
    order: 3;
    width: 100%;
    margin-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 10px 0;
    justify-content: stretch;
  }
  .m-search { flex: 1; width: auto; }
  .row-a3 { flex-direction: column; }
  .row-a3 .cat-panel + .cat-panel { border-left: none; border-top: 1px solid var(--line); }
  .row-a4 { flex-direction: column; }
  .row-a4 .col-mini { border-right: none; border-bottom: 1px solid var(--line); }
  .icon-grid-lg { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .ul-nav { flex-wrap: wrap; }
  .ul-nav li { flex: 0 0 auto; }
  .m-search { width: 100%; margin-left: 0; }
  .soft-grid-2, .feature-list { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-head-top { flex-direction: column; }
  .detail-head-ads { width: 100%; height: auto; aspect-ratio: 650 / 140; max-height: 140px; }
  .detail-ad-slot.is-top { height: 100%; min-height: 120px; }
  .detail-head-dl { flex-direction: column; }
  .detail-ad-slot.is-lg { min-height: 64px; }
  .black .nav-l span { display: none; }
  .dl-box { flex-direction: column; }
  .dl-right { width: 100%; }
  .jp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
