*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-card: #ffffff;

  --text-main: #18181b;
  --text-sub: #52525b;
  --text-muted: #71717a;

  --border: #f1f5f9;
  --border-strong: #e4e4e7;

  --brand: #ff385c;
  --brand-dark: #e11d48;
  --brand-soft: #fff1f2;

  --success: #059669;
  --success-soft: #ecfdf5;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.16);

  --container: 1180px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.container {
  width: min(100% - 28px, var(--container));
  margin-inline: auto;
}

/* ========================================
   HEADER — Glassmorphism
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.04em;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--brand); }

.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff385c, #fb7185);
  box-shadow: 0 10px 24px rgba(255, 56, 92, 0.18);
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list > li { position: relative; }
.nav-list a {
  display: block;
  padding: 9px 13px;
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 14px;
  transition: 0.2s ease;
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

/* Nav CTA */
.nav-list a.nav-primary {
  color: #fff;
  background: var(--brand);
  border-radius: 99px;
  padding-inline: 18px;
  font-weight: 700;
}
.nav-list a.nav-primary:hover {
  color: #fff;
  background: var(--brand-dark);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 12px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(4px);
}
.dropdown-menu a {
  color: var(--text-sub);
  padding: 10px 14px;
  font-size: 0.875rem;
  border-radius: 14px;
}
.dropdown-menu a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Search */
.search-form { position: relative; }
.search-form input {
  min-height: 40px;
  padding: 0 14px 0 36px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--bg-soft);
  font-size: 0.85rem;
  outline: none;
  width: 180px;
  transition: 0.2s ease;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form input:focus {
  border-color: var(--brand);
  background: #fff;
  width: 240px;
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.08);
}
.search-form .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}

/* User Buttons */
.btn-user {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: 0.2s ease;
  border: 1.5px solid var(--border-strong);
  background: #fff; color: var(--text-sub);
}
.btn-user:hover { border-color: var(--brand); color: var(--brand); }
.btn-vip {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn-vip:hover { background: var(--brand-dark); color: #fff; }

/* Mobile Toggle */
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px; height: 2px;
  background: var(--text-main);
  border-radius: 99px;
}

/* ========================================
   MOBILE NAV
   ======================================== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute; top: 64px; left: 14px; right: 14px;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    z-index: 60;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px 14px; font-size: 0.95rem; border-radius: 14px; }
  .nav-dropdown .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: var(--bg-soft);
    border: none; border-radius: 12px;
    margin: 4px 0 4px 12px; min-width: auto; padding: 8px;
  }
  .dropdown-menu a { color: var(--text-sub); }
  .header-actions .search-form input { width: 140px; }
  .header-actions .search-form input:focus { width: 180px; }
}

/* ========================================
   HERO
   ======================================== */
.note-hero {
  padding: 34px 0 22px;
}
.hero__badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #ffe4e6;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
}
.hero__badge::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.12);
}
.hero__title {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: clamp(36px, 10vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.075em;
}
.hero__title span { color: var(--brand); }
.hero__desc {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* Search Panel */
.search-panel {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.search-panel__input {
  min-height: 48px;
  padding: 0 14px;
  border: none; outline: none;
  background: transparent;
  font-size: 0.92rem;
}
.search-panel__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0 16px;
  color: #fff; font-weight: 800;
  border: 0; border-radius: 15px;
  background: var(--brand);
  transition: 0.2s ease;
}
.search-panel__button:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 56, 92, 0.22);
}

@media (min-width: 640px) {
  .search-panel {
    grid-template-columns: 1fr auto;
    border-radius: 99px;
  }
  .search-panel__button {
    min-width: 108px;
    border-radius: 99px;
  }
}

/* ========================================
   TOPIC BAR
   ======================================== */
.topic-bar {
  padding: 14px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topic-bar::-webkit-scrollbar { display: none; }
.topic-bar__inner {
  display: flex;
  gap: 10px;
  min-width: max-content;
}
.topic-chip {
  padding: 9px 14px;
  color: var(--text-sub);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  font-size: 14px;
  transition: 0.2s ease;
}
.topic-chip:hover,
.topic-chip.is-active {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #fecdd3;
}

/* ========================================
   SECTION
   ======================================== */
.section {
  padding: 30px 0;
}
.section-heading {
  margin-bottom: 18px;
}
.section-heading__title {
  margin: 0;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.section-heading__desc {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================
   MASONRY FEED — 瀑布流
   ======================================== */
.feed {
  column-count: 1;
  column-gap: 14px;
}

.note-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  transition: 0.22s ease;
}
.note-card:hover {
  transform: translateY(-4px);
  border-color: #fecdd3;
  box-shadow: var(--shadow-md);
}

.note-card__cover {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.note-card__cover img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: 0.28s ease;
}
.note-card:nth-child(2n) .note-card__cover img { aspect-ratio: 1 / 1; }
.note-card:nth-child(3n) .note-card__cover img { aspect-ratio: 4 / 3; }
.note-card:hover .note-card__cover img { transform: scale(1.035); }

.note-card__empty-cover {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  color: var(--brand);
  font-size: 2rem;
  font-weight: 900;
}

.note-card__category {
  position: absolute;
  left: 10px; top: 10px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(24, 24, 27, 0.58);
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

.note-card__body {
  padding: 12px;
}
.note-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card__summary {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.note-card__tag {
  color: var(--brand);
  font-size: 12px;
}
.note-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.author__avatar {
  width: 25px; height: 25px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, #ff385c, #fb7185);
  border-radius: 50%;
}
.author__name {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.note-card__stats {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* ========================================
   PAGE HERO (列表/搜索页)
   ======================================== */
.page-hero {
  padding: 28px 0 12px;
}
.breadcrumb {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { text-decoration: underline; }
.page-title {
  margin: 0;
  font-size: clamp(30px, 8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}
.page-description {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* Filter Card */
.filter-card {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.filter-card__input {
  min-height: 44px;
  padding: 0 14px;
  border: none; outline: none;
  background: transparent;
  font-size: 0.9rem;
}
.filter-card__select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 0.9rem;
  color: var(--text-sub);
  outline: none;
}
@media (min-width: 640px) {
  .filter-card {
    grid-template-columns: 1fr 200px auto;
    border-radius: 99px;
  }
  .filter-card__select { border-radius: 99px; }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.filter-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
}
.filter-option {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  border: 1px solid var(--border-strong);
  transition: 0.2s ease;
}
.filter-option:hover,
.filter-option.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.filter-stats {
  font-size: 0.85rem;
  color: var(--text-sub);
}
.filter-stats strong { color: var(--brand); }

/* Category Header */
.category-header { margin: 20px 0 24px; }
.category-title {
  font-size: clamp(30px, 8vw, 52px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.06em;
  line-height: 1.08;
  margin-bottom: 8px;
}
.category-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 36px 0;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 12px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-sub);
  background: #fff;
  transition: 0.2s ease;
}
.pagination .current {
  background: var(--brand); color: #fff;
  border-color: var(--brand); font-weight: 700;
}
.pagination a:hover {
  border-color: var(--brand); color: var(--brand);
  background: var(--brand-soft);
}

/* ========================================
   RESOURCE GRID (兼容旧写法)
   ======================================== */
.resource-grid {
  column-count: 1;
  column-gap: 14px;
}
.resource-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  transition: 0.22s ease;
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: #fecdd3;
  box-shadow: var(--shadow-md);
}
.resource-card .card-thumb {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; background: var(--bg-soft);
}
.card-thumb-empty {
  display: block; width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  position: relative;
}
.resource-card .card-body { padding: 12px; }
.resource-card .card-title {
  font-size: 0.9rem; font-weight: 600; line-height: 1.4;
  color: var(--text-main);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em;
  margin-bottom: 8px;
}
.resource-card .card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-muted);
}
.card-free {
  background: var(--brand-soft); color: var(--brand);
  padding: 1px 8px; border-radius: 10px;
  font-size: 0.7rem; font-weight: 600;
}

/* ========================================
   PRODUCT DETAIL
   ======================================== */
.crumb { padding: 28px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.crumb a { color: var(--brand); }
.crumb a:hover { text-decoration: underline; }
.crumb-divider { margin: 0 8px; opacity: 0.5; }
.crumb-current { color: var(--text-main); font-weight: 600; }

.section-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  margin: 24px 0;
  align-items: start;
}
.section-main {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.post-title {
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.065em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.meta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; background: var(--bg-soft); border-radius: 8px;
  font-size: 0.82rem; color: var(--text-sub); white-space: nowrap;
  border: 1px solid var(--border);
}
.safety-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 99px;
  font-size: 0.8rem; font-weight: 800;
  background: var(--success-soft); color: var(--success);
  border: 1px solid #bbf7d0;
  margin-left: auto;
}
/* Download Zone */
.dl-zone {
  margin-bottom: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
}
.dl-zone-title {
  padding: 14px 22px;
  background: linear-gradient(135deg, #ff385c, #fb7185);
  color: #fff; font-weight: 700; font-size: 0.92rem;
  display: flex; align-items: center; gap: 8px;
}
.dl-zone-title::before {
  content: '';
  display: inline-block; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.dl-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: var(--bg-soft); }

.dl-tag {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: #fff;
  flex-shrink: 0; letter-spacing: 0.04em;
}
.dl-baidu .dl-tag { background: #dc2626; }
.dl-quark .dl-tag { background: #f97316; }
.dl-direct .dl-tag { background: var(--brand); }

.dl-info { flex: 1; min-width: 0; }
.dl-name { display: block; font-weight: 700; font-size: 0.9rem; color: var(--text-main); margin-bottom: 4px; }
.dl-link {
  display: block; font-size: 0.75rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 6px;
}
.dl-codes { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-code-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-sub);
}
.dl-code-item b { font-weight: 700; color: var(--text-main); letter-spacing: 0.03em; }
.btn-copy {
  padding: 2px 10px; font-size: 0.72rem; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: #fff; color: var(--text-sub); cursor: pointer;
  transition: all 0.15s ease;
}
.btn-copy:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-copy.copied { background: var(--success-soft); border-color: #86efac; color: var(--success); }

.dl-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 14px;
  font-size: 0.85rem; font-weight: 700; color: #fff;
  background: var(--brand);
  flex-shrink: 0; white-space: nowrap;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 56, 92, 0.2);
}
.dl-action:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(255, 56, 92, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

.dl-empty {
  text-align: center; padding: 36px 20px;
  color: var(--text-muted);
}
.dl-empty div { font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; color: var(--text-sub); }
.dl-empty span { font-size: 0.76rem; }

/* Post Content */
.post-content {
  line-height: 1.9; font-size: 0.95rem; color: var(--text-sub);
  margin-bottom: 36px;
}
.post-content img { max-width: 100%; border-radius: 16px; margin: 24px 0; box-shadow: var(--shadow-sm); }
.post-content h2 { font-size: 1.3rem; margin: 36px 0 14px; font-weight: 700; letter-spacing: -0.03em; }
.post-content h3 { font-size: 1.1rem; margin: 28px 0 12px; font-weight: 700; }
.post-content h4 { margin: 24px 0 10px; font-weight: 700; }
.post-content p { margin-bottom: 16px; }
.post-content pre {
  background: #18181b; color: #e4e4e7;
  padding: 18px 22px; border-radius: 16px;
  overflow-x: auto; font-size: 0.85rem;
  margin: 20px 0; line-height: 1.6;
}
.post-content code { font-family: "SF Mono","Fira Code","Consolas",monospace; font-size: 0.88em; }

/* Info Grid */
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 28px;
}
.info-cell {
  padding: 14px 18px; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.info-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.info-val { font-size: 0.88rem; font-weight: 600; color: var(--text-main); }

/* Tags */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.post-tag {
  display: inline-block; padding: 6px 16px;
  border-radius: 99px; background: var(--bg-soft);
  border: 1px solid var(--border); color: var(--text-sub);
  font-size: 0.82rem; font-weight: 600;
  transition: 0.2s ease;
}
.post-tag:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Section Heading */
.section-heading {
  margin-bottom: 16px;
  font-size: 1.08rem; font-weight: 700;
  color: var(--text-main);
}
.section-heading--related {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 20px;
  color: var(--text-main);
}

/* FAQ */
.faq-group { margin-bottom: 36px; }
.faq-item {
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 14px 20px; cursor: pointer;
  font-weight: 600; font-size: 0.88rem; color: var(--text-main);
  background: var(--bg-soft); user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.15s ease;
}
.faq-item summary::after { content: '+'; font-size: 1.1rem; color: var(--text-muted); transition: transform 0.2s ease; }
.faq-item[open] summary::after { content: '−'; color: var(--brand); }
.faq-item summary:hover { color: var(--brand); }
.faq-item p {
  padding: 12px 20px 18px; margin: 0;
  font-size: 0.86rem; color: var(--text-sub); line-height: 1.7;
}

/* Copyright */
.copyright-box {
  margin: 36px 0 24px;
  border: 1px solid #fecdd3;
  border-radius: 20px;
  background: var(--brand-soft);
  overflow: hidden;
}
.copyright-title {
  padding: 12px 20px;
  font-weight: 700; font-size: 0.88rem;
  background: #ffe4e6; color: var(--brand-dark);
  border-bottom: 1px solid #fecdd3;
}
.copyright-list { padding: 16px 20px; }
.copyright-list li {
  padding: 6px 0; font-size: 0.82rem; color: var(--text-sub); line-height: 1.7;
}
.copyright-list li::before {
  content: '•'; color: var(--brand); font-weight: 700;
  display: inline-block; width: 14px; margin-right: 2px;
}
.copyright-list strong { color: var(--brand-dark); }

/* Prev / Next */
.post-nav { display: flex; gap: 16px; }
.post-nav a {
  flex: 1; padding: 18px 22px;
  border: 1px solid var(--border); border-radius: 16px;
  display: flex; flex-direction: column; gap: 4px;
  background: #fff;
  transition: 0.2s ease;
}
.post-nav a:hover {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 4px 16px rgba(255, 56, 92, 0.06);
}
.post-nav a.disabled { opacity: 0.3; pointer-events: none; }
.nav-hint { font-size: 0.73rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-title {
  font-size: 0.9rem; font-weight: 600; color: var(--text-main);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.post-nav a:hover .nav-title { color: var(--brand); }

/* ========================================
   SIDEBAR
   ======================================== */
.section-side {
  display: flex; flex-direction: column; gap: 18px;
}
.side-card {
  background: #fff; border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.side-card-head {
  padding: 15px 20px; font-weight: 700; font-size: 0.88rem;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-main); border-bottom: 1px solid var(--border);
}
.side-card-head svg { flex-shrink: 0; color: var(--text-muted); }

.side-rank { padding: 4px 0; }
.side-rank-item a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; transition: background 0.12s ease;
  color: var(--text-sub); font-size: 0.83rem;
}
.side-rank-item a:hover { background: var(--brand-soft); color: var(--brand); }
.side-rank-no {
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
  background: var(--bg-soft); color: var(--text-muted);
  flex-shrink: 0;
}
.side-rank-item.side-rank-1 .side-rank-no { background: #fef3c7; color: #b45309; }
.side-rank-item.side-rank-2 .side-rank-no { background: #f1f5f9; color: #64748b; }
.side-rank-item.side-rank-3 .side-rank-no { background: #fee2e2; color: #b91c1c; }
.side-rank-no-sm { width: 20px; height: 20px; font-size: 0.68rem; }
.side-rank-txt {
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-rank-num {
  font-size: 0.7rem; color: var(--text-muted);
  flex-shrink: 0; min-width: 28px; text-align: right;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
}
.tag-cloud-item {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: 0.2s ease;
  white-space: nowrap;
}
.tag-cloud-item:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 56, 92, 0.18);
}
.tag-cloud-item { font-size: calc(0.82rem * var(--tag-size, 1)); }

/* ========================================
   ANNOUNCEMENT
   ======================================== */
.announcement {
  background: var(--brand-soft);
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.announcement-icon { font-size: 1.2rem; flex-shrink: 0; }
.announcement-content { flex: 1; font-size: 0.9rem; color: var(--brand-dark); }
.announcement-more {
  font-size: 0.8rem; font-weight: 600;
  color: var(--brand);
  padding: 4px 12px;
  border: 1.5px solid var(--brand);
  border-radius: 99px;
  transition: 0.2s ease;
  flex-shrink: 0;
}
.announcement-more:hover { background: var(--brand); color: #fff; }
@media (max-width: 768px) {
  .announcement { flex-direction: column; align-items: flex-start; gap: 8px; }
  .announcement-more { align-self: flex-end; }
}

/* ========================================
   BLOG
   ======================================== */
.blog-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.blog-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 20px 24px;
  transition: box-shadow 0.2s ease;
  display: grid; grid-template-columns: 200px 1fr; gap: 20px;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card .blog-thumb {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-soft);
}
.blog-card .blog-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.blog-card .blog-info .blog-excerpt {
  font-size: 0.875rem; color: var(--text-sub);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .blog-info .blog-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
@media (max-width: 600px) {
  .blog-card { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
}

/* ========================================
   AUTH / LOGIN
   ======================================== */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 200px); padding: 32px 16px;
}
.auth-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 36px 32px;
  width: 100%; max-width: 420px;
}
.auth-card h2 { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text-main);
}
.form-group input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
  font-size: 0.9rem; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-soft);
}
.form-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.08);
}
.btn-submit {
  display: block; width: 100%; height: 46px;
  background: var(--brand); color: #fff; border: none;
  border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: 0.2s ease;
}
.btn-submit:hover { background: var(--brand-dark); }
.auth-link {
  text-align: center; font-size: 0.85rem; color: var(--text-sub);
  margin-top: 16px;
}
.auth-link a { font-weight: 600; color: var(--brand); }

/* ========================================
   USER CENTER
   ======================================== */
.user-layout {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 24px; margin: 24px 0;
}
.user-sidebar {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 20px;
  height: fit-content;
}
.user-sidebar .user-info { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.user-sidebar .user-info img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; }
.user-sidebar .user-info strong { display: block; font-size: 0.95rem; }
.user-sidebar .user-info span { font-size: 0.8rem; color: var(--text-muted); }
.user-menu a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--text-sub); font-size: 0.9rem;
  transition: 0.2s ease;
}
.user-menu a:hover, .user-menu a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.user-content {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px;
  min-height: 400px;
}
@media (max-width: 768px) {
  .user-layout { grid-template-columns: 1fr; }
}

/* ========================================
   DOWNLOAD WAIT PAGE
   ======================================== */
.wait-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; padding: 32px 16px;
  text-align: center;
}
.wait-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 40px 32px;
  width: 100%; max-width: 520px;
}
.wait-timer {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 24px 0;
}
.wait-timer .timer-circle {
  width: 80px; height: 80px; border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--brand);
  animation: spin 2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wait-ad {
  background: var(--bg-soft); border-radius: var(--radius-md);
  padding: 16px; margin: 16px 0; min-height: 80px;
  line-height: 1.5;
}
.wait-ad img { max-width: 100%; border-radius: var(--radius-sm); }
.wait-complete .btn-download { margin-top: 16px; }

/* ========================================
   VIP / PLANS
   ======================================== */
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin: 24px 0;
}
.plan-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 28px 24px;
  text-align: center; border: 2px solid transparent;
  transition: 0.2s ease;
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card.featured { border-color: var(--brand); }
.plan-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.plan-card .plan-price { font-size: 2.2rem; font-weight: 800; color: var(--brand); margin: 16px 0 8px; }
.plan-card .plan-period { font-size: 0.85rem; color: var(--text-muted); }
.plan-card .plan-features {
  text-align: left; margin: 20px 0; font-size: 0.88rem;
  color: var(--text-sub);
}
.plan-card .plan-features li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.plan-card .plan-btn {
  display: block; padding: 12px; margin-top: 20px;
  border-radius: var(--radius-md); font-weight: 700; font-size: 0.9rem;
  background: var(--brand); color: #fff;
  cursor: pointer; border: none; transition: 0.2s ease;
}
.plan-card .plan-btn:hover { background: var(--brand-dark); }
.plan-card .plan-btn.current { background: var(--border); color: var(--text-sub); cursor: default; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  gap: 10px;
  padding: 26px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--brand); }

/* ========================================
   DATA TABLE
   ======================================== */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { font-weight: 700; color: var(--text-sub); background: var(--bg-soft); }
.data-table tr:hover td { background: var(--bg-soft); }
.data-empty { text-align: center; padding: 48px 0; color: var(--text-muted); }

/* ========================================
   ALERTS & UTILITIES
   ======================================== */
.alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 0.9rem; margin-bottom: 16px;
}
.alert-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-teal { color: var(--brand); }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* Empty State */
.empty {
  padding: 44px 18px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty__icon { font-size: 38px; }
.empty__title { margin: 10px 0 0; }
.empty__desc { color: var(--text-muted); }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 22px; z-index: 100;
  transform: translateX(-50%) translateY(20px);
  opacity: 0; pointer-events: none;
  padding: 10px 16px;
  color: #fff; background: #18181b;
  border-radius: 99px;
  box-shadow: var(--shadow-md);
  transition: 0.2s ease;
}
.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tag badge */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; background: var(--bg-soft);
  color: var(--text-sub);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 640px) {
  .feed { column-count: 2; }
  .resource-grid { column-count: 2; }
}

@media (min-width: 960px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: none !important; }
  .nav-list { display: flex !important; }

  .feed { column-count: 4; column-gap: 16px; }
  .note-card { margin-bottom: 16px; }
  .resource-grid { column-count: 4; column-gap: 16px; }
  .resource-card { margin-bottom: 16px; }

  .section { padding: 44px 0; }

  .section-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 1100px) {
  .section-layout { grid-template-columns: 1fr; }
  .section-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-main { padding: 28px 20px; }
  .post-title { font-size: 1.4rem; }
  .post-meta { gap: 8px; }
  .safety-badge { margin-left: 0; }
  .dl-row { flex-wrap: wrap; padding: 14px 18px; }
  .dl-action { width: 100%; justify-content: center; margin-top: 8px; }
  .dl-info { flex-basis: calc(100% - 56px); }
  .dl-codes { flex-direction: column; gap: 6px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .section-side { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 20px, var(--container)); }
  .auth-card { padding: 24px 20px; }
  .plan-card { padding: 20px 16px; }
}

/* ========================================
   HOT RANK — 纯文字排行榜
   ======================================== */
.hot-rank {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hot-rank__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  transition: var(--transition);
}
.hot-rank__item:hover {
  background: var(--brand-soft);
}
.hot-rank__item:hover .hot-rank__title {
  color: var(--brand);
}
.hot-rank__no {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--bg-soft);
  color: var(--text-muted);
  flex-shrink: 0;
}
.hot-rank__no--top {
  background: var(--brand);
  color: #fff;
}
.hot-rank__title {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}
.hot-rank__count {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
