:root {
  --theme-color: #0f7ed9;
  --theme-dark: #0a6bb8;
  --sub-color: #ff5f2e;
  --ink: #1d232b;
  --muted: #8f8f8f;
  --text: #3c3c3c;
  --line: #f1f4f9;
  --bg: #f3f5f8;
  --paper: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --radius: 10px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
  line-height: 1.55;
  padding-bottom: 72px;
}

a { color: var(--theme-color); text-decoration: none; }
a:hover { color: var(--sub-color); }

.container {
  width: min(1680px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ===== Page layout: left sidebar + main ===== */
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 1rem;
  position: relative;
}

.side-nav {
  display: none;
  flex: 0 0 160px;
  width: 160px;
}

.side-nav-inner {
  position: sticky;
  top: 84px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.65rem 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.side-home {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--theme-color);
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.35rem;
}

.side-home:hover { color: var(--sub-color); }

.side-menu {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
}

.side-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #3c3c3c;
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.side-menu a:hover {
  color: var(--theme-color);
  background: #f5f9fc;
  border-left-color: var(--theme-color);
}

.side-menu a.active,
.side-home.active {
  color: var(--theme-color);
  background: #f0f7fc;
  border-left-color: var(--theme-color);
  font-weight: 650;
}

.side-home.active {
  border-left: 3px solid var(--theme-color);
  padding-left: calc(1rem - 3px);
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 0 0 2.5rem;
}

@media (min-width: 1000px) {
  .side-nav { display: block; }
  .page-layout.container {
    width: min(1920px, calc(100% - 2rem));
  }
}

@media (min-width: 2000px) {
  .page-layout.container {
    width: min(2200px, calc(100% - 3rem));
  }
}

.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;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--theme-color);
  box-shadow: 0 2px 12px rgba(15, 126, 217, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 68px;
  padding: 0.35rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.brand:hover { color: #fff; }

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #cfe8ff 100%);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
  margin-left: 0.5rem;
}

.top-nav > a,
.top-nav .nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.top-nav > a:hover,
.top-nav > a.active,
.top-nav .nav-item.active > .nav-link,
.top-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav-item {
  position: relative;
}

.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 148px;
  padding: 0.4rem 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 40, 80, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 120;
}

.nav-sub::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.nav-sub a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: #3c3c3c;
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
  border-radius: 0;
  background: transparent;
}

.nav-sub a:hover {
  background: #f0f7fc;
  color: var(--theme-color);
}

@media (max-width: 900px) {
  .nav-item.has-sub .nav-sub {
    display: none;
  }
}

.header-tagline {
  margin: 0 0 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Main ===== */
.site-main {
  padding: 1rem 0 2.5rem;
}

.main-content.site-main {
  padding-top: 0;
}

.page-title {
  margin: 0.5rem 0 1.25rem;
}

.page-title h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.page-title p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Category jump tabs ===== */
.cat-jump {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  background: var(--paper);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow);
}

.cat-jump a {
  flex: 0 0 auto;
  color: #5a5a5a;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  background: #f5f7fa;
  transition: all 0.2s;
}

.cat-jump a:hover {
  color: #fff;
  background: var(--sub-color);
}

/* ===== Category block ===== */
.category,
.news-block {
  margin-bottom: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.85rem;
  box-shadow: var(--shadow);
}

.category-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  min-height: 26px;
}

.category-head h2,
.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
}

.category-desc {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.category-head .r,
.section-tip {
  color: var(--muted);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.more-link {
  color: #8f8f8f;
  font-size: 0.82rem;
  text-decoration: none;
  background: #f5f7fa;
  border-radius: 20px;
  padding: 0.2rem 0.85rem;
}

.more-link:hover {
  background: var(--sub-color);
  color: #fff;
}

/* ===== Link cards ===== */
.link-grid {
  list-style: none;
  margin: 0 -0.4rem;
  padding: 0 0 0.4rem;
  display: flex;
  flex-wrap: wrap;
}

.link-grid > li {
  width: 50%;
  padding: 0 0.4rem;
  margin-bottom: 0.75rem;
}

/* 首页每个分类默认只展示 3 行（随列数变化：2/3/4/6 列） */
.home-page .category .link-grid > li:nth-child(n+7) {
  display: none;
}

@media (min-width: 750px) {
  .link-grid > li { width: 33.333%; }
  .home-page .category .link-grid > li:nth-child(n+7) { display: list-item; }
  .home-page .category .link-grid > li:nth-child(n+10) { display: none; } /* 3 列 × 3 行 */
}

@media (min-width: 1000px) {
  .link-grid > li { width: 25%; }
  .home-page .category .link-grid > li:nth-child(n+10) { display: list-item; }
  .home-page .category .link-grid > li:nth-child(n+13) { display: none; } /* 4 列 × 3 行 */
}

@media (min-width: 1330px) {
  .link-grid > li { width: 16.666%; } /* 6 列 */
  .home-page .category .link-grid > li:nth-child(n+13) { display: list-item; }
  .home-page .category .link-grid > li:nth-child(n+19) { display: none; } /* 6 列 × 3 行 */
}

.link-item {
  display: block;
  position: relative;
  height: 100%;
  padding: 1rem;
  background: #fafbfc;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.link-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  padding: 0.12rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  border-radius: 0 var(--radius) 0 6px;
  letter-spacing: 0.02em;
}

.link-badge-hot {
  background: #e11d48;
}

.link-badge-recommend {
  background: #0d7a6f;
}

.link-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #eef2f7;
  background: #fff;
}

.link-item:hover .link-title {
  color: var(--sub-color);
  text-decoration: underline;
}

.link-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  min-width: 0;
}

.link-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f7;
}

.link-ico.placeholder {
  display: inline-block;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

.link-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3c3c3c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.link-flow {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.55rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #e85d2c 0%, #d9480f 100%);
  box-shadow: 0 2px 6px rgba(217, 72, 15, 0.28);
  line-height: 1.3;
}

.link-flow.is-low {
  background: linear-gradient(135deg, #f08c5a 0%, #e0703a 100%);
  box-shadow: 0 1px 4px rgba(224, 112, 58, 0.22);
  opacity: 0.95;
}

.show-flow {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #e85d2c 0%, #d9480f 100%);
  box-shadow: 0 2px 6px rgba(217, 72, 15, 0.25);
}

/* 流量互助规则公告 */
.rule-banner {
  background: linear-gradient(90deg, #e8f4fc 0%, #eef7f4 100%);
  border-bottom: 1px solid #d5e8f2;
  padding: 0.7rem 0;
}

.rule-inner {
  text-align: center;
}

.rule-line {
  margin: 0;
  display: inline;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4a5560;
}

.rule-title {
  font-weight: 750;
  color: var(--theme-color);
}

.rule-title::before {
  content: "✦ ";
  color: #e11d48;
  font-weight: 700;
}

.rule-title::after {
  content: "：";
  color: var(--theme-color);
  font-weight: 750;
}

.rule-desc {
  font-weight: 400;
  color: #4a5560;
}

@media (max-width: 750px) {
  .rule-banner { padding: 0.65rem 0; }
  .rule-line { font-size: 0.82rem; }
}

/* 快捷导航：Logo 上、文字下，每行 10 列 */
#quick-nav .nav-quick {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  gap: 0.4rem 0.2rem;
  margin: 0;
  padding: 0 0 0.4rem;
  width: 100%;
}

#quick-nav .nav-quick > li {
  width: auto !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#quick-nav .nav-quick .quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0.5rem 0.15rem 0.4rem;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  gap: 0.3rem;
  height: auto;
  min-width: 0;
}

#quick-nav .nav-quick .quick-link:hover {
  transform: none;
  box-shadow: none;
  background: #f5f8fb;
  border-color: transparent;
}

#quick-nav .nav-quick .link-ico {
  flex: none;
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef2f7;
}

#quick-nav .nav-quick .link-ico.placeholder {
  border-radius: 10px;
}

#quick-nav .nav-quick .link-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  word-break: break-all;
}

#quick-nav .nav-quick .quick-link:hover .link-title {
  color: var(--theme-color);
  text-decoration: none;
}

.quick-nav-head {
  align-items: center;
  gap: 0.75rem;
}

.quick-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.qn-btn {
  appearance: none;
  border: 1px solid #d8dee8;
  background: #fff;
  color: #3a3a3a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 7px;
  cursor: pointer;
  line-height: 1.2;
}

.qn-btn:hover { background: #f3f6fa; }

.qn-btn-accent {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
}

.qn-btn-accent:hover { background: #0c6fc2; color: #fff; }

.qn-btn-ghost {
  margin-top: 0.75rem;
  width: 100%;
  background: #f5f7fa;
}

.qn-restore-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
  font-size: 0.86rem;
  color: #5a5a5a;
}

.qn-restore-label input {
  padding: 0.55rem 0.65rem;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qn-restore-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.qn-restore-actions .qn-btn {
  width: 100%;
  text-align: center;
  padding: 0.55rem 0.4rem;
}

.quick-nav-tip {
  margin: -0.15rem 0 0.65rem;
  color: #888;
  font-size: 0.82rem;
  line-height: 1.45;
}

.quick-nav-status {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.86rem;
}

.quick-nav-status.is-ok {
  background: #f0faf4;
  color: #0f7a3f;
  border: 1px solid #b7e4c7;
}

.quick-nav-status.is-err {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #ffcdc7;
}

#quick-nav .nav-quick > li {
  position: relative;
}

#quick-nav .qn-remove {
  display: none;
  position: absolute;
  top: -4px;
  right: -2px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #e5484d;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

#quick-nav.is-editing .qn-remove { display: inline-flex; align-items: center; justify-content: center; }

#quick-nav.is-editing .quick-link { cursor: default; opacity: 0.92; }

.quick-nav-empty {
  grid-column: 1 / -1;
  padding: 1.2rem 0.5rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  list-style: none;
}

body.qn-modal-open { overflow: hidden; }

.qn-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 28, 40, 0.45);
}

.qn-modal[hidden] { display: none !important; }

.qn-dialog {
  width: min(520px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.qn-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eef2f7;
}

.qn-dialog-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.qn-dialog-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0.1rem 0.35rem;
}

.qn-dialog-body { padding: 0.9rem 1rem 1.1rem; }

.qn-hint {
  margin: 0 0 0.7rem;
  color: #666;
  font-size: 0.88rem;
  line-height: 1.5;
}

.qn-site-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow: auto;
  margin-bottom: 1rem;
  padding-right: 0.15rem;
}

.qn-pick-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid #e8edf4;
  background: #fafbfc;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.qn-pick-item:hover:not(:disabled) { background: #f0f5fb; border-color: #cfe0f2; }

.qn-pick-item:disabled { opacity: 0.55; cursor: default; }

.qn-pick-item img,
.qn-pick-ph {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef2f7;
  flex: none;
}

.qn-pick-ph { display: inline-block; }

.qn-pick-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  color: #2c2c2c;
}

.qn-pick-act {
  flex: none;
  font-size: 0.78rem;
  color: var(--theme-color);
  font-weight: 600;
}

.qn-custom-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
  font-size: 0.86rem;
  color: #5a5a5a;
}

.qn-custom-form input {
  padding: 0.55rem 0.65rem;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font: inherit;
}

.qn-code-row {
  display: flex;
  gap: 0.5rem;
}

.qn-code-row input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font: inherit;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-align: center;
  background: #f8fafc;
}

.link-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #8f8f8f;
  min-height: 2.25em;
}

/* ===== News cats ===== */
.news-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.news-cats a {
  text-decoration: none;
  color: #5a5a5a;
  background: #f5f7fa;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
}

.news-cats a:hover,
.news-cats a.active {
  background: var(--theme-color);
  color: #fff;
}

.news-cats .count {
  margin-left: 0.25rem;
  opacity: 0.75;
  font-size: 0.78rem;
}

/* ===== News tabs ===== */
.news-tabs {
  margin-top: 0.25rem;
}

.tab-nav {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.55rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #f7f9fc;
  border-radius: 8px;
}

.tab-nav li { flex: 0 0 auto; }

.tab-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  color: #5a5a5a;
  background: transparent;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.15s;
}

.tab-btn:hover {
  color: var(--theme-color);
  background: #fff;
}

.tab-btn.active {
  color: #fff;
  background: var(--theme-color);
  font-weight: 600;
}

.tab-panel:not(.active) { display: none !important; }
.tab-panel.active { display: block !important; }

.article-card-grid {
  list-style: none;
  margin: 0 -0.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.article-card-grid > li {
  width: 50%;
  padding: 0 0.4rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 750px) {
  .article-card-grid > li { width: 33.333%; }
}

@media (min-width: 1100px) {
  .article-card-grid > li { width: 16.666%; } /* 6 列 */
}

/* 首页上下资讯区：固定一行 6 个 */
.part-article .article-card-grid {
  flex-wrap: nowrap;
  overflow: hidden;
}

.part-article .article-card-grid > li {
  width: 16.666%;
  flex: 0 0 16.666%;
  max-width: 16.666%;
  margin-bottom: 0.5rem;
}

/* 兜底：即使数据多于 6 条也只显示一行 */
.part-article .article-card-grid > li:nth-child(n + 7) {
  display: none;
}

@media (max-width: 749px) {
  .part-article .article-card-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .part-article .article-card-grid > li:nth-child(n + 7) {
    display: list-item;
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 0.9rem;
  background: #fafbfc;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.article-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f7;
  margin-bottom: 0.15rem;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: #fff;
  border-color: #eef2f7;
}

.article-rank {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  color: #fff;
  background: linear-gradient(90deg, var(--theme-color), var(--sub-color));
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}

.article-card-title {
  font-size: 0.9rem;
  font-weight: 650;
  color: #3c3c3c;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .article-card-title {
  color: var(--sub-color);
}

.article-card-desc {
  font-size: 0.75rem;
  color: #8f8f8f;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tab-more {
  margin: 0.25rem 0 0.5rem;
  text-align: right;
  font-size: 0.85rem;
}

.tab-more a {
  color: var(--theme-color);
  text-decoration: none;
}

.tab-more a:hover { color: var(--sub-color); }

.cat-card-grid {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  background: #fafbfc;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.cat-card:hover {
  border-color: rgba(15, 126, 217, 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cat-card-name {
  font-weight: 650;
  color: #3c3c3c;
}

.cat-card:hover .cat-card-name { color: var(--sub-color); }

.cat-card-count {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== Article list ===== */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
}

.article-list > li {
  border-bottom: 1px solid var(--line);
}

.article-list > li:last-child { border-bottom: none; }

.article-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0.35rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  border-radius: 6px;
}

.article-item:hover {
  background: #f7fafc;
}

.article-list-thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}

.article-list-thumb.placeholder {
  display: block;
  background: linear-gradient(135deg, #e8f1fa, #f0f2f5);
}

.article-item-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.article-title {
  font-size: 1.05rem;
  font-weight: 650;
  color: #2c2c2c;
  line-height: 1.4;
}

.article-item:hover .article-title {
  color: var(--theme-color);
}

.article-desc {
  font-size: 0.86rem;
  color: #8a8a8a;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: #a0a0a0;
}

.article-meta .article-cat {
  color: var(--theme-color);
}

/* 资讯页：左侧分类 + 右侧列表 */
.news-layout .news-side {
  flex: 0 0 180px;
  width: 180px;
}

.side-group {
  margin-top: 0.35rem;
}

.side-group + .side-group {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.side-group-title {
  display: block;
  padding: 0.4rem 1rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-color);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.side-group-title:hover {
  color: var(--sub-color);
}

.side-group .side-menu {
  padding-top: 0;
}

.news-cats-mobile {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
}

.news-cats-mobile a {
  flex: 0 0 auto;
  text-decoration: none;
  color: #5a5a5a;
  background: #f5f7fa;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.news-cats-mobile a:hover,
.news-cats-mobile a.active {
  background: var(--theme-color);
  color: #fff;
}

@media (min-width: 900px) {
  .news-layout .side-nav { display: block; }
  .news-cats-mobile { display: none; }
}

@media (max-width: 749px) {
  .article-list-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 60px;
  }

  .article-title { font-size: 0.95rem; }
}

.show-head {
  display: block;
}

.show-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f7;
}

.show-head-text { min-width: 0; }

.article-cover {
  margin: 1.1rem 0 0;
  padding: 0;
  text-align: center;
}

.article-cover img {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
  vertical-align: middle;
  border-radius: 8px;
}

.show-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.75rem 0;
}

/* ===== Breadcrumb / show ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--theme-color);
  text-decoration: none;
}

.show-article {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.show-head h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #111;
}

.show-desc {
  margin: 0.7rem 0 0;
  color: #666;
  font-size: 0.95rem;
}

.show-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: #999;
}

.show-traffic {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.9rem 0 0;
}

.show-traffic > span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 5.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: #f5f7fa;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: #333;
}

.show-traffic em {
  font-style: normal;
  color: #888;
  font-size: 0.8rem;
}

.show-traffic strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--theme-color);
  font-variant-numeric: tabular-nums;
}

.show-traffic .traffic-out strong {
  color: #c45c26;
}

.traffic-board {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.traffic-board-head {
  margin-bottom: 1rem;
}

.traffic-board-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
}

.traffic-board-head p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #888;
}

.traffic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.traffic-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
}

.traffic-card-icon {
  flex-shrink: 0;
  line-height: 0;
}

.traffic-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.traffic-card-label {
  font-size: 0.78rem;
  color: #888;
}

.traffic-card-num {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1a2330;
  line-height: 1.2;
}

.traffic-card-in .traffic-card-num { color: var(--theme-color, #0d7a6f); }
.traffic-card-out .traffic-card-num { color: #c45c26; }

.traffic-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: #999;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .traffic-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .traffic-cards {
    grid-template-columns: 1fr 1fr;
  }
  .traffic-card {
    padding: 0.7rem 0.75rem;
    gap: 0.55rem;
  }
  .traffic-card-num {
    font-size: 1.15rem;
  }
}

.show-content {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  line-height: 1.8;
  color: #333;
  font-size: 0.98rem;
}

.show-content img { max-width: 100%; height: auto; }
.show-content p { margin: 0 0 1em; }

.show-actions {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.btn-visit {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  background: linear-gradient(90deg, var(--theme-color), var(--sub-color));
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 126, 217, 0.25);
}

.btn-visit:hover {
  filter: brightness(1.05);
}

.show-target {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}

.back-home { margin-top: 1.25rem; }
.back-home a { color: var(--theme-color); text-decoration: none; }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0 0.5rem;
  padding-top: 0.75rem;
}

.pagination a {
  color: var(--theme-color);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  background: #f5f7fa;
}

.pagination a:hover {
  background: var(--theme-color);
  color: #fff;
}

.page-cur { color: var(--muted); font-size: 0.9rem; }

/* ===== Footer ===== */
.site-footer {
  padding: 1.5rem 0 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid #e6ebf1;
  background: #fff;
}

.site-footer p { margin: 0.2rem 0; }
.site-footer a { color: var(--theme-color); }

.empty-hint, .empty-state {
  color: var(--muted);
  padding: 1.25rem 0.25rem;
}

/* ===== Back to top ===== */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 250;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--theme-color);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 126, 217, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.back-top[hidden] {
  display: none !important;
}

.back-top:hover {
  background: #0c6fc2;
  transform: translateY(-2px);
}

.back-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===== 404 页面 ===== */
.notfound-page {
  min-height: 100vh;
}

.notfound-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 3.5rem;
  min-height: calc(100vh - 180px);
}

.notfound-card {
  width: min(520px, 100%);
  text-align: center;
  padding: 2.2rem 1.6rem 2rem;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.notfound-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-color), var(--sub-color));
}

.notfound-code {
  margin: 0 0 0.35rem;
  font-size: clamp(4rem, 14vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #0f7ed9 20%, #ff5f2e 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound-card h1 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  color: var(--ink);
}

.notfound-desc {
  margin: 0 auto 1rem;
  max-width: 28em;
  color: #6b7785;
  font-size: 0.95rem;
  line-height: 1.65;
}

.notfound-countdown {
  margin: 0 0 1.35rem;
  color: var(--theme-color);
  font-size: 0.95rem;
  font-weight: 650;
}

.notfound-countdown span {
  display: inline-block;
  min-width: 1.2em;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .notfound-main {
    min-height: auto;
    padding-top: 2rem;
  }
  .notfound-card {
    padding: 1.75rem 1.15rem 1.6rem;
  }
}

/* ===== 左下角快捷：联系我们 + 我要入驻 ===== */
.float-stack {
  position: fixed;
  left: 1.25rem;
  bottom: 1.5rem;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.contact-float,
.join-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: none;
  color: #fff !important;
  text-decoration: none !important;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.contact-float {
  background: var(--theme-color);
  box-shadow: 0 6px 18px rgba(15, 126, 217, 0.35);
}

.contact-float:hover {
  background: var(--theme-dark);
  transform: translateY(-2px);
  color: #fff !important;
}

.join-float {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  background: var(--sub-color);
  box-shadow: 0 6px 18px rgba(255, 95, 46, 0.35);
}

.join-float:hover {
  background: #e85120;
  transform: translateY(-2px);
  color: #fff !important;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 36, 0.55);
}

.contact-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  padding: 1.35rem 1.25rem 1.4rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.contact-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #8a939c;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-close:hover {
  color: #333;
}

.contact-modal-dialog h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.contact-modal-tip {
  margin: 0 0 0.95rem;
  color: #6b7785;
  font-size: 0.9rem;
}

.contact-modal-qr {
  display: flex;
  justify-content: center;
}

.contact-modal-qr img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

html.contact-modal-open {
  overflow: hidden;
}

.join-page {
  max-width: 720px;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.join-rules {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.35rem 1.25rem;
  margin-bottom: 1.15rem;
  border-left: 4px solid var(--theme-color);
}

.join-rules h2 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: var(--ink);
  font-weight: 700;
}

.join-rules-lead {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.65;
  font-size: 0.95rem;
}

.join-rules-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #4a5560;
  line-height: 1.75;
  font-size: 0.92rem;
}

.join-rules-list li {
  margin-bottom: 0.45rem;
}

.join-rules-list li:last-child {
  margin-bottom: 0;
}

.join-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #ffcdc7;
}

.join-alert-ok {
  background: #f0faf4;
  color: #0f7a3f;
  border-color: #b7e4c7;
}

.join-lookup {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.35rem 1.15rem;
  margin-bottom: 1rem;
}

.join-lookup-title {
  margin: 0 0 0.65rem;
  font-weight: 650;
  color: #2c2c2c;
  font-size: 0.95rem;
}

.join-lookup-row {
  display: flex;
  gap: 0.55rem;
}

.join-lookup-row input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.join-code-hint {
  margin: -0.35rem 0 1.1rem;
  color: #666;
  font-size: 0.88rem;
  line-height: 1.5;
}

.join-logo-field {
  margin-bottom: 0.95rem;
}

.join-logo-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #5a5a5a;
}

.join-logo-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.join-logo-preview {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.join-logo-preview[hidden] { display: none; }

.join-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.join-logo-input {
  flex: 1;
  min-width: 0;
}

.join-logo-input input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.45rem 0;
  font: inherit;
  color: #2c2c2c;
}

.join-logo-hint {
  margin: 0.25rem 0 0;
  color: #888;
  font-size: 0.82rem;
  line-height: 1.45;
}

.join-result-logo {
  width: 72px;
  height: 72px;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.join-result-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.join-friendlink {
  margin: 1.35rem 0 1.1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--radius);
  background: #f7fbff;
  border: 1px solid #d7e8f8;
}

.join-friendlink h2 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--ink);
}

.join-friendlink-lead {
  margin: 0 0 1rem;
  color: #5a6570;
  font-size: 0.92rem;
  line-height: 1.65;
}

.join-friendlink-card {
  padding: 0.95rem 1rem;
  margin-bottom: 0.95rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e6eef6;
}

.join-friendlink-card > p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  font-size: 0.92rem;
  color: var(--ink);
  word-break: break-all;
}

.join-friendlink-k {
  display: block;
  margin-bottom: 0.2rem;
  color: #8a939c;
  font-size: 0.84rem;
}

.join-friendlink-logo-item {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #e8eef4;
}

.join-friendlink-logo-item .join-friendlink-k {
  margin-bottom: 0.45rem;
}

.join-fl-img {
  display: block;
  box-sizing: border-box;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.45rem;
}

.join-fl-img-square {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
}

.join-fl-img-wide {
  width: 160px !important;
  height: 48px !important;
  max-width: 160px !important;
  max-height: 48px !important;
}

.join-friendlink-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem !important;
  color: var(--theme-color) !important;
  word-break: break-all;
}

.join-friendlink-actions {
  margin-top: 0.85rem;
}

.join-form,
.join-result {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.4rem;
}

.join-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
  font-size: 0.9rem;
  color: #5a5a5a;
}

.join-form input,
.join-form select,
.join-form textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: #2c2c2c;
  background: #fff;
}

.join-form textarea { resize: vertical; }

.join-addon {
  margin-top: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.4rem;
}

.join-addon h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.join-addon h3 {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
}

.join-addon-status {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.join-addon-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.join-addon-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
}

.join-addon-name { font-weight: 600; color: #2c2c2c; }
.join-addon-expire { color: #6b7785; font-size: 0.9rem; }
.join-addon-empty { margin: 0; color: #888; font-size: 0.92rem; }
.join-addon-price { margin: 0 0 0.85rem; color: #5a5a5a; font-size: 0.92rem; }
.join-addon-manage { margin: 0.85rem 0 0; }

/* 增值服务商店卡片 */
.addon-shop { margin-top: 0.15rem; }

.addon-active {
  margin-bottom: 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0faf7, #f5f9fc);
  border: 1px solid #d9ebe6;
}

.addon-active-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: #5a6a72;
  letter-spacing: 0.04em;
}

.addon-active-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.addon-active-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.92rem;
}

.addon-active-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #0d7a6f;
  background: rgba(13, 122, 111, 0.12);
}

.addon-active-name { font-weight: 650; color: #2c2c2c; }
.addon-active-expire { color: #7a8792; font-size: 0.86rem; }

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.addon-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid #e4ebf1;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 40, 60, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.addon-card:hover {
  border-color: #c8d8e2;
  box-shadow: 0 8px 24px rgba(20, 50, 70, 0.07);
}

.addon-card.is-owned {
  border-color: #a8d5cb;
  background: linear-gradient(180deg, #f7fcfa 0%, #fff 42%);
}

.addon-card-soon {
  border-style: dashed;
  background: #fafbfc;
  opacity: 0.92;
}

.addon-card-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: #d5dde5;
}

.addon-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.addon-card-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.addon-card-icon-badge {
  color: #c45c26;
  background: #fff3eb;
}

.addon-card-icon-article {
  color: #2f7d9e;
  background: #eaf4fa;
}

.addon-card-icon-soon {
  color: #8a939c;
  background: #eef1f4;
}

.addon-card-heading {
  flex: 1;
  min-width: 0;
}

.addon-card-heading h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.addon-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #0d7a6f;
  background: rgba(13, 122, 111, 0.12);
}

.addon-card-badge-muted {
  color: #7a8792;
  background: #eef1f4;
}

.addon-card-badge-soon {
  color: #8a6a2a;
  background: #f7efd9;
}

.addon-card-desc {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5a6570;
}

.addon-card-points {
  margin: 0 0 1rem;
  padding: 0 0 0 1.05rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #6b7785;
}

.addon-card-points li { margin: 0.1rem 0; }

.addon-card-price {
  margin-top: auto;
  padding: 0.85rem 0 0.95rem;
  border-top: 1px dashed #e6edf3;
}

.addon-price-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.1rem 0.2rem;
  color: #1f2a32;
}

.addon-price-yen {
  font-size: 1rem;
  font-weight: 700;
  color: #c45c26;
}

.addon-price-main strong {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #c45c26;
  line-height: 1;
}

.addon-price-unit {
  margin-left: 0.25rem;
  font-size: 0.88rem;
  color: #7a8792;
  font-weight: 500;
}

.addon-price-off {
  font-size: 1.05rem !important;
  font-weight: 650;
  color: #8a939c !important;
}

.addon-price-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #9aa3ab;
}

.addon-card-buy {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.addon-buy-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.addon-buy-label {
  font-size: 0.78rem;
  color: #7a8792;
  font-weight: 600;
}

.addon-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.addon-chip {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  margin: 0 !important;
  cursor: pointer;
}

.addon-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.addon-chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #dbe3ea;
  background: #fff;
  font-size: 0.86rem;
  color: #3a4550;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.addon-chip input:checked + span {
  border-color: #0d7a6f;
  background: rgba(13, 122, 111, 0.08);
  color: #0d7a6f;
  font-weight: 650;
}

.addon-chip:hover span {
  border-color: #b7c6d0;
}

.addon-months {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  color: #2c2c2c;
  background: #fff;
}

.addon-total {
  margin: 0;
  font-size: 0.92rem;
  color: #5a5a5a;
}

.addon-total-price {
  color: #e11d48;
  font-size: 1.15rem;
}

.addon-buy-btn {
  width: 100%;
  margin-top: 0.15rem;
  justify-content: center;
}

.addon-card-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.addon-card-hint a {
  color: var(--theme-color);
  text-decoration: none;
  font-weight: 600;
}

.addon-card-hint a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .addon-grid {
    grid-template-columns: 1fr;
  }
}

/* 个人中心 */
.join-center-page .page-title { display: none; }

.join-center {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.join-center-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem 1.1rem;
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(135deg, rgba(13, 122, 111, 0.08), rgba(59, 130, 196, 0.06)),
    #f7fafb;
  border-bottom: 1px solid var(--line);
}

.join-center-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d7a6f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.join-center-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join-center-meta {
  flex: 1 1 180px;
  min-width: 0;
}

.join-center-meta h1 {
  margin: 0 0 0.3rem;
  font-size: 1.28rem;
  line-height: 1.3;
  word-break: break-word;
}

.join-center-sub {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.88rem;
  color: #6b7785;
}

.join-center-sub a {
  color: var(--theme-color);
  text-decoration: none;
}

.join-center-sub a:hover { text-decoration: underline; }

.join-center-exit {
  margin-left: auto;
  text-decoration: none;
}

.join-center-tabs {
  display: flex;
  gap: 0;
  padding: 0 0.65rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.join-center-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.9rem 1.05rem;
  margin: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7785;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}

.join-center-tab:hover { color: #2c2c2c; }

.join-center-tab.is-active {
  color: var(--theme-color);
}

.join-center-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: var(--theme-color);
}

.join-center-panels {
  padding: 1.15rem 1.25rem 1.4rem;
}

.join-center-panel[hidden] { display: none !important; }

.join-center-panel-head {
  margin-bottom: 1rem;
}

.join-center-panel-head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.join-center-panel-head p {
  margin: 0;
  font-size: 0.88rem;
  color: #8a8a8a;
}

.join-form-plain,
.join-addon-plain {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.join-center .join-alert {
  margin: 0 1.25rem 0.85rem;
}

.join-center-locked {
  padding: 1.5rem 1rem;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.join-center-locked p {
  margin: 0 0 0.95rem;
  color: #6b7785;
}

@media (max-width: 640px) {
  .join-center-head {
    padding: 1.05rem 1rem;
  }
  .join-center-exit {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
  .join-center-tabs {
    padding: 0 0.35rem;
  }
  .join-center-tab {
    padding: 0.85rem 0.8rem;
    font-size: 0.9rem;
  }
  .join-center-panels {
    padding: 1rem;
  }
  .join-center .join-alert {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

.join-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem !important;
  margin-bottom: 1rem !important;
  cursor: pointer;
}

.join-article-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.join-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.join-article-list > li {
  border-bottom: 1px solid var(--line);
}

.join-article-list > li:last-child { border-bottom: none; }

.join-article-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
}

.join-article-title {
  font-weight: 650;
  color: #2c2c2c;
  text-decoration: none;
  line-height: 1.4;
}

.join-article-title:hover { color: var(--theme-color); }

.join-article-meta {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #8a8a8a;
}

.join-article-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.join-article-actions a {
  color: var(--theme-color);
  text-decoration: none;
}

.join-article-actions form { margin: 0; }

.join-article-del {
  border: none;
  background: none;
  padding: 0;
  color: #b44a4a;
  cursor: pointer;
  font: inherit;
}

.link-articles {
  margin: 1.35rem 0 0;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.link-articles-head {
  margin-bottom: 0.65rem;
}

.link-articles-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.link-articles-head p {
  margin: 0;
  font-size: 0.86rem;
  color: #8a8a8a;
}

.link-articles-empty {
  margin: 0.5rem 0 0;
  color: #999;
  font-size: 0.92rem;
}

.link-articles .article-list {
  margin-top: 0.35rem;
}

.join-addon-options {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.85rem 0.85rem;
  margin: 0 0 0.95rem;
}

.join-addon-options legend {
  padding: 0 0.35rem;
  font-size: 0.88rem;
  color: #5a5a5a;
}

.join-radio {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem !important;
  margin: 0.35rem 1rem 0.35rem 0 !important;
  cursor: pointer;
  color: #2c2c2c;
}

.pay-box {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.pay-summary {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: #5a5a5a;
}

.pay-summary p { margin: 0.35rem 0; }
.pay-amount { font-size: 1.05rem; color: #2c2c2c; }
.pay-amount strong { color: #e11d48; font-size: 1.25rem; }
.pay-qr-price { color: #b45309; }

.pay-qr {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}

.pay-qr img {
  width: 240px;
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pay-qr-text {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.8rem;
}

.pay-expire,
.pay-status {
  margin: 0.45rem 0;
  color: #6b7785;
  font-size: 0.9rem;
}

.pay-status.ok { color: #067647; font-weight: 600; }

.mono {
  font-family: ui-monospace, Consolas, monospace;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-join,
.btn-join-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-join {
  background: var(--theme-color);
  color: #fff !important;
}

.btn-join:hover { background: #0c6fc2; color: #fff !important; }

.btn-join-secondary {
  background: #f0f3f7;
  color: #3c3c3c !important;
}

.btn-join-secondary:hover { background: #e5ebf2; }

.join-result-label {
  margin: 0 0 0.55rem;
  font-weight: 650;
  color: #2c2c2c;
}

.join-link-box {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.join-link-box input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #f8fafc;
}

.join-tips {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  color: #666;
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ===== Mobile bottom nav ===== */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; }

  .back-top {
    right: 0.9rem;
    bottom: 4.75rem;
    width: 40px;
    height: 40px;
  }

  .float-stack {
    left: 0.9rem;
    bottom: 4.75rem;
  }

  .contact-float,
  .join-float {
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }

  .join-link-box {
    flex-direction: column;
  }

  .header-tagline { display: none; }

  .brand-text { font-size: 1.15rem; }

  .top-nav > a,
  .top-nav .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.88rem;
  }

  .link-grid > li { width: 50%; }
  .home-page .category .link-grid > li { display: list-item; }
  .home-page .category .link-grid > li:nth-child(n+7) { display: none; } /* 手机 2 列 × 3 行 */
  #quick-nav .nav-quick {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  #quick-nav .nav-quick > li { width: auto !important; }

  .quick-nav-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-nav-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .qn-btn { font-size: 0.75rem; padding: 0.32rem 0.55rem; }

  .category, .news-block {
    padding: 0.85rem 0.75rem 0.65rem;
    border-radius: 8px;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 58px;
    background: linear-gradient(90deg, var(--theme-color), var(--sub-color));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  }

  .mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.75rem;
  }

  .mobile-nav a.active,
  .mobile-nav a:hover {
    color: #fff;
  }

  .mobile-nav .ico {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.25);
  }
}

/* 正文双模式编辑器：可视化 / HTML */
.join-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #5a5a5a;
}

.join-field-label {
  font-weight: 500;
  color: #3a3a3a;
}

.content-editor {
  display: block;
  width: 100%;
}

.content-editor-tabs {
  display: inline-flex;
  gap: 0;
  margin: 0.35rem 0 0;
  border: 1px solid var(--line, #e3e8ee);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #f3f5f8;
}

.content-editor-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  color: #6b7785;
  cursor: pointer;
}

.content-editor-tab.is-active {
  background: #fff;
  color: #1a2330;
  font-weight: 600;
}

.content-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line, #e3e8ee);
  border-bottom: none;
  background: #f8fafc;
}

.content-editor-sep {
  width: 1px;
  height: 1.1rem;
  background: #d5dde7;
  margin: 0 0.15rem;
}

.content-editor-btn {
  appearance: none;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 6px;
  padding: 0.28rem 0.5rem;
  font: inherit;
  font-size: 0.78rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.2;
}

.content-editor-btn:hover {
  border-color: #cbd5e1;
  background: #eef2f7;
}

.content-editor-visual {
  min-height: 280px;
  max-height: 640px;
  overflow: auto;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line, #e3e8ee);
  border-radius: 0 8px 8px 8px;
  background: #fff;
  color: #1a2330;
  font: inherit;
  line-height: 1.7;
  outline: none;
}

.content-editor-visual:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(13, 122, 111, 0.12);
}

.content-editor-visual p { margin: 0 0 0.75em; }
.content-editor-visual h2,
.content-editor-visual h3 { margin: 1em 0 0.5em; line-height: 1.35; }
.content-editor-visual ul,
.content-editor-visual ol { margin: 0 0 0.75em; padding-left: 1.4em; }
.content-editor-visual img { max-width: 100%; height: auto; }

.join-form .content-editor-html,
.content-editor-html {
  display: none;
  width: 100%;
  min-height: 280px;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line, #e3e8ee);
  border-radius: 0 8px 8px 8px;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  resize: vertical;
  background: #fff;
}

.join-form .content-editor-html.is-active,
.content-editor-html.is-active {
  display: block;
}

.content-editor-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #6b7785;
}
