/* ==========================================================================
   叁壹贰贰传奇工具分享站 - 前台样式
   ========================================================================== */
:root,
[data-theme="blue"] {
  --primary: #323130;
  --secondary: #666666;
  --hover: #2d8ac8;
  --border: #edebe9;
  --body-bg: #f7f9fd;
  --card-bg: #ffffff;
  --nav-bg: #ffffff;
  --ads-bg: #00668d;
  --activate: #2075ad;
  --tip-bg: #eef6fc;
  --shadow: 0 2px 4px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .08);
  --radius: 6px;
}
[data-theme="ocean"] { --primary:#0a3d62; --secondary:#1e5f8a; --hover:#3498db; --border:#cce6f4; --body-bg:#f0f8ff; --card-bg:#ffffff; --nav-bg:#e6f2ff; --ads-bg:#1a6ca6; --activate:#1d6fa5; --tip-bg:#e3f1fb; }
[data-theme="green"] { --primary:#323130; --secondary:#666666; --hover:#2ecc71; --border:#edebe9; --body-bg:#f7f9fd; --card-bg:#ffffff; --nav-bg:#ffffff; --ads-bg:#2ecc71; --activate:#25a55b; --tip-bg:#eafaf0; }
[data-theme="mint"] { --primary:#004d40; --secondary:#00695c; --hover:#26a69a; --border:#9dcdc9; --body-bg:#e0f2f1; --card-bg:#ffffff; --nav-bg:#b2dfdb; --ads-bg:#00897b; --activate:#009583; --tip-bg:#dcf1ee; }
[data-theme="nature"] { --primary:#2d4a3d; --secondary:#5a7b6e; --hover:#4caf93; --border:#d1e7dd; --body-bg:#f8fff8; --card-bg:#ffffff; --nav-bg:#f0f7f0; --ads-bg:#388e81; --activate:#338a79; --tip-bg:#eaf6ef; }
[data-theme="pink"] { --primary:#4a1e3a; --secondary:#8c5a6e; --hover:#d75995; --border:#f0d6e3; --body-bg:#fff9fc; --card-bg:#ffffff; --nav-bg:#fffafc; --ads-bg:#c93775; --activate:#cc3177; --tip-bg:#fdeef4; }
[data-theme="red"] { --primary:#323130; --secondary:#666666; --hover:#ff0000; --border:#edebe9; --body-bg:#f7f9fd; --card-bg:#ffffff; --nav-bg:#ffffff; --ads-bg:#a10000; --activate:#cc0000; --tip-bg:#fdeeee; }
[data-theme="redflame"] { --primary:#2c0a0d; --secondary:#7a4a4d; --hover:#e74c3c; --border:#e8c8c6; --body-bg:#fff5f3; --card-bg:#ffffff; --nav-bg:#ffefed; --ads-bg:#c0392b; --activate:#d35400; --tip-bg:#fdecea; }
[data-theme="purple"] { --primary:#2d0a31; --secondary:#6a5d7b; --hover:#9b59b6; --border:#e0d0e3; --body-bg:#f8f0f8; --card-bg:#ffffff; --nav-bg:#f5edf7; --ads-bg:#5b2c6f; --activate:#8e44ad; --tip-bg:#f3e9f6; }
[data-theme="purplenight"] { --primary:#e1d6e8; --secondary:#a99ebc; --hover:#bb86fc; --border:#443c68; --body-bg:#1a1429; --card-bg:#251f36; --nav-bg:#1e1830; --ads-bg:#4a3560; --activate:#9a6dd7; --tip-bg:#2c2440; }
[data-theme="graphite"] { --primary:#263238; --secondary:#455a64; --hover:#546e7a; --border:#cfd8dc; --body-bg:#eceff1; --card-bg:#ffffff; --nav-bg:#f5f7f9; --ads-bg:#37474f; --activate:#455a64; --tip-bg:#e4e9ec; }
[data-theme="black"] { --primary:#323130; --secondary:#666666; --hover:#000000; --border:#edebe9; --body-bg:#f7f9fd; --card-bg:#ffffff; --nav-bg:#ffffff; --ads-bg:#000000; --activate:#4e4e4e; --tip-bg:#eeeeee; }
[data-theme="night"] { --primary:#e8ebed; --secondary:#a8b0b8; --hover:#62afee; --border:#3a4048; --body-bg:#0f1215; --card-bg:#1a1e22; --nav-bg:#15191d; --ads-bg:#2a3038; --activate:#4a9fe5; --tip-bg:#232a30; --shadow:0 2px 4px rgba(0,0,0,.5); --shadow-lg:0 10px 30px rgba(0,0,0,.5); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--body-bg);
  color: var(--primary);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
a { color: var(--secondary); text-decoration: none; cursor: pointer; transition: color .2s; }
a:hover { color: var(--hover); }
h1, h2, h3, h4 { font-weight: 700; }
img { border: none; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
ul { list-style: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--border); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: var(--hover); }
.hidden, .m-hidden { }
.j-end { justify-self: end; }
.t-a-c { text-align: center; }

/* ------------------------------ 导航 ------------------------------ */
.top { height: 96px; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 72px;
  background: var(--nav-bg); border-bottom: 1px solid var(--border); z-index: 200;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.top-nav {
  width: calc(100% - 20px); max-width: 1660px; min-width: 1200px;
  height: 100%; margin: 0 auto; display: flex; align-items: center;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; margin-right: 40px; }
.logo-mark {
  position: relative; width: 42px; height: 40px; display: inline-block;
}
.logo-mark i { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--hover); display: block; }
.logo-mark i:nth-child(1) { left: 1px; bottom: 0; background: #25a84a; }
.logo-mark i:nth-child(2) { right: 1px; bottom: 0; background: #febd00; }
.logo-mark i:nth-child(3) { right: 13px; top: 0; background: var(--hover); }
.logo-mark b { position: absolute; bottom: 1px; width: 13px; height: 37px; border-radius: 13px; display: block; }
.logo-mark b:nth-of-type(1) { left: 5px; background: #febd00; transform: rotate(28deg); }
.logo-mark b:nth-of-type(2) { right: 5px; background: var(--hover); transform: rotate(-28deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 25px; letter-spacing: 1px; color: var(--primary); font-weight: 800; }
.logo-text em { font-style: normal; font-size: 13px; color: var(--secondary); letter-spacing: 2px; margin-top: 2px; }
.site-logo-img { height: 48px; width: auto; max-width: 320px; object-fit: contain; display: block; }
@media (max-width: 1600px) { .site-logo-img { height: 42px; } }
@media (max-width: 1150px) { .site-logo-img { height: 32px; } }
.main-nav { display: flex; align-items: center; flex: 1; min-width: 0; }
.main-nav > a, .main-nav .add-container > a {
  padding: 0 18px; height: 72px; display: flex; align-items: center; gap: 4px;
  color: var(--primary); font-size: 16px; position: relative; white-space: nowrap;
}
.main-nav > a:hover, .main-nav > a.active, .main-nav .add-container > a:hover, .main-nav .add-container > a.active { color: var(--hover); }
.main-nav > a.active::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--hover); border-radius: 2px 2px 0 0; }
.main-nav a.new::before {
  content: ''; position: absolute; top: 16px; right: 5px; width: 7px; height: 7px;
  background: #ff3b30; border-radius: 50%; display: block;
}
.add-container { height: 72px; display: flex; align-items: center; position: relative; }
.add-container:hover .nav-card { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-card {
  position: absolute; top: 62px; left: 50%; transform: translateX(-50%) translateY(6px);
  width: 118px; background: var(--activate); box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
  opacity: 0; visibility: hidden; transition: all .22s ease; z-index: 300; border-radius: 3px; overflow: hidden;
}
.nav-card a { display: block; height: 38px; line-height: 38px; text-align: center; color: #fff !important; font-size: 14px; }
.nav-card a:hover { background: var(--hover); }
.nav-actions { display: flex; align-items: center; gap: 25px; margin-left: auto; flex-shrink: 0; }
.nav-actions .action-link { color: var(--primary); font-size: 18px; display: flex; align-items: center; }
.nav-actions .action-link:hover { color: var(--hover); }
.search-box {
  width: 250px; height: 40px; background: var(--body-bg); border: 1px solid var(--border);
  border-radius: 100px; display: flex; align-items: center; padding: 0 14px; position: relative;
}
.search-box input { flex: 1; background: transparent; border: none; color: var(--primary); padding: 0 8px; font-size: 14px; min-width: 0; }
.search-box input::placeholder { color: var(--secondary); font-size: 13px; }
.search-box .action-icon { color: var(--secondary); font-size: 14px; }
.search-box .clear-btn { color: var(--secondary); cursor: pointer; font-size: 14px; display: none; }
.search-box .clear-btn.show { display: block; }
.user-container { position: relative; display: flex; height: 72px; align-items: center; }
.user-container .nav-card.theme-card {
  width: 132px; top: 60px; max-height: 72vh; overflow-y: auto; background: var(--card-bg);
  border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.user-container:hover .nav-card { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.theme-card a { display: flex; align-items: center; gap: 8px; height: 36px; line-height: 36px; color: var(--primary) !important; text-align: left; padding: 0 14px; font-size: 13px; }
.theme-card a:hover { background: var(--body-bg); color: var(--hover) !important; }
.theme-card a i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.mobile-menu-btn { display: none; background: transparent; border: none; font-size: 18px; color: var(--primary); }
.mobile-only { display: none !important; }

/* ------------------------------ 容器 / 通用 ------------------------------ */
.container {
  width: calc(100% - 20px); max-width: 1660px; min-width: 1200px;
  margin: 0 auto; padding-bottom: 30px;
}
body.plus .container, body.plus .top-nav { max-width: 2000px; width: calc(100% - 180px); }
.sosuozu { position: relative; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title h2, .container > h2 {
  font-size: 22px; color: var(--primary); position: relative; padding-left: 14px;
  border-left: 4px solid var(--secondary); line-height: 1.2; display: flex; align-items: center; gap: 8px;
}
.section-title h2 i { font-size: 18px; color: var(--hover); }
.section-more { font-size: 14px; color: var(--secondary); }
.section-more:hover { color: var(--hover); }
.section-sub { font-size: 13px; color: var(--secondary); }
.breadcrumb { font-size: 13px; color: var(--secondary); padding: 4px 0 16px; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { color: var(--hover); }
.count-pill {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 100px;
  background: var(--tip-bg); color: var(--hover); font-size: 13px; font-weight: 500;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--activate); color: #fff; border: none; border-radius: 4px;
  font-size: 14px; font-weight: 500; padding: 9px 18px; transition: all .2s; line-height: 1.2;
}
.btn:hover { background: var(--hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--tip-bg); color: var(--hover); border-color: var(--hover); }
.btn-disabled { background: var(--border); color: var(--secondary); }
.btn-disabled:hover { background: var(--border); color: var(--secondary); }
.btn-block { width: 100%; }
.btn i { font-size: 14px; }
.site-notice {
  background: var(--tip-bg); border: 1px solid var(--border); color: var(--primary);
  padding: 10px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14px;
}
.site-notice i { color: var(--hover); margin-right: 6px; }

/* ------------------------------ 首页 Hero ------------------------------ */
.hero-container { padding-top: 24px; }
.header {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 34px 40px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, var(--ads-bg) 0%, var(--activate) 100%);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.header::after {
  content: ''; position: absolute; right: -90px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.header::before {
  content: ''; position: absolute; right: 150px; bottom: -180px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, .05);
}
.header-main { position: relative; z-index: 2; }
.header h1 { font-size: 34px; line-height: 1.3; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; letter-spacing: .5px; }
.header h1 i { font-size: 30px; opacity: .9; }
.header-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.short-title {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 100px;
  background: rgba(255, 255, 255, .16); font-size: 13px; color: #fff; font-weight: 500;
}
.header .meta-info { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; opacity: .95; }
.header .meta-info span { display: inline-flex; align-items: center; gap: 6px; }
.header .meta-info a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.header .meta-info a:hover { color: #eaf6ff; }
.hero-side { display: flex; gap: 14px; position: relative; z-index: 2; flex-shrink: 0; }
.hero-stat {
  min-width: 96px; text-align: center; padding: 14px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
}
.hero-stat strong { display: block; font-size: 26px; line-height: 1.1; color: #fff; font-weight: 800; }
.hero-stat span { font-size: 12px; opacity: .85; }

/* ------------------------------ 广告位 ------------------------------ */
.ads-container { padding-top: 20px; }
.god-cards { display: flex; gap: 10px; }
.god-card { flex: 1; min-width: 0; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.god-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, .14); }
.god-card > a { display: flex; flex-direction: column; height: 100%; }
.god-image { width: 100%; aspect-ratio: 640 / 260; overflow: hidden; background: var(--tip-bg); }
.god-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.god-card:hover .god-image img { transform: scale(1.04); }
.god-content { padding: 12px 12px 14px; flex: 1; }
.god-title { font-size: 16px; color: var(--primary); margin-bottom: 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.god-description { color: var(--secondary); text-align: center; font-size: 12px; line-height: 1.7; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.god-footer { display: flex; justify-content: space-between; padding: 8px 12px; background: rgba(0, 0, 0, .03); border-top: 1px solid var(--border); color: var(--secondary); font-size: 12px; }
.god-rating { color: #f5a623; letter-spacing: 1px; }
.god-card:hover .god-title { color: var(--hover); }

/* ------------------------------ 资源卡片 ------------------------------ */
.app-cards { display: flex; flex-wrap: wrap; gap: 1%; margin-bottom: 4px; }
.app-card {
  position: relative; width: 11.62%; margin-bottom: 1%; padding: 18px 12px 14px;
  background: var(--card-bg); border-radius: 10px; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; overflow: hidden;
}
.app-card:hover { transform: translateY(-5px); box-shadow: 0 10px 22px rgba(0, 0, 0, .12); }
.app-card img {
  width: 48px; height: 48px; margin-bottom: 8px; border-radius: 10px;
  filter: brightness(1.03) contrast(1.03) saturate(1.05); object-fit: cover;
}
.app-card .title {
  font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
}
.app-card p {
  font-size: 12px; color: var(--secondary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-height: 20px; margin-bottom: 8px;
}
.app-card > a {
  display: block; padding: 5px 8px; font-size: 12px; border-radius: 4px;
  color: var(--primary); background: var(--body-bg); border-top: 1px solid var(--body-bg);
  border-bottom: 1px solid var(--border); transition: all .2s;
}
.app-card:hover > a { color: #fff; background: var(--hover); border-color: var(--hover); }
.TopIco, .NewIco {
  position: absolute; top: 0; left: 0; font-size: 10px; font-weight: 600; color: #fff;
  padding: 3px 8px 3px 7px; border-radius: 10px 0 8px 0; letter-spacing: 0; z-index: 1;
}
.TopIco { background: linear-gradient(135deg, #ff6a00, #ee0979); }
.NewIco { background: linear-gradient(135deg, #00b09b, #96c93d); }
.TopIco + .NewIco { left: auto; right: 0; border-radius: 0 10px 0 8px; }
.h-g { position: relative; overflow: hidden; }
.h-g::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.25) 50%, rgba(255,255,255,0) 100%);
  transition: left .7s; pointer-events: none;
}
.h-g:hover::after { left: 130%; }

/* ------------------------------ 快捷入口 ------------------------------ */
.quick-links {
  display: flex; gap: 10px; padding: 18px; background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: 6px;
}
.quick-link {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; border-radius: 6px; background: var(--body-bg); color: var(--primary);
  font-size: 14px; border: 1px solid transparent; transition: all .2s;
}
.quick-link i { color: var(--hover); font-size: 16px; }
.quick-link:hover { color: var(--hover); border-color: var(--hover); background: var(--tip-bg); transform: translateY(-2px); }

/* ------------------------------ 列表页 ------------------------------ */
.list-page { padding-top: 26px; }
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.list-head h1 { font-size: 30px; line-height: 1.3; margin-bottom: 6px; }
.list-head p { color: var(--secondary); font-size: 14px; }
.list-head-side { display: flex; align-items: center; gap: 10px; }
.filter-tabs { display: flex; gap: 4px; background: var(--card-bg); padding: 4px; border-radius: 6px; box-shadow: var(--shadow); }
.filter-tabs a { padding: 7px 16px; border-radius: 4px; font-size: 14px; color: var(--secondary); }
.filter-tabs a.active { background: var(--activate); color: #fff; }
.filter-tabs a.active:hover { color: #fff; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--secondary); background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state i { font-size: 44px; color: var(--border); display: block; margin-bottom: 14px; }
.empty-state p { margin-bottom: 18px; }
.error-page { margin-top: 40px; }
.error-page h1 { font-size: 56px; color: var(--hover); margin: 6px 0; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; font-size: 14px; color: var(--secondary);
}
.pagination a:hover { color: var(--hover); border-color: var(--hover); }
.pagination .page-current { background: var(--activate); border-color: var(--activate); color: #fff; }
.pagination .page-dots { border: none; background: transparent; }
.related-block { margin-top: 34px; }
.related-block .section-title { margin-bottom: 14px; }

/* ------------------------------ 详情页 ------------------------------ */
.container.down {
  background: var(--card-bg); box-shadow: var(--shadow-lg); padding: 24px; margin-top: 24px;
  border-radius: var(--radius); min-height: calc(100vh - 300px);
}
.container.down > .header {
  background: linear-gradient(120deg, var(--ads-bg), var(--activate)); padding: 26px 24px;
  display: flex; align-items: center; gap: 22px; justify-content: flex-start;
}
.container.down > .header::before, .container.down > .header::after { display: none; }
.thumbnail {
  width: 80px; height: 80px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, .3); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); background: var(--card-bg);
}
.title-section { min-width: 0; }
.title-section h1 { font-size: 30px; color: #fff; margin-bottom: 10px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.title-section .typename { font-size: 15px; font-weight: 500; opacity: .9; background: rgba(255,255,255,.16); padding: 3px 10px; border-radius: 100px; }
.title-section .short-title { margin-right: 6px; margin-bottom: 4px; background: rgba(255,255,255,.14); }
.title-section .meta-info { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; margin-top: 10px; opacity: .95; }
.title-section .meta-info span { display: inline-flex; align-items: center; gap: 6px; }
.down-content { padding: 30px 26px 10px; }
.down-content h2 { font-size: 21px; margin-bottom: 16px; position: relative; padding-left: 13px; border-left: 4px solid var(--hover); color: var(--hover); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head .section-sub { font-size: 13px; color: var(--secondary); }
.section .info { color: var(--primary); font-size: 15px; line-height: 1.9; }
.section .info p { margin-bottom: 9px; color: var(--primary); }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); margin: 26px 0; }
.down-list { display: grid; gap: 14px; }
.down-item {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 15px 20px; border: 1px solid var(--border); border-radius: 6px; transition: all .3s;
}
.down-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .06); border-color: var(--hover); }
.down-plat { font-size: 15px; font-weight: 600; color: var(--primary); flex: 1; min-width: 0; }
.down-plat .size { font-size: 13px; color: var(--secondary); font-weight: 400; }
.down-note { display: block; font-size: 12px; color: var(--secondary); font-weight: 400; margin-top: 3px; }
.down-btn { display: flex; gap: 8px; flex-shrink: 0; }
.down-btn .btn { padding: 8px 16px; font-size: 13px; }
.down-list-empty { text-align: center; padding: 50px 20px; color: var(--secondary); border: 1px dashed var(--border); border-radius: 8px; }
.down-list-empty i { font-size: 34px; color: var(--border); margin-bottom: 12px; display: block; }

/* ------------------------------ 网址导航 ------------------------------ */
.links-page { padding-top: 26px; }
.link-group { margin-bottom: 34px; }
.link-group .url-cards { display: flex; flex-wrap: wrap; gap: 1%; }
.url-card {
  display: flex; align-items: center; gap: 12px; width: 19.2%; margin-bottom: 1%;
  padding: 15px 16px; background: var(--card-bg); border-radius: 6px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.url-card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.url-card img { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; object-fit: cover; }
.url-info { min-width: 0; }
.url-info .title { display: block; font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-info p { font-size: 12px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.url-card:hover .url-info .title { color: var(--hover); }

/* ------------------------------ QQ群 ------------------------------ */
.qun-page { padding-top: 26px; }
.qun-cards { display: flex; flex-wrap: wrap; gap: 1%; }
.qun-card {
  width: 19.2%; margin-bottom: 1%; padding: 18px; background: var(--card-bg); border-radius: 8px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.qun-card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.qun-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.qun-icon { font-size: 34px; color: #12b7f5; }
.qun-info .title { font-size: 15px; color: var(--primary); margin-bottom: 2px; }
.qun-info p { font-size: 13px; color: var(--secondary); }
.qun-info strong { color: var(--hover); }
.qun-desc { font-size: 13px; color: var(--secondary); min-height: 42px; margin-bottom: 12px; }
.qun-tip { margin-top: 24px; padding: 26px 30px; }
.qun-tip h3 { margin-bottom: 10px; font-size: 17px; }
.qun-tip p { color: var(--secondary); font-size: 14px; margin-bottom: 4px; }

/* ------------------------------ 帮助中心 ------------------------------ */
.help-page { padding-top: 26px; }
.help-layout { display: flex; gap: 22px; align-items: flex-start; }
.help-side { width: 260px; flex-shrink: 0; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 96px; }
.help-side h3 { font-size: 17px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.help-side h3 i { color: var(--hover); }
.help-side nav { display: flex; flex-direction: column; gap: 4px; }
.help-nav-item { display: block; padding: 9px 12px; border-radius: 5px; font-size: 14px; color: var(--secondary); }
.help-nav-item:hover, .help-nav-item.active { background: var(--tip-bg); color: var(--hover); }
.help-nav-item.active { font-weight: 600; }
.help-side-tip { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
.help-side-tip p { font-size: 13px; color: var(--secondary); margin-bottom: 10px; }
.help-article { flex: 1; padding: 34px 40px; min-width: 0; }
.article-head { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 22px; }
.article-tag { display: inline-block; background: var(--tip-bg); color: var(--hover); font-size: 12px; padding: 3px 10px; border-radius: 100px; margin-bottom: 10px; }
.article-head h1 { font-size: 28px; margin-bottom: 8px; }
.article-meta { font-size: 13px; color: var(--secondary); }
.article-body { font-size: 15px; line-height: 2; color: var(--primary); }
.article-body p { margin-bottom: 10px; }

/* ------------------------------ 关于 / 通用内容页 ------------------------------ */
.page-wrap { padding-top: 26px; }
.page-panel { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; }
.page-head { margin-bottom: 22px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.page-head h1 { font-size: 28px; margin-bottom: 6px; }
.page-head p { color: var(--secondary); font-size: 14px; }
.about-block { margin-bottom: 30px; }
.about-block h2 { font-size: 20px; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--hover); }
.about-block .article-body { color: var(--secondary); }
.about-contact { background: var(--body-bg); padding: 20px 24px; border-radius: 6px; margin-top: 10px; }
.about-contact h3 { margin-bottom: 8px; font-size: 16px; }
.about-contact p { font-size: 14px; color: var(--secondary); margin-bottom: 4px; }

/* ------------------------------ 留言板 ------------------------------ */
.book-page { padding-top: 26px; }
.book-layout { display: flex; gap: 24px; align-items: flex-start; }
.booklist { flex: 1; min-width: 0; }
.book-item {
  display: flex; gap: 14px; background: var(--card-bg); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow); border-bottom: 1px solid transparent;
}
.book-item:hover { border-bottom-color: var(--hover); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px;
}
.bcontent { flex: 1; min-width: 0; }
.book-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.book-head .name { font-size: 14px; font-weight: 600; color: var(--primary); }
.book-head .metadata { font-size: 12px; color: var(--secondary); }
.book-text { font-size: 14px; color: var(--primary); line-height: 1.8; word-break: break-word; }
.book-reply { margin-top: 10px; padding: 10px 14px; border-radius: 5px; background: var(--tip-bg); font-size: 13px; }
.reply-label { color: var(--hover); font-weight: 600; margin-right: 6px; }
.book-reply p { color: var(--secondary); display: inline; }
.bookadd { width: 39%; position: sticky; top: 96px; flex-shrink: 0; }
.bookadd .panel { padding: 22px; }
.bookadd h3 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.bookadd h3 i { color: var(--hover); }

/* ------------------------------ 表单 ------------------------------ */
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form label { display: block; font-size: 13px; color: var(--secondary); }
.stack-form label span { color: #e74c3c; }
.form-control {
  display: block; width: 100%; padding: 9px 12px; font-size: 14px; color: var(--primary);
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; transition: border-color .2s;
}
.form-control:focus { border-color: var(--hover); }
select.form-control { height: 38px; }
textarea.form-control { resize: vertical; line-height: 1.7; }
.stack-form label .form-control { margin-top: 6px; }
.form-row { display: flex; gap: 10px; align-items: center; }
.form-row .form-control { flex: 1; width: auto; min-width: 0; }
.form-row .captcha-q { flex-shrink: 0; min-width: 92px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: var(--tip-bg); color: var(--hover); border-radius: 4px; font-size: 14px; letter-spacing: 1px; }
.form-tip { font-size: 12px; color: var(--secondary); line-height: 1.7; }
.btn-block { width: 100%; padding: 10px; }

/* ------------------------------ 提交收录 ------------------------------ */
.submit-page { padding-top: 26px; }
.submit-layout { display: flex; gap: 24px; align-items: flex-start; }
.submit-layout > .panel { flex: 1; padding: 26px 30px; }
.submit-rules { width: 360px; flex-shrink: 0; }
.submit-rules h3 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.submit-rules h3 i { color: var(--hover); }
.rules-list li { font-size: 13px; color: var(--secondary); padding: 8px 0 8px 18px; position: relative; border-bottom: 1px dashed var(--border); line-height: 1.7; }
.rules-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 9px; color: var(--hover); font-size: 11px; }

/* ------------------------------ 在线工具 ------------------------------ */
.tool-card { background: var(--body-bg); border-radius: 8px; padding: 24px; border: 1px solid var(--border); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field-label { display: block; font-size: 13px; color: var(--secondary); margin-bottom: 6px; }
.code-area { font-family: Consolas, Monaco, "Courier New", monospace; font-size: 13px; line-height: 1.8; background: var(--card-bg); }
.tool-actions { display: flex; gap: 10px; margin: 14px 0; }
.search-inline { display: flex; gap: 10px; }
.search-inline .form-control { flex: 1; }
.bl-result { margin-top: 18px; }
.bl-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card-bg); border-radius: 6px; overflow: hidden; }
.bl-table th, .bl-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.bl-table th { background: var(--tip-bg); color: var(--hover); font-weight: 600; }
.bl-table tr:last-child td { border-bottom: none; }
.code-block { background: #1e2329; color: #9ad1ff; padding: 12px 16px; border-radius: 6px; font-family: Consolas, monospace; font-size: 13px; margin-top: 16px; overflow-x: auto; }
.kami-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kami-form label { font-size: 13px; color: var(--secondary); display: block; }
.kami-form .form-control { margin-top: 6px; }
.jump-page { text-align: center; padding: 50px 30px; }
.jump-page > i { font-size: 46px; color: var(--hover); margin-bottom: 12px; }
.jump-page h1 { font-size: 26px; margin-bottom: 10px; }
.jump-page p { color: var(--secondary); margin-bottom: 12px; }
.jump-url { display: inline-block; background: var(--body-bg); padding: 10px 18px; border-radius: 5px; font-family: Consolas, monospace; font-size: 13px; word-break: break-all; max-width: 100%; margin-bottom: 18px; }
.jump-actions { display: flex; gap: 12px; justify-content: center; }

/* ------------------------------ 页脚 ------------------------------ */
footer { background: var(--nav-bg); border-top: 1px solid var(--border); color: var(--secondary); font-size: 13px; }
footer .container { padding: 0; }
.footer-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.footer-label { color: var(--primary); font-weight: 600; margin-right: 6px; }
.footer-link a { color: var(--secondary); font-size: 13px; }
.footer-link a:hover { color: var(--hover); }
.footer-copyright { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0; }
.copyright { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copyright a { color: var(--secondary); }
.footer-note { border-top: 1px dashed var(--border); padding: 12px 0 22px; font-size: 12px; color: var(--secondary); opacity: .85; }

/* ------------------------------ 浮动导航 ------------------------------ */
.floating-nav { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 9px; z-index: 150; }
@media (max-width: 1830px) { .floating-nav:not(.category-nav) { display: none; } }
.floating-nav .sidebar {
  width: 46px; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--card-bg); color: var(--secondary); box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  font-size: 17px; transition: all .2s;
}
.floating-nav .sidebar:hover { background: var(--hover); color: #fff; transform: translateY(-2px); }

/* 首页右侧分类锚点导航（对齐原站） */
.category-nav { gap: 7px; }
.category-nav .sidebar {
  width: 52px; height: 52px; border-radius: 10px; padding: 0 4px; font-size: 13px;
  font-weight: 500; letter-spacing: 1px; line-height: 1.2; text-align: center;
}
.category-nav .sidebar.active,
.category-nav .sidebar:hover {
  background: var(--hover); color: #fff; transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.category-nav .sidebar.top-btn { height: 36px; font-size: 14px; margin-top: 2px; }
.sosuozu[id] { scroll-margin-top: 92px; }
@media (min-width: 1151px) and (max-width: 1799px) {
  body.has-right-nav { padding-right: 74px; }
  body.has-right-nav .nav { padding-right: 74px; }
}
@media (max-width: 1150px) { .floating-nav { display: none !important; } }

/* ------------------------------ 弹窗 / 提示 ------------------------------ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
#popup, .theme-panel, .alert-content {
  background: var(--card-bg); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  width: 560px; max-width: 100%; max-height: 90vh; overflow: auto; animation: modalIn .22s ease;
}
.theme-panel { width: 520px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 16px; line-height: 1.5; }
.modal-title span { display: block; font-size: 12px; color: var(--secondary); font-weight: 400; margin-top: 3px; }
.close-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--body-bg);
  color: var(--secondary); font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.close-btn:hover { background: var(--hover); color: #fff; transform: rotate(90deg); }
.modal-body { padding: 20px; text-align: center; }
.modal-body .ewm { display: inline-block; margin: 0 20px; text-align: center; }
.modal-body .ewm img { width: 180px; height: 180px; border-radius: 8px; display: block; }
.modal-body .ewm span { display: block; margin-top: 6px; font-size: 13px; color: var(--secondary); }
.donate-tip { margin-top: 16px; font-size: 12px; color: var(--secondary); line-height: 1.8; }
.modal-footer { padding: 12px 18px; border-top: 1px solid var(--border); color: var(--secondary); font-size: 12px; line-height: 1.7; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }
.theme-swatch {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--card-bg); color: var(--primary); font-size: 13px; transition: all .2s;
}
.theme-swatch span { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px var(--border); }
.theme-swatch em { font-style: normal; }
.theme-swatch:hover, .theme-swatch.active { border-color: var(--hover); color: var(--hover); }
.alert-content { width: 420px; }
.alert-body { padding: 26px 24px; text-align: center; font-size: 15px; line-height: 1.8; }
.alert-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); z-index: 10001;
  background: rgba(20, 26, 32, .92); color: #fff; padding: 10px 20px; border-radius: 6px;
  font-size: 14px; opacity: 0; visibility: hidden; transition: all .25s; max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.error { background: rgba(192, 57, 43, .95); }
#tooltip {
  position: fixed; background: var(--card-bg); color: var(--primary); padding: 6px 10px;
  border-radius: 4px; font-size: 13px; pointer-events: none; z-index: 10000;
  opacity: 0; transform: translateY(10px); transition: all .2s; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  border: 1px dashed var(--hover); max-width: 300px; line-height: 1.6;
}
#tooltip.show { opacity: 1; transform: none; }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1600px) {
  .top-nav, .container { min-width: 0; }
  .main-nav > a, .main-nav .add-container > a { padding: 0 10px; font-size: 14px; }
  .main-nav > a.active::after { left: 10px; right: 10px; }
  .nav-actions { gap: 12px; }
  .logo { margin-right: 16px; }
  .search-box { width: 190px; }
}
@media (max-width: 1280px) {
  .app-card { width: 15.4%; }
  .url-card, .qun-card { width: 24%; }
  .god-cards { flex-wrap: wrap; }
  .god-card { width: 32.3%; flex: none; }
  .hero-side { display: none; }
  .header h1 { font-size: 28px; }
  .search-box { width: 170px; }
  .logo-text em { display: none; }
}
@media (max-width: 1100px) {
  .main-nav > a, .main-nav .add-container > a { padding: 0 8px; font-size: 13px; }
  .logo-text em { display: none; }
  .search-box { width: 150px; }
  .nav-actions { gap: 10px; }
}
@media (max-width: 1000px) {
  .app-card { width: 19%; }
  .url-card, .qun-card { width: 32.3%; }
  .god-card { width: 48.5%; }
  .main-nav > a.new::before { display: none; }
  .container.down > .header { flex-direction: column; text-align: center; }
  .title-section h1 { justify-content: center; }
  .title-section .meta-info { justify-content: center; }
}
@media (max-width: 1150px) {
  body { font-size: 14px; }
  .top { height: 60px; }
  .nav { height: 60px; }
  .top-nav { width: 100%; padding: 0 12px; height: 60px; }
  .logo-text strong { font-size: 17px; }
  .logo-text em { display: none; }
  .logo-mark { transform: scale(.9); }
  .mobile-menu-btn { display: block; }
  .main-nav {
    position: fixed; top: 60px; left: 0; width: 100%; background: var(--card-bg);
    display: none; flex-wrap: wrap; padding: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    z-index: 190; gap: 6px; max-height: calc(100vh - 60px); overflow: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .main-nav .add-container, .main-nav .add-container > a {
    width: 48%; height: 42px; padding: 0; display: flex; align-items: center; justify-content: center;
    background: var(--body-bg); border-radius: 5px; font-size: 14px; margin: 1%;
  }
  .main-nav > a.active::after { display: none; }
  .main-nav > a.active, .main-nav .add-container > a.active { background: var(--tip-bg); color: var(--hover); }
  .add-container .nav-card { display: none; }
  .nav-actions { gap: 10px; margin-left: auto; }
  .search-box { position: fixed; top: 62px; left: 12px; right: 12px; width: auto; display: none; z-index: 200; background: var(--card-bg); }
  .search-box.mobile-show { display: flex; }
  .user-container, .ShowPlus { display: none; }
  .mobile-only { display: inline-flex !important; }
  .container, .top-nav { width: auto; min-width: 0; padding-left: 10px; padding-right: 10px; }
  .container { padding-bottom: 20px; }
  .hero-container { padding-top: 12px; }
  .header { padding: 24px 18px; flex-direction: column; align-items: flex-start; }
  .header h1 { font-size: 22px; }
  .header h1 i { display: none; }
  .header .meta-info { flex-direction: column; gap: 6px; font-size: 12px; }
  .god-cards { flex-wrap: wrap; gap: 10px; }
  .god-card { width: 48%; flex: none; }
  .god-card:nth-child(n+5) { display: none; }
  .app-cards { flex-wrap: wrap; gap: 0; }
  .app-card { width: 100%; text-align: left; padding: 12px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 4px 12px; margin-bottom: 8px; }
  .app-card img { grid-row: 1 / 3; margin: 0; }
  .app-card .title { margin: 0; min-width: 0; }
  .app-card p { margin: 0; min-width: 0; }
  .app-card > a { grid-column: 3; grid-row: 1 / 3; width: 86px; text-align: center; }
  .TopIco, .NewIco { font-size: 8px; padding: 1px 6px; }
  .quick-links { flex-wrap: wrap; padding: 12px; }
  .quick-link { width: 31%; flex: none; height: 44px; font-size: 13px; }
  .list-head { flex-direction: column; align-items: flex-start; }
  .list-head h1 { font-size: 24px; }
  .list-head-side { width: 100%; }
  .container.down { margin-top: 12px; padding: 10px; }
  .container.down > .header { padding: 18px; }
  .title-section h1 { font-size: 22px; }
  .thumbnail { width: 64px; height: 64px; }
  .down-content { padding: 20px 4px 0; }
  .down-item { flex-direction: column; align-items: flex-start; padding: 14px; }
  .down-btn { width: 100%; flex-wrap: wrap; }
  .down-btn .btn { flex: 1; min-width: 90px; }
  .url-card, .qun-card { width: 100%; }
  .link-group .url-cards { gap: 0; }
  .help-layout, .book-layout, .submit-layout { flex-direction: column; }
  .help-side { width: 100%; position: static; }
  .bookadd, .submit-rules { width: 100%; position: static; }
  .help-article, .page-panel { padding: 20px 16px; }
  .article-head h1 { font-size: 22px; }
  .modal-body .ewm img { width: 130px; height: 130px; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-nav { top: auto; bottom: 18px; right: 50%; transform: translateX(50%); flex-direction: row; }
  .floating-nav .sidebar { width: 40px; height: 38px; font-size: 15px; }
  .footer-copyright { grid-template-columns: 1fr; }
  .copyright { justify-content: flex-start; }
  .tool-grid, .kami-form { grid-template-columns: 1fr; }
  .tool-card { padding: 16px; }
}
